Skip to content

Instantly share code, notes, and snippets.

View colinsheppard's full-sized avatar

Colin Sheppard colinsheppard

View GitHub Profile
@colinsheppard
colinsheppard / covid.R
Created March 27, 2020 19:29
animate U.S. covide cases over time
#install.packages('rlang',repos=c('https://ftp.osuosl.org/pub/cran/'))
#install.packages('tidyverse',repos=c('https://ftp.osuosl.org/pub/cran/'))
#install.packages('magick',repos=c('https://ftp.osuosl.org/pub/cran/'))
#install.packages('gganimate',repos=c('https://ftp.osuosl.org/pub/cran/'))
#install.packages('mapproj',repos=c('https://ftp.osuosl.org/pub/cran/'))
#install.packages('devtools',repos=c('https://ftp.osuosl.org/pub/cran/'))
#install.packages('gifski',repos=c('https://ftp.osuosl.org/pub/cran/'))
#library(devtools)
#install_github("UrbanInstitute/urbnmapr")
library(ecodist)
library(animation)
normalize <- function(x){
(x - mean(x))/sd(x)
}
x.mean = 100
x.sd = 2
#!/bin/bash
server()
{
# Wait for command file to show up and send it to running bash
fswatch $cmdDir "cat $cmdFile | /bin/bash -i >> $logFile 2>&1"
}
client()
{