2014年度の合宿参加者の集計に使ったプログラムの一覧。 コードの質はお察し下さい。 詳しく聞きたかったらbenevolent0505に連絡を。
第一回参加希望者の一覧を出力をしてくれるプログラム。
var TimeSchedule = function() { | |
this.timeSchedule = [ | |
[], [], [], [], [], [], [] | |
]; | |
}; | |
TimeSchedule.prototype = { | |
setLesson: function(day, period, lesson) { | |
if (!this.timeSchedule[day][period-1]) { | |
this.timeSchedule[day][period-1] = lesson; |
# coding: utf-8-hfs | |
# install-ruby.rb | |
execute "sudo apt-get update" | |
package "git-core" do | |
action :install | |
end | |
%w( | |
autoconf |
;; タイトルパーにファイルのフルパスを表示する | |
(setq frame-title-format "%f") | |
;; 行番号を表示する | |
(global-linum-mode t) | |
;; カラム番号も表示する | |
(column-number-mode t) | |
;; 空白文字を強制表示 |
# prefixキーをC-tに変更 | |
set -g prefix C-t | |
# C-bのキーバインドを解除 | |
unbind C-b | |
bind C-t send-prefix | |
# キーストロークのディレイを減らす | |
set -sg escape-time 1 |
# 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 |
4 |
45 |
0 0 0 false false false |
-1 1.2246467991473515e-16 |