Skip to content

Instantly share code, notes, and snippets.

View main.go
package main
import (
"flag"
"log"
"net"
)
const (
defaultAddr = ":1234"
@jdhenke
jdhenke / README.md
Last active Dec 27, 2015
boston taxi cab pickup d3 visualization
View README.md

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 Oct 1, 2013
Script for generating some cool collatz plot.
View collatz.py
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 Dec 23, 2015
Syllabus file for the design exercise in the 6.811 Screen Reader Lab.
View gist:6633049
<!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 Jan 26, 2018
Use Markov Models to mimic the text from a document or "mashup" several different documents.
View mashup.py
#!/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