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 http = require('http'); | |
var kristian = http.createServer(function (trine, truls) { | |
truls.writeHead(200, {'Content-Type': 'text/plain'}); | |
truls.end('Vi er da for sv@rt€ ikke kids!!! \n'); | |
}); | |
kristian.listen(process.env.port || 8080); |
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 kristian = require('http'); | |
kristian.createServer(function (req, res) { | |
// 200 betyr ok på internett (eller, http, da) | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Vi er da for f@€n ikke kids!!! \n'); | |
}).listen(process.env.port); |
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 http = require('http'); | |
http.createServer(function (trine, nils) { | |
// 200 betyr ok på internett (eller, http, da) | |
nils.writeHead(200, {'Content-Type': 'text/plain'}); | |
nils.end('Vi er da for f@€n ikke kids!!! \n'); | |
}).listen(process.env.port); |
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 http = require('http'); | |
http.createServer(function (req, res) { | |
// 200 betyr ok på internett (eller, http, da) | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Vi er da for f@€n ikke kids!!! \n'); | |
}).listen(process.env.port); |
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 http = require('http'); | |
http.createServer(function (req, res) { | |
// 200 betyr ok på internett (eller, http, da) | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Vi er da for f@€n ikke kids!!! \n'); | |
}).listen(process.env.port); |
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
app.get('/_api/:entitytype', ensureLoggedIn('/authenticate/login'), function (req,res) { | |
// do magic | |
}); | |
app.post('/_api/:entitytype', ensureLoggedIn('/authenticate/login'), function (req,res) { | |
// do magic | |
}); | |
app.put('/_api/:entitytype/:id', ensureLoggedIn('/authenticate/login'), function (req,res) { | |
// do magic |
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
(function (exports) { | |
exports.Task = function(id, owner, title, description, priority, progress, dueOn, modified) { | |
var self = this; | |
this.ID = id; | |
this.AuthorId = owner; //16 | |
this.Title = title; | |
this.Body = description; | |
this.Priority = priority; //(2) Normal | |
this.PercentComplete = progress; //100 | |
this.DueDate = dueOn; // |
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
module.exports = function (io) { | |
io.of('/SPio').on('connection', function (client) { | |
client.on('moveEvent', function (moveEvent) { | |
client.broadcast.emit('moveEvent', moveEvent); | |
}); | |
}); | |
} |
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 net = require('net'); | |
var rx = require('rx'); | |
require('./extendObservable.js'); // Adds the toObservable method to EventEmitter | |
var RGBAStream = require('./RGBAStream'); | |
var PaVEParser = require('./node_modules/ar-drone/lib/video/PaVEParser'); | |
var FaceStream = require('./FaceStream'); | |
var parser = new PaVEParser(); | |
var face = new FaceStream(); |
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('fs'), | |
PNG = require('pngjs').PNG, | |
async = require('async'), | |
jsfeat = require('jsfeat'), | |
_ = require('underscore'); | |
fs.createReadStream('otter_in_waterfall.png') | |
.pipe(new PNG({ | |
// Haven't bothered looking into this, here's what it means |