Random snippets of ruby code