Skip to content

Instantly share code, notes, and snippets.

View alexmacy's full-sized avatar

alexmacy

View GitHub Profile
@alexmacy
alexmacy / .block
Last active February 10, 2024 07:04
Projection Transitions v4
license: gpl-3.0
@alexmacy
alexmacy / .block
Last active April 20, 2023 16:10
Web Audio Sampler v2
license: mit
@alexmacy
alexmacy / .block
Last active April 8, 2023 18:20
Additive Synthesizer
license: mit
@alexmacy
alexmacy / .block
Last active March 7, 2020 03:23
Web Audio Theremin & Oscilloscope
license: mit
@alexmacy
alexmacy / README.md
Last active December 11, 2019 18:59
Updated Crossfilter.js demo

This is an updated version of this demo of the crossfilter library. Crossfilter has been one of my favorite - and what I think to be on of the most underrated - JavaScript libraries. It hasn't seen much of any updates in quite a while, so I wanted to find out how it would work with version 4 of d3.js.

There were some issues that came up with how d3-brush has been updated for v4. Big thanks goes to Alastair Dant (@ajdant) for helping to figure out a couple of those issues!

Also worth reading, is this discussion started by Robert Monfera (@monfera).

@alexmacy
alexmacy / .block
Last active September 24, 2019 12:33
Audio Spectrum Analyzer - dark
license: mit
@alexmacy
alexmacy / .block
Last active September 24, 2019 12:24
Audio Spectrum Analyzer - bright
license: mit
@alexmacy
alexmacy / README.md
Last active May 17, 2019 01:29
OPD License Plate scans

I'm a big fan of locations and patterns, and particularly social patterns relating to location, movement, and usage trends. I'd been looking for a way to explore this when I heard about the Oakland Police Department having released all their license plate reader data.

I filtered this data to license plates that appeared in a minimum of 15 distinct locations, and then removed obvious errors (like 'CAUTION' and other street signs) as well as government vehicles like buses and police cars (these have numeric digits only, rather than the alpha-numeric). The result was 205 plates, with 6,623 unique scan events.

It's not really enough data to find trends, but it was a good exercise in learning mechanisms that can be used to find and rank common traits. For this, I compared the locations that each license plate had been scanned and calculated the similarity to the other license

@alexmacy
alexmacy / .block
Last active May 17, 2019 01:29
Past Presidents - ES5
license: mit
@alexmacy
alexmacy / .block
Last active May 17, 2019 01:28
Rate of False Alarms by Neighborhood and Year
license: mit