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
| #!/usr/bin/ruby | |
| attack = [ | |
| 1575, | |
| 979, | |
| 1234, | |
| 1234 * 0.3, | |
| 800, | |
| 1336, | |
| 1080, |
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
| # Description: | |
| # alarm wo narase!! | |
| # | |
| # Commands: | |
| # hubot timer <int> [<text>] - <int> byou go ni <text> wo hyouji | |
| # hubot alarm 12:34 [<text>] - 12:34 ni <text> wo hyouji | |
| module.exports = (robot) -> | |
| robot.respond /timer (\d+) ?(.+)?/i, (msg) -> | |
| time = msg.match[1] * 1000 |
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
| #!/usr/bin/ruby | |
| dir = File.dirname(__FILE__) | |
| unless ARGV[0].nil? | |
| dir = ARGV[0] | |
| end | |
| Dir.chdir(File.expand_path(dir)) { | |
| Dir::foreach('.') { |f| | |
| if FileTest::directory?(f + '/.svn') && !(['.', '..'].include?(f)) |
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
| curl 'localhost:8983/solr/collection/update?commit=true' -H 'Content-type:application/json' -d '[{"primary_id":"1234567890","price":{"set":100}}]' |
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
| fq={!frange l=0 u=0}if(exists(query({!v='category:A'})),min_price,max_price) |
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
| autocmd MyAutoCmd BufWinEnter * call s:PushBufstack() | |
| function! s:PushBufstack() | |
| if !exists('w:bufstack') | |
| let w:bufstack = [] | |
| endif | |
| if !exists('w:bufstack_pos') | |
| let w:bufstack_pos = 0 | |
| endif | |
| if exists('w:bufstack_move') && w:bufstack_move == 1 | |
| let w:bufstack_move = 0 |
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
| " 初期化 | |
| if has('vim_starting') | |
| set runtimepath+=~/.vim/bundle/neobundle.vim | |
| call neobundle#rc('~/.vim/bundle') | |
| filetype plugin on | |
| filetype indent on | |
| endif | |
| " plugin | |
| NeoBundle 'git://github.com/Shougo/unite.vim.git' |
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
| " f/F強化版 | |
| " TODO 履歴を一つ戻って最後を消す | |
| " TODO 他の箇所のdictの「 : 」を「: 」に直す | |
| " TODO 他の箇所の色の16進表記を統一 | |
| " TODO 他の箇所のhighlightコマンドのterm/fg/bgの順番を統一 | |
| " TODO dropundoinfoのエラー表示方法を修正(エラー表示を関数化) | |
| noremap <silent>f :call <SID>FHint(0)<CR> | |
| noremap <silent>F :call <SID>FHint(1)<CR> | |
| let g:fhint_hint_chars = [ | |
| \ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', |
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
| for i in range(4) | |
| normal g- | |
| endfor | |
| " -------------------------------------------------------------------------------- | |
| " easymotionの不満 | |
| " | |
| " ・UNDO履歴の破壊 | |
| " o | |
| " | |
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
| if has('vim_starting') | |
| set runtimepath+=~/vimfiles/bundle/neobundle.vim | |
| call neobundle#rc('~/vimfiles/bundle') | |
| endif | |
| NeoBundle 'git://github.com/Shougo/neocomplcache.git' | |
| NeoBundle 'git://github.com/Shougo/vimproc.git' | |
| let g:neocomplcache_enable_at_startup = 1 |