Under EC2 select launch instances
Select the first instance linux box
and proceed with the setup
for (var i = 1; i <= 100; i++) { | |
var str = ''; | |
if (i % 3 === 0) str += 'Fizz'; | |
if (i % 5 === 0) str += 'Buzz'; | |
console.log(str || i); | |
} | |
// More correct way define str outside of loop | |
// either way gets hoisted to top of scope in this case | |
// global environment, in browser the window object |
// Credits: | |
// http://stackoverflow.com/questions/5023514/how-do-i-normalize-css3-transition-functions-across-browsers/9090128#9090128 | |
var transitionEndEventName = function() { | |
var i; | |
var el = document.createElement('div'); | |
var transitions = { | |
'transition':'transitionend', | |
'OTransition':'otransitionend', | |
'MozTransition':'transitionend', | |
'WebkitTransition':'webkitTransitionEnd' |
// Orginal forked from | |
// https://gist.github.com/localpcguy/1373518 | |
'use strict'; | |
var Swiper = { | |
config: { | |
"touchstart": { | |
"x": -1, | |
"y": -1 | |
}, |
# | |
# Forked from: | |
# https://raw.githubusercontent.com/goschevski/fronty/master/hooks.sh | |
# | |
js_hint='{ | |
"bitwise": false, | |
"curly": true, | |
"eqeqeq": true, | |
"forin": true, | |
"immed": true, |
var format = function () { | |
var args = Array.apply(null, arguments); | |
var initial = args.shift(); | |
var replacer = function (text, replacement) { | |
return text.replace('%s', replacement); | |
} | |
return args.reduce(replacer, initial); | |
} |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
log 127.0.0.1:514 local2 notice | |
maxconn 4096 | |
pidfile tmp/haproxy-queue.pid | |
defaults | |
log global | |
mode http |
{ | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"rules": { | |
"block-scoped-var": 2, | |
"complexity": [1, 5], | |
"consistent-return": 2, |
// Tackling async events without | |
// callbacks using es6 generators | |
// http://kangax.github.io/compat-table/es6/#generators_(yield) | |
var async = function(parameters, callback) { | |
setTimeout(function() { | |
callback(parameters); | |
}, 1000); | |
}; | |
var currier = function(fn) { |
var partial = function partial(fn){ | |
var args = Array.apply(null, arguments).slice(1); | |
return function(){ | |
var lastArgs = Array.apply(null, arguments); | |
return fn.apply(this, args.concat(lastArgs)); | |
}; | |
}; | |
var partialRight = function partialRight(fn){ | |
var args = Array.apply(null, arguments).slice(1); |