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

initial commit

parents
No related branches found
No related tags found
No related merge requests found
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,linux,macos,python,r
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,linux,macos,python,r
### Linux ###
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### macOS Patch ###
# iCloud generated files
*.icloud
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
### Python Patch ###
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
poetry.toml
# ruff
.ruff_cache/
# LSP config files
pyrightconfig.json
### R ###
# History files
.Rhistory
.Rapp.history
# Session Data files
.RData
.RDataTmp
# User-specific files
.Ruserdata
# Example code in package build process
*-Ex.R
# Output files from R CMD build
/*.tar.gz
# Output files from R CMD check
/*.Rcheck/
# RStudio files
.Rproj.user/
# produced vignettes
vignettes/*.html
vignettes/*.pdf
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth
# knitr and R markdown default cache directories
*_cache/
/cache/
# Temporary files created by R markdown
*.utf8.md
*.knit.md
# R Environment Variables
.Renviron
# pkgdown site
docs/
# translation temp files
po/*~
# RStudio Connect folder
rsconnect/
### R.Bookdown Stack ###
# R package: bookdown caching files
/*_files/
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,linux,macos,python,r
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
_output/
.quarto/
# Quarto Experiment
## How to build demo `quarto.qmd`
1. Build `conda` environment from `environment.yml`.
1. Run `quarto render`.
## TODO
- [ ] Finish syntax highlighting.
- [x] Python (I think)
- [ ] R
- [ ] Markdown
- [ ] ??
- [ ] .prettierrc file from Revealjs template repo
- [ ] CSS
- [ ] Markdown formatting config from docs repo
project:
output-dir: _output
render:
- "quarto.qmd"
execute:
echo: true
format:
revealjs:
highlight-style: theme/uab-rc.theme
menu: false
progress: true
history: true
controls: true
controls-layout: bottom-right
controls-back-arrows: faded
css:
- theme/uab-rc.css
include-after-body:
- includes/footer.html
include-in-header:
- includes/head.html
name: quarto-experiment
dependencies:
- conda-forge::jupyter=1.0.0
- conda-forge::pandas=2.2.2
- conda-forge::plotly=5.24.1
- conda-forge::python=3.12.6
- conda-forge::quarto=1.5.57
- conda-forge::statsmodels=0.14.2
img/logo.png

14.7 KiB

<div class="uabfooter">
<div class="footer-left">
<img src="../img/logo.png" alt="UAB Logo" class="logo" />
</div>
<div class="footer-center">
Research Computing -
<a class="support-link" href="https://docs.rc.uab.edu"
>https://docs.rc.uab.edu</a
>
</div>
<div class="footer-right">&copy; UAB</div>
</div>
<!-- open urls in new window -->
<base target="_blank" />
<!-- metadata -->
<title>UAB IT Research Computing</title>
<section data-background-color="var(--uab-dragons-lair-green)">
<h1 class="title">YOUR TITLE SHOULD GO HERE</h1>
<h4>Research Computing</h4>
<h4>
<script>
document.write(new Date().toLocaleDateString());
</script>
</h4>
</section>
# Quarto Experiment {.title}
```{python}
#| echo: false
import plotly.io as pio
pio.renderers.default = "plotly_mimetype+notebook_connected"
```
## Code Example
```{python}
#| code-fold: show
{{< include src/code-example.py >}}
```
## Iris Dataset &ndash; Interactive
```{python}
#| code-fold: true
{{< include src/plotly-example.py >}}
```
import operator as op
class Addable:
"""
Docstring
"""
def __init__(self):
# comment
self._name = "Addable"
self._int = 1
self._verbatim = r"hello"
@property
def name(self) -> str:
return f"{self._name} and {self._int}"
def add(self, lhs: int, rhs: int) -> int:
return op.add(lhs, rhs)
var = 1 + 1
import plotly.express as px
import plotly.io as pio
df = px.data.iris()
fig = px.scatter(
df,
x="sepal_width",
y="sepal_length",
color="species",
marginal_y="violin",
marginal_x="box",
trendline="ols",
template="simple_white",
)
fig.show()
:root {
--uab-dragons-lair-green: #1e6b52;
--uab-digital-dragons-lair-green: #144b39;
--uab-loyal-yellow: #ffd602;
--uab-campus-green: #88c408;
--uab-blaze-gold: #a69363;
--r-font-family: "Arial", sans-serif;
font-family: var(--r-font-family);
}
.reveal {
font-family: "Arial", sans-serif;
}
.reveal section {
text-align: left;
}
.content-wrapper {
display: flex;
flex-direction: column;
text-align: center;
}
.description-header {
margin-bottom: 10px;
}
.description-text {
margin-bottom: 20px;
width: 100%;
text-align: left;
}
/* side by side styles.css */
.side-by-side {
display: flex;
align-items: center;
justify-content: space-between;
}
/* Style for text content */
.text-content {
flex: 1;
margin-right: 20px;
}
/* Style for image content */
.image-content {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.image-content img {
max-width: 100%;
height: auto;
display: block;
}
.top-left-logo {
position: fixed;
/* fixed positioning */
top: 30px;
left: 40px;
z-index: 1000;
/* check it is on top */
display: flex;
/* Flexbox layout to arrange logo and content */
align-items: center;
/* Vertically center the content */
width: 200%;
/* Full width */
z-index: 1000;
/* Ensures it stays on top */
}
/* content */
/* title slide */
.reveal section.title-slide h1,
.reveal section.title-slide h2,
.reveal section.title-slide h3,
.reveal section.title-slide h4,
.reveal section.title-slide h5,
.reveal section.title-slide h6 {
font-size: 3em;
color: white;
}
/* headers */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
color: var(--uab-dragons-lair-green);
}
/* return to index */
.top-left-link {
position: fixed;
top: 8px;
left: 8px;
background: var(--uab-digital-dragons-lair-green);
padding: 8px;
border-radius: 8px;
z-index: 1000;
}
.top-left-link a {
text-decoration: none;
color: var(--uab-loyal-yellow);
}
/* footer */
html,
body {
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
}
.support-link {
color: var(--uab-loyal-yellow);
}
.footer {
background-color: var(--uab-digital-dragons-lair-green);
color: white;
display: flex;
aspect-ratio: 1;
width: 100%;
bottom: 0;
min-height: 1em;
max-height: 2em;
font-size: clamp(0.5em, 2vw, 2em);
}
.footer-left {
padding: 0.5em;
position: left;
text-align: left;
width: 25%;
}
.footer-left .logo {
height: 100%;
}
.footer-center {
padding: 0.5em;
position: center;
text-align: center;
align-items: center;
margin: auto;
width: 50%;
}
.footer-right {
padding: 0.5em;
position: right;
text-align: right;
align-items: center;
width: 25%;
}
{
"custom-styles": {
"C": {
"Prep. Lib": {
"selected-text-color": "#e6db74",
"text-color": "#e6db74"
}
},
"C++": {
"Qt Classes": {
"bold": false,
"selected-text-color": "#66d9ef",
"text-color": "#66d9ef"
},
"Qt Macros": {
"bold": false,
"selected-text-color": "#f92672",
"text-color": "#f92672"
},
"Qt Types": {
"bold": false,
"selected-text-color": "#66D9EF",
"text-color": "#66D9EF"
}
},
"CMake": {
"Builtin Variable": {
"selected-text-color": "#f8f8f2",
"text-color": "#f8f8f2"
},
"False Special Arg": {
"selected-text-color": "#e03232",
"text-color": "#e03232"
},
"True Special Arg": {
"selected-text-color": "#38bd38",
"text-color": "#38bd38"
}
},
"Doxygen": {
"Tags": {
"bold": false,
"selected-text-color": "#52afbf",
"text-color": "#52afbf"
},
"Word": {
"bold": false,
"selected-text-color": "#7ba822",
"text-color": "#7ba822",
"underline": true
}
},
"Diff": {
"Added line": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Changed line (new)": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Changed line (old)": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
},
"Removed line": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
}
},
"Go": {
"Builtin Function": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Predeclared Identifier": {
"selected-text-color": "#ae81ff",
"text-color": "#ae81ff"
}
},
"ISO C++": {
"Attribute": {
"selected-text-color": "#f8f8f2",
"text-color": "#f8f8f2"
},
"Boost Stuff": {
"bold": false
},
"Prep. Lib": {
"selected-text-color": "#e6db74",
"text-color": "#e6db74"
},
"Standard Attribute": {
"selected-text-color": "#f8f8f2",
"text-color": "#f8f8f2"
},
"Standard Macros": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
},
"Standard Suffix": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
},
"UDL Numeric Suffix": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
},
"UDL String Suffix": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
}
},
"JSON": {
"Style_String_Key": {
"italic": false,
"selected-text-color": "#f92672",
"text-color": "#f92672"
}
},
"JavaScript": {
"Object Member": {
"selected-text-color": "#f8f8f2",
"text-color": "#f8f8f2"
},
"Substitution": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
}
},
"JavaScript React (JSX)": {
"Component Tag": {
"bold": false,
"selected-text-color": "#66d9ef",
"text-color": "#66d9ef"
}
},
"Makefile": {
"FuncParam": {
"selected-text-color": "#fd971f",
"text-color": "#fd971f"
},
"Target": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Variable": {
"italic": false,
"selected-text-color": "#f8f8f2",
"text-color": "#f8f8f2"
}
},
"Markdown": {
"Emphasis Text": {
"selected-text-color": "#66D9EF",
"text-color": "#66D9EF"
},
"Reference-Link ID": {
"selected-text-color": "#ae81ff",
"text-color": "#ae81ff"
},
"Reference-Link Name": {
"selected-text-color": "#ae81ff",
"text-color": "#ae81ff"
},
"Reference-Link Target": {
"selected-text-color": "#ae81ff",
"text-color": "#ae81ff"
},
"Strong Text": {
"selected-text-color": "#66d9ef",
"text-color": "#66d9ef"
}
},
"Python": {
"Import": {
"selected-text-color": "#2fa780",
"text-color": "#2fa780"
}
},
"Rust": {
"Definition": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Lifetime": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
},
"Macro": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Self": {
"selected-text-color": "#fd971f",
"text-color": "#fd971f"
}
},
"TypeScript": {
"Function (Built-in)": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Object Member": {
"selected-text-color": "#f8f8f2",
"text-color": "#f8f8f2"
},
"Substitution": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
}
},
"TypeScript React (TSX)": {
"Component Tag": {
"bold": false,
"selected-text-color": "#66d9ef",
"text-color": "#66d9ef"
},
"Substitution": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
}
}
},
"background-color": "#222222",
"editor-colors": {
"BackgroundColor": "#272822",
"BracketMatching": "#5b5a4a",
"CodeFolding": "#3a3b32",
"CurrentLine": "#3e3d32",
"CurrentLineNumber": "#d1d931",
"IconBorder": "#272822",
"IndentationLine": "#6272a4",
"LineNumbers": "#909194",
"MarkBookmark": "#66D9EF",
"MarkBreakpointActive": "#ff5555",
"MarkBreakpointDisabled": "#bd93f9",
"MarkBreakpointReached": "#f1fa8c",
"MarkError": "#ff5555",
"MarkExecution": "#44475a",
"MarkWarning": "#ffb86c",
"ModifiedLines": "#ff473d",
"ReplaceHighlight": "#735d16",
"SavedLines": "#20e852",
"SearchHighlight": "#245676",
"Separator": "#45474e",
"SpellChecking": "#ff5555",
"TabMarker": "#6272a4",
"TemplateBackground": "#23241e",
"TemplateFocusedPlaceholder": "#22231d",
"TemplatePlaceholder": "#22231d",
"TemplateReadOnlyPlaceholder": "#262721",
"TextSelection": "#3f413e",
"WordWrapMarker": "#282a36"
},
"metadata": {
"copyright": [
"SPDX-FileCopyrightText: 2006 Wimer Hazenberg",
"SPDX-FileCopyrightText: 2020 Waqar Ahmed <waqar.17a@gmail.com>"
],
"license": "SPDX-License-Identifier: MIT",
"name": "Monokai",
"revision": 5
},
"text-styles": {
"Alert": {
"bold": true,
"selected-text-color": "#ff5555",
"text-color": "#111111"
},
"Annotation": {
"selected-text-color": "#75715e",
"text-color": "#75715e"
},
"Attribute": {
"selected-text-color": "#88c408",
"text-color": "#88c408"
},
"BaseN": {
"selected-text-color": "#ae81ff",
"text-color": "#ae81ff"
},
"BuiltIn": {
"selected-text-color": "#88c408",
"text-color": "#88c408"
},
"Char": {
"selected-text-color": "#e6db74",
"text-color": "#e6db74"
},
"Comment": {
"selected-text-color": "#bababa",
"text-color": "#bababa"
},
"CommentVar": {
"selected-text-color": "#bababa",
"text-color": "#bababa"
},
"Constant": {
"selected-text-color": "#ff0000",
"text-color": "#ff0000"
},
"ControlFlow": {
"selected-text-color": "#2fa780",
"text-color": "#2fa780"
},
"DataType": {
"italic": true,
"selected-text-color": "#88c408",
"text-color": "#88c408"
},
"Decorator": {
"selected-text-color": "#ffd602",
"text-color": "#ffd602"
},
"DecVal": {
"selected-text-color": "#ff3355",
"text-color": "#ff3355"
},
"Documentation": {
"selected-text-color": "#ffd602",
"text-color": "#ffd602"
},
"Error": {
"selected-text-color": "#ff5555",
"text-color": "#ff5555",
"underline": true
},
"Extension": {
"bold": true,
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Float": {
"selected-text-color": "#ff3355",
"text-color": "#ff3355"
},
"Function": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Import": {
"selected-text-color": "#2fa780",
"text-color": "#2fa780"
},
"Information": {
"selected-text-color": "#f1fa8c",
"text-color": "#f1fa8c"
},
"Keyword": {
"selected-text-color": "#2fa780",
"text-color": "#2fa780"
},
"Normal": {
"selected-text-color": "#ffffff",
"text-color": "#ffffff"
},
"Operator": {
"selected-text-color": "#2fa780",
"text-color": "#2fa780"
},
"Others": {
"selected-text-color": "#a6e22e",
"text-color": "#a6e22e"
},
"Preprocessor": {
"selected-text-color": "#f92672",
"text-color": "#f92672"
},
"RegionMarker": {
"selected-text-color": "#ffd602",
"text-color": "#ffd602"
},
"SpecialChar": {
"selected-text-color": "#ffffff",
"text-color": "#ffffff"
},
"SpecialString": {
"selected-text-color": "#ffd602",
"text-color": "#ffd602"
},
"String": {
"selected-text-color": "#ffd602",
"text-color": "#ffd602"
},
"Variable": {
"selected-text-color": "#b9a983",
"text-color": "#b9a983"
},
"VerbatimString": {
"selected-text-color": "#ff9702",
"text-color": "#ff9702"
},
"Warning": {
"selected-text-color": "#ff5555",
"text-color": "#ff5555"
}
}
}
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