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
snippet read | |
${1:name} <- read.table("${2:path/to/file}", | |
sep="${3:\t ,}", | |
header=${4:T F}) |
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
snippet combl | |
########################################################################### | |
# ${1:Comment text} | |
########################################################################### | |
${2} |
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
snippet iflen | |
if len(sys.argv) != ${1:N}: | |
print main.__doc__ | |
sys.exit() | |
${2} |
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
<snippet> | |
<content><![CDATA[ | |
from ${1:module} import ${2:sub} as ${3} | |
]]></content> | |
<tabTrigger>from</tabTrigger> | |
<scope>source.python</scope> | |
<description>from_import_as</description> | |
</snippet> |
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
alias ll='ls -la' | |
alias ld='ll | grep '^d'' | |
alias tmkill='tmux kill-session' | |
alias tmux='TERM=xterm-256color tmux' | |
alias lonestar='ssh username@lonestar.tacc.utexas.edu' | |
alias stampede='ssh username@stampede.tacc.utexas.edu' | |
export TERM=xterm-256color | |
export GOROOT=$HOME/go |
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
new | |
split-window -h -p 50 -t 0 | |
split-window -v -p 30 -t 1 | |
# pane number display | |
set-window-option -g window-status-current-bg yellow | |
# keybindings | |
set-window-option -g mode-keys vi |
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 sublime, sublime_plugin | |
class NerdTreeCloseCommand(sublime_plugin.WindowCommand): | |
def run(self): | |
self.window.run_command("focus_group", {"group": 0} ) | |
self.window.run_command("toggle_side_bar") |
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
<snippet> | |
<content><![CDATA[ | |
"""${1:One-liner docstring}"""]]></content> | |
<tabTrigger>docs</tabTrigger> | |
<scope>source.python</scope> | |
<description>Short Docstring</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
""" | |
${1:One-liner} | |
USAGE: | |
python ${2:file} ${3:args...} | |
ARGS: | |
${4:arg, explanation} | |
RETURNS: |
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
<snippet> | |
<content><![CDATA[ | |
with open(${1:fil}, 'wb') as ${2:out}: | |
${3:code} | |
]]></content> | |
<tabTrigger>write</tabTrigger> | |
<scope>source.python</scope> | |
<description>WithOpenOut</description> | |
</snippet> |