Skip to content

Instantly share code, notes, and snippets.

View Focinfi's full-sized avatar
🎯
Focusing

Frank Wang Focinfi

🎯
Focusing
View GitHub Profile
@Focinfi
Focinfi / benchmark_for_strings_Join_vs_string_appending.go
Created February 10, 2018 09:15
benchmark for strings.Join and string appending
package main
import (
"strconv"
"strings"
"testing"
)
const sliceLen = 1000
@Focinfi
Focinfi / benchmark_for_strings_Join_vs_string_appending.go
Created February 10, 2018 09:15
benchmark for strings.Join and string appending
package main
import (
"strconv"
"strings"
"testing"
)
const sliceLen = 1000
@Focinfi
Focinfi / build-qlang-bin.go
Last active April 19, 2016 02:38
build qlang bin
package main
import (
"flag"
"io/ioutil"
"log"
"qlang.io/qlang.v2/qlang"
qall "qlang.io/qlang/qlang.all"
)
@Focinfi
Focinfi / call-qlang-func-in-golang.go
Last active April 19, 2016 02:36
call qlang functions in golang
package main
import (
"log"
"os"
"qlang.io/exec.v2"
"qlang.io/qlang.v2/qlang"
qall "qlang.io/qlang/qlang.all" // 导入 builtin 包
)
@Focinfi
Focinfi / zshrc
Last active April 13, 2016 09:41
# Path to your oh-my-zsh installation.
export ZSH=/Users/Frank/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
@Focinfi
Focinfi / alias
Last active April 13, 2016 09:44
# git
alias gita='git status'
alias gco='git checkout $1'
# change dir
alias cw='cd ~/work'
autoload -U add-zsh-hook
load-local-conf() {
# check file exists, is regular file and is readable: