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
eval s="a = 1; def fac(n);n == 1 ? 1 : n*fac(n-1);end; $>.tty? ? puts(fac(a)) : puts('eval s='+s.inspect.sub(/([0-9]+)/){($1.to_i + 1).to_s})" |
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 auto_poke(){var sel = document.getElementsByClassName('selected'); for(var i = 0; i < sel.length; i++){var item = sel[i]; if(item.text == 'Pokeを返す'){item.click();} } setTimeout(auto_poke, 100); }; auto_poke(); |
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
```markdown | |
hoge | |
``` |
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
puts send def | |
def x = | |
def end x | |
x end | |
x 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
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
NeoBundle 'haya14busa/incsearch.vim' | |
call neobundle#end() | |
filetype plugin indent on " Required! |
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
require 'benchmark' | |
require 'set' | |
profile_init = false | |
def search_array(array, target) | |
array.include?(target) | |
end | |
def search_sorted_array(array, target) |
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 () { | |
var url = window.location.href; | |
var regexp = /docs\.ruby-lang\.org\/ja\/([0-9.]+)/; | |
var latest_version = '2.1.0'; | |
if (url.match(regexp) && RegExp.$1 != latest_version) { | |
var new_url= url.replace(RegExp.$1, latest_version); | |
window.location.href = new_url; | |
} | |
})(); |
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
// io.Reader から一度読み込んで出力してもう一度io.Readerに戻す | |
var b bytes.Buffer | |
b.ReadFrom(resp.Body) | |
s := b.String() | |
fmt.Println(s) | |
r := strings.NewReader(s) |
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
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
NeoBundle 'Shougo/neocomplete' | |
let g:neocomplete#enable_at_startup = 1 | |
NeoBundle 'Shougo/neosnippet' | |
NeoBundle 'Shougo/neosnippet-snippets' |
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
fuga = 'nya' | |
begin | |
fuga | |
rescue StandardError => ex1 | |
ex1 + fuga | |
rescue hoge = fuga = piyo => ex2 | |
ex2 | |
hoge | |
rescue RuntimeError => err |