git:(master) git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short | grep ^\* | grep 'Merge pull request'
git diff b32e180d^ 73241c26 --name-only
| #!/bin/sh | |
| #=============================================================================== | |
| # | |
| # USAGE: convert_underscore_case_to_camelCase_variables.sh <file名> | |
| # | |
| # DESCRIPTION: PHPファイルの underscore_case 変数名を camelCase に自動に変換する | |
| # | |
| #=============================================================================== | |
| set -o nounset |
git:(master) git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short | grep ^\* | grep 'Merge pull request'
git diff b32e180d^ 73241c26 --name-only
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| func main() { | |
| vars := []interface{}{"1", "2", "3", "4", "5"} | |
| fmt.Println(vars) |
| package main | |
| import "fmt" | |
| func main() { | |
| slice := []int{1} | |
| fmt.Printf("%v , len: %v , cap: %v\n", &slice[0], len(slice), cap(slice)) |
| // from https://yar999.gitbooks.io/gopl-zh/content/ch8/ch8-04.html | |
| // gopl.io/ch8/pipeline3 | |
| package main | |
| import ( | |
| "fmt" | |
| //"sync" | |
| ) |
| // https://talks.golang.org/2012/concurrency.slide#36 | |
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| type Message struct { |
| brew upgrade python3 | |
| pip3 install --upgrade pip setuptools wheel | |
| pip3 install --upgrade virtualenv | |
| virtualenv --system-site-packages -p python3 tensorflow | |
| cd tensorflow | |
| source ./bin/activate | |
| # 後: https://www.tensorflow.org/install/install_mac | |
| pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.1-py3-none-any.whl |