I have several version of template I use with zotero.
One version of title is
literature/{{creators[0].lastName}}{{date | format ("YYYY")}} - {{title | replace("/" , "_") }}.md
Another, maybe easier to use in text when referring
extract_region_effects <- function(fit, region_var = "ROI", parameter = "Intercept", | |
probs = c(0.025, 0.05, 0.5, 0.95, 0.975), | |
digits = 8, scale = 1) { | |
# Check if the fit object is from brms | |
if (!inherits(fit, "brmsfit")) { | |
stop("The 'fit' argument must be a brmsfit object") | |
} | |
# Extract posterior samples for population-level effects |
#!/bin/bash | |
# Git Word Count Analyzer | |
# Copyright (c) 2024 Daniel Borek | |
# MIT License | |
# Inspired by https://www.gijsvandam.nl/post/measuring-your-writing-progress-with-a-git-word-count/ | |
# Configuration | |
# FILE_EXTENSIONS: Array of file extensions to analyze (e.g., "typ" "md") | |
# Separate multiple extensions with spaces | |
FILE_EXTENSIONS=("typ" "md" ) |
I have several version of template I use with zotero.
One version of title is
literature/{{creators[0].lastName}}{{date | format ("YYYY")}} - {{title | replace("/" , "_") }}.md
Another, maybe easier to use in text when referring
library(ggplot2) | |
library(dplyr) | |
library(gridExtra) | |
library(grid) | |
# Create data frame | |
data <- data.frame( | |
Candidate = c( | |
"Rafał Trzaskowski", "Magdalena Biejat", "Tobiasz Bocheński", "Przemysław Wipler", | |
"Janusz Korwin-Mikke", "Romuald Starosielec", "Nie wiem", "Nie wziąłbym/wzięłabym \nudziału w wyborach" |
local stringify = (require "pandoc.utils").stringify | |
-- idea aken from https://forum.obsidian.md/t/rendering-callouts-similarly-in-pandoc/40020/6 and modified to work with Quarto 1.3 | |
function BlockQuote(el) | |
local start = el.content[1] | |
if (start.t == "Para" and start.content[1].t == "Str" and | |
start.content[1].text:match("^%[!%w+%][-+]?$")) then | |
local firstline = stringify(start.content[1]) |
.ONESHELL: | |
.PHONY: install | |
PROJECT?=python-design | |
VERSION?=3.11.4 | |
VENV=${PROJECT}-${VERSION} | |
VENV_DIR=$(shell pyenv root)/versions/${VENV} | |
PYTHON=${VENV_DIR}/bin/python |
{ | |
"basic-datetime": { | |
"class": "basic-datetime", | |
"color": "#00000000", | |
"regex": true, | |
"query": "((\\d{4}-\\d{2}-\\d{2})T(\\d{1,2}:\\d{2})( am| pm| AM| PM)?)|((\\d{4}-\\d{2}-\\d{1,2}))|((\\d{1,2}:\\d{2}( am| pm| AM| PM)?))", | |
"mark": [ | |
"match", | |
"group" | |
], |
window.addEventListener("DOMContentLoaded", () => { | |
const highlightResults = (text, color) => { | |
document.designMode = "on"; // https://stackoverflow.com/a/5887719 | |
var selection = window.getSelection(); | |
selection.collapse(document.body, 0); | |
while (window.find(text)) { | |
document.execCommand("HiliteColor", false, color); | |
selection.collapseToEnd(); | |
} | |
document.designMode = "off"; |
function Str(str) | |
return (str.text | |
:gsub('%[%[', '') | |
:gsub('%]%]', '')) | |
end |