Callouts are a great way to add more attention ot certain details of the text (in the form of a box). Quarto provides 5 different types of callouts:
notewarningimportant
| 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) |
A naive proof of the concept Lua filter for removing [[ wikilinks from markdown file.
function Str (str)
return (str.text:gsub('%[%[', '')
:gsub('%]%]', ''))
endWhen the filter is saved under name cleanwiki.lua it might be used with the flag --lua-filter=cleanwiki.lua
Code for reproducible example around github functions
library(stringi)
library(tidyr)
library(dplyr)
library(stringr)
example <- data.frame(LP=1:10000) %>%
rowwise() %>%
pyenv install 3.8.10
pyenv virtualenv 3.8.10 example-env-name
pyenv local cognitive-reserve
| #!/usr/bin/env python | |
| # # -*- coding: utf-8 -*- | |
| # %% | |
| import urllib, json | |
| import json | |
| import re | |
| import urllib.parse | |
| from colormap import hex2rgb | |
| import argparse |
| # --- | |
| # jupyter: | |
| # jupytext: | |
| # text_representation: | |
| # extension: .py | |
| # format_name: percent | |
| # format_version: '1.3' | |
| # jupytext_version: 1.10.3 | |
| # kernelspec: | |
| # display_name: Python 3.8.7 64-bit |
| # docs/Makefile.dash | |
| include Makefile | |
| SPHINXBUILD = sphinx-build | |
| BUILDDIR = $(shell pwd) | |
| PROJECT_NAME = "mne" | |
| .PHONY: dashdoc | |
| dashdoc: | |
| $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) -D 'html_theme=epub' $(BUILDDIR)/dashdoc | |
| doc2dash -A -v -n $(PROJECT_NAME) -d $(BUILDDIR)/ -f -I index.html -j $(BUILDDIR)/dashdoc | |
| @echo |