Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shawngraham
shawngraham / gist:ad6239f25dfa19d14394
Created March 7, 2015 23:32
21underhill tags breakdown
21underhill 1250
gradresearch 96
oralhistory 18
performance 17
mobilearchives 15
photography 14
history 14
grimsbytimescapes 14
mcqueens15 13
architecture 12
@shawngraham
shawngraham / 21underhill-tweet-ids
Created March 8, 2015 00:24
21underhill tweets - hydrate with twarc
574346695523217408
574346369780994048
574234239463481344
574223279294169089
574218889598537728
574218750909677568
574196358594301952
574196009615691776
574106318656663552
574104568432324608
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shawngraham
shawngraham / soc-talk.md
Last active August 19, 2019 13:58
social media talk notes

Me & My Social Media Habits

Shawn Graham, Department of History, Carleton U @electricarchaeo

tenured-minion

...well, everyone needs an avatar, right? Social media is performative. Choose wisely.

image

image Kate Galloway; see slideshare link at bottom

@shawngraham
shawngraham / rjava-on-history-vm.md
Created March 20, 2015 19:22
configuring rjava

a note on getting rJava to work with Matt's HistoryVM

At the terminal:

$ sudo apt-get install openjdk-7-*

$ sudo update-alternatives --config java
@shawngraham
shawngraham / ctp2015-tweet-ids.txt
Created March 21, 2015 13:14
collected march 21 9.14 am
579267818119659520
579267288215511040
579267126277627904
579267015917056000
579266342366396416
579266290113748992
579266209964765184
579265981253599232
579265895194841088
579265835405062144
#setwd(path-to-your-directoy)
install.packages("devtools")
devtools::install_github("mjockers/syuzhet")
library("syuzhet")
x <- get_text_as_string("text.csv")
text <- get_sentences(x)
install.packages('DiagrammeR')
library("DiagrammeR")
grViz("
digraph boxes_and_circles {
node [shape = box]
2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; 37; 38; 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; 55; 56; 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; 73; 74; 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; 91; 92; 93; 94; 95; 96; 97; 98; 99; 100; 101; 102; 103; 104; 105; 106; 107; 108; 109; 110; 111; 112; 113; 114; 115; 116; 117; 118; 119; 120; 122; 123; 124; 125; 126; 127; 128; 129; 130; 131; 132; 133; 134; 135; 136; 138; 139; 140; 141; 142; 143; 144; 145; 146; 147; 148; 149; 150; 151; 152; 153; 154; 155; 156; 157; 158; 159; 160; 161; 162; 163; 164; 165; 166; 167; 168; 169; 171; 172; 173; 174; 175; 176; 177; 178; 179; 180; 181; 182; 183; 184; 185; 186; 187; 188; 189; 190; 191; 192; 193; 194; 195; 196; 197; 198; 199; 200; 201; 202; 203; 204; 205; 206; 207; 208; 2
install.packages('DiagrammeR')
library("DiagrammeR")
diagram <- ("
graph LR
343-->348; 368-->340; 368-->352; 361-->353; 350-->340; 350-->352; 430-->411; 430-->426; 345-->454; 345-->452; 345-->364; 361-->377; 379-->494; 379-->999; 429-->373; 483-->999; 493-->999; 474-->472; 476-->472; 463-->461; 467-->461; 478-->472; 343-->339; 345-->339; 345-->348; 345-->351; 345-->355; 533-->423; 581-->423; 581-->434; 581-->488; 533-->434; 544-->538; 574-->577; 574-->550; 590-->550; 546-->550; 546-->538; 546-->999; 547-->550; 549-->538; 553-->550; 545-->550; 588-->577; 588-->578; 588-->550; 551-->461; 556-->519; 557-->519; 568-->519; 631-->461; 634-->999; 632-->999; 545-->538; 548-->550; 548-->538; 633-->999; 635-->461; 705-->617; 708-->713; 706-->713; 710-->713; 705-->717; 667-->618; 553-->538; 723-->538; 723-->550; 590-->594; 523-->999; 699-->697; 698-->999; 665-->999; 663-->999; 653-->672; 653-->999; 725-->724; 725-->724; 533-->488; 675-->672; 725-->724; 725-->724; 680-->999; 680-->678; 718-->999; 430-->575; 650-->649; 43