Useful code snippets from my coding adventures.