- チャットを作る
- 今日の資料 yosuke-furukawa/node_study
app.js
で設定など行うrequire
でファイル読み込む- app.get() などでルーティングできる
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
-- リスト内包表記 | |
[x*2 | x <- [1..10]] | |
-- [2,4,6,8,10,12,14,16,18,20] | |
-- 条件(述語)を追加できる。2倍した値が12以上のリスト | |
[x*2 | x <- [1..10], x*2 >= 12] | |
-- [12,14,16,18,20] | |
-- 複数のリストから値を取り出す。それぞれのリストの要素の組み合わせが結果のリストになる | |
[x+y | x <- [1,2,3], y <- [10,100,1000]] |
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
http{ | |
server { | |
listen <%= port %>; | |
server_name localhost; | |
location / { | |
root /usr/share/nginx/html; | |
index index.html; | |
} | |
} |
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
pandoc -s -f markdown -t html -o hoge.html hoge.md |
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
ssh -T git@github.com |
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
./configure \ | |
--prefix=$HOME/local \ | |
--enable-pythoninterp \ | |
--enable-multibyte \ | |
--with-features=big \ | |
--enable-rubyinterp \ | |
--enable-luainterp \ | |
--with-lua-prefix=/usr/local |
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
split-window -v | |
new-window; split-window -v -l 20 | |
new-window 'tig' | |
new-window; split-window -v | |
new-window | |
select-window -t 0; select-pane -t 0 |
autocmd
などを再確認- 環境によって設定変えられそう、term, cterm, xterm, gui...etc.
- Vim のカスタマイズ 〜autocmd で自動処理〜 - Vim のブログ
- unite でファイルを開くと、表示されないというか autocmd が呼ばれてない?
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
split-window -h | |
new-window 'vi' | |
new-window 'tig' | |
new-window; split-window -h | |
new-window | |
select-window -t 0; select-pane -t 0 |
前回のコミットでコミットし忘れていた変更を別のコミットで行ったのだけど、最後のコミットの内容を前回のコミットに含めたい。
$ git reset HEAD^
$ git add <対象のファイル> # コミットし忘れていた変更
$ git commit --amend