Skip to content

Instantly share code, notes, and snippets.

View erikcox's full-sized avatar

Erik erikcox

View GitHub Profile
@erikcox
erikcox / update_pip_modules.py
Created August 1, 2014 15:56
Update Python modules with pip (*nix/OS X)
#!/usr/bin/env python
import os
import pip
dists = []
for dist in pip.get_installed_distributions():
dists.append(dist.project_name)
for dist_name in sorted(dists, key=lambda s: s.lower()):
@erikcox
erikcox / update_pip_modules_windows.py
Last active August 29, 2015 14:04
Update Python modules with pip (Windows)
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
@erikcox
erikcox / SublimeText2.txt
Created August 2, 2013 03:35
Sublime Text notes
Ctrl+D to select next occurence of word.
Alt+F3 to select all occurences of a word.
R-Click & Shift for column select. Ctrl to add to selection.
Make selection, Ctrl+Shift+L (L for lines)
Ctrl+Shift+P for command bar. Type somethign like syntax or just javascript (it does fuzy searching)
Ctrl+P searches your file system (fuzzy search as well). Enter @ symbol on highlighted file to get Ctrl+R functionality (see)
Ctrl+R to browse symbols / method names / style sheets.
Ctrl+I is incremental search (what does this do?)
Ctrl+Shift+P and type snipper for the working files language snippets
You can create your own snippets.