Small handy snippets of code