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
" not call add() but set() for debug | |
autocmd FileType vimshell call vimshell#hook#set('emptycmd', ['g:my_vimshell_emptycmd']) | |
autocmd FileType vimshell call vimshell#hook#set('notfound', ['g:my_vimshell_notfound']) | |
function! g:my_vimshell_emptycmd(args, context) | |
return 'echo 1' | |
" 1 | |
endfunction | |
function! g:my_vimshell_notfound(args, context) |
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
" not call add() but set() for debug | |
autocmd FileType vimshell call vimshell#hook#set('emptycmd', ['g:my_vimshell_emptycmd']) | |
autocmd FileType vimshell call vimshell#hook#set('notfound', ['g:my_vimshell_notfound']) | |
function! g:my_vimshell_emptycmd(args, context) | |
return 'echo "emptycmd "' | |
" emptycmd | |
endfunction | |
function! g:my_vimshell_notfound(args, context) |
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
NeoBundle 'supermomonga/shaberu.vim' |
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
" Vim core | |
autocmd MyAutoCmd VimEnter * ShaberuSay 'ビムにようこそ' | |
autocmd MyAutoCmd VimLeave * ShaberuSay 'さようなら' | |
" VimShell | |
autocmd FileType vimshell | |
\ call vimshell#hook#add('chpwd' , 'my_vimshell_chpwd' , 'g:my_vimshell_chpwd') | |
\| call vimshell#hook#add('emptycmd', 'my_vimshell_emptycmd', 'g:my_vimshell_emptycmd') | |
\| call vimshell#hook#add('notfound', 'my_vimshell_notfound', 'g:my_vimshell_notfound') |
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
#!/bin/sh | |
# | |
# --- --- | |
OUT=/Users/momonga/tmp/jsay.tmp.wav | |
JTALK=/Users/momonga/bin/OpenJTalk | |
VO=/Users/momonga/bin/OpenJTalk/voice/mei_normal | |
# --- --- | |
cd $VO | |
rm -f $OUT |
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
let g:quickrun_config = { | |
\ '_' : { | |
\ 'hook/close_unite_quickfix/enable_hook_loaded' : 1, | |
\ 'hook/unite_quickfix/enable_failure' : 1, | |
\ 'hook/close_quickfix/enable_exit' : 1, | |
\ 'hook/close_buffer/enable_failure' : 1, | |
\ 'hook/close_buffer/enable_empty_data' : 1, | |
\ 'outputter' : 'multi:buffer:quickfix', | |
\ 'hook/u_nya_/enable' : 1, | |
\ 'hook/u_nya_/sleep' : 20, |
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
function! g:my_vimshell_postexec(cmdline, context) | |
let l:prompt = (b:vimshell.system_variables['status'] == 0 ? "(*'-') < " : "(*;-;)? < ") | |
let b:vimshell.context.prompt = l:prompt | |
let g:vimshell_prompt = l:prompt | |
return a:cmdline | |
endfunction |
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 test | |
gyazo_path = 'echo' | |
@@os = 'mac' | |
# osx logic | |
if @@os == 'mac' | |
require 'fssm' | |
FSSM.monitor('~/Library/Application Support/minecraft/screenshots', '**/*.png') do | |
create do|base, file| |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by configure, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | |
$ ./configure --prefix=/Users/momonga/.rbenv/versions/2.0.0-p0 --with-gcc=clang --enable-shared --with-opt-dir=/usr/local | |
## --------- ## | |
## Platform. ## |
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
let altnames = { | |
\ 'ujm' : 'ujihisa', | |
\ 'tyru1' : 'tyru', | |
\ 'momonga' : 'supermomonga' | |
\ } | |
let source = {} | |
let no = 33746 | |
let url = printf('http://atnd.org/events/%d', no) | |
let dom = webapi#html#parseURL(url) | |
for tr in dom.find('table').childNodes('tr') |