Skip to content

Instantly share code, notes, and snippets.

View rhiever's full-sized avatar

Randy Olson rhiever

View GitHub Profile
import urllib2
import time
import os
# Make a directory to store all of the HTML pages
os.system("mkdir pages")
# Download the raw HTML of all pages
for year in range(1982, 2015):
for week in range(1, 53):
@rhiever
rhiever / predict-gender-from-trivia-performance.ipynb
Created July 31, 2015 01:57
This notebook uses a random forest classifier to predict a player's gender based on their trivia question performance.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rhiever
rhiever / Rmagic demo
Created September 22, 2012 02:37
Rmagic demo
{
"metadata": {
"name": "Introduction to Linear Models"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rhiever
rhiever / Extracting the multiscale backbone of complex weighted networks.ipynb
Last active December 27, 2015 01:09
Extracting the multiscale backbone of complex weighted networks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rhiever
rhiever / Avida data munging.ipynb
Created November 10, 2013 18:23
Avida data munging in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rhiever
rhiever / Saving data to a text file in Python.ipynb
Created November 16, 2013 04:46
Saving data to a text file in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rhiever
rhiever / 95% confidence intervals.ipynb
Created November 16, 2013 06:30
95% confidence intervals.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rhiever
rhiever / TSStickleback.py
Created November 16, 2013 06:29
TSStickleback.py
from numpy.random import normal
class TSStickleback:
def __init__(self):
self.redness = normal(3, 2)
@rhiever
rhiever / reddit interest correlations.ipynb
Last active December 28, 2015 14:29
reddit interest correlations.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.