Skip to content

Instantly share code, notes, and snippets.

View schleppy's full-sized avatar

Sean Berry schleppy

  • CrowdStrike
  • Irvine, Ca
View GitHub Profile
/src
/libs
/myproject
main.go
authentication.go
/api
x.go
y.go
x.go
/otherproject
@schleppy
schleppy / gist:4bed5e5a668cf5393a3b
Created April 15, 2015 23:26
1 2 3 4 5 6 7 8 9 = 1
1.0 + 23.0 - 45.0 - 67.0 + 89.0
1.0 - 23.0 + 45.0 + 67.0 - 89.0
-1.0 * 2.0 + 34.0 + 56.0 - 78.0 - 9.0
1.0 + 23.0 + 4.0 - 5.0 + 67.0 - 89.0
-1.0 + 23.0 - 4.0 + 5.0 + 67.0 - 89.0
1.0 - 23.0 - 4.0 + 5.0 - 67.0 + 89.0
1.0 * 23.0 + 4.0 + 56.0 + 7.0 - 89.0
1.0 + 23.0 + 45.0 - 67.0 + 8.0 - 9.0
-1.0 + 23.0 + 45.0 - 67.0 - 8.0 + 9.0
1.0 - 23.0 - 45.0 + 67.0 - 8.0 + 9.0
def main_method(arg1, arg2):
d = long_method_1(arg1)
d2 = long_method_2(arg2)
d_list = defer.gatherResults([d, d2])
d_list.addCallback(compose_results);
return d_list
def long_method_1(arg):
deferred = getPage('blah')
return deferred1
@schleppy
schleppy / channels.go
Created April 5, 2016 22:33
Port of vaughan0/go-zmq to pebbe/zmq4
package zmq4
import (
"errors"
"fmt"
"runtime"
"sync"
"sync/atomic"
)