Skip to content

Instantly share code, notes, and snippets.

View kellobri's full-sized avatar

kellobri

View GitHub Profile
@kellobri
kellobri / DiabetesData.csv
Created September 14, 2014 21:43
ShinyCCmaps-v1-ui
State County FIPSCodes Diabetes LeisureInactivity Obesity
Alabama Autauga 01001 12.1 27.9 31.3
Alabama Baldwin 01003 11.5 25.2 25
Alabama Barbour 01005 14.8 32.3 38.4
Alabama Bibb 01007 12.7 33.2 37.3
Alabama Blount 01009 13.2 29.8 30.9
Alabama Bullock 01011 17.6 32.8 43.2
Alabama Butler 01013 16.1 37.3 38.4
Alabama Calhoun 01015 13.2 33.2 31.5
Alabama Chambers 01017 15.7 35.3 39.7
@kellobri
kellobri / DiabetesData.csv
Created September 14, 2014 21:48
ShinyCCmaps-v1-kelly
Alabama Autauga 01001 12.1 27.9 31.3
Alabama Baldwin 01003 11.5 25.2 25
Alabama Barbour 01005 14.8 32.3 38.4
Alabama Bibb 01007 12.7 33.2 37.3
Alabama Blount 01009 13.2 29.8 30.9
Alabama Bullock 01011 17.6 32.8 43.2
Alabama Butler 01013 16.1 37.3 38.4
Alabama Calhoun 01015 13.2 33.2 31.5
Alabama Chambers 01017 15.7 35.3 39.7
@kellobri
kellobri / server.R
Last active August 29, 2015 14:07
ShinyCCmaps-v3-StateCompare
library(maps)
library(ggplot2)
library(dplyr)
set.seed(500)
states = c("alabama","arizona","arkansas","california",
"colorado","connecticut","delaware","district of columbia",
"florida","georgia","idaho","illinois",
"indiana","iowa","kansas","kentucky",
@kellobri
kellobri / server.R
Last active August 29, 2015 14:07
ShinyCCmaps-v2-3x3shell
library(maps)
library(ggplot2)
library(dplyr)
set.seed(500)
states = c("alabama","arizona","arkansas","california",
"colorado","connecticut","delaware","district of columbia",
"florida","georgia","idaho","illinois",
"indiana","iowa","kansas","kentucky",
@kellobri
kellobri / Day0.rb
Created January 5, 2015 19:37
equalitiesDay0
print "1. "
puts 4 == 2 * 2
print "2. "
puts 6 > 4
print "3. "
puts (12 * 2) > 10
print "4. "
@kellobri
kellobri / rsc-aws-linux2.md
Last active October 12, 2018 19:48
Basic Install & Configure RStudio Connect on Amazon Linux 2

Basic Install & Configure RStudio Connect on Amazon Linux 2

yum update -y
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Build R From Source | Ref: 2.1.2

@kellobri
kellobri / rotation-emailer.Rmd
Created February 21, 2019 22:10
Basic R Markdown template demonstrating saved variants and custom email generation with RStudio Connect
---
title: "Variants with Different Schedules"
output: html_document
params:
engineer:
label: "On-call Engineer:"
value: Kelly
input: select
choices: [Cole, Kris, Kelly, Sean]
---
@kellobri
kellobri / azure-pipelines.yml
Created June 17, 2021 14:26
RStudio Connect Deployment Pipeline Template
#
# RStudio Connect Deployment Pipeline Template
# Includes optional steps
#
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
@kellobri
kellobri / test-sf.Rmd
Last active September 25, 2021 00:45
Test R Markdown with sf - Examples by Edzer Pebesma
---
title: "Test `sf` R Markdown"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Vignette 3 by Edzer Pebesma
@kellobri
kellobri / inventory-alert.Rmd
Created January 2, 2020 16:13
Conditional Either/Or Example: Etsy Shop R Markdown Report with Blastula Custom Email
---
title: "Action Required: Low Inventory Alert!"
output: blastula::blastula_email
---
<img src="low-inventory-banner.png">
A low inventory alert has been triggered - Review the current inventory levels below to determine which filament colors need to be replenished today.
### Current inventory by unit color: