Skip to content

Instantly share code, notes, and snippets.

View lgomez's full-sized avatar

Luis G. Gómez lgomez

View GitHub Profile
// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');
var MapSymbol = function() {
var canvas = document.createElement("canvas");
var context = canvas.getContext("2d");
canvas.width = width;
canvas.height = height;
context.clearRect(0,0,width,height);
context.save();
context.beginPath();