This is a description of how I write tech articles for various blogs. Hopefully someone else will find this useful as well.
When I begin writing a new article, I create a new [GitHub Gist][gist] for the article files. The Gist contains a file for the article text and code examples related to the article.