Snippets

Useful code bits I've collected over the years