(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
function manyToManyMap(source, first, second) { | |
'use strict'; | |
var result = {}, i, item; | |
for (i = 0; i < source.length; i += 1) { | |
item = source[i]; | |
if (!result[item[first]]) { | |
result[item[first]] = {}; | |
} | |
result[item[first]][item[second]] = item; | |
} |
fs = require('fs') | |
http = require('http') | |
https = require('https') | |
express = require('express') | |
path = require 'path' | |
_ = require('underscore') | |
sessionToken = "secretString" | |
secretUploadPass = "Change me" | |
secretPass = "Change me too" |
define(function(require) { | |
var system = require('../system'); | |
var animationTypes = [ | |
'bounce', | |
'bounceIn', | |
'bounceInDown', | |
'bounceInLeft', | |
'bounceInRight', | |
'bounceInUp', |
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 |