Skip to content

Instantly share code, notes, and snippets.

View anbnyc's full-sized avatar

Alec Barrett anbnyc

View GitHub Profile
@anbnyc
anbnyc / pride.glsl
Created June 14, 2019 20:52
Pride flag!
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform float u_time;
vec3 colorA = vec3(1., 0.01, 0.01);
vec3 colorB = vec3(0.576, 0.161, 0.976);

image attached

@anbnyc
anbnyc / Capital.json
Created April 22, 2021 20:27
GeoJSON of the new US capital under H.R. 51
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anbnyc
anbnyc / README.md
Last active June 7, 2025 19:28
Unofficial README for NYC Ranked Choice Voting Cast Vote Record (CVR)

Unofficial README for NYC Ranked Choice Voting Cast Vote Record (CVR)

The NYC BOE released the data files, but no metadata or explanation, so we have to do this ourselves.

What is in the files?

Each row is a cast vote, and each column is a preference for a candidate. These are the columns that appear in all spreadsheets, regardless of what borough or ballot type they are:

Column Explanation
Cast Vote Record unique ID number
Precinct AD (assembly district) and ED (election district) where the voter is registered(your polling place is determined by your AD/ED)
@anbnyc
anbnyc / README.md
Created April 18, 2023 23:55
Animation with d3 tutorial

This is a brief illustration of how to use animate with d3.js using two examples:

  1. A line chart that animates on load.
  2. A bar chart that is a cross-filter for the scatterplot below it, which animates in and out.

This was created for a workshop for the M.S. Data Visualization program at Parsons School of Design. Note the data was auto-generated by ChatGPT and is not intended to be real data.

@anbnyc
anbnyc / gist:0ce5cb698bb922290f29601ac7e195d8
Created August 19, 2024 14:12
Fast prototype/hosting/collaborative coding tools
val.town
glitch
stackblitz