View act-venv.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
act-venv () { | |
local ACTIVATION_SCRIPT | |
local VENV_DIRS | |
ACTIVATION_SCRIPT="bin/activate" | |
VENV_DIRS=("env" "venv" "python-venv") | |
local dir="$(pwd)" | |
local venv=false | |
local debug=false | |
[ "$1" = "-v" ] && debug=true | |
while [ "${dir}" != "/" ] |
View collections_wrapper.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test = dict( | |
len=1, | |
objects=[ | |
dict(foo='bar'), | |
dict(bar='baz'), | |
], | |
sub_object=dict(foo='bar') | |
) | |
View collections_wrapper_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test = dict( | |
len=1, | |
objects=[ | |
dict(foo='bar'), | |
dict(bar='baz'), | |
], | |
sub_object=dict(foo='bar') | |
) | |
View order.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
var answer = say() | |
func main() { | |
println("And that was the question?") | |
} | |
func say() int { | |
println("That is the answer?") |
View go_yaml_toml_bench.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"testing" | |
bs_toml "github.com/BurntSushi/toml" | |
k_toml "github.com/kezhuw/toml" | |
n_toml "github.com/naoina/toml" | |
p_toml "github.com/pelletier/go-toml" |