Skip to content

Instantly share code, notes, and snippets.

@sile
sile / 0_reuse_code.js
Created May 3, 2016 14:51
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
@sile
sile / proxy.js
Created December 17, 2012 02:26 — forked from anonymous/proxy.js
HTTP proxy server (node.js)
// sudo npm install -g http-proxy
// sudo npm install opts
var httpProxy = require('http-proxy'),
url = require('url'),
net = require('net'),
http = require('http'),
opts = require('opts'),
fs = require('fs');