This file contains hidden or 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
# Variables | |
APP_NAME="sftpgo" | |
DOMAIN="ftp.example.com" | |
EMAIL="your-email@example.com" | |
ENABLE_LETS_ENCRYPT=true # Set to false to disable Let's Encrypt setup | |
# Create Dokku app | |
dokku apps:create $APP_NAME | |
# Set up domain |
This file contains hidden or 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
#!/bin/bash | |
# Update the package list and upgrade installed packages | |
sudo apt-get update && sudo apt-get upgrade -y | |
# Clean up APT cache | |
sudo apt-get clean | |
# Remove unnecessary packages | |
sudo apt-get autoremove -y |
This file contains hidden or 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
party | institute | value | date | |
---|---|---|---|---|
CDU/CSU | Allensbach | 0.35 | 2010-01-15 | |
CDU/CSU | Emnid | 0.33 | 2010-01-15 | |
CDU/CSU | Forsa | 0.35 | 2010-01-15 | |
CDU/CSU | Forsch’gr.Wahlen | 0.35 | 2010-01-15 | |
CDU/CSU | GMS | 0.36 | 2010-01-15 | |
CDU/CSU | Infratestdimap | 0.34 | 2010-01-15 | |
DIE LINKE | Allensbach | 0.115 | 2010-01-15 | |
DIE LINKE | Emnid | 0.14 | 2010-01-15 | |
DIE LINKE | Forsa | 0.13 | 2010-01-15 |
This file contains hidden or 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
# Study: https://www.nature.com/articles/s41591-022-01816-0 | |
library(readxl) | |
library(dplyr) | |
library(ggplot2) | |
sf <- 2 | |
options(vsc.dev.args = list(width = 600 * sf, height = 335 * sf, res = 72 * sf)) | |
download.file( |
This file contains hidden or 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
#!/bin/bash | |
# Ensure the required tools are installed | |
command -v pdftoppm >/dev/null 2>&1 || { | |
echo "pdftoppm is not installed. Exiting." | |
exit 1 | |
} | |
command -v tesseract >/dev/null 2>&1 || { | |
echo "Tesseract is not installed. Exiting." | |
exit 1 |
This file contains hidden or 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
#!/bin/sh | |
### Prerequisites: MacOS: Homebrew & NodeJS | |
# brew install n # Homebrew: https://brew.sh | |
# n install lts | |
npm install -g playwright | |
playwright install chromium | |
export NODE_PATH=$(npm root -g) |
This file contains hidden or 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
# Standard Populations from SEER.gov | |
# Helper Functions: | |
## Splits an age group string by its start and end year. | |
split_age_group <- function(age_group) { | |
ages <- strsplit(age_group, "-") | |
c(as.integer(ages[[1]][1]), as.integer(ages[[1]][2])) | |
} | |
## Split weights for an age group uniformly. |
This file contains hidden or 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(readr) | |
library(dplyr) | |
library(ggplot2) | |
library(lubridate) | |
library(tsibble) | |
library(scales) | |
sf <- 2 | |
width <- 600 * sf | |
height <- 335 * sf |
This file contains hidden or 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(readr) | |
library(dplyr) | |
library(ggplot2) | |
library(tsibble) | |
library(lubridate) | |
library(fable) | |
library(scales) | |
sf <- 2 | |
width <- 900 * sf |
This file contains hidden or 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(readr) | |
library(dplyr) | |
library(tsibble) | |
library(fable) | |
library(ggplot2) | |
library(scales) | |
sf <- 2 | |
width <- 900 * sf | |
height <- 450 * sf |
OlderNewer