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
#!/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 |
create_models <- function(datame_name, cog_vars, eeg_components) { | |
list_models <- list() | |
for (cogvar in cog_vars) { # ,eeg_components | |
for (eegvar in eeg_components) { # ,eeg_components | |
models <- glue("model1.{cogvar}.{eegvar} <- glm({cogvar} ~ GM_Normalised + {eegvar}, {datame_name}, family = gaussian) | |
list_models[['model.{cogvar}.{eegvar}']] <- model5.{cogvar}.{eegvar}") # nolint | |
eval(str2expression(models)) | |
} | |
} | |
return(list_models) |