Code from my "Tooling Around with the Tooling API" session at Dreamforce 2013.