Skip to content

Instantly share code, notes, and snippets.

View jrmontag's full-sized avatar

Josh Montague jrmontag

View GitHub Profile
Jinja2==2.7.2
MarkupSafe==0.19
Pygments==1.6
backports.ssl-match-hostname==3.4.0.2
boto==2.27.0
boto-rsync==0.8.1
brewer2mpl==1.3.2
gapi==0.1.4
ggplot==0.4.7
gnacs==0.7.5
@jrmontag
jrmontag / gist:9902846
Created March 31, 2014 21:32
make pandas dataframe slightly easier to read in IPython notebook
pd.set_option('display.max_columns', 10) # repr shows <=10 cols (scrollable)
pd.set_option("display.max_colwidth", 150) # repr shows <=150 characters in each column (line wraps)
# many more options available:
# http://pandas.pydata.org/pandas-docs/stable/basics.html?highlight=set_option#working-with-package-options
@jrmontag
jrmontag / pelican-requirements
Last active August 29, 2015 13:57
pip requirements.txt for Pelican
Pelican==3.2
Markdown==2.3
ghp-import==0.3
@jrmontag
jrmontag / gist:9470730
Last active August 29, 2015 13:57
figsize handle in ggplot?
# previous experience...
# cell
import pandas as pd
...
# cell
%pylab inline
# use pd helper, plot()
@jrmontag
jrmontag / git-branch-prompt
Last active August 29, 2015 13:56
git branch in prompt (minimal working example)
# (ubuntu)
# add to end of .bashrc :
export PS1="\$(__git_ps1) "$PS1
# gives e.g. (when in a repo):
(master) user@host:~$
# more info: http://stackoverflow.com/questions/15883416/adding-git-branch-on-the-bash-command-prompt
@jrmontag
jrmontag / gist:6908140
Last active December 25, 2015 03:09
geo1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.