Skip to content

Instantly share code, notes, and snippets.

View fsdaniel's full-sized avatar

Daniel Koopmans fsdaniel

View GitHub Profile
@dancannon
dancannon / listen.go
Created March 21, 2015 00:04
New channel based iterator in GoRethink v1.0
cursor, err := r.Expr([]int{1,2,3}).Run(session)
if err != nil {
panic(err)
}
ch := make(chan int)
cursor.Listen(ch)
<- ch // 1
<- ch // 2
<- ch // 3
@wsargent
wsargent / docker_cheat.md
Last active June 29, 2024 19:32
Docker cheat sheet