Skip to content

Instantly share code, notes, and snippets.

View avdg's full-sized avatar

Anthony Van de Gejuchte avdg

View GitHub Profile
exports.reversePath = function(path)
{
var reversedPath = [];
for(var i = 0; i < path.length; i++)
{
var currentStep = path[i];
var dx = currentStep.dx * -1;
var dy = currentStep.dy * -1;

Various command line applications use an Interpreter Directive to define how they should be run.

#! js -m foo
#! node foo