Skip to content

Instantly share code, notes, and snippets.

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
@benevolent0505
benevolent0505 / init.el
Last active February 16, 2023 14:56
コピペで出来るEmacs便利設定
;; タイトルパーにファイルのフルパスを表示する
(setq frame-title-format "%f")
;; 行番号を表示する
(global-linum-mode t)
;; カラム番号も表示する
(column-number-mode t)
;; 空白文字を強制表示
@benevolent0505
benevolent0505 / .tmux.conf
Created March 1, 2015 06:28
my .tmux.conf
# 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
@benevolent0505
benevolent0505 / README.md
Last active August 29, 2015 14:05
2014年度合宿用プログラム

2014年度合宿用スクリプト

2014年度の合宿参加者の集計に使ったプログラムの一覧。 コードの質はお察し下さい。 詳しく聞きたかったらbenevolent0505に連絡を。

first_members_to_csv.rb

第一回参加希望者の一覧を出力をしてくれるプログラム。

@benevolent0505
benevolent0505 / file1.txt
Created October 6, 2012 21:41
「A Tour of Go」でGo言語を学ぶ(~#28) ref: http://qiita.com/items/ddaa13be965e15185dad
4
@benevolent0505
benevolent0505 / file1.txt
Created September 25, 2012 20:25
「A Tour of Go」でGo言語を学ぶ(~#20) ref: http://qiita.com/items/63fad29ca7b75dc85ddd
45
@benevolent0505
benevolent0505 / file1.txt
Created September 22, 2012 15:47
「A Tour of Go」でGo言語を学ぶ(~#13) ref: http://qiita.com/items/9cefa2ad3eb5539c1527
0 0 0 false false false
@benevolent0505
benevolent0505 / file1.txt
Created September 21, 2012 16:45
「A Tour of Go」でGo言語を学ぶ(~#10) ref: http://qiita.com/items/a5b514b289997b50a8bb
-1 1.2246467991473515e-16