Skip to content

Instantly share code, notes, and snippets.

View asinbow's full-sized avatar

Hao Wang asinbow

  • Flexport
  • Shenzhen, PRC
View GitHub Profile
@asinbow
asinbow / addon.cc
Created November 16, 2015 03:38 — forked from matzoe/addon.cc
Node.js callback cross threads
// http://nikhilm.github.io/uvbook/threads.html
#include <string>
#include <map>
#include <node.h>
#include <v8.h>
#include <uv.h>
#include <sys/syscall.h>
#include <stdlib.h>
@asinbow
asinbow / Makefile
Created September 8, 2012 14:44 — forked from border/Makefile
json example in golang
include $(GOROOT)/src/Make.inc
GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4
all:
$(GC) jsontest.go
$(LD) -o jsontest.out jsontest.$O
format:
$(GOFMT) -w jsontest.go