Edit: Looks like someone already started on one: https://gist.github.com/3203059
Reply on news.ycombinator.com