When you have a scrollable element and you scroll to the end of it, the whole page starts to scroll.
There is a little known css property
1 | .element { |
When you have a scrollable element and you scroll to the end of it, the whole page starts to scroll. There is a little known css property 123.element
A sleep function. 1234567function sleep(msecs) { var start = new Date().getTime(); var cur = start while(cur - start < msecs) { cur = new
Overloading the global alert function. 123456789101112alert = (function () { var console = document.createElement("div"); console.setAttribute("i
This will create vim, vimdiff, etc. symlinks to mvim in/usr/local/bin/vim. 1brew install macvim --with-override-system-vim
12345Template.layout.events({ 'mouseover .button': function (e) { $(e.target).addClass('reverse'); }});