Snippets of (hopefully) useful code.