Skip to content

Instantly share code, notes, and snippets.

View schnerd's full-sized avatar

David Schnurr schnerd

View GitHub Profile
@schnerd
schnerd / .block
Created July 29, 2017 05:16
Ckmeans Algorithm Visualization [Work in Progress]
license: mit
@schnerd
schnerd / index.js
Last active January 29, 2021 00:18
index.js
const CDP = require('chrome-remote-interface');
const argv = require('minimist')(process.argv.slice(2));
const file = require('fs');
// CLI Args
const url = argv.url || 'https://www.google.com';
const format = argv.format === 'jpeg' ? 'jpeg' : 'png';
const viewportWidth = argv.viewportWidth || 1440;
const viewportHeight = argv.viewportHeight || 900;
const delay = argv.delay || 0;
@schnerd
schnerd / setup.sh
Last active February 8, 2023 06:49
setup.sh
# Install Google Chrome
# https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb # Might show "errors", fixed by next line
sudo apt-get install -f
# Install Node Stable (v7)
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
@schnerd
schnerd / .block
Last active October 19, 2016 14:43 — forked from mbostock/.block
Choropleth with d3-scale-cluster
license: gpl-3.0
height: 700
border: no
@schnerd
schnerd / .block
Last active September 15, 2016 13:09
D3 Cluster Scale
license: mit