2014年度の合宿参加者の集計に使ったプログラムの一覧。 コードの質はお察し下さい。 詳しく聞きたかったらbenevolent0505に連絡を。
第一回参加希望者の一覧を出力をしてくれるプログラム。
| package main | |
| import "fmt" | |
| func main() { | |
| fmt.Println("The grass is always greener on the other side of the fence.\n") | |
| fmt.Println("「隣の芝は青い」") | |
| } |
| 55 |
| -1 1.2246467991473515e-16 |
| 0 0 0 false false false |
| 45 |
| 4 |
| # peco find directory | |
| function peco_find | |
| if git rev-parse --is-inside-work-tree > /dev/null 2>&1 | |
| git rev-parse --show-toplevel | read search_root | |
| else | |
| pwd | read search_root | |
| end | |
| find $search_root -maxdepth 5 | peco | read -l file_path | |
| commandline -i $file_path | |
| end |
| # prefixキーをC-tに変更 | |
| set -g prefix C-t | |
| # C-bのキーバインドを解除 | |
| unbind C-b | |
| bind C-t send-prefix | |
| # キーストロークのディレイを減らす | |
| set -sg escape-time 1 |
| ;; タイトルパーにファイルのフルパスを表示する | |
| (setq frame-title-format "%f") | |
| ;; 行番号を表示する | |
| (global-linum-mode t) | |
| ;; カラム番号も表示する | |
| (column-number-mode t) | |
| ;; 空白文字を強制表示 |