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
#!/usr/bin/env bash | |
docker pull rocker/tidyverse | |
mkdir temp | |
cd temp | |
git clone https://gist.github.com/6972090d67ae353d39a11611f00d8dd0.git | |
mv ./6972090d67ae353d39a11611f00d8dd0 ./docker_example | |
cd docker_example | |
docker build -t docker_example . |
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
#!/usr/bin/env bash | |
docker run --rm -d -v $(pwd):$(pwd) -w $(pwd) docker_example Rscript hgwells_wordcounts2.R |
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
library(tidyverse) | |
library(tidytext) | |
library(gutenbergr) | |
# Example from https://www.tidytextmining.com/tidytext.html | |
hgwells = gutenberg_download(c(35, 36, 5230, 159)) | |
tidy_hgwells <- hgwells %>% | |
unnest_tokens(word, text) %>% |
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
FROM rocker/tidyverse | |
RUN Rscript -e "install.packages(c('tidytext', 'gutenbergr'))" |
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
theme: jekyll-theme-minimal | |
gems: | |
- jekyll-redirect-to |
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
ForegroundColour=171,171,171 | |
BackgroundColour=0,0,0 | |
CursorColour=253,157,79 | |
Black=0,0,0 | |
BoldBlack=52,52,52 | |
Red=233,47,47 | |
BoldRed=240,116,116 | |
Green=14,216,57 | |
BoldGreen=64,243,102 | |
Yellow=221,221,19 |
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
capture log close _all // Close any open log files | |
local cur date(c(current_date), "DMY") // Create a Date Object | |
local y = year(`cur') // Grab the year | |
local m = month(`cur') // Grab the month | |
local d = day(`cur') // Grab the day | |
if `m' < 10 { | |
local m = "0`m'" // Add a 0 to single-digit months | |
} | |
if `d' < 10 { |
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
*.dta | |
*.Rhistory | |
*.RData | |
*.RDataTmp |
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
#!/bin/bash -l | |
#$ -pe local 1 | |
#$ -l mem_free=20G | |
#$ -l h_vmem=22G | |
#$ -m e | |
#$ -M EMAIL@jhmi.edu | |
#$ -o ofiles | |
#$ -e efiles |
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
#!/bin/bash -l | |
#$ -pe local 2 | |
#$ -l mem_free=3G | |
#$ -l h_vmem=4G | |
#$ -m e | |
#$ -M EMAIL@jhmi.edu | |
#$ -e efiles | |
#$ -o ofiles |