Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
Building.

Mitchell Hashimoto mitchellh

👾
Building.
View GitHub Profile
View gist:11401896

Banana Bread

Ingredients

  • 1/2 butter
  • 1 c. sugar
  • 2 eggs
  • 3 smashed bananas
  • 2 c. flour - whole grain or white spelt is best
  • 1 tsp. baking soda
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

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 = git@github.com: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:

@ktkaushik
ktkaushik / status_header_setter
Created Apr 17, 2012
Set HTTP status headers with respond_with( object ) in rails.
View status_header_setter
1xx Informational
100 Continue :continue
101 Switching Protocols :switching_protocols
102 Processing :processing
2xx Success
200 OK :ok