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
| /*eslint-env es6*/ | |
| // ES6 generator function | |
| var anonymousGeneratorFunctionExpression = function* (arg1, arg2) { | |
| }; | |
| var namedGeneratorFunctionExpression = function* namedGenerator(arg1, arg2) { | |
| }; |
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 rtp+=~/.vim/bundle/vivacious.vim | |
| endif | |
| filetype plugin indent on | |
| call vivacious#bundle() | |
| set fileencodings=utf-8,iso-2022-jp,cp932,sjis,euc-jp |
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
| 9ee1a32 | |
| Data.String: diffidx does not handle multi-byte string. | |
| b2bbfdd | |
| add modeline (see #21 for the discussion) | |
| 3bb4cee | |
| Fixed detecting case-insensitive system. |
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
| is_broken_symlink() { | |
| [ -z "`readlink -e -- "$1"`" ] | |
| } | |
| if [ -z "$1" ]; then | |
| echo "$(basename $0) {search_dir}" >&2 | |
| exit 1 | |
| fi | |
| search_dir="$1" |
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
| import qualified Data.Char as Ctype | |
| main = do cs <- getContents | |
| putStr $ unlines $ map (show . calculate . parse) $ lines cs | |
| calculate :: [Token] -> Int | |
| calculate cs = calculate' [] cs | |
| where |
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
| import qualified Data.Char as Ctype | |
| main = do cs <- getContents | |
| print $ calculate $ parse cs | |
| -- TODO: op n1 n2 以外の式にも対応 | |
| calculate :: [Token] -> Int | |
| calculate (op:n1:n2:rest) = |
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
| import qualified Data.List as L | |
| testList = [5,3,1,1,2,-1,0,33,10] | |
| main = print $ mergeSort testList `isSameAs` L.sort testList | |
| isSameAs = (==) | |
| mergeSort :: (Ord a) => [a] -> [a] |
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! s:is_cmdwin() | |
| let save_ei = &eventignore | |
| set eventignore=all | |
| try | |
| wincmd n | |
| wincmd q | |
| return 0 | |
| catch | |
| return 1 | |
| finally |
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
| set rtp+=~/.vim/bundle/eskk.vim,~/.vim/bundle/savemap.vim,~/.vim/bundle/vice.vim | |
| if has('vim_starting') | |
| augroup vimrc | |
| autocmd! | |
| augroup END | |
| autocmd vimrc User eskk-initialize-pre call s:eskk_initial_pre() | |
| function! s:eskk_initial_pre() "{{{ | |
| let t = eskk#table#new('rom_to_hira*', 'rom_to_hira') |
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
| # Install Common Vim environment | |
| ln -fs $PWD/vim/vimrc.vim $HOME/.vimrc | |
| ln -fs $PWD/vim/gvimrc.vim $HOME/.gvimrc | |
| # Create Vimfiles Directory | |
| mkdir $HOME/.vim | |
| # Added Local Environment vimfiles Setting | |
| mkdir $HOME/.vim/runtime | |
| touch $HOME/.vim/runtime/vimrc.vim |
NewerOlder