Hacker News new | ask | show | jobs
by antihero 4692 days ago
I think I've done pretty much exactly the same thing:

https://gist.github.com/radiosilence/2fd82aaf3b1721448ae1

Except your function names make more sense.