Thanks, great snippet.
It's cool, thanks
https://gist.github.com/lucasmezencio/2788630/#comment-866731 - true. looks like a mistake (as one hasn't been enclosed with "__" and I assume that's the wrong one.
Just a trivial issue with one of the lines as mentioned by others. Rather than this it's useful.