Skip to content

Instantly share code, notes, and snippets.

View shivajivarma's full-sized avatar
👨‍🍳
Baking Code

Shivaji Varma Pusapati Venkata shivajivarma

👨‍🍳
Baking Code
View GitHub Profile
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);
@shivajivarma
shivajivarma / 0_reuse_code.js
Created January 4, 2014 08:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console