Skip to content

Instantly share code, notes, and snippets.

View ellisonbg's full-sized avatar

Brian E. Granger ellisonbg

View GitHub Profile
@ellisonbg
ellisonbg / TwitterNetworkX.ipynb
Created October 5, 2012 02:47
Twitter NetworkX IPython Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ellisonbg
ellisonbg / test_basic.js
Created August 12, 2012 05:30
Simple test of IPython Notebook using phantomjs and casperjs
// Simple IPython Notebook test
// Requires PhantomJS and CasperJS.
// To run:
// 1) Start a notebook server in an empty directory.
// 2) casperjs test_basic.js
var casper = require('casper').create({
// verbose: true,
// logLevel: "debug"
});
@ellisonbg
ellisonbg / pydataslo_intro.md
Created July 19, 2018 00:42
PyData SLO Introduction to Jupyter

PyData SLO Jupyter and Data Science Introduction

Internet access

  • Connect to the CalPolyGuest wifi
  • Go through the process and check your email
  • Yeah!

Installation

@ellisonbg
ellisonbg / notebook.ts
Last active June 25, 2017 21:17
Notes on a notebook model that is flattened and normalized
interface ICellModel {
type: string;
inputAreaId: string;
outputAreaId: string;
}
interface IInputAreaModel {
source: string;
}
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.
@ellisonbg
ellisonbg / interact.ipynb
Created October 30, 2013 04:48
Interact Examples
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ellisonbg
ellisonbg / xkcdify.py
Created September 23, 2013 23:50
XKCD mode for the IPython Notebook
def xkcdify(borders=True, code=True, html=True, prompts=True, output=True,
font_url='https://github.com/ipython/xkcd-font/raw/master/build/xkcd.otf'):
"""Turn on xkcd mode for the notebook.
Run this in your notebook and it will enable the xkcd regular font
from the xkcd website. This font is downloaded from the internet
so this only works if you are online.
This mode can be used with Matplotlib's new xkcd mode to great effect. However,
you will have to enable that separately by calling matplotlibs xkcd function.
@ellisonbg
ellisonbg / RandomKerningText.ipynb
Last active December 21, 2015 21:48
Text for kerning fonts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ellisonbg
ellisonbg / 1093.csv
Last active December 19, 2015 17:39
xkcdify for IPython
By this year: The majority of Americans will be too young to remember:
2012 The seventies
2013 The Carter Presidency
2014 The Reagan shooting
2015 The Falkland Islands war
2016 Return of the Jedi release
2017 The first Apple Macintosh
2018 New Coke
2019 Challenger
2020 Chernobyl