Skip to content

Instantly share code, notes, and snippets.

@nbren12
nbren12 / cython_test.ipynb
Created June 27, 2014 18:40
Cython averaging test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbren12
nbren12 / latent_heating_product.ipynb
Last active August 29, 2015 14:03
Getting Data from TRMM
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbren12
nbren12 / geos.sh
Created July 11, 2014 19:37
Install GEOS
wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2
tar xjf geos-3.4.2.tar.bz2
cd geos-3.4.2
./configure --prefix=$HOME/usr --enable-python
make -j2
make install
@nbren12
nbren12 / boostrap_venv.py
Created July 11, 2014 20:11
bootstrap virtualenv
import sys
import subprocess
VENV_VERSION = '1.9.1'
PYPI_VENV_BASE = 'http://pypi.python.org/packages/source/v/virtualenv'
PYTHON = 'python'
INITIAL_ENV = 'pyenv'
def shellcmd(cmd, echo=True):
""" Run 'cmd' in the shell and return its standard out.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbren12
nbren12 / Benchmark AR(1) process.ipynb
Last active August 29, 2015 14:06
Benchmark AR(1) process
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbren12
nbren12 / Python for AOS.ipynb
Last active August 29, 2015 14:06
Monday lunch python talk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbren12
nbren12 / Simulating OU Process with cython.ipynb
Created September 28, 2014 15:12
Simulating OU Process with Cython
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbren12
nbren12 / Snakefile
Created July 10, 2015 20:00
Snakemake and dask incompatibility
import numpy as np
import dask.array as da
rule all:
output: "out.hdf5"
run:
n = 1000
s = 1001
@nbren12
nbren12 / 0_reuse_code.js
Created May 11, 2016 18:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console