Skip to content

Instantly share code, notes, and snippets.

View dylanjm's full-sized avatar
💻
code is life

Dylan McDowell dylanjm

💻
code is life
  • Idaho National Laboratory (@idaholab)
  • North Western United States
View GitHub Profile
math335_theme <- function() {
theme_bw() + theme(panel.border = element_blank(),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
axis.line = element_line(colour = "black"),
plot.title = element_text(face="bold"),
axis.title = element_text(face="bold"),
plot.caption = element_text(face="italic", size = 8, color = "#4d4d4d"))
}
#!/bin/bash
# Take all .html files in directory and covert them to .docx files for grading
# Check all .html files in directory for the string "Passed all tests with no errors"
# This way we can quickly sort files of people who may have had more trouble
# Move files that pass into a seperate directory than those with failed tests.
str="Passed&nbsp;all&nbsp;tests&nbsp;with&nbsp;no&nbsp;errors"
for file in *.html; do
pandoc -o "${file%.*}.docx" -s -S "$file"
if grep -q "$str" "$file"; then
mv "${file%.*}.docx" ../docx/testPass/