Skip to content

Instantly share code, notes, and snippets.

Avatar

souparno majumder souparno

View GitHub Profile
@marcusoftnet
marcusoftnet / getApp.js
Last active Aug 29, 2015
Simple GET test with supertest
View getApp.js
var app = require("express")();
app.get('/user', function(req, res){
res.send(200, { name: 'marcus' });
});
// In order to reach the app from other modules
// we need to export the express application
module.exports.getApp = app;
@zachstronaut
zachstronaut / gist:1184900
Created Aug 31, 2011
Stretch HTML5 canvas to fill window, preserving aspect ratio
View gist:1184900
/**
* fullscreenify()
* Stretch canvas to size of window.
*
* Zachary Johnson
* http://www.zachstronaut.com/
*
* See also: https://gist.github.com/1178522
*/
You can’t perform that action at this time.