Skip to content

Instantly share code, notes, and snippets.

View piaoger's full-sized avatar

Piaoger piaoger

View GitHub Profile
@piaoger
piaoger / json_marshal.go
Last active August 29, 2015 14:06
json marshal in go
package main
import (
"fmt"
"encoding/json"
)
type js struct {
A map[string]interface{}
@piaoger
piaoger / maxstacksize.html
Created March 21, 2014 02:32
Get max call stack size in browser
<!-- A script to get max call stack size in browser
In my Macbook pro
Firefox 28:
maxStackSize = 350801 (dynamic, but always above 300000)
error: InternalError: too much recursion
Safari 7.0.2
maxStackSize = 58034
error: RangeError: Maximum call stack size exceeded.
Chrome 33:
@piaoger
piaoger / git_clone_tag.sh
Last active December 30, 2015 18:49
git clone specific tag
# git clone will give you the whole repository.
# After the clone, you can list the tags with git tag -l;
# then checkout a specific tag: git checkout tags/<tag_name>
git clone <repo-address>
git tag -l
git checkout <tag-name>