Skip to content

Instantly share code, notes, and snippets.

View bradoyler's full-sized avatar
👋
say hi

brad oyler bradoyler

👋
say hi
View GitHub Profile
@bradoyler
bradoyler / .block
Last active September 6, 2018 23:00
Annotated Venn
license: mit
// TODO: convert to geojson
var features = [["5992", [44.6504003, -93.2971104], "m"], ["2925", [38.3090139, -122.2833277], "m"], ["3258", [44.0459028, -123.1693478], "m"], ["3829", [36.3089363, -82.4037918], "m"], ["4108", [36.1961294, -94.1839461], "m"], ["3126", [39.6252614, -104.7940466], "m"], ["2058", [35.8372108, -78.6074304], "m"], ["3758", [47.7915764, -96.6073175], "m"], ["1447", [46.6945384, -92.1069175], "m"], ["296", [35.2178954, -93.1664602], "m"], ["5639", [33.8009759, -117.9423561], "m"], ["3646", [32.9700244, -80.0031996], "m"], ["2548", [37.6589269, -82.2710627], "m"], ["3894", [38.0377086, -84.4220326], "m"], ["6480", [33.3078738, -111.9016392], "m"], ["5300", [27.8472347, -82.354341], "m"], ["913", [43.2915783, -91.7537152], "m"], ["4648", [30.6780894, -88.1948548], "m"], ["829", [35.652383, -105.9998077], "m"], ["3485", [34.8639269, -83.9980185], "m"], ["3415", [28.1472522, -82.7435188], "m"], ["4147", [35.8181516, -78.8449974], "m"], ["3355", [36.1561688, -115.0796748], "m"], ["2876", [35
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
public T ObjectAssign(T source)
{
Type t = this.GetType();
var properties = t.GetProperties().Where(prop => prop.CanRead && prop.CanWrite);
foreach (var prop in properties)
{
var value = prop.GetValue(source, null);
if (value != null)
prop.SetValue(this, value, null);
@bradoyler
bradoyler / zcash.md
Last active May 2, 2018 14:34
ZCash (ZEC ) install Ubuntu 16

Command-line install instructions:

sudo apt-get install apt-transport-https
wget -qO - https://z.cash/gpg-pubkeys/zcash.asc | sudo apt-key add -
sudo echo "deb https://apt.z.cash jessie main" | sudo tee /etc/apt/sources.list.d/zcash.list
sudo apt-get update
sudo apt-get install zcash
zcash-fetch-params
mkdir ~/.zcash
@bradoyler
bradoyler / fipsToAbbrev.json
Last active April 1, 2018 16:27
hash map for looking up the State code for a FIPS
{
"01":"AL",
"02":"AK",
"04":"AZ",
"05":"AR",
"06":"CA",
"08":"CO",
"09":"CT",
"10":"DE",
"11":"DC",
@bradoyler
bradoyler / idb-keyval.js
Last active March 16, 2018 17:06
A Vue.js plugin for idb-keyval
import idb from 'idb-keyval';
export default {
install (Vue, options) {
Vue.prototype.$idb = idb;
}
};
@bradoyler
bradoyler / README.md
Last active March 2, 2018 18:25 — forked from alizauf/README.md
Data Storytelling with Coördinator

A simple example demonstrating how Coördinator could be used to intersperse relevant, non-data-driven elements into a data story.

NBC News logo:

@bradoyler
bradoyler / .aaa.md
Last active March 16, 2020 15:03
Flu Illness Cartogram

CDC ILI map

code state pop_2014
AL Alabama 4849377
AK Alaska 736732
AZ Arizona 6731484
AR Arkansas 2966369
CA California 38802500
CO Colorado 5355866
CT Connecticut 3596677
DE Delaware 935614
DC District of Columbia 658893