Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dfm
dfm / README.md
Created May 11, 2014 21:46
Make a spotify playlist out of a Wikipedia list
@dfm
dfm / readme.html
Last active August 29, 2015 14:02
twcs
<a href="javascript:(function () {$('div').css('font-family', 'Comic Sans MS');$('p').css('font-family', 'Comic Sans MS');})();">Drag this to your bookmarks bar</a>
@dfm
dfm / script.sh
Created June 24, 2014 20:03
Installing vim on a new mac
CC=clang vi_cv_path_python_plibs="-ldl -framework CoreFoundation -lpython2.7 -u _PyMac_Error -L/Users/dfm/anaconda/lib" ./configure --prefix=/usr/local --enable-multibyte --with-tlib=ncurses --enable-pythoninterp --with-python-config-dir=/Users/dfm/anaconda/lib/python2.7/config --enable-rubyinterp --with-ruby-command=/usr/bin/ruby --with-features=huge

Keybase proof

I hereby claim:

  • I am dfm on github.
  • I am dfm (https://keybase.io/dfm) on keybase.
  • I have a public key whose fingerprint is B5BC 76B4 AC92 ACF6 7B18 3889 D4FB EAEE 7512 522E

To claim this, I am signing this object:

@dfm
dfm / demo.ipynb
Created August 7, 2014 14:42
HBM in Oxford
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dfm
dfm / gist:d64db8c419c0ce0fd2c5
Created September 11, 2014 17:33
K2 support in kplr
import kplr
client = kplr.API()
star = client.k2_star(202065500)
tpf = star.get_target_pixel_files()[0]
fig = tpf.plot()
fig.savefig("tpf-plot-k2-202065500.png")
with tpf.open() as f:
...
@dfm
dfm / gist:4f86792c98ee67d4bf95
Created September 11, 2014 17:45
LDA inference on dfm/emcee
18.50 % : university main solr note format computer container based simple download docker matlab processing images image
13.09 % : tools generic copy included llc author authors licensed clause docs contact settings.py collection django bsd
7.80 % : bibtex chains produce paper markov citations publications round cite citation academic thread misc alex threads
7.66 % : redistribute useful program hope details distributed later foundation copyright modify free published terms general gnu
7.24 % : output order every within last group results size found parameter containing value parameters values number
5.15 % : package e.g provide trac transport campaign folder redirects components gate rpc auth sign ben target
@dfm
dfm / clouds.png
Last active August 29, 2015 14:06
2d GP for LSST clouds
clouds.png