- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Retina images handler | |
### | |
if ($http_cookie ~* "isRetina=1" ) { | |
set $isRetina "retina"; | |
} | |
location ~ ^/bundles/(.*)-retina\.png { | |
try_files /bundles/$1-retina.png @retinaFallback; | |
} |
On supported browsers, the pseudo elements can be used to style the inputs for checkbox/radio for their checked and unchecked states while still providing a functional fallback for browsers that don't support input styling without doing weird resets. Most notable issue is pseudo elements not existing for inputs on firefox. Check it out in Chrome & Safari.
A Pen by Alex Bergin on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"programming":[ | |
"http://blog.codinghorror.com/", | |
"http://thedailywtf.com/", | |
"http://www.hanselman.com/blog/", | |
"http://code.tutsplus.com", | |
"https://news.ycombinator.com/", | |
"http://www.reddit.com/r/programming/", | |
"http://codebetter.com", | |
"http://android-developers.blogspot.com/", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var enbBemTechs = require('enb-bem-techs'), | |
borschikTech = require('enb-borschik/techs/borschik'), | |
fs = require('fs'), | |
path = require('path'), | |
techs = enbBemTechs, | |
provide = require('enb/techs/file-provider'); | |
// php | |
// process.env.YENV = 'production'; | |
enbBhPhp = require('enb-bh-php'); | |
//wpPhp = require('./techs/wp-php.js'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="js-favorite"> | |
<a href="/favoriteActionWithAjaxSupport" class="js-favorite-link">Favorite</a> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var precss = require('precss'); | |
var autoprefixer = require('autoprefixer'); | |
var sorting = require('postcss-sorting'); // ! | |
module.exports = { | |
module: { | |
loaders: [ | |
{ | |
test: /\.css$/, | |
loader: "style-loader!css-loader!postcss-loader" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('enb/lib/fs/async-fs'), | |
vow = require('vow'), | |
path = require('path'); | |
module.exports = require('enb/lib/build-flow').create() | |
.name('enb-exports-file') | |
.target('target', '?.js') | |
.useSourceFilename('source', '?.txt') | |
.builder(function(cssFilename) { | |
var def = vow.defer(); |
These rules are adopted from the AngularJS commit conventions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const values = [ | |
() => console.log({moveCircleToMiddle: true}), | |
1000, | |
() => console.log({showGrayCircle: true}), | |
() => console.log({showMicrophone: true}), | |
5000, | |
() => console.log({moveCircleToTop: true}), | |
1000, | |
() => console.log({pulseGrayCircle: true}), | |
5000, |