Useful snippets in different languages