my ruby snippets