Skip to content

Instantly share code, notes, and snippets.

View nrrb's full-sized avatar
🤔

Nicholas Bennett nrrb

🤔
View GitHub Profile
@nrrb
nrrb / README.md
Last active August 29, 2015 13:56 — forked from tommaybe/LICENSE.md

Inspired by Trulia Trends - but with code and using SVG.

Example data shows concurrent user sessions over time, taken from a development environment.

@nrrb
nrrb / README.md
Last active August 29, 2015 13:56 — forked from mbostock/.block

This example demonstrates loading of CSV data, which is then quantized into a diverging color scale. The values are visualized as colored cells per day. Days are arranged into columns by week, then grouped by month and years. Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison. Dow Jones historical data copyright Yahoo! Finance or independent data provider; fair use for educational purposes.

@nrrb
nrrb / README.md
Created February 19, 2014 02:07 — forked from mbostock/.block

This example demonstrates loading of CSV data, which is then quantized into a diverging color scale. The values are visualized as colored cells per day. Days are arranged into columns by week, then grouped by month and years. Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison. Dow Jones historical data copyright Yahoo! Finance or independent data provider; fair use for educational purposes.

@nrrb
nrrb / README.md
Created February 19, 2014 02:33 — forked from mbostock/.block

This example demonstrates loading of CSV data, which is then quantized into a diverging color scale. The values are visualized as colored cells per day. Days are arranged into columns by week, then grouped by month and years. Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison. Dow Jones historical data copyright Yahoo! Finance or independent data provider; fair use for educational purposes.

DATE SNOWDEPTH_INCHES
1964-12-01 0.0
1964-12-02 0.2
1964-12-03 0.3
1964-12-04 0.6
1964-12-05 0.7
1964-12-06 0.7
1964-12-07 0.6
1964-12-08 0.6
1964-12-09 0.5
@nrrb
nrrb / cut_zeroes_from_edgelist.py
Created March 21, 2014 02:14
A simple script to read an edgelist CSV file (each row is "vertex1,vertex2,value") and write to another edgelist file only the rows with non-zero values.
import csv
import sys
if __name__=="__main__":
if len(sys.argv) < 3:
print 'Syntax:'
print 'python {0} edgelist.csv output.csv'.format(__file__)
sys.exit(1)
input_row_count, output_row_count = 0, 0
@nrrb
nrrb / BbhaJ.markdown
Last active August 29, 2015 14:00
A Pen by Nick Bennett.
@nrrb
nrrb / summarize.py
Last active August 29, 2015 14:04
Image Metadata Extraction
# -*- coding: utf-8 -*-
# This doesn't use any Python libraries for extracting image metadata. Instead,
# it relies on the very handy exiftool utility and parsing the results.
# exiftool: http://www.sno.phy.queensu.ca/~phil/exiftool/
from __future__ import unicode_literals
import unicodedata
import subprocess
import csv
import os
import re
@nrrb
nrrb / fives.txt
Last active August 29, 2015 14:05
Generating possible English word combinations for Wordlock-brand padlock.
AARON
AERIE
AHEAD
AHIND
AHINT
AHSAN
AHULL
AHUNT
AHUSH
AILIE
@nrrb
nrrb / notes.md
Last active August 29, 2015 14:06
Python Development Environment in Windows 8