Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Berry schleppy

  • CrowdStrike
  • Irvine, Ca
View GitHub Profile
@schleppy
schleppy / channels.go
Created Apr 5, 2016
Port of vaughan0/go-zmq to pebbe/zmq4
View channels.go
package zmq4
import (
"errors"
"fmt"
"runtime"
"sync"
"sync/atomic"
)
View gist:4bed5e5a668cf5393a3b
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
View gist:e178250f9acba7d0295c
/src
/libs
/myproject
main.go
authentication.go
/api
x.go
y.go
x.go
/otherproject
View gist:2572052
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