Code snippets for the blog