Collection of small C++ snippets