Collection of useful ruby code snippets