Random C++ code snippets I made for other projects