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
function delay(expressionAsFunction) { | |
var result; | |
var isEvaluated = false; | |
return function () { | |
if (!isEvaluated) | |
result = expressionAsFunction(); | |
return result; | |
}; | |
} |
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
棋譜 2013年04月03日 | |
プレイヤー: | |
てっくさん(18) | |
くるくる(18) | |
@kana1(33) | |
なくす(28) | |
使用サプライ:中級用 | |
[斥候] [寄付] [魔法の護符] [補給部隊] [図書館] |
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 die(message) | |
puts message | |
exit | |
end | |
def validate(what, actual, expected) | |
die "Invalid file format: #{what} should be #{expected} but got #{actual}" if | |
actual != expected | |
end |
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
- [p] vim-textobj-datetime.git | |
- [m] vim-textobj-diff.git | |
- [m] vim-textobj-entire.git | |
- [m] vim-textobj-fold.git | |
- [m] vim-textobj-function.git | |
- [m] vim-textobj-indent.git | |
- [m] vim-textobj-jabraces.git | |
- [m] vim-textobj-lastpat.git | |
- [m] vim-textobj-line.git | |
- [m] vim-textobj-syntax.git |
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
# coding: utf-8 | |
june29 = 'おおわだじゅん' | |
(1..140).each do | |
print june29[Random.rand(june29.length)] | |
end | |
print "\n" |
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
--- src/main.c~ 2012-10-23 12:35:34.000000000 +0900 | |
+++ src/main.c 2012-12-04 18:42:25.000000000 +0900 | |
@@ -2315,6 +2315,7 @@ | |
mch_errmsg("\"\n"); | |
mch_exit(2); | |
} | |
+ setvbuf(scriptout, NULL, _IONBF, 0); | |
break; | |
#ifdef FEAT_GUI_W32 |
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
kana@ange ~/working/vim-flavor (2) [(grouping-flavors@{2})] | |
$ bundle exec cucumber --tags '@wip' --format=progress | |
............cucumber install requires at least 0 argument: "cucumber install". | |
.F---- | |
(::) failed steps (::) | |
No such file or directory - /tmp/d20121122-16148-1ej99gq/VimFlavor.lock (Errno::ENOENT) | |
./features/step_definitions/lockfile_steps.rb:11:in `initialize' | |
./features/step_definitions/lockfile_steps.rb:11:in `open' |
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
flavors.each do |f| | |
begin | |
trace " #{f.repo_name} #{f.locked_version} ..." | |
f.deploy(vimfiles_path) | |
trace " done\n" | |
rescue | |
trace " failed\n" | |
raise | |
end | |
end |
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
begin | |
original_foo = foo | |
foo = ya_foo | |
begin | |
original_bar = bar | |
bar = snack_bar | |
do_something | |
ensure | |
bar = original_bar | |
end |
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
S 1qa>>Ypq540@aQg/\v^( +)\1+\d/d | |
%s/ //g | |
wq |