Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jasongrout's full-sized avatar

Jason Grout jasongrout

View GitHub Profile
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.
#!/bin/sh
set -e
gh="https://github.com/"
repos="
ipython/traitlets
ipython/ipython
jupyter/jupyter_core
<html lang="en">
<head>
<meta charset="utf-8" />
<title>API Reference</title>
</head>
<body>
<h1>Jupyter Notebook API</h1>
<div class="app-desc">Notebook API for </div>
<div class="app-desc">More information: <a href="jupyter.org">jupyter.org</a></div>
<div class="app-desc">Contact Info: <a href="hello@helloreverb.com">hello@helloreverb.com</a></div>
@jasongrout
jasongrout / viridis.py
Last active August 29, 2015 14:24
Viridis
cm_data = [[ 0.26700401, 0.00487433, 0.32941519],
[ 0.26851048, 0.00960483, 0.33542652],
[ 0.26994384, 0.01462494, 0.34137895],
[ 0.27130489, 0.01994186, 0.34726862],
[ 0.27259384, 0.02556309, 0.35309303],
[ 0.27380934, 0.03149748, 0.35885256],
[ 0.27495242, 0.03775181, 0.36454323],
[ 0.27602238, 0.04416723, 0.37016418],
[ 0.2770184 , 0.05034437, 0.37571452],
[ 0.27794143, 0.05632444, 0.38119074],
@jasongrout
jasongrout / CommExample.ipynb
Last active August 29, 2015 14:27
A basic IPython comm example.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasongrout
jasongrout / test.py
Created October 31, 2010 03:13
Test gist
# This is a test gist, just to see how this works.
a=3
for i in range(10):
x=3
print(x)
<html>
<head>
<title>test</title>
</head>
<body>
<h1>testing gist again</h1>
<script src="http://gist.github.com/3806.js"></script>
</body>
</html>
# Load a sparse matrix.
import numpy as np
from scipy import sparse
def mymethod():
print 'hi'
def load_sparse(filename, dtype=np.float32):
with file(filename) as input:
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.