Skip to content

Instantly share code, notes, and snippets.

Avatar

erdavis1

View GitHub Profile
@erdavis1
erdavis1 / thumbs.csv
Created Aug 17, 2020
descriptions of thumbs
View thumbs.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
"","sent","title","auth","owner"
"1","“It’s sort of interesting when you think about it,” said Jane, glancing at the photo once before she flicked it off with her thumb.","BIG LITTLE LIES","Liane Moriarty","her"
"2","Beloved watched the work her thumbs were doing and must have loved what she saw because she leaned over and kissed the tenderness under Sethe’s chin.","Beloved ","Toni Morrison","her"
"3","She’s sitting on the floor with a terrified little girl… looks too old to still be sucking her thumb, but she’s sucking it for all she’s worth… This momma’s not fat at all.","BACK TO BLOOD","Tom Wolfe","her"
"4","She put her thumb against one of the locks and slid it.","Atonement","Ian McEwan","her"
"5","Maryanne could see the way the starched white crown of her habit bit into her forehead, pressing against her brows, and later would see when Sister pushed it back with her thumbs how the edge of it had turned her dark skin red.","At Weddings and Wakes ","Alice McDermott","her"
"6","Megan stands miserably next t
@erdavis1
erdavis1 / Processallbooks.R
Created May 21, 2020
Process all books code outline
View Processallbooks.R
library(reticulate)
library(cleanNLP)
library(dplyr)
library(stringr)
library(tidyr)
library(textstem)
setwd("C:/Users/Erin/Documents/DataViz/Adjectives/")
options(stringsAsFactors = FALSE)
We couldn’t find that file to show.
View gist:afbf95a51bf6f8094d1ad25f2fa60201
#run this once to install these packages. Once they're installed, you don't need to run it again
install.packages(c('sf', 'tidyverse', 'rworldmap', 'ggthemes'))
#load up the libraries. You need to do this once per session; when you close out R they'll be unloaded
library(sf)
library(tidyverse)
library(rworldmap)
library(ggthemes)
#----get a map of ireland----
@erdavis1
erdavis1 / waterfalls.csv
Created Jan 12, 2020
waterfalls from OpenStreetMap
View waterfalls.csv
osm_id name X Y
653800087 Brooks Falls -155.7915941 58.5549594
5726894122 Nanaue Falls (End of King's Trail) -155.609903 20.1044557
2400038173 Hi'ilawe Falls -155.5964072 20.0942316
7006225334 Hakalaoa Falls -155.5951971 20.0943699
2400038192 Ipuu Falls -155.5893806 20.0982371
2220267142 Poakana Falls -155.1907258 19.7058727
2220267333 Wailoa Falls -155.1663284 19.7081842
6579217645 -155.1615845 19.8562623
2933785623 -155.1576824 19.8759918
@erdavis1
erdavis1 / RoadLength
Created Jul 4, 2019
Road Length by Suffix
View RoadLength
This file has been truncated, but you can view the full file.
GEOID,State,CountyName,Suffix,Len (meters)
01001,Alabama,Autauga County,NA,950779.5849
01001,Alabama,Autauga County,Aly,224.7535255
01001,Alabama,Autauga County,Ave,13493.13677
01001,Alabama,Autauga County,Blvd,7228.355573
01001,Alabama,Autauga County,Cir,10225.44919
01001,Alabama,Autauga County,Cmn,137.7920159
01001,Alabama,Autauga County,Co Rd,925888.9013
01001,Alabama,Autauga County,Ct,28128.11891
@erdavis1
erdavis1 / BakeOff
Created Jun 15, 2019
Great British Bakeoff Technical Challenges
View BakeOff
Ssn,Ep,Item,Whose,Link,Books,Components,IngredCount,RecipeSentences,Dishes,DifficultyScore
1,1,Victoria Sandwich,Mary,https://thegreatbritishbakeoff.co.uk/victoria-sandwich-cake/,1950,2,9,25,5,3.2
1,2,Scone,Paul,https://thegreatbritishbakeoff.co.uk/scones/,15500,1,5,15,6,1.8
1,3,Cob,Paul,https://www.bbc.com/food/recipes/paul_hollywoods_crusty_83536,430,1,6,40,9,5.6
1,4,Lemon Souffle,Mary,https://www.bbc.com/food/recipes/mary_berrys_lovely_lemon_73914,1830,1,10,43,8,5.2
1,5,Cornish pasties,Paul,https://www.bbc.com/food/recipes/classic_cornish_pasty_67037,3600,2,11,32,4,3.4
2,1,Coffee and Walnut Battenburg,Mary,https://www.bbc.com/food/recipes/coffee_and_walnut_88342,995,3,13,38,4,5.4
2,2,Tart au Citron,Mary,https://www.bbc.com/food/recipes/tarte_au_citron_94480,715,2,9,37,4,4.4
2,3,Focaccia,Paul,https://www.bbc.com/food/recipes/focaccia_08389,73900,1,6,10,4,1
2,4,Brandy snaps,Mary,https://www.bbc.com/food/recipes/brandy_snaps_47363,1770,1,6,23,5,2.4
View gist:eef6db1bd4e26ed2270c97489ea4ffcd
This file has been truncated, but you can view the full file.
"","season","episode","stepID","sentence","token_id","token","lemma","upos","xpos","feats"
"1",5,8,1,"for the dough, tip the flour and sugar into the bowl of a freestanding mixer fitted with a dough hook.","1","for","for","ADP","IN",NA
"2",5,8,1,"for the dough, tip the flour and sugar into the bowl of a freestanding mixer fitted with a dough hook.","2","the","the","DET","DT","Definite=Def|PronType=Art"
"3",5,8,1,"for the dough, tip the flour and sugar into the bowl of a freestanding mixer fitted with a dough hook.","3","dough","dough","NOUN","NN","Number=Sing"
"4",5,8,1,"for the dough, tip the flour and sugar into the bowl of a freestanding mixer fitted with a dough hook.","4",",",",","PUNCT",",",NA
"5",5,8,1,"for the dough, tip the flour and sugar into the bowl of a freestanding mixer fitted with a dough hook.","5","tip","tip","VERB","VB","Mood=Imp|VerbForm=Fin"
View gist:38772c62d9eea1ed4da0d712795a3153
Season Episode Books
9 9 159
6 5 164
6 1 186
8 8 187
9 2 198
3 5 212
9 4 239
6 8 246
8 9 295
View gist:4987b948a08049ba6611da58a9f62848
Season,Episode,Hours,Item,Whose Recipe?,Recipe,Ingred,Components,,,,,,,,,,, GoogleResults , RecipeResuts
1,1,?,Victoria Sandwich,Mary,https://thegreatbritishbakeoff.co.uk/victoria-sandwich-cake/,"eggs; unsalted butter, caster sugar, vanilla, self raising flour, water, raspberry jam, whipping cream, icing sugar",2,,,,,,,,,,,"64,400,000","38,800,000"
1,2,1,Scone,Paul,https://thegreatbritishbakeoff.co.uk/scones/,"self raising flour, caster sugar, unsalted butter, egg, buttermilk",1,,,,,,,,,,,"52,300,000","51,400,000"
1,3,2.5,Cob,Paul,https://www.bbc.com/food/recipes/paul_hollywoods_crusty_83536,"white bread flour, butter, yeast, salt, water, oil",1,,,,,,,,,,,"26,800,000","30,300,000"
1,4,0.666666667,Lemon Souffle,Mary,https://www.bbc.com/food/recipes/mary_berrys_lovely_lemon_73914,"butter, lemons, egg yolk, egg white, caster sugar, cornflour, flour, cream, milk, icing sugar",1,,,,,,,,,,,"6,560,000","2,630,000"
1,5,1.5,Cornish pasties,?,https://www.bbc.com/food/recipes/classic_cornish_pasty_67037,"bread flour, s
You can’t perform that action at this time.