$ git clone git://github.com/tokuhirom/plenv.git ~/.plenv
$ git clone git://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/
$ echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(plenv init -)"' >> ~/.bash_profile
$ exec $SHELL -l
This file contains hidden or 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
| $ git config --global core.autoCRLF false | |
| MS-DOSやWindowsなどではCRLFを、かつてのMac OSなどではCRを、UNIX系システムと現在のMac OS XなどではLFをそれぞれ用いる。 |
This file contains hidden or 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
| chsh -s /usr/local/bin/zsh |
This file contains hidden or 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
| ls, buffers, files 開いているバッファ一覧(バッファリスト)を表示する | |
| bfirst,bf 先頭のバッファに移動する | |
| blast,bl 最後のバッファに移動する | |
| bnext,bn 次のバッファに移動する | |
| bprev,bp 前のバッファに移動する | |
| b NUM NUM番目のバッファに移動する | |
| badd バッファにファイルをロードする | |
| bdelete バッファをアンロードする | |
This file contains hidden or 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
| # git の branch 名を表示する方法 | |
| #.bashrc | |
| # git settings | |
| source /usr/local/etc/bash_completion.d/git-prompt.sh | |
| source /usr/local/etc/bash_completion.d/git-completion.bash | |
| GIT_PS1_SHOWDIRTYSTATE=true | |
| export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ ' | |
This file contains hidden or 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
| == 10進法 -> 2進法, 2進法 -> 10進法 | |
| http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1210460042 | |
| - 2 -> 10 | |
| ex) 1111001 | |
| 1*2^6 + 1*2^5 + 1*2^4 + 1*2^3 + 1*2^0 | |
| 64+32+16+8+1 |
現在形 が望ましい。 プログラマが、Gitのレポジトリに対して、このようにふるまいを変えろと命令している様をイメージすればよい。
Describe your changes in imperative mood, e.g. "make xyzzy do frotz" instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy to do frotz", as if you are giving orders to the codebase to change its behaviour. Try to make sure your explanation can be understood without external resources.
SELECT MAX(counted) FROM
(
SELECT COUNT(*) AS counted
FROM table_actions
WHERE status = "good"- 配列の差分
@A - @B
my @A = qw(1 2 3 4 5 6 7 8 9);
my @B = qw(3 5 9);
my %cnt = ();
map { $cnt{$_}-- } @B;