Skip to content

Instantly share code, notes, and snippets.

library(tidyverse)
library(stringr)
# read in the transcript
# I simply copied the text from the page at
# https://www.washingtonpost.com/news/the-fix/wp/2016/09/26/the-first-trump-clinton-presidential-debate-transcript-annotated/
# and popped it into a txt file
xx <- scan("first_debate_2016.txt", "character")
@yesokay
yesokay / aws-lambda.md
Last active January 31, 2018 18:34
Presentation notes: Going serverless with AWS Lambda (September 15, 2016)

Going serverless with AWS Lambda

We used to have some specific problems…

  • "We’re expecting requests per second to fluctuate between 2 and 30,000."
  • Oops, we put the wrong instance in the load balancer.
  • Oops, beanstalk crapped its pants.

But in 2015, we discovered AWS Lambda and it changed the frame of reference for a lot of problems.

We went from bare metal, to VPS setups, to Platform as a Service (Heroku), to containers (Docker), to FaaS – Function as a Service, currently best represented by AWS Lambda.

@primaryobjects
primaryobjects / readme.txt
Last active November 9, 2022 12:14
2 Ways to Return Multiple Values with sapply in R
2 Ways to Return Multiple Values with sapply
---
Demo at http://www.r-fiddle.org/#/fiddle?id=4pR9ndzC&version=2
Assume we have the following data:
Date Value
1 2015-05-01 73
2 2015-05-01 94