Skip to content

Instantly share code, notes, and snippets.

@jdhenke
jdhenke / main.go
Last active November 14, 2015 18:33
package main
import (
"flag"
"log"
"net"
)
const (
defaultAddr = ":1234"
@jdhenke
jdhenke / README.md
Last active December 27, 2015 17:58
boston taxi cab pickup d3 visualization

Instructions

View it in it's own window.

Click and drag to highlight portions of the time chart to drill down on the data set and refresh the heatmap with pickups only from those time slots.

Click the black points of interest to show their name.

Questions

@jdhenke
jdhenke / collatz.py
Created October 1, 2013 02:50
Script for generating some cool collatz plot.
from matplotlib import pyplot as plt
class Node(object):
def __init__(self, num, step, parent, children):
self.num = num
self.step = step
self.parent = parent
self.children = children
class Collatz(object):
@jdhenke
jdhenke / gist:6633049
Last active December 23, 2015 12:09
Syllabus file for the design exercise in the 6.811 Screen Reader Lab.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0056)http://courses.csail.mit.edu/PPAT/fall2011/syllabus.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>6.S196: Principles and Practice of Assistive Technology, Fall 2011</title>
<link rel="stylesheet" type="text/css" href="./ppat-syllabus_files/web.css">
<meta name="description" content="Course page for 6.S196 Principles and Practice of Assistive Technology at MIT">
<link type="text/css" rel="stylesheet" href="chrome-extension://cpngackimfmofbokmjmljamhdncknpmg/style.css"><script type="text/javascript" charset="utf-8" src="chrome-extension://cpngackimfmofbokmjmljamhdncknpmg/page_context.js"></script></head>
<body screen_capture_injected="true">
@jdhenke
jdhenke / mashup.py
Last active January 26, 2018 14:31
Use Markov Models to mimic the text from a document or "mashup" several different documents.
#!/usr/bin/python
'''
MARKOV MODEL MASHUPS
Creates 'lyrical mashups' using Markov Models.
Can use characters or words as state. (You should add more mediums!)
Example files used:
mashup.py # this script
sonnets.txt # all of shakespeare's sonnets