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(ggplot2) | |
montyHall <- function(maxDoors = 3, switch = T, tries = 10) { | |
plays <- data.frame() | |
for (i in 1:tries) { | |
# Create the doors. | |
doors <- 1:maxDoors | |
# Choose a winning door. |
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
def get_github3_client(): | |
"""See | |
https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app | |
for an explanation of how/why this is like it is. | |
Requires requests, pyjwt, and github3. Make sure you intall a newer | |
version of cryptography for pyjwt as well.""" |