Skip to content

Instantly share code, notes, and snippets.

View mickley's full-sized avatar

Dr. James Mickley mickley

View GitHub Profile
@mickley
mickley / OSC-VoucherVision-OpenRefine-steps.JSON
Created November 6, 2024 00:54
OpenRefine Cleaning steps used for Vouchervision data at the Oregon State University Herbarium
[
{
"op": "core/text-transform",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"columnName": "genus",
"expression": "value.toTitlecase()",
"onError": "keep-original",
@mickley
mickley / OSUvA_medium.yaml
Created November 5, 2024 22:32
Custom VoucherVision prompt used by the Oregon State University Herbarium.
prompt_author: James Mickley
prompt_author_institution: Oregon State University
prompt_name: OSUvA_medium
prompt_version: v-0-2
prompt_description: Prompt developed by James Mickley. Based loosely on SLTPvA_medium v1.0
~ Changelog ~
* v-0-2 - 2024-07-22 - Adds datum, specifies that scientific name should not have taxonomic authors, OSC-specific catalogNumber,
spell out country in full, remove region name from county
LLM: General Purpose
instructions: 1. Refactor the unstructured OCR text into a dictionary based on the JSON structure outlined below.
@mickley
mickley / SIR.R
Last active April 30, 2020 16:04
Basic SIR model for COVID-19 periodic social distancing
# Load Libraries
library(tidyverse) # Needed for data wrangling and ggplot
library(plotly) # Needed for interactive plot
library(scales) # Needed to format y axis nicely
##### Premise
# This is a basic SIR model that studies effects of intermittant social distancing
# It makes the following assumptions (other than the parameters below)
# - Deaths are the best data for true # of cases at time t - time-to-death
# - Deaths are not removed by the population, but are part of the recovered

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text