https://github.com/[yourname]
[Describe ambitions: type of work, attributes of team, what you want to learn & teach]
[in reverse chronological order, list at most 5 positions or 10 years back, whichever is fewer]
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| @media only screen and (min-width: 320px) { | |
| /* Small screen, non-retina */ | |
| } | |
| @media | |
| only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
| only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
| only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
| // valid for all dates from 2000 through 2099 | |
| (function( $copy ) { | |
| $copy.html( $copy.html().replace(/20[0-9]{2}/, function() { return new Date().getFullYear() }) ) | |
| })( jQuery('#copy') ); |
| window.S = function(s) { | |
| return document[{ | |
| '#': 'getElementById', | |
| '.': 'getElementsByClassName', | |
| '@': 'getElementsByName', | |
| '=': 'getElementsByTagName'}[s[0]] | |
| || 'querySelectorAll'](s.slice(1)) | |
| }; | |
| // [S('#header'), S('.container'), S('?div')] |
https://github.com/[yourname]
[Describe ambitions: type of work, attributes of team, what you want to learn & teach]
[in reverse chronological order, list at most 5 positions or 10 years back, whichever is fewer]
| var SCROLLBAR_SIZE = SCROLLBAR_SIZE || function(d){ | |
| var | |
| e = d.documentElement, | |
| p = d.createElement('p'), | |
| r | |
| ; | |
| p.style.cssText = [ | |
| ';position:absolute', | |
| ';margin:0', | |
| ';padding:0', |
| $base-font-size: 16px; | |
| $base-line-height: 1.5; | |
| // this value may vary for each font | |
| // unitless value relative to 1em | |
| $cap-height: 0.68; | |
| @mixin baseline($font-size, $scale: 2) { |
| document.write = (function(write){ | |
| var override = function() { | |
| if(document.readyState !== "loading") { // document has finished loading - we want to intercept this call to document.write | |
| if (window.ueLogError) { | |
| try { | |
| throw new Error("`document.write` called after page load on the gateway."); | |
| } | |
| catch(e) { | |
| ueLogError(e, { logLevel : 'ERROR', attribution: 'gw-third-party-js' }); | |
| } |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |