npm install --registry http://registry.npmjs.org packagename
This will update your .npmrc to include the following line registry = http://registry.npmjs.eu/
npm config set registry http://registry.npmjs.eu
| jQuery.uaMatch = function( ua ) { | |
| ua = ua.toLowerCase(); | |
| var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || | |
| /(webkit)[ \/]([\w.]+)/.exec( ua ) || | |
| /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || | |
| /(msie) ([\w.]+)/.exec( ua ) || | |
| ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || | |
| []; |
| https://github.com/cowboy/wesbos/commit/5a2980a7818957cbaeedcd7552af9ce54e05e3fb |
| (function($) { | |
| // ## Detect and fire scrollDown & scrollUp events | |
| var lastScrollTop = $(window).scrollTop(); | |
| $(window).scroll(function(){ | |
| var current = $(this).scrollTop(); | |
| // Check the direction of the scroll | |
| if (current >= lastScrollTop){ | |
| // Trigger the down scroll event | |
| $(this).trigger('jScroll.down'); | |
| // Detect a change of direction |
| gitHub : https://github.com/louisremi/background-size-polyfill |
PageSlide is a jQuery plugin which slides a webpage over to reveal an additional interaction pane.
There are a couple of examples included with this package. Or, if you can’t wait to download it, see it live on the responsive demo or original project page.
| cd /home/cplou/Téléchargements/ && wget [url] && sudo dpkg -i sublime-text_build-3*.deb |
| .selector { | |
| -webkit-transform: translateZ(0); | |
| -moz-transform: translateZ(0); | |
| -ms-transform: translateZ(0); | |
| -o-transform: translateZ(0); | |
| transform: translateZ(0); | |
| } |
| <!-- ###TEMPLATE_LIST### begin --> | |
| <!-- ###CONTENT### begin --> | |
| <!-- ###NEWS### begin --> | |
| [---] | |
| <div class="download"> | |
| ###FILE_LINK### | |
| </div> | |
| [---] | |
| <!-- ###NEWS### end--> | |
| <!-- ###CONTENT### end --> |
| // set max down rate to 625 Kb/s on ssh port (git : 9418) | |
| sudo ipfw pipe 1 config bw 5000KByte/s | |
| sudo ipfw add 1 pipe 1 src-port 22 | |
| // delete the rule | |
| sudo ipfw delete 1 |