Skip to content

Instantly share code, notes, and snippets.

View trestletech's full-sized avatar

Jeff Allen trestletech

View GitHub Profile
@trestletech
trestletech / .gitignore
Last active August 29, 2015 14:08
An analysis of todo.txt lists from the todo.txt++ project.
login.json
.Rproj.user
@trestletech
trestletech / .gitignore
Last active April 12, 2017 08:14
Demonstration of file-system persistence in ShinyApps.io.
.Rproj.user
.Rhistory
.RData
---
title: "ShinyPres"
runtime: shiny
output: ioslides_presentation
---
## Shiny Presentation
This R Markdown presentation is made interactive using Shiny. The viewers of the presentation can change the assumptions underlying what's presented and see the results immediately.
@trestletech
trestletech / README.md
Last active August 29, 2015 14:04
Configure Shiny Server (Pro) to use different libraries for different locations/applications.

Below are two approaches to configuring applications to use different sets of libraries in Shiny Server. The envir file only works in Shiny Server Pro, as it relies on the exec_supervisor argument. The other will work in either.

@trestletech
trestletech / .gitignore
Last active August 29, 2015 14:04
VM for Go
.vagrant
pkg
src
bin
@trestletech
trestletech / keybase.md
Created June 16, 2014 14:18
keybase.io Verification

Keybase proof

I hereby claim:

  • I am trestletech on github.
  • I am trestletech (https://keybase.io/trestletech) on keybase.
  • I have a public key whose fingerprint is BEB4 8BDF C60B 99A9 203B 9361 3E37 05BF 1EA7 87A9

To claim this, I am signing this object:

@trestletech
trestletech / .gitignore
Last active August 29, 2015 14:01
Slides from RStudio's presentation on Shiny at R/Finance 2014. Hosted version available here: https://trestletech.shinyapps.io/rfinance2014/an-introduction-to-rstudio-shiny.Rmd#1
.Rproj.user
.Rhistory
.RData
@trestletech
trestletech / hidden.Rmd
Created April 17, 2014 15:46
includeRmd in Shiny
---
title: "hidden"
output: html_document
---
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r}
@trestletech
trestletech / server.R
Last active April 26, 2023 12:44
Example Shiny App showing the number of current sessions.
library(shiny)
# Create a reactive object here that we can share between all the sessions.
vals <- reactiveValues(count=0)
shinyServer(function(input, output, session) {
# Increment the number of sessions when one is opened.
# We use isolate() here to:
# a.) Provide a reactive context
library(shiny)
library(ggplot2)
authorized <- TRUE
shinyServer(function(input, output, session) {
if (authorized) {
data <- iris
p <- qplot(Sepal.Width, Sepal.Length, data = iris, color = Species)