Skip to content

Instantly share code, notes, and snippets.

View keflavich's full-sized avatar

Adam Ginsburg keflavich

View GitHub Profile
@keflavich
keflavich / jenkinssetup.py
Created February 29, 2012 17:36
setup matplotlib/numpy/pyfits/pywcs
import os
import shutil
import urllib
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
# pyfits depends on numpy. pywcs hard-depends on numpy (won't install without it)
install_order = ('python','numpy','pyfits','pywcs','matplotlib','boto')
@keflavich
keflavich / lognormal_tests.ipynb
Created September 19, 2012 16:59
LogNormal tests
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keflavich
keflavich / lognormal_tests.ipynb
Created September 19, 2012 16:59
LogNormal tests
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keflavich
keflavich / IMF.ipynb
Created September 19, 2012 21:17
IMF
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keflavich
keflavich / packinglist
Created October 8, 2012 05:05 — forked from alissapajer/packinglist
Rainier packing list!
backpack
pack cover
hiking poles
sleeping bag
sleeping pad
tent
water bottles
camelback
water purification system
@keflavich
keflavich / log_regression.py
Created November 4, 2012 20:10 — forked from marcelcaraciolo/log_regression.py
Logistic prediction
def sigmoid(X):
'''Compute the sigmoid function '''
#d = zeros(shape=(X.shape))
den = 1.0 + e ** (-1.0 * X)
d = 1.0 / den
return d
{
"metadata": {
"name": "Lecture21_AnnotatedExamples"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@keflavich
keflavich / blackbg.py
Created November 10, 2012 17:08
Black Background code mirror theme for ipython (based on https://gist.github.com/3858061)
from IPython.core.display import HTML
def blackbg():
"""Black Background code mirror theme."""
html = """
<style type="text/css">
.cm-s-ipython { background-color: black; color: lightblue; }
.cm-s-ipython span.cm-keyword {color: #00ff00; font-weight: bold;}
.cm-s-ipython span.cm-number {color: #ee88ee;}
.cm-s-ipython span.cm-operator {color: lime; font-weight: bold;}
@keflavich
keflavich / Recursion.py
Created November 14, 2012 04:25
Lecture on Recursion & Image Analysis using ipython notebook in slideshow mode
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "Recursion"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@keflavich
keflavich / oriontimestream.ipynb
Created November 19, 2012 06:59
ipython notebook on some orion timestream data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.