Skip to content

Instantly share code, notes, and snippets.

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 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"]).
[[],"world"]
2> lists:dropwhile(fun(X) -> X == "" end, ["hello", [], "world"]).
["hello",[],"world"]
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 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>