snippets code base