Skip to content

Instantly share code, notes, and snippets.

Avatar

Vlad Zahorodnii zzag

View GitHub Profile
@zzag
zzag / little-cheatsheet.txt
Created Jun 29, 2016
Vim commands cheat sheet
View little-cheatsheet.txt
NORMAL:
- dd : cut line
- 10dd : cut 10 lines
- daw : cut word
- d2w : cut two words
- %d : cut all content
- y : copy
- yy : yank line
- 10yy : copy 10 lines
- p : paste after cursor
@zzag
zzag / torch-activate.fish
Created Jun 29, 2016
torch-activate for fish shell
View torch-activate.fish
function torch_activate()
set -gx TORCH_INSTALL_DIR $HOME
set -gx LUA_PATH $TORCH_INSTALL_DIR'/.luarocks/share/lua/5.1/?.lua;'$TORCH_INSTALL_DIR'/.luarocks/share/lua/5.1/?/init.lua;'$TORCH_INSTALL_DIR'/torch/install/share/lua/5.1/?.lua;'$TORCH_INSTALL_DIR'/torch/install/share/lua/5.1/?/init.lua;./?.lua;'$TORCH_INSTALL_DIR'/torch/install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua'
set -gx LUA_CPATH $TORCH_INSTALL_DIR'/.luarocks/lib/lua/5.1/?.so;'$TORCH_INSTALL_DIR'/torch/install/lib/lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so'
set -gx LD_LIBRARY_PATH $TORCH_INSTALL_DIR/torch/install/lib $LD_LIBRARY_PATH
set -gx DYLD_LIBRARY_PATH $TORCH_INSTALL_DIR/torch/install/lib $DYLD_LIBRARY_PATH
set -gx LUA_CPATH $TORCH_INSTALL_DIR'/torch/install/lib/?.so;' $LUA_CPATH
set -gx fish_user_paths $TORCH_INSTALL_DIR/torch/install/bin $fish_user_paths
end
You can’t perform that action at this time.