Skip to content
Snippets Groups Projects
Commit ff1f4207 authored by William Warriner's avatar William Warriner
Browse files

reorganization and sample slides

parent db399f1a
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,23 @@ ...@@ -16,6 +16,23 @@
1. `decktape reveal _output/quarto.html _output/quarto.pdf --screenshots-size=1280x720 --fragments=disable` or any other size in px. This takes awhile. 1. `decktape reveal _output/quarto.html _output/quarto.pdf --screenshots-size=1280x720 --fragments=disable` or any other size in px. This takes awhile.
## How to use Shiny
1. Install `R`: <https://www.r-project.org/>
1. Open RGui or use the R REPL at the terminal.
1. `install.packages("rmarkdown")`
1. `install.packages("reticulate")`
1. `install.packages("shiny")`
1. Any other packages you need for the code you're using. This example repo needs the following.
- `install.packages("ggplot2")`
### VSCode Integration
1. Install R extension `REditorSupport.r`
1. Open RGui or use the R REPL at the terminal.
1. `install.packages("languageserver")` for linting, formatting, etc.
1. `install.packages("httpgd")` for plotting.
## TODO ## TODO
- [ ] Finish syntax highlighting. - [ ] Finish syntax highlighting.
......
project: project:
output-dir: _output output-dir: _output
render: render:
- quarto.qmd - index.qmd
execute: execute:
echo: true echo: true
format: format:
revealjs: revealjs:
width: 1280 # CREATION METADATA
height: 720
revealjs-plugins:
- rStackFix
auto-stretch: false
author: author:
name: Research Computing name: Research Computing
affilitation: UAB affilitation: UAB
date: today
date-format: YYYY-MM-DD
copyright: "&copy; University of Alabama at Birmingham" copyright: "&copy; University of Alabama at Birmingham"
date: today # default date
date-format: YYYY-MM-DD
# OPTIONS - CONTROLS
controls: true
controls-layout: bottom-right
controls-back-arrows: faded
# OPTIONS - FEATURES
code-annotation: select
title-slide-attributes: title-slide-attributes:
data-align: left data-align: left
highlight-style: theme/uab-rc.theme #
# DEVELOPER ONLY
width: 1280
height: 720
auto-stretch: false
history: true
menu: false menu: false
progress: true progress: true
history: true revealjs-plugins:
code-annotation: select - rStackFix
controls: true # DEVELOPER ONLY - STYLE AND THEME
controls-layout: bottom-right highlight-style: runtime/theme/uab-rc.theme # code highlighting
controls-back-arrows: faded
css: css:
- theme/uab-rc.css - runtime/theme/uab-rc.css # uab theming
- theme/fix-r-stack-hack.css - runtime/theme/fix-r-stack-hack.css # fixes r-stack div
include-after-body:
- includes/footer.html
include-in-header: include-in-header:
- includes/head.html - runtime/includes/head.html
include-after-body:
- runtime/includes/footer.html
name: quarto-experiment name: quarto
dependencies: dependencies:
- conda-forge::jupyter=1.0.0 - conda-forge::jupyter=1.0.0
- conda-forge::pandas=2.2.2 - conda-forge::pandas=2.2.2
......
Images are from <https://pexels.com>.
Original license page of the website: <https://www.pexels.com/license/>
Images used:
| Short Name | Name | URL |
| ---------- | ----------------------------------- | ------------------------------------------------------------------------- |
| board | Green Circuit Board | <https://www.pexels.com/photo/green-circuit-board-343457> |
| drive | Black Internal Hdd on Black Surface | <https://www.pexels.com/photo/black-internal-hdd-on-black-surface-117729> |
| glasses | Data Codes through Eyeglasses | <https://www.pexels.com/photo/data-codes-through-eyeglasses-577585> |
| network | Cables Connected to Ethernet Ports | <https://www.pexels.com/photo/cables-connected-to-ethernet-ports-2881232> |
| rack | Close Up Photo of Mining Rig | <https://www.pexels.com/photo/close-up-photo-of-mining-rig-1148820> |
img/board.jpg

1.55 MiB

img/drive.jpg

829 KiB

img/glasses.jpg

475 KiB

img/network.jpg

1.2 MiB

img/rack.jpg

1.1 MiB

index.qmd 0 → 100644
---
title: Example Slides
date: today # override default "today" date by replacing with, e.g., 2024-10-08
---
## Headings
### H3 Heading
#### H4 Heading
##### H5 Heading
###### H6 Heading
## Text
Here is a paragraph.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi risus turpis, sodales ut rhoncus sed, tempor in urna. Nulla eget ligula malesuada, ultricies eros id, ultrices lectus. Cras aliquet massa vel dui euismod sodales. Fusce eu ullamcorper eros, nec ultricies justo. Maecenas vel nunc rhoncus, placerat ex et, accumsan metus. Donec a egestas lectus, et lacinia odio. Curabitur vestibulum risus eget urna elementum elementum. Vestibulum maximus ut nulla vitae viverra. Phasellus laoreet odio hendrerit, pellentesque elit non, dapibus ante.
## Big Text
::: {.r-fit-text}
:::
## Direct Code Example
```{python}
print("Hello World!")
```
## Included Code Example - Python
```{python}
{{< include src/code-example.py >}}
```
## Interative Iris Dataset - Plotly
<!-- The following block must be included for presentations with interactive plotly code. This block only needs to be included once in the presentation, before the first time interactive code is used. The `#| echo: false` prevents the block from being rendered in the final output. -->
```{python}
#| echo: false
import plotly.io as pio
pio.renderers.default = "plotly_mimetype+notebook_connected"
```
<!-- Rendered interactive element -->
```{python}
#| code-fold: true
{{< include src/plotly-example.py >}}
```
## Ordered List
1. First item
1. Second item
1. Third item
## Unordered List
- An item
- Another item
- Yet another item
## Table
| Name | Count | Color |
| :------- | ----: | :---: |
| Physics | 2 | Red |
| Oak Tree | 17 | Green |
| Ideation | 5 | Blue |
## Single Image
![](img/board.jpg){fig-alt="green circuit board"}
## Single Image with Text
Below is an image.
![](img/drive.jpg){fig-alt="opened hard disk drive"}
Above is an image.
## Image Stack
::: {.r-stack}
:::: {.fragment .fade-in-then-out .preload}
![](img/board.jpg){fig-alt="green circuit board"}
::::
:::: {.fragment .fade-in-then-out}
![](img/drive.jpg){fig-alt="opened hard disk drive"}
::::
:::: {.fragment .fade-in-then-out}
![](img/glasses.jpg){fig-alt="blurred computer displays seen clearly through glasses on table"}
::::
:::: {.fragment .fade-in-then-out}
![](img/network.jpg){fig-alt="blue network cables plugged into rack mount router"}
::::
:::: {.fragment .fade-in-then-out}
![](img/rack.jpg){fig-alt="rack mounted device controllers"}
::::
:::
## Image Stack with Text
Images below.
::: {.r-stack}
:::: {.fragment .fade-in-then-out .preload}
![](img/board.jpg){fig-alt="green circuit board"}
::::
:::: {.fragment .fade-in-then-out}
![](img/drive.jpg){fig-alt="opened hard disk drive"}
::::
:::: {.fragment .fade-in-then-out}
![](img/glasses.jpg){fig-alt="blurred computer displays seen clearly through glasses on table"}
::::
:::: {.fragment .fade-in-then-out}
![](img/network.jpg){fig-alt="blue network cables plugged into rack mount router"}
::::
:::: {.fragment .fade-in-then-out}
![](img/rack.jpg){fig-alt="rack mounted device controllers"}
::::
:::
Images above.
## Two Column - Text - Text
::: {.columns}
:::: {.column width=50%}
- Left item
- Another left item
- Final left item
::::
:::: {.column width=50%}
- Right item
- Another right item
- Final right item
::::
:::
## Two Column - Single Image - Text
::: {.columns}
:::: {.column width=50%}
![](img/glasses.jpg){fig-alt="blurred computer displays seen clearly through glasses on table"}
::::
:::: {.column width=50%}
- Something related to the image
- Something else related to the image
- Another thing related to the image
::::
:::
## Two Column - Image Stack - Text
::: {.columns}
:::: {.column width=50%}
:::: {.fragment .fade-in-then-out .preload}
![](img/board.jpg){fig-alt="green circuit board"}
::::
:::: {.fragment .fade-in-then-out}
![](img/drive.jpg){fig-alt="opened hard disk drive"}
::::
:::: {.fragment .fade-in-then-out}
![](img/glasses.jpg){fig-alt="blurred computer displays seen clearly through glasses on table"}
::::
:::: {.fragment .fade-in-then-out}
![](img/network.jpg){fig-alt="blue network cables plugged into rack mount router"}
::::
:::: {.fragment .fade-in-then-out}
![](img/rack.jpg){fig-alt="rack mounted device controllers"}
::::
::::
:::: {.column width=50%}
- Something related to the image
- Something else related to the image
- Another thing related to the image
::::
:::
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment