Skip to content

Instantly share code, notes, and snippets.

View mavam's full-sized avatar

Matthias Vallentin mavam

View GitHub Profile
@mavam
mavam / dark_save.R
Last active May 16, 2022 09:24
A ggsave wrapper to store both a light and dark themed version of a plot.
# Wraps ggsave to produce both light and dark themed plot using ggdark.
dark_save <- function(filename, plot, sep = "-", ...) {
require(tools)
require(ggdark)
base <- file_path_sans_ext(filename)
ext <- file_ext(filename)
base_light <- paste(base, "light", sep = "-")
base_dark <- paste(base, "dark", sep = "-")
filename_light <- paste(base_light, ext, sep = ".")
filename_dark <- paste(base_dark, ext, sep = ".")
@mavam
mavam / tenzir-library-stats.json
Last active September 16, 2025 10:35
Tenzir Library Statistics. See https://github.com/tenzir/library for details.
{
"lastUpdated": "2025-09-16T10:35:21.077Z",
"summary": {
"totalPackages": 24,
"totalPipelines": 131,
"totalContexts": 18,
"averagePipelinesPerPackage": 5.46,
"averageContextsPerPackage": 0.75
},
"topPackages": [