Skip to content

Instantly share code, notes, and snippets.

Igor Nizovtsev inizovtsev

Block or report user

Report or block inizovtsev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@inizovtsev
inizovtsev / go_yaml_toml_bench.go
Created Jun 26, 2018
Benchmark of some toml go packages and yaml go package
View go_yaml_toml_bench.go
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"
@inizovtsev
inizovtsev / order.go
Created Apr 16, 2017
golang initialization order
View order.go
package main
var answer = say()
func main() {
println("And that was the question?")
}
func say() int {
println("That is the answer?")
View collections_wrapper_2.py
test = dict(
len=1,
objects=[
dict(foo='bar'),
dict(bar='baz'),
],
sub_object=dict(foo='bar')
)
View collections_wrapper.py
test = dict(
len=1,
objects=[
dict(foo='bar'),
dict(bar='baz'),
],
sub_object=dict(foo='bar')
)
View act-venv.sh
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}" != "/" ]
You can’t perform that action at this time.