Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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}" != "/" ]
test = dict(
len=1,
objects=[
dict(foo='bar'),
dict(bar='baz'),
],
sub_object=dict(foo='bar')
)
test = dict(
len=1,
objects=[
dict(foo='bar'),
dict(bar='baz'),
],
sub_object=dict(foo='bar')
)
@inizovtsev
inizovtsev / order.go
Created April 16, 2017 22:13
golang initialization order
package main
var answer = say()
func main() {
println("And that was the question?")
}
func say() int {
println("That is the answer?")
@inizovtsev
inizovtsev / go_yaml_toml_bench.go
Created June 26, 2018 18:08
Benchmark of some toml go packages and yaml go package
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"