Skip to content

Instantly share code, notes, and snippets.

@bengarvey
bengarvey / .block
Last active May 12, 2016 16:32
Force directed graph with multiple tick functions
height: 500
border: no
@bengarvey
bengarvey / .block
Created May 19, 2016 17:20 — forked from mbostock/.block
Collapsible Tree
license: gpl-3.0
TOP 3 MALE FINISHERS - Haddon Township Turkey Trot 5K 2018
Place No. First Last City St Age Time
===== ==== ======================= =============== == === =======
1 429 TYLER PARSONS CHERRY HILL NJ 19 15:57
2 42 JEFF BRAUN CHERRY HILL NJ 22 16:02
3 891 SHAWN DANDREA COLLINGSWOOD NJ 31 16:06
TOP 3 FEMALE FINISHERS - Haddon Township Turkey Trot 5K 2018
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
place,firstname,lastname,town,state,age,sex,number,clocktime,chiptime,pace,agegroupplace,agegroup,sexplace,sex
"1","TYLER","PARSONS","CHERRY HILL","NJ","19","M","429","15:57","15:56","5:08","1/21","M1519","1/360","M"
"2","JEFF","BRAUN","CHERRY HILL","NJ","22","M","42","16:02","16:01","5:10","1/26","M2024","2/360","M"
"3","SHAWN","DANDREA","COLLINGSWOOD","NJ","31","M","891","16:06","16:05","5:11","1/40","M3034","3/360","M"
"4","JOSEPH","DOMANICO","HADDON TOWNSHIP","NJ","20","M","616","16:13","16:11","5:13","2/26","M2024","4/360","M"
"5","NICK","FALK","MARLTON","NJ","20","M","152","16:33","16:31","5:19","3/26","M2024","5/360","M"
"6","JACOB","DINERMAN","HADDON TWP.","NJ","20","M","653","16:48","16:47","5:24","4/26","M2024","6/360","M"
"7","PATRICK","MULLIGAN","HADDONFIELD","NJ","18","M","748","17:03","17:02","5:29","2/21","M1519","7/360","M"
"8","DAVE","WELSH","HADDON TWP","NJ","41","M","771","17:05","17:04","5:30","1/36","M4044","8/360","M"
"9","TIM","PAGANO","HADDON HEIGHTS","NJ","33","M","820","17:15","17:13
@bengarvey
bengarvey / njootm_coastalplains_2019.json
Last active March 6, 2019 14:20
2019 NJ Coastal Plains Odyssey of the Mind Tournament
[
{
"problemId": "1D1",
"name": "MIDDLE ROAD SCH 32250",
"position": 1,
"city": "Hazlet",
"state": "NJ",
"rawWeight": null,
"rawLongForm": 122,
"rawStyle": 32.34,
@bengarvey
bengarvey / tocsv.js
Created March 9, 2019 21:07
Convert some text to csv
function toCsv(ob) {
var result = "";
Object.keys(ob).forEach( key => { result += `${ob[key]},` });
return result.substring(0, result.length - 1);
}
///// PASTE YOUR DATA HERE ///
var rawData = `(not set)
Member
someemail@email.com
[
{
"problemId": "1D1",
"name": "GLENWOOD SCH 35162",
"position": null,
"city": "Short Hills",
"state": "NJ",
"rawWeight": null,
"rawLongForm": 173.67,
"rawStyle": 44.2,
@bengarvey
bengarvey / gist:268a33b86d9154f0d4f2fb280426417e
Created April 2, 2023 21:32
NJ Odyssey of the Mind State Finals scores 2023
<hr width="600" align=left>Advancing teams in <b>BOLD</b>
<a name="P1D1"></a><hr width="600" align=left><h3 align=left>Pirates and the Treasure Div I</h3><pre>
Pos Name &amp; Location Number Long Style Spont Total/
Term Pnlty
<b> 1 WASHINGTON SCHOOL BLUE 45283 Calc: 200.00 42.29 100.00 336.29
Millburn, NJ Raw: 153.50 40.32 125.60 6</b>
<b> 2 MENLO PARK ELEMENTARY SCH 11636 Calc: 199.35 50.00 59.39 308.74
Edison, NJ Raw: 153.00 47.67 74.60 0</b>
@bengarvey
bengarvey / scores.json
Last active April 9, 2023 19:25
2023 NJ Coastal Plains Odyssey of the Mind Scores
[
{
"problemId": "1D1",
"name": "PRINCETON JUNIOR SCHOOL 44017",
"position": 1,
"city": "Princeton",
"state": "NJ",
"rawWeight": null,
"rawLongForm": 147.34,
"rawStyle": 40,
[
{
"problemId": "1D1",
"name": "WASHINGTON SCHOOL BLUE 45283",
"position": 1,
"city": "Millburn",
"state": "NJ",
"rawWeight": null,
"rawLongForm": 153.5,
"rawStyle": 40.32,