This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g bower | |
npm install -g polymer-cli | |
mkdir polymer-workshop | |
cd polymer-workshop | |
git clone https://github.com/JohnRiv/polymer-maps | |
git clone https://github.com/googlecodelabs/polymer-first-elements | |
git clone https://github.com/JohnRiv/polymer-viz | |
git clone https://github.com/JohnRiv/polymer-offline-weather | |
git clone https://github.com/googlecodelabs/polymer-drive-client | |
cd polymer-maps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rlp = require('rlp'); | |
const Trie = require('merkle-patricia-tree'); | |
const levelup = require('levelup'); | |
const memdown = require('memdown'); | |
let db = levelup(memdown()); | |
let trie = new Trie(db); | |
let expectedTxRoot = new Buffer('b10b6aa0bc1357b4b43be1804fc169ce3daf247867faa51656b9e44941ec7edc', 'hex'); | |
let rawTx = ['f86d80850ba43b740083030d4094120a270bbc009644e35f0bb6ab13f95b8199c4ad88543cf8d6fa9f0000801ca0697e5b9a7d7497b8ac23ca8705751c9cdc3bca44d98bcea27faef85b067fdb8ba02245e3ebee100ea8be37d6487e975a5ed9ed850cf693c8a97760051cff7d2987', | |
'f86e820108850ba43b74008252089432be343b94f860124dc4fee278fdcbd38c102d88880de042e553f8ac00801ca0d9508fb924a2e879c99439c3faee1ed40a9cd9223526aed7f689fabf19a54cc7a055a0a397701a97d896f5a080fb159228accd252659dd8c994393d8cb59b19a84'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(tidyverse) | |
original.data <- read_csv("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv") | |
# combined data with simple state column | |
data <- original.data %>% | |
filter(`Country/Region` == 'US') %>% | |
mutate(State = sub(".*,\ ", "", `Province/State`)) %>% | |
rowwise() %>% | |
mutate(State = ifelse(nchar(State) == 2, state.name[grep(State, state.abb)], `Province/State`)) %>% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am wildmolasses on github. | |
* I am wildmolasses (https://keybase.io/wildmolasses) on keybase. | |
* I have a public key ASAjqi0RigNKEr7kvr0aNOxl_LYY6eNvCcOPx8Elx9hmfAo | |
To claim this, I am signing this object: |