Roadmap paths
- your-move
- your-place
- your-stuff
- choose-quote
- payment-book
- payment
- payment-confirmation
- moving-day
- feedback
(function totalElectrons() { | |
var total = Math.pow(10, 88); // 1.0000000000000001e+88 | |
console.log(total + ' electrons in the universe'); | |
})(); | |
(function totalGoConfigurations() { | |
// 19 x 19 grid and three possibilities per | |
// intersection (black stone, white stone, empty) | |
var total = Math.pow(3, 19 * 19); // 1.740896506590319e+172 | |
console.log(total + ' possible configurations on a Go board'); |
var restify = require('restify') | |
, port = process.env.PORT || 3000 | |
, Phantom = require('phantom') | |
, tmpdir = require('os').tmpdir() | |
, fs = require('fs'); | |
var server = restify.createServer(); | |
function setResponseHeaders(res, filename) { | |
res.header('Content-disposition', 'inline; filename=' + filename); |
// Module Pattern in JS | |
var FriendsModule = (function(){ | |
// private vars and functions | |
var friends = ['Adam', 'Brittany', 'Russell', 'Erik', 'Hank']; | |
var addFriend = function(friend) { | |
friends.push(friend); | |
}; |
Roadmap paths
.factory 'ArticleData', () -> | |
{ | |
articles: [ | |
{ | |
"id" : "chair", | |
"name" : "Chair", | |
"parent" : "article" | |
}, | |
{ | |
"id" : "sofa", |
HTML - hyper text markup language | |
a set of markup tags that describe the content of a document/web page | |
doctype - instruction to browser as to what version of html will follow | |
tag | |
element | |
web browsers were created to read html documents and display them as web pages |
#!/bin/bash | |
ls | while read -r FILE | |
do | |
mv -v "$FILE" `echo $FILE | tr 'x' 'y' ` | |
done |