Skip to content

Instantly share code, notes, and snippets.

View divoxx's full-sized avatar

Rodrigo Kochenburger divoxx

  • Doximity
  • San Francisco, CA
View GitHub Profile
class Foo
def self.bar
return @bar if defined?(@bar)
puts "Calculating"
@bar = "bar"
end
end
irb(main):008:0> Foo.bar
Calculating

Keybase proof

I hereby claim:

  • I am divoxx on github.
  • I am divoxx (https://keybase.io/divoxx) on keybase.
  • I have the public key with fingerprint 26B9 C91E C4EA C643 DA16  9DAF D361 E2EA 9244 CBBC

To claim this, I am signing this object:

divoxx godoc $ go build -x
WORK=/var/folders/02/sk3qr15j0xngfngjl7g0tkgw0000gn/T/go-build205772718
mkdir -p $WORK/code.google.com/p/go.tools/cmd/godoc/_obj/
mkdir -p $WORK/code.google.com/p/go.tools/cmd/godoc/_obj/exe/
cd /Users/divoxx/Projects/gopath/src/code.google.com/p/go.tools/cmd/godoc
/usr/local/Cellar/go/1.2/libexec/pkg/tool/darwin_amd64/6g -o $WORK/code.google.com/p/go.tools/cmd/godoc/_obj/_go_.6 -p code.google.com/p/go.tools/cmd/godoc -complete -D _/Users/divoxx/Projects/gopath/src/code.google.com/p/go.tools/cmd/godoc -I $WORK -I /Users/divoxx/Projects/gopath/pkg/darwin_amd64 ./blog.go ./codewalk.go ./doc.go ./handlers.go ./main.go ./play.go ./remotesearch.go
/usr/local/Cellar/go/1.2/libexec/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/code.google.com/p/go.tools/cmd/godoc.a $WORK/code.google.com/p/go.tools/cmd/godoc/_obj/_go_.6
cd .
/usr/local/Cellar/go/1.2/libexec/pkg/tool/darwin_amd64/6l -o $WORK/code.google.com/p/go.tools/cmd/godoc/_obj/exe/a.out -L $WORK -L /Users/divoxx/Projects/gopath/pkg/darwi
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, darwin/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/nm
--- FAIL: TestUpdateUser (0.00 seconds)
panic: illegal base64 data at input byte 0 [recovered]
panic: illegal base64 data at input byte 0
goroutine 4 [running]:
testing.func·004()
/usr/local/Cellar/go/1.1.2/libexec/src/pkg/testing/testing.go:348 +0xcd
github.com/doximity/auth-api/foo.UpdateUser(0xc2000b0c40, 0xc2000c14c0, 0xc2000b1410)
/Users/divoxx/Projects/gopath/src/github.com/doximity/auth-api/foo/foo.go:26 +0x122
net/http.HandlerFunc.ServeHTTP(0x2d2398, 0xc2000b0c40, 0xc2000c14c0, 0xc2000b1410)
(gdb) p *req
$4 = {*net/http.Request = 0xc2000bb680, Params = 0xc20014b600}
(gdb) p *req->Params
A syntax error in expression, near `>Params'.
| GoSublime error: MarGo build failed
| > This is possibly a bug or miss-configuration of your environment.
| > For more help, please file an issue with the following build output
| > at: https://github.com/DisposaBoy/GoSublime/issues/new
| > or alternatively, you may send an email to: gosublime@dby.me
| >
| >
| > cmd: `['/usr/local/Cellar/go/1.2rc1/libexec/bin/go', 'build', '-v', '-x', '-o', 'gosublime.margo_r13.08.31-1_devel+f4d1cb8d9a91.exe', 'gosubli.me/margo']`
| > stdout: ``
| > stderr: `WORK=/var/folders/rl/v51_qqj51pg_s36ld0v165n40000gn/T/go-build127954290
# curl -s http://data.iana.org/TLD/tlds-alpha-by-domain.txt | grep -vE "^#" | awk '{print length($1),$0}' | sort -k1nr | cut -d' ' -f 2- | tr '\n' '|'
TOP_LEVEL = /XN--CLCHC0EA0B2G2A9GCD|XN--HGBK6AJ7F53BBA|XN--HLCJ6AYA9ESC7A|XN--11B5BS3A9AJ6G|XN--MGBERP4A5D4AR|XN--XKC2DL3A5EE0H|XN--80AKHBYKNJ4F|XN--XKC2AL3HYE2A|XN--LGBBAT1AD8J|XN--MGBC0A9AZCG|XN--9T4B11YI5A|XN--MGBAAM7A8H|XN--MGBAYH7GPA|XN--MGBBH1A71E|XN--MGBX4CD0AB|XN--FPCRJ9C3D|XN--FZC2C9E2C|XN--YFRO4I67O|XN--YGBI2AMMX|XN--3E0B707E|XN--JXALPDLP|XN--KGBECHTV|XN--MGB9AWBF|XN--OGBPF8FL|XN--0ZWM56D|XN--45BRJ9C|XN--80AO21A|XN--DEBA0AD|XN--G6W251D|XN--GECRJ9C|XN--H2BRJ9C|XN--J6W193G|XN--KPRW13D|XN--KPRY57D|XN--PGBS0DH|XN--S9BRJ9C|XN--90A3AC|XN--FIQS8S|XN--FIQZ9S|XN--O3CW4H|XN--WGBH1C|XN--WGBL6A|XN--ZCKZAH|XN--P1AI|MUSEUM|TRAVEL|AERO|ARPA|ASIA|COOP|INFO|JOBS|MOBI|NAME|POST|BIZ|CAT|COM|EDU|GOV|INT|MIL|NET|ORG|PRO|TEL|XXX|AC|AD|AE|AF|AG|AI|AL|AM|AN|AO|AQ|AR|AS|AT|AU|AW|AX|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BJ|BM|BN|BO|BR|BS|BT|BV|BW|BY|BZ|CA|CC|CD|CF|CG|CH|CI|CK|CL|CM|CN|CO
def stop
@exit = 1
raise "ERROR"
end
def start
i = 0
trap("TERM") { stop }
module Bar
module Baz
end
end
class Foo
include Bar::Baz
end
class Foo