Carbon is an easy-to-use web application that lets you convert code snippets into pretty images. For instance, you can embed these images into your Twitter tweets, since Twitter does not provide any options for nice code formatting. Example:

Carbon example

There are various customization options and pre-sets for changing the colors, font, and background.

Using Carbon is a simple, one-shot alternative to embedding a GitHub Gist to your tweet.