I hereby claim:
- I am twoism on github.
- I am chris_burnett (https://keybase.io/chris_burnett) on keybase.
- I have a public key ASCMnpdT5vST564g3q14gSxx8bWYvq0qPiMYVQRUpO4-8Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| → git clone https://github.com/github/debug-repo /tmp/debug-repo-http | |
| git clone [email protected]:github/debug-repo /tmp/debug-repo-ssh | |
| ping -c 10 github.com | |
| traceroute github.com | |
| Cloning into '/tmp/debug-repo-http'... | |
| ssh_dispatch_run_fatal: Connection to 192.30.255.113 port 22: Operation timed out | |
| fatal: Could not read from remote repository. | |
| Please make sure you have the correct access rights | |
| and the repository exists. |
| # Serializer: Generic serialization library | |
| # | |
| # class OtherThing < Struct.new(:name); end | |
| # | |
| # class Thing < Struct.new(:name) | |
| # def other_things | |
| # [OtherThing.new('a'), OtherThing.new('b')] | |
| # end | |
| # end | |
| # |
| # Serializer: Generic serialization library | |
| # | |
| # class Thing < Struct.new(:name) | |
| # def other_things | |
| # [Thing.new('a'), Thing.new('b')] | |
| # end | |
| # end | |
| # | |
| # class ThingSerializer < Serializer | |
| # attributes :name |
| if (tl != null && br != null) { | |
| loadPixels(); | |
| for (int x = (int)tl.x; x <= br.x; x++) { | |
| pixels[(int)tl.y*width + x] = color(255, 100, 0); | |
| pixels[(int)br.y*width + x] = color(255, 100, 0); | |
| } | |
| for (int y = (int)tl.y; y <= br.y; y++) { | |
| pixels[y*width + (int)tl.x] = color(255, 100, 0); | |
| pixels[y*width + (int)br.x] = color(255, 100, 0); | |
| } |
| #!/usr/bin/env ruby -W0 | |
| # First install the twitter gem | |
| # % gem install twitter | |
| # | |
| # Then install this script somewhere in your path | |
| # and add the follwing to your bashrc or zshrc. | |
| # | |
| # export TWITTER_CONSUMER_KEY=<YOUR KEY> | |
| # export TWITTER_CONSUMER_SECRET=<YOUR SECRET> |
| scala> val r = """(^foo.*)""".r | |
| r: scala.util.matching.Regex = (^foo.*) | |
| scala> val s = "foobar" | |
| s: java.lang.String = foobar | |
| scala> s match { | |
| | case r(f) => println(f) | |
| | case _ => println("not found") | |
| | } |
| function branches_by_date() { | |
| git for-each-ref --shell --sort=-committerdate --format='ref=%(refname); refdate=%(authordate)' refs/heads | | |
| while read entry | |
| do | |
| eval $entry; | |
| branch=$(echo "$ref" | cut -d/ -f3) | |
| echo "$refdate $branch"; | |
| done | | |
| less |
| # pull origin master to current branch w/o fast-forward. fails unless merge is clean | |
| git config --global alias.pullm "\!BRANCH=\$(git symbolic-ref HEAD 2>/dev/null | cut -d/ -f 3) pull --no-ff origin master:$BRANCH" | |
| # push current branch to origin | |
| git config --global alias.pushb "\!BRANCH=\$(git symbolic-ref HEAD 2>/dev/null | cut -d/ -f 3) && git push origin \$BRANCH" |
| git config --global alias.pushb "\!BRANCH=\$(git symbolic-ref HEAD 2>/dev/null | cut -d/ -f 3) && git push origin \$BRANCH" |