Skip to content

Instantly share code, notes, and snippets.

View dsaffo's full-sized avatar
☄️

David Saffo dsaffo

☄️
  • Boston, Detroit
View GitHub Profile
@dsaffo
dsaffo / README.md
Last active October 15, 2020 19:17 — forked from WilliamQLiu/index.html
D3 Mouse Events Adapted For VisConnect

VisConnect Mouse Events

This VisConnect example is adapted from this block. The only changes are adding the PeerJS and VisConnect script tags. Click the visconnect logo on the bottom right and send the coppied URL to a friend. Once they open the link all your interactions will be synchronized!

@dsaffo
dsaffo / README.md
Last active October 15, 2020 19:20 — forked from mbostock/.block
click-to-zoom via transform adapted for VisConnect

VisConnect Mouse Events

This VisConnect example is adapted from this block. The only changes are adding the PeerJS and VisConnect script tags. Click the visconnect logo on the bottom right and send the coppied URL to a friend. Once they open the link all your interactions will be synchronized!

@dsaffo
dsaffo / README.md
Last active October 15, 2020 19:18 — forked from michaschwab/index.html
VisConnect Simple Drag Demo

VisConnect Drag

Basic draging demo, simultaneously click and drag the circles with friends.The only changes are adding the PeerJS and VisConnect script tags, aswell as replacing d3.drag with vc.drag . Click the visconnect logo on the bottom right and send the coppied URL to a friend. Once they open the link all your interactions will be synchronized!

@dsaffo
dsaffo / README.md
Last active October 15, 2020 19:19 — forked from michaschwab/index.html
Collaborative Scatter Plot Brushing

VisConnect Brushing

This VisConnect example is a copy of this block. The only changes are adding the PeerJS and VisConnect script tags, adding the collaboration attribute to the HTML body, replacing d3.brush with vc.brush, and telling d3 to use vc.random instead of Math.random.

@dsaffo
dsaffo / README.md
Last active October 15, 2020 19:22 — forked from nitaku/README.md
Freehand drawing adapted with VisConnect

VisConnect Drawing

This VisConnect example is adapted from this block. The only changes are adding the PeerJS and VisConnect script tags, adding the collaboration attribute to the HTML body, and replacing d3.drag with vc.drag.

@dsaffo
dsaffo / flowers.csv
Last active July 27, 2020 19:19 — forked from Fil/.block
Scatterplot Matrix Brushing d3v4
sepal length sepal width petal length petal width species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
4.6 3.4 1.4 0.3 setosa
5.0 3.4 1.5 0.2 setosa
4.4 2.9 1.4 0.2 setosa
@dsaffo
dsaffo / Lekagul_slice.csv
Last active July 27, 2020 19:34 — forked from john-guerra/.block
D3 Brush and Linking
We can't make this file beautiful and searchable because it's too large.
Timestamp,car-id,car-type,gate-name
2016-05-02 18:05:34,20161602051605-625,2P,camping7
2016-05-02 18:09:13,20160902060913-100,2,entrance3
2016-05-02 18:15:04,20161602051605-625,2P,general-gate6
2016-05-02 18:18:28,20165902055925-718,1,general-gate2
2016-05-02 18:19:46,20161602051605-625,2P,general-gate5
2016-05-02 18:21:32,20165902055925-718,1,ranger-stop0
2016-05-02 18:24:26,20165902055925-718,1,ranger-stop2
2016-05-02 18:25:29,20163502053547-68,3,entrance2
2016-05-02 18:26:56,20165902055925-718,1,general-gate1
@dsaffo
dsaffo / .block
Last active July 27, 2020 19:44 — forked from tristanwietsma/.block
Brush & Zoom
license: gpl-3.0
@dsaffo
dsaffo / README.md
Last active October 15, 2020 19:27 — forked from mbostock/.block
Versor Dragging

VisConnect Versor Dragging

This VisConnect example is adapted from this observable. The only changes are adding the PeerJS and VisConnect script tags, and replacing d3.drag() with vc.drag(). Click the visconnect logo on the bottom right and send the coppied URL to a friend. Once they open the link all your interactions will be synchronized!

@dsaffo
dsaffo / README.md
Last active July 29, 2020 19:08 — forked from measrainsey/README.md
US Nuclear Generating Capacity Map
We couldn’t find that file to show.