Starting Over with Ubuntu 15.10
Here's a TODO list to help you get back up and running.
-
setup software center source, select best server
sudo apt-get update
-
download chrome,
uname -a
to see architecture
const search = nextNode => (root, visit) => { | |
let list = [root] | |
while (list.length) { | |
const node = nextNode(list) | |
visit(node) | |
list = list.concat(node.children) | |
} | |
} | |
const bfs = search(list => list.shift()) |
function Andy(animal) { | |
switch (animal.type) { | |
case 'meerkat': | |
Bob(animal); | |
break; | |
case 'ostrich': | |
Carol(animal); | |
break; | |
case 'snake': | |
Donald(animal); |
function Andy() { | |
while (1) { | |
var animal = catchAnAnimal(); | |
switch (animal.type) { | |
case 'meerkat': | |
Bob(animal); | |
break; | |
case 'ostrich': | |
Carol(animal); |
Starting Over with Ubuntu 15.10
Here's a TODO list to help you get back up and running.
setup software center source, select best server
sudo apt-get update
download chrome, uname -a
to see architecture
body code,body tt | |
{ | |
background-color:#f8f8f8; | |
border:1px solid #ddd; | |
border-radius:3px; | |
margin:0 2px; | |
padding:0 5px; | |
} | |
body code |
var foo = (function () { | |
// create a private variable | |
var priv = []; | |
// expose getter/setter | |
return { | |
getPriv: function () { | |
return priv; | |
}, |
for (var i = 5; i >= -5; i--) { | |
console.log('~' + i + ' === ' | |
+ ~i + ' == ' + (~i ? true : false)); | |
} | |
// ~5 === -6 == true | |
// ~4 === -5 == true | |
// ~3 === -4 == true | |
// ~2 === -3 == true | |
// ~1 === -2 == true |
// import the http module | |
var http = require('http'); | |
// create a server | |
var server = http.createServer(); | |
// define a handler for the 'request' event, triggered | |
// when a client makes a request of the server - | |
// request and response objects will be passed to the handler | |
server.on('request', function(req, res){ |