View compress.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
 
"""
Compress n strings into a single on, preserving order.
"""
 
pad = 20
 
pairs = [
[["2004", "45", "109"], ["2004", "Someextralong", ""]],
View gist:abf4c5f6a04ccbcfdf17
1 2 3 4 5 6 7 8 9 10
// packageList returns the list of packages in the dag rooted at roots
// as visited in a depth-first post-order traversal.
func packageList(roots []*Package) []*Package {
seen := map[*Package]bool{}
all := []*Package{}
var walk func(*Package)
walk = func(p *Package) {
if seen[p] {
return
View m.txt
1 2 3 4 5 6 7 8 9 10
24231 null
10694 12
5867 06
5774 10
4635 11
4473 01
4273 09
3957 03
3869 04
3422 1
View nsq.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"log"
"github.com/bitly/go-nsq"
)
 
func main() {
config := nsq.NewConfig()
w, _ := nsq.NewProducer("127.0.0.1:4150", config)
View seeker.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"flag"
"fmt"
"log"
"os"
)
 
func main() {
View 29719780.go
1 2 3 4 5 6 7 8 9 10
// http://stackoverflow.com/questions/29719780/concurrent-send-receive-go-channel/29719960#29719960
package main
 
import (
"fmt"
"sync"
)
 
// emit emits value count number of times
func emit(value string, count int, out chan string, wg *sync.WaitGroup) {
View doaj-lang.txt
1 2 3 4 5 6 7 8 9 10
1446460 English
444981 Spanish
362822 Portuguese
108955 French
39770 German
38950 Italian
36680 Russian
25865 Turkish
24451 EN
17043 Chinese
View gist:0346a6d4228943919aac
  1. General Background and Overview
View b62.go
1 2 3 4 5
package main
 
func main() {
fmt.Println("Hello")
}
View bitwise.go
1 2 3 4 5
package main
 
func main() {
fmt.Println("1 + 1")
}
Something went wrong with that request. Please try again.