Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
95e3df8
removed outdated notes pdf
bgv2 Feb 13, 2026
0006b3d
fix dates
bgv2 Feb 15, 2026
077d863
fix more dates
bgv2 Feb 15, 2026
904f515
fix fortran workshop dates
bgv2 Feb 15, 2026
3eb1a2d
fix bioinfo dates
bgv2 Feb 15, 2026
33ab579
more date fixes
bgv2 Feb 15, 2026
ff725a5
more fixed dates
bgv2 Feb 15, 2026
b13a49c
fix dates in multigpu-inference
bgv2 Feb 15, 2026
15009cb
fix dates in containers workshop
bgv2 Feb 15, 2026
061eddd
fix dates in deep-learning-hpc
bgv2 Feb 15, 2026
43fd03b
fix dates in more workshops
bgv2 Feb 15, 2026
47d4c2c
fix dates in matlab parallel
bgv2 Feb 15, 2026
2b7fb99
fix date in matlab parallel
bgv2 Feb 15, 2026
28c815d
fix dates in seurat
bgv2 Feb 15, 2026
56d68b1
fix dates in rio intro and alphafold
bgv2 Feb 15, 2026
6ee3589
more date/syntax changes
bgv2 Feb 15, 2026
2d9563d
fix date in qiime2
bgv2 Feb 15, 2026
07cf5ab
date fixes for slurm-from-cli and unix-tutorial
bgv2 Feb 15, 2026
e54de08
delete hugo errors file
bgv2 Feb 15, 2026
c55c774
edit date in qiime2
bgv2 Feb 16, 2026
0701b94
Merge branch 'uvarc:staging' into staging
bgv2 Feb 17, 2026
8e31c52
fix frontmatter issus in unix tutorial
bgv2 Feb 20, 2026
b3add31
Merge branch 'uvarc:staging' into staging
bgv2 Feb 20, 2026
bdf8e3f
fix hover color of dark mode tag cloud
bgv2 Feb 20, 2026
0cc5793
Merge branch 'staging' of https://github.com/bgv2/rc-learning into st…
bgv2 Feb 20, 2026
393e589
fix formatting issues in shinyapp-dockerfile
bgv2 Feb 20, 2026
0ba41dc
remove duplicate frontmatter keys in python-high-performance
bgv2 Feb 21, 2026
a9b68ff
search fixes: add breadcrumbs to results, fix results without titles …
bgv2 Feb 22, 2026
8e96205
fix readme typo
bgv2 Feb 22, 2026
c419885
update readme
bgv2 Feb 22, 2026
7369683
delete all pycaches
bgv2 Feb 22, 2026
4cb40e9
fix 404s for some syntax higlight languages
bgv2 Feb 22, 2026
7e1ee6b
add alt text to vector diagram
bgv2 Feb 22, 2026
feb2c3c
various parallel computing intro fixes
bgv2 Feb 24, 2026
82134af
various fortran intro fixes
bgv2 Feb 24, 2026
99480f4
cpp introduction fixes
bgv2 Feb 24, 2026
0accf0b
various link/image fixes
bgv2 Feb 24, 2026
96267d8
fix typo in apptainer workshop
bgv2 Feb 28, 2026
937b02a
code snippet shortcode changes: add visual feedback for "copied" and …
bgv2 Feb 28, 2026
819f3f5
Merge branch 'uvarc:staging' into staging
bgv2 Mar 2, 2026
f78545f
Merge branch 'uvarc:staging' into staging
bgv2 Mar 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/courses/containers-for-hpc/using.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Log on to our HPC cluster
- Make sure you have a few GBs of free space
- Run `allocations`
- Check if you have `hpc_training`
- Request an interative job
- Request an interactive job
{{< code-snippet >}}ijob -A hpc_training -p interactive -c 1 -t 2:0:0{{< /code-snippet >}}
- Run `module load apptainer`

Expand Down
48 changes: 35 additions & 13 deletions layouts/shortcodes/code-snippet.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
{{ $id := delimit (shuffle (seq 1 9)) "" }}
<div>
<pre id={{ $id }}><code>{{ .Inner }}</code></pre>
<button onclick="copyToClipboard({{ $id }})">Copy<i class="fa fa-clipboard"></i></button>
</div>
<pre class="mb-1" id={{ $id }}><code>{{ .Inner }}</code></pre>
<button id="copy-btn-{{ $id }}" class="btn btn-primary mb-1" onclick="copyToClipboard('{{ $id }}', this)"
title="Copy code" aria-label="Copy code">
Copy <i class="fa fa-clipboard" aria-hidden="true"></i>
</button>
<script>
function copyToClipboard(target) {
const copyText = document.getElementById(target).textContent;
const textArea = document.createElement('textarea');
textArea.textContent = copyText;
document.body.append(textArea);
textArea.select();
document.execCommand("copy");
}
</script>
function copyToClipboard(id, btn) {
const copyText = document.getElementById(id).textContent;
const textArea = document.createElement('textarea');
textArea.value = copyText;

// Prevent scrolling to bottom by positioning it off-screen and fixed
textArea.style.position = 'fixed';
textArea.style.left = '-9999px';
textArea.style.top = '0';

document.body.appendChild(textArea);
textArea.focus();
textArea.select();

try {
document.execCommand('copy');
// Provide visual feedback
const originalText = btn.innerHTML;
btn.innerHTML = 'Copied! <i class="fa fa-check" aria-hidden="true"></i>';

setTimeout(() => {
btn.innerHTML = originalText;
}, 2000);
} catch (err) {
console.error('Unable to copy', err);
}

document.body.removeChild(textArea);
}
</script>