Skip to content

Instantly share code, notes, and snippets.

```{r}
path <- fs::path("<<variable>>", ext = "csv")
cmd <- paste0("{{< downloadthis ", "'", path, "'", ' dname=<<variable>> label="Download the <<variable>> data" icon=database-fill-down type=info class=data-button id=<<variable>> >}}')
```
```{r}
#| results: asis
cat(cmd)
@baptiste
baptiste / graph paper.tex
Created August 19, 2018 05:47 — forked from mcnees/graph paper.tex
Make your own quadrille, graph, hex, etc paper! Uses the pgf/TikZ package for LaTeX, which should be part of any modern TeX installation.
%%-----------------------------------------------------------------------
%% Make your own quadrille, graph, hex, etc paper!
%% Uses the pgf/TikZ package for LaTeX, which should be part of
%% any modern TeX installation.
%% Email: mcnees@gmail.com
%% Twitter: @mcnees
%%-----------------------------------------------------------------------
\documentclass[11pt]{article}
@baptiste
baptiste / .block
Created February 15, 2018 21:20 — forked from ahmohamed/.block
Create a reusable table using d3 and jquery DataTables
license: gpl-3.0