Skip to content

Instantly share code, notes, and snippets.

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:

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>
View gist:35244
class Foo < Array
attr_accessor :something
def initialize(something, *rest)
$stderr.puts 'in initializer'
@something = something
def []=(n,x)
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: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: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 vineyards.yml
Sterling Vineyards:
- 1111 Dunaweal Lane, Calistoga, CA
- 10am - 5pm
- 800-726-6136
Castello di Amorosa:
- 4045 N St. Helena Hwy, Calistoga, CA
View .Xdefaults
rxvt.font: Consolas-14
rxvt.loginShell: true
rxvt.background: black
rxvt.foreground: grey
rxvt.geometry: 160x50+0+0
View Benessere Vineyards.mdown

Benessere Vineyards



Phenomenon embodies the pinnacle of winemaking at Benessere! We endeavor to produce only quantities that are commensurate with the age of the vines and the quality of the vintage. After several years of production, we have come to know that Phenomenon is a wine that is age-worthy and substantial enough to pair with Steak Florentine, Beef Wellington and leg of lamb, yet elegant enough to enjoy on its own or with chocolate mousse torte. The distinct aromas of pure dark chocolate, blackberry jam and plum compote are complemented by flavors of black-cherry cola, mocha fudge, glove leather, picholine olives and pure vanilla. We make Phenomenon to enjoy on festive occasions, both humble and grand. It is the perfect wine to toast an engagement or anniversary as well as to enjoy at home watching "Casa Blanca" in black and white on your widescreen TV. It will age beautifully and gracefully for the next decade or more.

View gist:217952
janus:bert abhay$ ruby bench/decode_bench.rb
user system total real
BERT tiny 0.070000 0.000000 0.070000 ( 0.072316)
BERT small 0.720000 0.000000 0.720000 ( 0.740800)
BERT large 3.040000 0.070000 3.110000 ( 3.127167)
BERT complex 16.830000 0.110000 16.940000 ( 17.417924)
JSON tiny 0.010000 0.000000 0.010000 ( 0.006271)
JSON small 0.050000 0.000000 0.050000 ( 0.054559)
JSON large 1.970000 0.070000 2.040000 ( 2.060273)