Skip to content

Instantly share code, notes, and snippets.

View allenluce's full-sized avatar

Allen Luce allenluce

  • Seattle, WA
View GitHub Profile
@allenluce
allenluce / base.js
Created November 12, 2015 19:12
One way of cross-module node.js inheritance
module.exports = function() {
console.log("In base constructor.");
}
module.exports.prototype.myfunc = function() {
console.log("This is the base.");
}
var startupErr error
startupTimeoutChan := make(chan bool)
go func() {
for i := 5; i >= 0; i-- {
time.Sleep(time.Second)
startupTimeoutChan <- i == 0
}
}()
% ./sleeper &
[1] 6078
% ./sleeper
[1] + 6078 running ./sleeper
diff --git a/lyfe-mobile/openx_proto/openx_proto.pb.go b/lyfe-mobile/openx_proto/openx_proto.pb.go
index 2f2f102..e6db8cf 100644
--- a/lyfe-mobile/openx_proto/openx_proto.pb.go
+++ b/lyfe-mobile/openx_proto/openx_proto.pb.go
@@ -631,6 +631,44 @@ func (m *User) GetExt() []*ExtKeyValue {
return nil
}
+type App struct {
+ id *string `protobuf:"bytes,1,opt,name=idb" json:"id,omitempty"`
? rtb_go/lyfe-mobile/aux_data [no test files]
&{ff45781f-0316-41ef-b4e5-71238fca2f6e []}
PASS
ok rtb_go/lyfe-mobile/aws 0.222s
PASS
ok rtb_go/lyfe-mobile/blockers 0.006s
? rtb_go/lyfe-mobile/brightroll_proto [no test files]
# rtb_go/lyfe-mobile/campaign
./campaign_test.go:389: too many arguments in call to cpgnList.LoopFilter
./campaign_test.go:396: too many arguments in call to cpgnList.LoopFilter
? rtb_go/lyfe-mobile/aux_data [no test files]
&{b4d5cc5e-2a99-44a4-b212-5bd115dd02ee []}
PASS
ok rtb_go/lyfe-mobile/aws 0.372s
--- FAIL: TestBlockers (0.00 seconds)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x80 pc=0x447d18]
goroutine 22 [running]:
? rtb_go/lyfe-mobile/aux_data [no test files]
&{8ecf03d3-1a94-49b7-a466-60a957b7439f []}
PASS
ok rtb_go/lyfe-mobile/aws 0.241s
--- FAIL: TestBlockers (0.00 seconds)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x80 pc=0x447d18]
goroutine 22 [running]:
? rtb_go/lyfe-mobile/aux_data [no test files]
# rtb_go/lyfe-mobile/blockers
./blockers_test.go:29: type MockBanner has both field and method named IsBadv
./blockers_test.go:37: type MockBanner has both field and method named IsBattr
./blockers_test.go:41: type MockBanner has both field and method named IsCustBlock
./blockers_test.go:53: type MockBanner has both field and method named HasBcat
FAIL rtb_go/lyfe-mobile/blockers [build failed]
? rtb_go/lyfe-mobile/brightroll_proto [no test files]
# rtb_go/lyfe-mobile/campaign
./campaign_test.go:389: too many arguments in call to cpgnList.LoopFilter
? _/home/aluce/go/src/rtb_go/lyfe-mobile/aux_data [no test files]
# _/home/aluce/go/src/rtb_go/lyfe-mobile/blockers
blockers/blockers_test.go:29: type MockBanner has both field and method named IsBadv
blockers/blockers_test.go:37: type MockBanner has both field and method named IsBattr
blockers/blockers_test.go:41: type MockBanner has both field and method named IsCustBlock
blockers/blockers_test.go:53: type MockBanner has both field and method named HasBcat
&{e967542c-488a-40b6-a720-b4f89e63842b []}
--- FAIL: TestAutoDiscover (0.26 seconds)
panic: runtime error: index out of range [recovered]
panic: runtime error: index out of range
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3losK9VWZCjy+rAyVZ6fKcLKD6LynOLqLtJ2niOg5e3WTKihfbgZ9wyQe3U0ex1XBE3nJ08AuxxuOaWyYRW+1QE7HfQOD4rnQSWyBpeCztDZO5Mm79B1fSgzWiql6E6B03LvHcWfo7XxqFxC8vFkfD71rTwOu/0u2VESfiF8DCmhzu/jf74JqN3dKg3T2Ex14sfl+ArL7uiAvy7AozOsQe9eUY6KPY9ah95bMKnM6WJaRrsZfXlS27owFSMyMa/n/xwfkZt3YymhMTdLYd7lgeo0T+YbnaxCetdDwf6HB+TknFcm/P6EImXASk+8nGIN6D75RxBAzn/qU/Ji//Dm/ [email protected]