code samples from my blog posts