View proxy.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(curl) | |
library(httpuv) | |
req_rook_to_curl <- function(req, host) { | |
# browser() | |
# Rename headers. Example: HTTP_CACHE_CONTROL => Cache-Control | |
r <- as.list(req) | |
# Uncomment to print out request headers | |
cat("== Original ==\n") |
View exceptionally-good-presentations.txt
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
"HOW TO GIVE AN EXCEPTIONALLY GOOD PRESENTATION" | |
CHARACTERS | |
Joe Cheng.............Moderator | |
Jennifer Bryan........As Herself | |
Hadley Wickham........As Himself | |
Aron Atkins...........Audience | |
Derrick Kearney.......Audience |
View listen.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
# This application will listen for local connections on port 7000 and run | |
# commands it receives via HTTP POST. It will run commands using the later | |
# packages -- that is, whenever the R call stack is empty (it is idle at the R | |
# prompt), or whenever later::run_now() is called. Shiny keeps calling run_now() | |
# when running an application, so this can run commands when a Shiny application | |
# is running. | |
# | |
# This can be useful for enabling options while a Shiny application is running. | |
# For example, you can use it to run `options(shiny.trace=TRUE)` without |
View heroku-pg.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(processx) | |
library(RPostgres) | |
library(httr) | |
library(dbplyr) | |
library(tidyverse) | |
# this example assumes you've created a heroku postgresql | |
# instance and have the app name (in this example, "rpgtestcon"). | |
# use the heroku command-line app |