Skip to content

Instantly share code, notes, and snippets.

View benjaminadk's full-sized avatar
👩‍💻
forever coding

Benjamin Brooke benjaminadk

👩‍💻
forever coding
View GitHub Profile
@benjaminadk
benjaminadk / schumacher.json
Created January 5, 2020 11:59
schumacher scrape 20200104
This file has been truncated, but you can view the full file.
[{"sku":"71292","pattern":"COCO STRIPE","img":"https://schumacher-webassets.s3.amazonaws.com/Web%20Catalog-600/71292.jpg?width=600&height=600&scale=both&mode=crop","color":"STONE","type":"Fabrics","width":"55 3/4\" (142 CM)","hrep":"4 1/2\" (12CM)","vrep":"N/A"},{"sku":"71580","pattern":"FAIRMONT","img":"https://schumacher-webassets.s3.amazonaws.com/Web%20Catalog-600/71580.jpg?width=600&height=600&scale=both&mode=crop","color":"ONYX","type":"Fabrics","width":"55\" (140CM)","hrep":"3/4\" (2CM)","vrep":"1 1/4\" (3CM)"},{"sku":"71601","pattern":"ANATOLE","img":"https://schumacher-webassets.s3.amazonaws.com/Web%20Catalog-600/71601.jpg?width=600&height=600&scale=both&mode=crop","color":"SANDSTONE","type":"Fabrics","width":"54\" (137CM)","hrep":"1\" (3CM)","vrep":"7/8\" (2CM)"},{"sku":"72058","pattern":"LUCA SATIN","img":"https://schumacher-webassets.s3.amazonaws.com/Web%20Catalog-600/72058.jpg?width=600&height=600&scale=both&mode=crop","color":"GARNET","type":"Fabrics","width":"52 1/2\" (133 CM)","hrep":"NONE","vr
@benjaminadk
benjaminadk / blogpost.php
Last active February 28, 2020 04:53
BlogPosting Schema PHP
<?php
function is_blog() {
return (is_archive() || is_author() || is_category() || is_home() || is_single() || is_tag() && 'post' == get_post_type());
}
?>
<?php if (is_blog()) :
$tags = get_tags();
$keywords = '';
group deaths
Under 1 year 3
1-4 years 2
5-14 years 7
15-24 years 76
25-34 years 463
35-44 years 1186
45-54 years 3338
55-64 years 8312
65-74 years 14447
[{"update key":"04272304","testing":"187707","ts":"5\/24\/20","country":"US","prevcases":"14117","hospitalizations":"1619","county":null,"note":null,"deaths":"551","fipscode":"01","level":"state","time":"11:45 P.M. (ET)","cases":"14478","recoveries":"7951","prevdeaths":"549","state":"Alabama"},{"update key":null,"testing":null,"ts":"5\/24\/20","country":"US","prevcases":"155","hospitalizations":null,"county":"Autauga County","note":null,"deaths":"3","fipscode":"01001","level":"county","time":null,"cases":"159","recoveries":null,"prevdeaths":"3","state":"Alabama"},{"update key":null,"testing":null,"ts":"5\/24\/20","country":"US","prevcases":"273","hospitalizations":null,"county":"Baldwin County","note":null,"deaths":"9","fipscode":"01003","level":"county","time":null,"cases":"274","recoveries":null,"prevdeaths":"9","state":"Alabama"},{"update key":null,"testing":null,"ts":"5\/24\/20","country":"US","prevcases":"105","hospitalizations":null,"county":"Barbour County","note":null,"deaths":"1","fipscode":"01005","
@benjaminadk
benjaminadk / screenshooter.js
Last active June 22, 2020 04:58
Simple Puppeteer Screenshot Application
const puppeteer = require("puppeteer")
const path = require("path")
const DIRECTORY = "https://ladesignconcepts.com/shop-by-brand/"
const main = async (device) => {
const browser = await puppeteer.launch()
try {
group deaths
Under 1 year 11
1-4 years 9
5-14 years 16
15-24 years 190
25-34 years 935
35-44 years 2411
45-54 years 6566
55-64 years 15880
65-74 years 27167
group deaths
Under 1 year 8072
1-4 years 1547
5-14 years 2379
15-24 years 14810
25-34 years 30885
35-44 years 43783
45-54 years 81840
55-64 years 189744
65-74 years 288848
fips county state cases
01001 Autauga Alabama 988
01003 Baldwin Alabama 3095
01005 Barbour Alabama 554
01007 Bibb Alabama 360
01009 Blount Alabama 704
01011 Bullock Alabama 436
01013 Butler Alabama 743
01015 Calhoun Alabama 1438
01017 Chambers Alabama 807
We can't make this file beautiful and searchable because it's too large.
fips,county,state,1/22/2020,1/23/2020,1/24/2020,1/25/2020,1/26/2020,1/27/2020,1/28/2020,1/29/2020,1/30/2020,1/31/2020,2/1/2020,2/2/2020,2/3/2020,2/4/2020,2/5/2020,2/6/2020,2/7/2020,2/8/2020,2/9/2020,2/10/2020,2/11/2020,2/12/2020,2/13/2020,2/14/2020,2/15/2020,2/16/2020,2/17/2020,2/18/2020,2/19/2020,2/20/2020,2/21/2020,2/22/2020,2/23/2020,2/24/2020,2/25/2020,2/26/2020,2/27/2020,2/28/2020,2/29/2020,3/1/2020,3/2/2020,3/3/2020,3/4/2020,3/5/2020,3/6/2020,3/7/2020,3/8/2020,3/9/2020,3/10/2020,3/11/2020,3/12/2020,3/13/2020,3/14/2020,3/15/2020,3/16/2020,3/17/2020,3/18/2020,3/19/2020,3/20/2020,3/21/2020,3/22/2020,3/23/2020,3/24/2020,3/25/2020,3/26/2020,3/27/2020,3/28/2020,3/29/2020,3/30/2020,3/31/2020,4/1/2020,4/2/2020,4/3/2020,4/4/2020,4/5/2020,4/6/2020,4/7/2020,4/8/2020,4/9/2020,4/10/2020,4/11/2020,4/12/2020,4/13/2020,4/14/2020,4/15/2020,4/16/2020,4/17/2020,4/18/2020,4/19/2020,4/20/2020,4/21/2020,4/22/2020,4/23/2020,4/24/2020,4/25/2020,4/26/2020,4/27/2020,4/28/2020,4/29/2020,4/30/2020,5/1/2020,5/2/2020,5/3/2020,5/4/20
1/22/2020 1/23/2020 1/24/2020 1/25/2020 1/26/2020 1/27/2020 1/28/2020 1/29/2020 1/30/2020 1/31/2020 2/1/2020 2/2/2020 2/3/2020 2/4/2020 2/5/2020 2/6/2020 2/7/2020 2/8/2020 2/9/2020 2/10/2020 2/11/2020 2/12/2020 2/13/2020 2/14/2020 2/15/2020 2/16/2020 2/17/2020 2/18/2020 2/19/2020 2/20/2020 2/21/2020 2/22/2020 2/23/2020 2/24/2020 2/25/2020 2/26/2020 2/27/2020 2/28/2020 2/29/2020 3/1/2020 3/2/2020 3/3/2020 3/4/2020 3/5/2020 3/6/2020 3/7/2020 3/8/2020 3/9/2020 3/10/2020 3/11/2020 3/12/2020 3/13/2020 3/14/2020 3/15/2020 3/16/2020 3/17/2020 3/18/2020 3/19/2020 3/20/2020 3/21/2020 3/22/2020 3/23/2020 3/24/2020 3/25/2020 3/26/2020 3/27/2020 3/28/2020 3/29/2020 3/30/2020 3/31/2020 4/1/2020 4/2/2020 4/3/2020 4/4/2020 4/5/2020 4/6/2020 4/7/2020 4/8/2020 4/9/2020 4/10/2020 4/11/2020 4/12/2020 4/13/2020 4/14/2020 4/15/2020 4/16/2020 4/17/2020 4/18/2020 4/19/2020 4/20/2020 4/21/2020 4/22/2020 4/23/2020 4/24/2020 4/25/2020 4/26/2020 4/27/2020 4/28/2020 4/29/2020 4/30/2020 5/1/2020 5/2/2020 5/3/2020 5/4/2020 5/5/2020 5/6/20