Skip to content

Instantly share code, notes, and snippets.

View w3fs's full-sized avatar

nicholas oneal w3fs

  • Dallas, TX
View GitHub Profile
@w3fs
w3fs / agent.js
Created June 14, 2018 16:00 — forked from TooTallNate/agent.js
Node.js `http.Agent` class implementations...
/**
* Module dependencies.
*/
var net = require('net');
var inherits = require('util').inherits;
var EventEmitter = require('events').EventEmitter;
/**
@w3fs
w3fs / 0_reuse_code.js
Created March 4, 2016 19:19
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
@w3fs
w3fs / pr.md
Created March 3, 2016 07:43 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: