Skip to content

Instantly share code, notes, and snippets.

View hayamiz's full-sized avatar

Yuto Hayamizu hayamiz

View GitHub Profile
@hayamiz
hayamiz / nakatoji.zsh
Created August 19, 2012 11:01 — forked from pi8027/nakatoji.zsh
中綴じ用の面付けをするスクリプト
#!/bin/zsh
[ -z $1 ] && exit -1
nakatoji_sequence(){
last=$(expr 4 \* $1)
for i in {1..$1} ; do
echo -n "$(expr $last - $i \* 2 + 2),$(expr $i \* 2 - 1),"
echo -n "$(expr $i \* 2),$(expr 1 + $last - $i \* 2),"
done | sed "s/,$//g"
}
file=$(echo $1 | sed "s/\.pdf$//g")
@hayamiz
hayamiz / shibuya-el-position-paper.md
Created August 18, 2012 09:59 — forked from ainame/shibuya-el-position-paper.md
hayamizのshibuya.elのポジションペーパーです。