Skip to content

Instantly share code, notes, and snippets.

@little-forest
little-forest / run
Last active April 19, 2018 01:16
simple compile script
#!/bin/bash
SRC=$1
if [[ ! "$SRC" ]]; then
echo "第1引数にソースコードのファイル名を指定してください." >&2
exit 1
fi
if [[ ! -f "$SRC" ]]; then
echo "指定されたファイルが存在しません. : $SRC" >&2
exit 1
fi
@little-forest
little-forest / .vimrc
Last active April 10, 2018 04:57
.vimrc for training
" タブをスペースに展開
set tabstop=2
set expandtab
set shiftwidth=2
" 自動インデントを有効にする
set autoindent
set smartindent
" インデントサイズ変更後も範囲選択を保持する