This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/md5" | |
"fmt" | |
"time" | |
) | |
var secret string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"runtime" | |
) | |
func main() { | |
runtime.GOMAXPROCS(runtime.NumCPU()) | |
forfunc := func() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"net" | |
"code.google.com/p/go.crypto/ssh" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/garyburd/redigo/redis" | |
"os" | |
"runtime" | |
"sync" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "time" | |
import "runtime" | |
func main(){ | |
runtime.GOMAXPROCS(8) | |
channel := make(chan string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Taipei,Taiwan": "TW", | |
"Vancouver": "CA", | |
"SF,/,BOS,/,NYC,/,LA": "BO", | |
"Omaha,NE": "NE", | |
"China,Canton,Guangzhou": "CN", | |
"Arkansas": "US", | |
"Beijing,China": "CN", | |
"Waco,TX": "US", | |
"Ancona,Italy": "IT", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"china,canton,guangzhou": "guangdong", | |
"shenzhen,guangdong,china": "guangdong", | |
"china,,\u82cf\u5dde": "jiangsu", | |
"peking,china": "beijing", | |
"pudong,district,,shanghai,,china": "shanghai", | |
"beijing,.china": "beijing", | |
"huadu,district,guangzhou,guangdong,china": "guangdong", | |
"beihang,university,,beijing,,china": "beijing", | |
"shanghai,china": "shanghai", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tornado.ioloop | |
import tornado.web | |
import tornado.escape | |
import tornado.options | |
import tornado.httputil | |
import jinja2 | |
import pyjade.compiler | |
import coffeescript | |
import markdown |
NewerOlder