Skip to content

Instantly share code, notes, and snippets.

View JNuss71's full-sized avatar

Jared Nussbaum JNuss71

View GitHub Profile
@JNuss71
JNuss71 / covid-block.txt
Last active March 31, 2020 13:59
COVID-19 Blacklist Domains
This file has been truncated, but you can view the full file.
pranichealingcoronavirus.com
coronaviruscountryreports.com
covid-19travel.site
covid19relief.nyc
cobid19-elsavador.com
cocid19-elsalvador.com
helpfightcovid19.org
viruscovid-19.store
covid19deli.com
covid19china.org
@JNuss71
JNuss71 / README.md
Last active May 11, 2018 18:24
Graph Creator (modified from https://bl.ocks.org/cjrd/6863459)

Graph Creator (modified from https://bl.ocks.org/cjrd/6863459)

Interactive tool for creating directed graphs, created using d3.js.

Operation:

drag/scroll to translate/zoom the graph
shift-click on graph to create a node
shift-click on a node and then drag to another node to connect them with a directed edge

shift-click on a node to change its title

@JNuss71
JNuss71 / Deuteronomy-Cleaned.txt
Created May 4, 2018 00:20
Deuteronomy Text Visualization
these words moses spake unto israel side jordan wilderness plain red sea paran tophel laban hazeroth dizahab eleven days journey horeb way mount seir unto kadeshbarnea came pass fortieth year eleventh month first day month moses spake unto children israel according unto lord given commandment unto slain sihon king amorites dwelt heshbon og king bashan dwelt astaroth edrei side jordan land moab began moses declare law saying lord god spake unto horeb saying dwelt long enough mount turn take journey go mount amorites unto places nigh thereunto plain hills vale south sea side land canaanites unto lebanon unto great river river euphrates behold set land go possess land lord sware unto fathers abraham isaac jacob give unto seed spake unto time saying able bear alone lord god hath multiplied behold day stars heaven multitude lord god fathers make thousand times many bless hath promised alone bear cumbrance burden strife take wise men understanding known tribes make rulers answered said thing spoken good took chief
@JNuss71
JNuss71 / d3-lasso.min.js
Last active May 11, 2018 18:12
Subreddit Network Graphs
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection"),require("d3-drag")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-drag"],n):n(t.d3=t.d3||{},t.d3,t.d3)}(this,function(t,n,r){"use strict";function e(t,n){return n={exports:{}},t(n,n.exports),n.exports}function o(){function t(t){function u(){p=[],h="",_.attr("d",null),m.attr("d",null),r.nodes().forEach(function(t){t.__lasso.possible=!1,t.__lasso.selected=!1,t.__lasso.hoverSelect=!1,t.__lasso.loopSelect=!1;var n=t.getBoundingClientRect();t.__lasso.lassoPoint=[Math.round(n.left+n.width/2),Math.round(n.top+n.height/2)]}),s&&r.on("mouseover.lasso",function(){this.__lasso.hoverSelect=!0}),i.start()}function l(){var t,n;"touchmove"===d3.event.sourceEvent.type?(t=d3.event.sourceEvent.touches[0].clientX,n=d3.event.sourceEvent.touches[0].clientY):(t=d3.event.sourceEvent.clientX,n=d3.event.sourceEvent.clientY);var s=d3.mouse(this)[0],u=d3.mouse(this)[1];""===h?(h=h+"M "+s+" "+u,v=[t,n],d=[s,
@JNuss71
JNuss71 / d3-lasso.min.js
Last active April 21, 2018 03:42
Subreddit Network
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection"),require("d3-drag")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-drag"],n):n(t.d3=t.d3||{},t.d3,t.d3)}(this,function(t,n,r){"use strict";function e(t,n){return n={exports:{}},t(n,n.exports),n.exports}function o(){function t(t){function u(){p=[],h="",_.attr("d",null),m.attr("d",null),r.nodes().forEach(function(t){t.__lasso.possible=!1,t.__lasso.selected=!1,t.__lasso.hoverSelect=!1,t.__lasso.loopSelect=!1;var n=t.getBoundingClientRect();t.__lasso.lassoPoint=[Math.round(n.left+n.width/2),Math.round(n.top+n.height/2)]}),s&&r.on("mouseover.lasso",function(){this.__lasso.hoverSelect=!0}),i.start()}function l(){var t,n;"touchmove"===d3.event.sourceEvent.type?(t=d3.event.sourceEvent.touches[0].clientX,n=d3.event.sourceEvent.touches[0].clientY):(t=d3.event.sourceEvent.clientX,n=d3.event.sourceEvent.clientY);var s=d3.mouse(this)[0],u=d3.mouse(this)[1];""===h?(h=h+"M "+s+" "+u,v=[t,n],d=[s,
@JNuss71
JNuss71 / index.html
Last active April 7, 2018 03:58
S&P 500 Time Series
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<script src="https://d3js.org/d3.v4.min.js"></script>
<title>S&P 500 Visualization HW4</title>
<!-- loads the stylesheet -->
<link rel="stylesheet" type="text/css" href="style.css">
</head>
@JNuss71
JNuss71 / Crime_Incidents_in_2018.geojson
Last active March 19, 2018 03:09
DC Crime Incidents 2018
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JNuss71
JNuss71 / index.html
Created March 17, 2018 20:27
Boston Parking Meters
<html lang="en">
<head>
<title>A D3 map</title>
<script src="https://d3js.org/d3.v4.min.js" charset="utf-8"></script>
<script src="https://d3js.org/d3-zoom.v1.min.js"></script>
<script src="https://cdn.rawgit.com/JNuss71/LargeFilesForGist/master/neighborhoods.js"></script>
<script src="https://cdn.rawgit.com/JNuss71/LargeFilesForGist/9c160220/Boston_Street_Segments.js"></script>
<script src="https://cdn.rawgit.com/JNuss71/LargeFilesForGist/master/Parking_Meters.js"></script>
<style>
body {
@JNuss71
JNuss71 / constituents-financials.csv
Last active February 19, 2018 03:47
Jared Nussbaum HW2 S&P500 Financial info Interactive
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 15 columns, instead of 5 in line 6.
Symbol,Name,Sector,Price,Dividend Yield,Price/Earnings,Earnings/Share,Book Value,52 week low,52 week high,Market Cap,EBITDA,Price/Sales,Price/Book,SEC Filings
MMM,3M Company,Industrials,189.09,2.48,23.17,8.16,17.26,158.28,190.54,112.74,8.70,3.74,10.95,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=MMM
ABT,Abbott Laboratories,Health Care,45.00,2.34,48.03,0.94,13.94,36.76,45.83,77.76,4.59,3.74,3.24,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=ABT
ABBV,AbbVie,Health Care,63.69,4.04,17.55,3.63,2.91,54.41,68.12,101.52,10.95,3.95,21.83,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=ABBV
ACN,Accenture plc,Information Technology,124.14,1.96,18.37,6.76,11.95,102.10,125.72,77.29,5.66,2.30,10.32,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=ACN
ATVI,Activision Blizzard,Information Technology,48.06,0.64,37.55,1.28,12.23,30.37,48.36,36.13,2.14,5.44,3.91,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=ATVI
AYI,Acuity Brands Inc,Industrials,205.41,
@JNuss71
JNuss71 / constituents-financials.csv
Last active May 11, 2018 18:12
Basic S&P 500 Scatterplot
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 15 columns, instead of 5 in line 6.
Symbol,Name,Sector,Price,Dividend Yield,Price/Earnings,Earnings/Share,Book Value,52 week low,52 week high,Market Cap,EBITDA,Price/Sales,Price/Book,SEC Filings
MMM,3M Company,Industrials,189.09,2.48,23.17,8.16,17.26,158.28,190.54,112.74,8.70,3.74,10.95,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=MMM
ABT,Abbott Laboratories,Health Care,45.00,2.34,48.03,0.94,13.94,36.76,45.83,77.76,4.59,3.74,3.24,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=ABT
ABBV,AbbVie,Health Care,63.69,4.04,17.55,3.63,2.91,54.41,68.12,101.52,10.95,3.95,21.83,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=ABBV
ACN,Accenture plc,Information Technology,124.14,1.96,18.37,6.76,11.95,102.10,125.72,77.29,5.66,2.30,10.32,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=ACN
ATVI,Activision Blizzard,Information Technology,48.06,0.64,37.55,1.28,12.23,30.37,48.36,36.13,2.14,5.44,3.91,http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=ATVI
AYI,Acuity Brands Inc,Industrials,205.41,