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 / md5_example.go
Created April 29, 2014 12:41
Golang use md5 lib
package main
import (
"crypto/md5"
"fmt"
"time"
)
var secret string
@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 / ssh.go
Created April 29, 2014 12:32
Golang 使用ssh连接服务器
package main
import (
"io/ioutil"
"log"
"net"
"code.google.com/p/go.crypto/ssh"
)
package main
import (
"fmt"
"github.com/garyburd/redigo/redis"
"os"
"runtime"
"sync"
"time"
)
@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)
@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 / location_map.json
Last active April 14, 2016 10:00
update file at utctime 2016-04-14 10:00:51.535982
{
"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",
@cloudaice
cloudaice / readme.md
Last active December 17, 2015 11:49
update users file 2

Github Users

import tornado.ioloop
import tornado.web
import tornado.escape
import tornado.options
import tornado.httputil
import jinja2
import pyjade.compiler
import coffeescript
import markdown
@cloudaice
cloudaice / github-china.md
Last active December 17, 2015 04:49
Activity chinese github users

Github上活跃的中国开发者