Snippets

This is a collection of random snippets you might find useful. I've written some text but you should be able to just have a look at the code if you want to.