Skip to content

Instantly share code, notes, and snippets.

View lorenries's full-sized avatar

Loren Riesenfeld lorenries

View GitHub Profile
import { Kind, DocumentNode, OperationDefinitionNode, print } from "graphql";
import { filter, make, merge, mergeMap, pipe, share, takeUntil } from "wonka";
import {
Exchange,
Operation,
OperationResult,
makeResult,
makeErrorResult,
} from "@urql/core";
import sha256 from "hash.js/lib/hash/sha/256";
[{"name":"Afghanistan","id":"AFG","year":"2000","region":"Asia","mortality_data":1100,"health_data":"12.4"},{"name":"Afghanistan","id":"AFG","year":"2003","region":"Asia","mortality_data":941,"health_data":"14.3"},{"name":"Afghanistan","id":"AFG","year":"2006","region":"Asia","mortality_data":776,"health_data":"18.9"},{"name":"Afghanistan","id":"AFG","year":"2008","region":"Asia","mortality_data":676,"health_data":"24"},{"name":"Afghanistan","id":"AFG","year":"2010","region":"Asia","mortality_data":584,"health_data":"34.3"},{"name":"Afghanistan","id":"AFG","year":"2011","region":"Asia","mortality_data":536,"health_data":"38.6"},{"name":"Afghanistan","id":"AFG","year":"2012","region":"Asia","mortality_data":496,"health_data":"39.9"},{"name":"Afghanistan","id":"AFG","year":"2014","region":"Asia","mortality_data":425,"health_data":"45.2"},{"name":"Afghanistan","id":"AFG","year":"2015","region":"Asia","mortality_data":396,"health_data":"50.5"},{"name":"Albania","id":"ALB","year":"1990","region":"Europe","mortalit
"County" "County Code" Deaths Population Crude Rate
"Autauga County, AL" "01001" Suppressed 55504 Suppressed
"Baldwin County, AL" "01003" 21 212628 9.9
"Barbour County, AL" "01005" Suppressed 25270 Suppressed
"Bibb County, AL" "01007" Suppressed 22668 Suppressed
"Blount County, AL" "01009" Suppressed 58013 Suppressed
"Bullock County, AL" "01011" Suppressed 10309 Suppressed
"Butler County, AL" "01013" Suppressed 19825 Suppressed
"Calhoun County, AL" "01015" Suppressed 114728 Suppressed
"Chambers County, AL" "01017" Suppressed 33713 Suppressed
[{"\"County Code\"": "\"01001\"", "\"County\"": "\"Autauga County, AL\"", "Crude Rate": "Suppressed", "Deaths": "Suppressed", "Population": "55504"}, {"\"County Code\"": "\"01003\"", "\"County\"": "\"Baldwin County, AL\"", "Crude Rate": "9.9", "Deaths": "21", "Population": "212628"}, {"\"County Code\"": "\"01005\"", "\"County\"": "\"Barbour County, AL\"", "Crude Rate": "Suppressed", "Deaths": "Suppressed", "Population": "25270"}, {"\"County Code\"": "\"01007\"", "\"County\"": "\"Bibb County, AL\"", "Crude Rate": "Suppressed", "Deaths": "Suppressed", "Population": "22668"}, {"\"County Code\"": "\"01009\"", "\"County\"": "\"Blount County, AL\"", "Crude Rate": "Suppressed", "Deaths": "Suppressed", "Population": "58013"}, {"\"County Code\"": "\"01011\"", "\"County\"": "\"Bullock County, AL\"", "Crude Rate": "Suppressed", "Deaths": "Suppressed", "Population": "10309"}, {"\"County Code\"": "\"01013\"", "\"County\"": "\"Butler County, AL\"", "Crude Rate": "Suppressed", "Deaths": "Suppressed", "Population": "19825"},
Regulators,Type/Country,Location
The California Department of Insurance (CDI),United States California State,"38° 34' 10.4376'' N
121° 32' 48.8004'' W"
Autorité de Contrôle Prudentiel et de Résolution (ACPR),France,"48° 52' 32.898'' N
2° 20' 6.1908'' E"
China Banking and Insurance Regulatory Commission (CBIRC) ,China,"39° 55' 4.638'' N
116° 21' 26.9172'' E"
Monetary Authority of Singapore (MAS),Singapore,"1° 16' 29.3448'' N
103° 50' 48.1776'' E"
The European Insurance and Occupational Pensions Authority (EIOPA),Organization (Headquarter: Germany),"50° 6' 4.4892'' N
// load libraries
const fs = require("fs");
const LineByLineReader = require("line-by-line");
// load our station location data into memory
const bikeshareLocations = JSON.parse(
fs.readFileSync("./processed-locations.json")
);
const lr = new LineByLineReader("./data/csv/2017clean.csv");
// Program 14
importScripts('paper.js');
(async () => {
// Get a canvas object for this paper.
const canvas = await paper.get('canvas');
// Get context
const ctx = canvas.getContext('2d');
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.