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
# encoding: utf-8 | |
require 'rubygems' | |
require 'amazon/ecs' | |
def amazon(isbn) | |
# 初期設定 | |
Amazon::Ecs.configure do |options| | |
options[:associate_tag] = "pumissyu-22"# アソシエイトID(なんとか-22ってやつ) | |
options[:AWS_access_key_id] = "AKIAJUDAHJBFXMBJO3WQ" | |
options[:AWS_secret_key] = "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" |
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
| Left align | Right align | Center align | | |
|:-----------|------------:|:------------:| | |
| This | This | This | | |
| column | column | column | | |
| will | will | will | | |
| be | be | be | | |
| left | right | center | | |
| aligned | aligned | aligned | |
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
docker run --name digits -p "5000:5000" -v ./images/:/mnt/volumes/images kaixhin/digits |
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
<svg viewBox="左上のx座標 左上のy座標 右下のx座標 右下のy座標"></svg> |
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
# 変更のあったgoファイルを取得 | |
# なければ終了 | |
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.go$'|grep -v mock) | |
[ -z "$gofiles" ] && exit 0 | |
# 各種コメントを実行して、終了コードを取得 | |
echo $gofiles|xargs -n 1 golint -set_exit_status | |
lint=$? | |
echo $gofiles|xargs -n 1 go vet |