Collection of c++ snippets