Random snippets of code from miscellaneous projects