Ruby snippets for my reference