Skip to content

Instantly share code, notes, and snippets.

@Codefor
Codefor / iter_read_write_map.go
Last active June 8, 2017 16:15
fatal error: concurrent map iteration and map write; fatal error: concurrent map writes
package main
import (
// "fmt"
"time"
)
func main() {
m := map[int]int{}
go func() {
@Codefor
Codefor / github _stats
Created November 5, 2014 06:53
丧心病狂的github用户信息收集
https://github.com/_stats
[{"browserfeatures":{"classlist":true,"classlist_multi_arg":true,"custom_elements":true,"emoji":false,"promise":true,"request_animation_frame":true,"setimmediate":false,"url":true,"weakmap":true,"placeholder_input":true,"placeholder_textarea":true,"performance_now":true,"performance_mark":true,"performance_getentries":true}},{"timing":{"crossBrowserLoadEvent":1415170123577,"loadEventEnd":1415170123574,"loadEventStart":1415170123567,"domComplete":1415170123567,"domContentLoadedEventEnd":1415170123099,"domContentLoadedEventStart":1415170123095,"domInteractive":1415170123095,"domLoading":1415170122718,"responseEnd":1415170122976,"responseStart":1415170122693,"requestStart":1415170122293,"secureConnectionStart":1415170122014,"connectEnd":1415170122292,"connectStart":1415170121728,"domainLookupEnd":1415170121728,"domainLookupStart":1415170121728,"fetchStart":1415170121711,"redirectEnd":0,"redirectStart":0,"unloadEventEnd":1415170122697,"unloadEventStart":1415170122697,"navigationStart":