Skip to content

Instantly share code, notes, and snippets.

View gist:166155
$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'json'
=> true
irb(main):003:0> JSON.parse(JSON.unparse(true))
JSON::ParserError: 618: unexpected token at 'true'
from /usr/lib64/ruby/gems/1.8/gems/json-1.1.7/lib/json/common.rb:122:in `parse'
from /usr/lib64/ruby/gems/1.8/gems/json-1.1.7/lib/json/common.rb:122:in `parse'
from (irb):3
View gist:152409
for branch in `git branch -a | sed 's/\*//'`; do for blob in `git ls-tree $branch | grep tree | awk '{print $3}'`; do git grep "something" $blob; done; done
View gist:116954
janus:~ abhay$ erl
Erlang R13B (erts-5.7.1) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.7.1 (abort with ^G)
1> lists:dropwhile(fun(X) -> X == "hello" end, ["hello", [], "world"]).
2> lists:dropwhile(fun(X) -> X == "" end, ["hello", [], "world"]).
View gist:35244
class Foo < Array
attr_accessor :something
def initialize(something, *rest)
$stderr.puts 'in initializer'
@something = something
def []=(n,x)
View freebasehackday.html
<div id="hcalendar-Freebase-Hack-Day" class="vevent"><a href="" class="url"><abbr title="2008-11-08T10:00-07:0000" class="dtstart">November 8, 2008 10</abbr><abbr title="2008-11-08T18:00-07:00" class="dtend">6pm</abbr> : <span class="summary">Freebase Hack Day</span></a>
abhay /
Last active Aug 29, 2015

Keybase proof

I hereby claim:

  • I am abhay on github.
  • I am abhay ( on keybase.
  • I have a public key whose fingerprint is 016E C653 A97A 247A FD38 7686 CC30 F3BF CC0B A4C8

To claim this, I am signing this object: