Templates
QR code helpers
The share page on the more tools ellipse.
Via the qrcode package (tips):
```{r}
qrcode::add_logo(
qrcode::qr_code("https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fdvsax6nc9mmc1.jpeg", ecl = "H"),
file.path(ras_dbase,"_temp","BLE","12100202",glue::glue("{12100202}_models"),fsep = .Platform$file.sep),
ecl = "L",
hjust = "c",
vjust = "c"
)
```
In quarto’s terminal: quarto install extension jmbuhr/quarto-qrcode
Shortcode:
Text
Quarto specific
Cross formatting
```{md}
::: {.panel-tabset}
## tab 1
## tab 2
:::
```
Also worth peaking at https://www.andreashandel.com/posts/2023-06-13-custom-callouts-quarto/ & https://quarto.org/docs/authoring/callouts.html
```{md}
::: {.callout-note collapse="false"}
## This would be a callout title
Note that there are five types of callouts, including:
`note`, `warning`, `important`, `tip`, and `caution`.
:::
```
```{html}
<details>
<summary> What points were used?</summary>
I am collapsed
</details>
```
```{md}
::: {.content-hidden}
Will not appear in HTML.
:::
```
See: Some placed in <https://docs.zettlr.com/en/core/snippets/>
```{md}
:::: {#fig-hersh41 layout-ncol="2"}
Where A is placesd
Where b is placed
(a left): A screen and (b right) a derivation
::::
```
or
```{md}
:::: columns
::: {.column}
Content of column 1
:::
::: {.column}
Content of column 2
:::
::::
```
```{md}
#, fig.height=9}
#| label: fig-meancheck
#| warning: false
#| echo: false
#| eval: false
```
Notes
See also: a (WIP) Data Driven Workflow
```{md}
home <- landing page
├── tutorial <- landing page
│ └── part 1 <- landing page
├── how-to guides <- landing page
│ ├── install
│ └── deploy
├── reference <- landing page
│ ├── commandline tool
│ └── available endpoints
└── explanation <- landing page
├── best practice recommendations
└── performance
Paper
├── Introduction
├── Background <- literature_notes,reference,explanation
├── Methods <- how-to guides,reference,explanation
├── Results
├── Discussion <- reference,explanation
└── Conclutions
```
see also: installing Zotero
A literature note header and some form of a content prompt like so:
```{md}
---
title: "<paper title>"
id:
keywords:
- Drone
- lo_q-med_q-hi_q
...
[citation]
# Summary
## Mine
## MaxF
## TFIDF
# Annotations
<From top sticky note>
## What was the question, problem or purpose of the study?
## What methods are deployed?
### What data did they use?
### What noteable codebase/tools were developed/deployed?
## What are the authors’ major findings/conclusions?
## What evidence supports their interpretations?
## Why are the findings of this research important?
## Explicit next steps they suggest
## Did I find anything surprising?
## What am I confused about?
## Interesting figures?
## Promising References
```
```{md}
---
title: "Title"
id: YYYYMMDDmmss
keywords:
- fill
- these
- in
...
```
Functions
See also: Packaging and Production
```{r}
funfunc <- function(path_to_inputs,path_to_outputs,overwrite=FALSE,is_verbose=FALSE) {
# sinew::moga(file.path(getwd(),"R/funfunc.R"),overwrite = TRUE)
# devtools::document()
# pkgdown::build_site(new_process=TRUE)
#
# devtools::load_all()
## -- Start --
fn_time_start <- Sys.time()
if(is_verbose) {
runtime <- Sys.time() - fn_time_start
units(runtime) <- "hours"
print(paste("Total Compute Time: ",round(runtime, digits = 3),"hours"))
}
return(TRUE)
}
```
```{python}
import argparse
import geopandas
import contextily
import os
import sys
import time
import datetime
def main(is_verbose):
"""
Subset dam lines from hydrofabric
Args:
data_path (str): The path to hydrofabric data.
hf_id (str): A hydrofabric flowpath id to use as the headwater.
is_verbose (bool): Whether to print verbose output.
Example usage:
python /hydrofabric3D/Python/subset_dam_lines.py \
-data_path "/media/sf_G_DRIVE/data/" \
-hf_id 'wb-2414833' \
-v
flowpaths, transects, xyz = subset\_dam\_lines(data\_path = "/media/sf\_G\_DRIVE/data/", hf\_id = 'wb-2414833', is\_verbose = True)
"""
start_runtime = time.time()
if is_verbose:
end_runtime = time.time()
time_passed = (end_runtime - start_runtime) // 1
time_passed = datetime.timedelta(seconds=time_passed)
print('Total Compute Time: ' + str(time_passed))
return True
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Subset dam break lines.")
parser.add_argument("data_path", help="The path to hydrofabric data.")
parser.add_argument("hf_id", type=str, help="A hydrofabric flowpath id to use as the headwater.")
parser.add_argument("-v", "--verbose", action="store_true", help="Enable verbose output.")
args = parser.parse_args()
processed_result = subset_dam_lines(args.data_path, args.hf_id, args.verbose)
```
Pages
Powerpoint
- Standard Landscape
- Full page: 13.333 in x 7.5 in | 338.7 mm x 190.5 mm (16:9)
- 960 x 540 mm
- 0.25 in > 6.35
- 6.35
- H 533.65
- V 953.65
- reveal
Printed page
- Portrait:
- Full page: 8.5 in x 11 in | 215.9 mm x 279.4 mm (0.7:1)
- Standard publication boarder of 0.5 in: 7.5 in x 10 in | 177.8 mm x 254 mm
- Full page guides at:
- Horizontal: 0.5 in & 10.5 in | 12.7 mm & 266.7 mm
- Vertical: 0.5 in & 8 in | 12.7 mm & 203.2 mm
- Full page guides at:
- Standard print boarder of 0.25 in: 8 in x 10.5 in | 203.2 mm x 266.7 mm
- Full page guides at:
- Horizontal: 0.25 in & 8.25 in | 6.35 mm & 209.55 mm
- Vertical: 0.25 in & 10.75 in | 6.35 mm & 273.05 mm
- Full page guides at:
- Landscape:
- Full page: 11 in x 8.5 in | 279.4 mm x 215.9 mm (1:0.7)
- Standard publication boarder of 0.5 in: 10 in x 7.5 in | 254 mm x 177.8 mm
- Full page guides at:
- Horizontal: 0.5 in & 8 in | 12.7 mm & 196.85 mm
- Vertical: 0.5 in & 10.5 in | 12.7 mm & 273.05 mm
- Full page guides at:
- Standard print boarder of 0.25 in: 10.5 in x 8 in | 266.7 mm x 203.2 mm
- Full page guides at:
- Horizontal: 0.25 in & 8.25 in | 6.35 mm & 209.55 mm
- Vertical: 0.25 in & 10.75 in | 6.35 mm & 273.05 mm
- Full page guides at: