TL;DR <a href="https://gist.github.com/intellectronica/844940247578986510090d41a42bc5a7" rel="nofollow">https://gist.github.com/intellectronica/84494024757898651009...</a> (but please do read and subscribe to Chris' posts - they're pure gold).