Snippets of useful Ruby code