Sample code snippets for various blog posts