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
| #!/usr/bin/env Rscript | |
| # ═══════════════════════════════════════════════════════════════ | |
| # World Equity (Blended US + ex-US / VT) — Log-Trend & Super-Cycle | |
| # Charts: 1_ Price+Trend, 2_ Deviation+Supertrend, 3_ Normalized | |
| # Data: ERN SWR Toolbox (1871–2025) + Yahoo Finance (recent) | |
| # Blend uses time-varying US market-cap weights (approx.) | |
| # ═══════════════════════════════════════════════════════════════ | |
| library(tidyverse) | |
| library(quantmod) |
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
| #!/usr/bin/env Rscript | |
| # ═══════════════════════════════════════════════════════════════ | |
| # Ex-US Equity (World ex-US / VXUS) — Log-Trend & Super-Cycle | |
| # Charts: 1_ Price+Trend, 2_ Deviation+Supertrend, 3_ Normalized | |
| # Data: ERN SWR Toolbox (1871–2025) + Yahoo Finance (recent) | |
| # ═══════════════════════════════════════════════════════════════ | |
| library(tidyverse) | |
| library(quantmod) | |
| library(ggrepel) |
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
| #!/usr/bin/env Rscript | |
| # ═══════════════════════════════════════════════════════════════ | |
| # US Equity (S&P 500 TR / VTI) — Log-Trend & Super-Cycle Analysis | |
| # Charts: 1_ Price+Trend, 2_ Deviation+Supertrend, 3_ Normalized | |
| # Data: ERN SWR Toolbox (1871–2025) + Yahoo Finance (recent) | |
| # ═══════════════════════════════════════════════════════════════ | |
| library(tidyverse) | |
| library(quantmod) | |
| library(ggrepel) |
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
| # Virus Hypotheses Tree - English & German versions | |
| # Generates: virus_tree_en.png, virus_tree_de.png | |
| generate_tree <- function(lang = "en") { | |
| # Language-specific labels | |
| labels <- if (lang == "en") { | |
| list( | |
| title = "Virus Hypotheses", | |
| yes = "Yes", no = "No", |
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(tidyverse) | |
| library(tsibble) | |
| library(lubridate) | |
| library(scales) | |
| library(fable) | |
| library(fabletools) | |
| # Set up high-res plotting | |
| width <- 600 * 2 | |
| height <- 335 * 2 |
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(tidyverse) | |
| library(ggpubr) | |
| library(tsibble) | |
| library(fable) | |
| library(ggpmisc) | |
| library(ggrepel) | |
| library(scales) | |
| sf <- 2 | |
| width <- 1200 * 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(data.table) | |
| library(ggplot2) | |
| sf <- 2 | |
| width <- 900 * sf | |
| height <- 450 * sf | |
| options(vsc.dev.args = list(width = width, height = height, res = 72 * sf)) | |
| # Load data | |
| s <- fread( |
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(data.table) | |
| library(ggplot2) | |
| sf <- 2 | |
| width <- 600 * sf | |
| height <- 335 * sf | |
| options(vsc.dev.args = list(width = width, height = height, res = 72 * sf)) | |
| # All potential vaccine related ICD10 codes | |
| elevated_icd10 <- c( |
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(tidyr) | |
| library(ggplot2) | |
| library(dplyr) | |
| library(fable) | |
| library(tsibble) | |
| sf <- 2 | |
| width <- 900 * sf | |
| height <- 450 * 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
| #!/usr/bin/env bash | |
| # Require IP argument or environment variable | |
| IP="${1:-${IP}}" | |
| if [ -z "$IP" ]; then | |
| echo "❌ Error: IP is required." | |
| echo "Usage: IP=1.2.3.4 ./deploy.sh" | |
| echo " or: ./deploy.sh 1.2.3.4" | |
| exit 1 |
NewerOlder