Skip to content

Instantly share code, notes, and snippets.

View supermomonga's full-sized avatar
🏠
Working from home

supermomonga supermomonga

🏠
Working from home
View GitHub Profile
" 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)
" 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)
NeoBundle 'supermomonga/shaberu.vim'
" 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')
#!/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
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,
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
# 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 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. ##
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')