$ curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
$ chmod 755 installer.sh
$ ./installer.sh ~/.config/nvim/dein
$ cat .config/nvim/init.vim
set showmode
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
This file contains 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 zlib | |
import os | |
import hashlib | |
def ls_obj(): | |
object_dirs = os.listdir(path='.git/objects') | |
for object_dir in object_dirs: | |
if len(object_dir) == 2: | |
print(object_dir + (os.listdir(path='.git/objects/' + object_dir)[0])) |
This file contains 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-window-option -g mode-keys vi | |
set -s escape-time 0 | |
#set-window-option -g mode-mouse on | |
setw -g utf8 on | |
set -g status-utf8 on | |
set-option -g status-bg black #base02 | |
set-option -g status-fg yellow #yellow | |
set-option -g status-attr default | |
set-option -g status-interval 1 |
This file contains 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
# japanese | |
setw -g utf8 on | |
set -g status-utf8 on | |
# reload settings | |
unbind r | |
bind r source .tmux.conf; display-message "Reload Config" | |
# mouse settings | |
set-window-option -g mode-mouse on |
This file contains 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
$od -tx1z hoge.txt | |
0000000 74 00 65 00 73 00 74 00 >t.e.s.t.< | |
0000010 |
This file contains 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
#提案 | |
関数の引数および返り値の推論機能の追加 | |
イメージ↓ | |
func Add(x : auto, y : int) auto | |
return x + y | |
end func | |
#動機 | |
配列に対してアルゴリズムを適応したいという場面は多々存在すると思うが現状 | |
すべての型について書かなくてはいけない。 |
This file contains 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/bash | |
LineNumber=`cat $1|wc -l` | |
while : | |
do | |
RND=`expr $RANDOM % $LineNumber` | |
cat list.txt|head -n $RND |tail -n 1|cut -d',' -f1 | |
read Wait | |
cat list.txt|head -n $RND |tail -n 1|cut -d',' -f2 | |
read Wait | |
clear |
This file contains 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
#include "flyweight_load.hpp" | |
//==============================FlyweightGraph============================== | |
int turara_soft::function::FlyweightGraph::Load(std::string FileName){ | |
FlyweightGraph &instance=getInstance(); | |
if (instance.GrHwnd.count(FileName)==0){ | |
instance.GrHwnd.insert( std::map<std::string,int>::value_type(FileName,LoadGraph(FileName.c_str()))); | |
} |
This file contains 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
#uselib "kernel32.dll" | |
#cfunc GetTickCount "GetTickCount" | |
//第一パラメータはベンチマーク名(省略可) | |
//計測したい部分をSpeedMeasureStartとSpeedMeasureEndで囲む | |
#define SpeedMeasureStart(%1="No Name") %tSpeedMeasure %i=GetTickCount() %c %s1 | |
#define SpeedMeasureEnd %tSpeedMeasure logmes "<計測結果:"+str(%o)+">" %c logmes str(GetTickCount()-%o)+"[ms]" |
This file contains 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 showmode | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set number | |
set title | |
set clipboard=unnamed,autoselect | |
syntax on | |
set incsearch |