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
vim control | |
# basic | |
:q exit | |
:w save | |
:x save & exit | |
# move | |
h left | |
j down |
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
vichrome | |
j: 下へスクロール | |
k: 上へスクロール | |
h: 左へスクロール | |
l: 右へスクロール | |
gg: ページトップへ | |
G: ページ最下部へ | |
t: 新しいタブ |
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
### Sample Settings | |
# aliases | |
# in this example you can open extensions page by the command ':ext' | |
# and Chrome's option page by the command ':option' | |
alias ext TabOpenNew chrome://extensions/ | |
alias op TabOpenNew chrome://settings/browser | |
alias dl TabOpenNew chrome://downloads | |
alias hist TabOpenNew chrome://history | |
alias clear TabOpenNew chrome://chrome/settings/clearBrowserData |
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
実行 : F5 | |
次のエディタ : <C-w> | |
前のエディタ : <C-W> | |
パッケージエクスプローラ : <C-t> | |
宣言を開く : <C-j> | |
進む : <C-f> | |
戻る : <C-b> | |
リフレッシュ : <C-F5> |
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
def fizzbuzz(i) | |
puts i % 15 == 0 ? 'FizzBuzz' : | |
i % 3 == 0 ? 'Fizz' : | |
i % 5 == 0 ? 'Buzz' : | |
i | |
fizzbuzz(i+1) unless i == ARGV[1].to_i | |
end | |
fizzbuzz ARGV[0].to_i |
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
vvm rebuild vimorg--v7-3-905 --enable-multibyte --with-features=huge --enable-fontset --disable-selinux --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-xim --enable-python3interp --enable-luainterp |
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
unmapAll | |
map s Vomnibar.activate | |
map S Vomnibar.activateInNewTab | |
map / enterFindMode | |
map b Vomnibar.activateBookmarks | |
map B Vomnibar.activateBookmarksInNewTab |
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
describe(fabs, "double fabs( double arg )") | |
it( "returns the same number if the input number is positive" ) | |
should_equal( fabs(1.0), 1.0) | |
should_equal( fabs(0.0), 0.0) | |
should_equal( fabs(6.7), 6.7) | |
end | |
it( "returns the opposite number if the number is negative" ) | |
should_equal( fabs(-1.0, 1.0) |
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
ruby global values | |
$! $ERROR_INFO | |
$@ $ERROR_POSITION | |
$; $FIELD_SEPARATOR | |
$, $OUTPUT_FIELD_SEPARATOR | |
$/ $INPUT_RECORD_SEPARATOR | |
$\ $OUTPUT_RECORD_SEPARATOR | |
$. $INPUT_LINE_NUMBER | |
$_ $LAST_READ_LINE | |
$> $DEFAULT_OUTPUT |
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
sudo add-apt-repository -y ppa:rwky/redis | |
sudo apt-get update | |
sudo apt-get -y install redis-server | |
sudo add-apt-repository -y ppa:ondrej/mysql | |
sudo apt-get update | |
sudo apt-get -y install mysql-client mysql-server | |
sudo sh -c 'echo deb http://www.apache.org/dist/cassandra/debian 11x main >> /etc/apt/sources.list.d/cassandra-stable.list' | |
sudo sh -c 'echo deb-src http://www.apache.org/dist/cassandra/debian 11x main >> /etc/apt/sources.list.d/cassandra-stable.list' |
OlderNewer