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
#!/bin/bash | |
# Exit on error | |
set -e | |
# Parse options | |
LAYOUT="3x4" # default | |
while getopts "l:" opt; do | |
case ${opt} in | |
l ) LAYOUT="$OPTARG" ;; |
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(ggplot2) | |
library(pracma) | |
library(ggplot2) | |
# remotes::install_github('houyunhuang/ggvwline') | |
library(grid) | |
library(vwline) | |
library(gggrid) | |
bump <- function(t) ifelse(abs(t)<1, exp(-1/(1-t^2)), 0) |
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(purrr) | |
library(ggplot2) | |
library(tibble) | |
# https://community.wolfram.com/groups/-/m/t/2575939 | |
x <- function(t, m, gamma, epsilon0, q, epsilon) { | |
numerator <- m * epsilon0 * exp(-gamma * t / m) * ( | |
(epsilon * q * exp(gamma * t / m)) - (gamma * sin((epsilon * q * t) / m)) - (epsilon * q * cos((epsilon * q * t) / m)) | |
) |
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
--- | |
title: Wizard • pointy-hatted • pipe smoker | |
author: Gandalf the Grey | |
alsoknown: Olórin, Gandalf | |
nationality: Maia, bearer of Narya | |
age: Born before Arda was created | |
currentdate: fourth age | |
address: Valinor, Arda | |
mobile: flying moths | |
email: [email protected] |
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(ggplot2) | |
my_axis = function() { | |
structure("test", | |
class = c("element_custom","element_blank", "element") # inheritance test workaround | |
) | |
} | |
library(grid) | |
# returns a gTree with desired text |
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
--- | |
name: "Pumpkins and peanuts committee" | |
date: "03/01/2000" | |
time: "2 pm" | |
location: "baseball field" | |
invited: | |
- Sally | |
- Shroeder | |
- Pig-pen | |
- Marcie |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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(ggforce) | |
library(purrr) | |
library(tibble) | |
library(gganimate) | |
web_strand <- function(side = 1, bend = 0.5, angle = 0, start = c(0,0)){ | |
pos <- cbind(x=c(0, 1, 2), y = bend*c(0, 2, 0)) | |
post <- pos %*% matrix(c(cos(angle), -sin(angle), sin(angle), cos(angle)), ncol=2, byrow=TRUE) | |
xt <- post[,1] + start[1] | |
yt <- post[,2] + start[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
\documentclass[a4paper,10pt]{article} | |
\usepackage[a4paper]{geometry} | |
\geometry{textwidth=16cm} | |
\usepackage{enumitem} | |
\setlist[description]{font=\scshape\bfseries\rmfamily, leftmargin=2cm, | |
style=multiline,itemsep=6pt,parsep=2pt} | |
\begin{document} |
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
--- | |
title: "Untitled" | |
format: | |
pdf: | |
latex-tinytex: false | |
keep-md: true | |
keep-tex: true | |
fontsize: "11" | |
--- |
NewerOlder