Skip to content

Instantly share code, notes, and snippets.

View cloudaice's full-sized avatar
:octocat:

项超 cloudaice

:octocat:
  • Bytedance
  • Hangzhou China
View GitHub Profile
@cloudaice
cloudaice / world_location_map.json
Last active April 14, 2016 10:00
update file at utctime 2016-04-14 10:00:39.468129
{
"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",
@cloudaice
cloudaice / main.go
Created August 1, 2013 13:48
Go 时间驱动 协程库
package main
import "fmt"
import "time"
import "runtime"
func main(){
runtime.GOMAXPROCS(8)
channel := make(chan string)
package main
import (
"fmt"
"github.com/garyburd/redigo/redis"
"os"
"runtime"
"sync"
"time"
)
@cloudaice
cloudaice / ssh.go
Created April 29, 2014 12:32
Golang 使用ssh连接服务器
package main
import (
"io/ioutil"
"log"
"net"
"code.google.com/p/go.crypto/ssh"
)
@cloudaice
cloudaice / for.go
Created April 29, 2014 12:38
测试CPU使用情况
package main
import (
"runtime"
)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
forfunc := func() {
@cloudaice
cloudaice / md5_example.go
Created April 29, 2014 12:41
Golang use md5 lib
package main
import (
"crypto/md5"
"fmt"
"time"
)
var secret string