Comment Comment by eliotfowler The site is blocked at my work so I can't see the implemtation but here is one I wrote back in march that is 79 lines: https://gist.github.com/eliotfowler/9360895 parent eliotfowler 12 years ago