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
(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
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
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
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 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'); | |
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
using System; | |
using Antlr4.StringTemplate; | |
namespace stringtemplatetest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var hello = new Template("Hello, $name$", '$', '$'); |
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
using System; | |
using System.Collections.Generic; | |
using Antlr4.StringTemplate; | |
namespace stringtemplatetest | |
{ | |
class Bjorn | |
{ | |
public Bjorn(int alder) | |
{ |