Skip to content

Instantly share code, notes, and snippets.

View allenluce's full-sized avatar

Allen Luce allenluce

  • Seattle, WA
View GitHub Profile
function switch_int($which) {
switch($which) {
case 0:
return 2;
case 1:
return 1;
}
}
function switch_string($which) {
` #++#+` `` ` `
+'++'+++'# :` `@+ `
++++'+++''''' `@@ @@@
#'++++''''''''+ ` @@ @@@
'+++++''''''''++#` `@@` @@` ;@@@,`
`+''''+''+''+''''++'## @@: `@@ ` @@@@@
`+''''+++'+'+'''++''# :@+ @@ @@`@@
@allenluce
allenluce / -
Created September 19, 2013 22:28
import javax.xml.bind.DatatypeConverter;
import java.security.MessageDigest;
class Odin {
public static void main (String[] args) {
String mac_address = "10:D5:42:E3:D5:34";
System.out.println(odin(mac_address));
}
public static String odin(String mac_address) {
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1399402808000",
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::telemetry-import/partner-hasoffers",
"arn:aws:s3:::telemetry-import/partner-hasoffers/*"
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3losK9VWZCjy+rAyVZ6fKcLKD6LynOLqLtJ2niOg5e3WTKihfbgZ9wyQe3U0ex1XBE3nJ08AuxxuOaWyYRW+1QE7HfQOD4rnQSWyBpeCztDZO5Mm79B1fSgzWiql6E6B03LvHcWfo7XxqFxC8vFkfD71rTwOu/0u2VESfiF8DCmhzu/jf74JqN3dKg3T2Ex14sfl+ArL7uiAvy7AozOsQe9eUY6KPY9ah95bMKnM6WJaRrsZfXlS27owFSMyMa/n/xwfkZt3YymhMTdLYd7lgeo0T+YbnaxCetdDwf6HB+TknFcm/P6EImXASk+8nGIN6D75RxBAzn/qU/Ji//Dm/ hasoffers898@allen.sea1.office.priv
? _/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
? 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
? 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]
&{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]
&{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