Skip to content

Instantly share code, notes, and snippets.

View freebasehackday.html
<div id="hcalendar-Freebase-Hack-Day" class="vevent"><a href="http://blog.freebase.com/2008/10/09/announcing-the-freebase-hack-day-november-8th-2008" 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
super(rest)
end
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"]).
[[],"world"]
2> lists:dropwhile(fun(X) -> X == "" end, ["hello", [], "world"]).
["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
---
Map: http://maps.google.com/maps?f=d&source=s_d&saddr=1111+Dunaweal+Lane,+Calistoga,+CA+(Sterling+Vineyards)&daddr=4045+N+St.+Helena+Hwy,+Calistoga,+CA+(Castello+di+Amorosa)+to:3451+Silverado+Trail+North,+St.+Helena,+CA+(Casa+Nuestra)+to:2971+Silverado+Trail,+St.+Helena,+CA+(Titus+Vineyards)+to:1111+White+Lane,+St.+Helena,+CA+(V+Sattui)+to:1960+St+Helena+Hwy+S,+St+Helena,+CA%E2%80%8E+(Beaulieu+Vineyard)+to:8440+St.+Helena+Hwy,+Rutherford,+CA+(St.+Sup%C3%A9ry)+to:8383+Silverado+Trail,+Napa,+CA+(ZD+Wines)+to:5350+Silverado+Trail,+Napa,+CA+(Chimney+Rock)+to:4500+Silverado+Trail,+Napa,+CA+(Signorello+Vineyards)+to:588+Trancas+St,+Napa,+CA+(HDV+Wines)
Sterling Vineyards:
- http://www.sterlingvineyards.com
- 1111 Dunaweal Lane, Calistoga, CA
- 10am - 5pm
- 800-726-6136
Castello di Amorosa:
- http://www.castellodiamorosa.com
- 4045 N St. Helena Hwy, Calistoga, CA
View .Xdefaults
! FONTS
rxvt.font: Consolas-14
! BASIC
rxvt.loginShell: true
rxvt.background: black
rxvt.foreground: grey
! GEOMETRY/WINDOW STUFF
rxvt.geometry: 160x50+0+0
View Benessere Vineyards.mdown

Benessere Vineyards

Notes

Phenomenon

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)
View gist:250009
$ dig @8.8.8.8 visnup.com
; <<>> DiG 9.6.0-APPLE-P2 <<>> @8.8.8.8 visnup.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34742
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: