This is the API for creating a Gist: http://developer.github.com/v3/gists/#create-a-gist

We could also store the results in the database, we'd possibly have to account for clearing them out...I think using a Gist is much simpler in the long run, especially as the user can fork/edit it as they wish afterwards.