Skip to content

Instantly share code, notes, and snippets.

@hemulin
hemulin / static_server.js
Created November 28, 2012 14:27 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
@hemulin
hemulin / _.md
Created August 30, 2012 09:54 — forked from anonymous/_.md
just another inlet to tributary
@hemulin
hemulin / _.md
Created August 18, 2012 16:43 — forked from anonymous/inlet.js
just another inlet to tributary

No Previous Gist