Skip to content

Instantly share code, notes, and snippets.

Avatar

Russell Goldenberg russellgoldenberg

View GitHub Profile
View text-vis-links.txt
View mighty-ducks-roster.csv
No. Player Hometown Position D1 D2 D3
00 Guy Germaine St. Paul, MN F true true true
1 Terry Hall Minneapolis, MN F true false false
2 Tommy Duncan Minneapolis, MN D true false false
4 Lester Averman Brooklyn Park, MN F true true true
5 Tammy Duncan Minneapolis, MN F true false false
6 Julie Gaffney Bangor, ME G false true true
7 Dwayne Robertson Austin, TX F false true true
9 Jesse Hall Minneapolis, MN F true true false
11 Dave Karp Minneapolis, MN D true false false
@russellgoldenberg
russellgoldenberg / billboard.csv
Created Feb 20, 2021
Billboard Hot 100 Songs 1980-2020
View billboard.csv
We can't make this file beautiful and searchable because it's too large.
artist,title,rank,date
KC And The Sunshine Band,Please Don't Go,1,1980-01-05
Rupert Holmes,Escape (The Pina Colada Song),2,1980-01-05
Michael Jackson,Rock With You,3,1980-01-05
Stevie Wonder,Send One Your Love,4,1980-01-05
Captain & Tennille,Do That To Me One More Time,5,1980-01-05
Styx,Babe,6,1980-01-05
Commodores,Still,7,1980-01-05
Kenny Rogers,Coward Of The County,8,1980-01-05
@russellgoldenberg
russellgoldenberg / inView.js
Created Feb 17, 2021
resolves intersection observer multiple visible conflict
View inView.js
/**
* This action triggers a custom event on node entering/exiting the viewport.
* example:
* <p
* use:inView
* on:enter={() => console.log("enter")}
* on:exit={() => console.log("exit")}
* on:change={() => console.log("change")}
* >
*
View optmize-me.js
const d3 = require("d3");
const MersenneTwister = require("mersenne-twister");
const generator = new MersenneTwister();
/*
generate random attempts at playing a correct sequence of notes,
given a range of midi (note) and duration options
*/
function generateAttempts({ range, sequence, iterations }) {
View inflation-2019.csv
Year Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec Avg Pct-Dec-Dec Pct-Avg-Avg
1913 9.8 9.8 9.8 9.8 9.7 9.8 9.9 9.9 10.0 10.0 10.1 10.0 9.9
1914 10.0 9.9 9.9 9.8 9.9 9.9 10.0 10.2 10.2 10.1 10.2 10.1 10.0 1.0 1.0
1915 10.1 10.0 9.9 10.0 10.1 10.1 10.1 10.1 10.1 10.2 10.3 10.3 10.1 2.0 1.0
1916 10.4 10.4 10.5 10.6 10.7 10.8 10.8 10.9 11.1 11.3 11.5 11.6 10.9 12.6 7.9
1917 11.7 12.0 12.0 12.6 12.8 13.0 12.8 13.0 13.3 13.5 13.5 13.7 12.8 18.1 17.4
1918 14.0 14.1 14.0 14.2 14.5 14.7 15.1 15.4 15.7 16.0 16.3 16.5 15.1 20.4 18.0
1919 16.5 16.2 16.4 16.7 16.9 16.9 17.4 17.7 17.8 18.1 18.5 18.9 17.3 14.5 14.6
1920 19.3 19.5 19.7 20.3 20.6 20.9 20.8 20.3 20.0 19.9 19.8 19.4 20.0 2.6 15.6
1921 19.0 18.4 18.3 18.1 17.7 17.6 17.7 17.7 17.5 17.5 17.4 17.3 17.9 -10.8 -10.5
View player-seasons--2019.csv
We can't make this file beautiful and searchable because it's too large.
name,link,year_from,year_to,college,active,HS,PIPM,Wins Added,bbrID,Season,Tm,PER,WS,WS/48,BPM,VORP,Award,Lg,Salary,Age,G,MP,FG%,FT%,TRB,AST,STL,BLK,PTS,Team
Alaa Abdelnaby,/players/a/abdelal01.html,1991,1995,Duke University,false,"Bloomfield in Bloomfield, New Jersey",-1.33,0.19,abdelal01,1990-91,POR,13.1,0.5,.079,-5.0,-0.2,,NBA,395000,22,43,6.7,.474,.568,2.1,0.3,0.1,0.3,3.1,POR
Alaa Abdelnaby,/players/a/abdelal01.html,1991,1995,Duke University,false,"Bloomfield in Bloomfield, New Jersey",-1.55,0.47,abdelal01,1991-92,POR,13.5,2.1,.110,-3.9,-0.5,,NBA,494000,23,71,13.2,.493,.752,3.7,0.4,0.4,0.2,6.1,POR
Alaa Abdelnaby,/players/a/abdelal01.html,1991,1995,Duke University,false,"Bloomfield in Bloomfield, New Jersey",-2.70,-0.37,abdelal01,1992-93,TOT,13.2,2.0,.074,-4.2,-0.7,,NBA,500000,24,75,17.5,.518,.759,4.5,0.4,0.3,0.3,7.7,"MIL,BOS"
View nba-players--2019.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 10 columns, instead of 4. in line 9.
name,link,year_from,year_to,college,active,first,last,nbaID,bbrID
Alaa Abdelnaby,/players/a/abdelal01.html,1991,1995,Duke University,false,Alaa,Abdelnaby,76001,abdelal01
Zaid Abdul-Aziz,/players/a/abdulza01.html,1969,1978,Iowa State University,false,Zaid,Abdul-Aziz,76002,abdulza01
Kareem Abdul-Jabbar,/players/a/abdulka01.html,1970,1989,"University of California, Los Angeles",false,Kareem,Abdul-Jabbar,76003,abdulka01
Mahmoud Abdul-Rauf,/players/a/abdulma02.html,1991,2001,Louisiana State University,false,Mahmoud,Abdul-Rauf,51,abdulma02
Tariq Abdul-Wahad,/players/a/abdulta01.html,1998,2003,"University of Michigan, San Jose State University",false,Tariq,Abdul-Wahad,1505,abdulta01
Shareef Abdur-Rahim,/players/a/abdursh01.html,1997,2008,University of California,false,Shareef,Abdur-Rahim,949,abdursh01
Tom Abernethy,/players/a/abernto01.html,1977,1981,Indiana University,false,Tom,Abernethy,76005,abernto01
Álex Abrines,/players/a/abrinal01.html,2017,2019,,true,,,,abrinal01
Alex Acker,/players/a/ackeral01.html,2006,200
View nba-seasons--2019.csv
We can't make this file beautiful and searchable because it's too large.
name,link,year_from,year_to,college,active,HS,PIPM,Wins Added,bbrID,Season,Tm,PER,WS,WS/48,BPM,VORP,Award,Lg,Salary,Age,G,MP,FG%,FT%,TRB,AST,STL,BLK,PTS,Team,PER_rank,WS_rank,WS/48_rank,BPM_rank,VORP_rank,PIPM_rank,Wins Added_rank
Alaa Abdelnaby,/players/a/abdelal01.html,1991,1995,Duke University,false,"Bloomfield in Bloomfield, New Jersey",-1.33,0.19,abdelal01,1990-91,POR,13.1,0.5,.079,-5.0,-0.2,,NBA,395000,22,43,6.7,.474,.568,2.1,0.3,0.1,0.3,3.1,POR,77,77,77,77,77,77,77
Alaa Abdelnaby,/players/a/abdelal01.html,1991,1995,Duke University,false,"Bloomfield in Bloomfield, New Jersey",-1.55,0.47,abdelal01,1991-92,POR,13.5,2.1,.110,-3.9,-0.5,,NBA,494000,23,71,13.2,.493,.752,3.7,0.4,0.4,0.2,6.1,POR,96,96,96,96,96,96,96
Alaa Abdelnaby,/players/a/abdelal01.html,1991,1995,Duke University,false,"Bloomfield in Bloomfield, New Jersey",-2.70,-0.37,abdelal01,1992-93,TOT,13.2,2.0,.074,-4.2,-0.7,,NBA,500000,24,75,17.5,.518,.759,4.5,0.4,0.3,0.3,7.7,"MIL,BOS",115,115,115,115,115,115,115