Snippet code and config