Random snippets of code that I'm playing around with.