Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 3 additions & 21 deletions lectures/algorithms-lambdas-traits/index.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>C++ for numerical computing part 2</title>
<title>Algorithms, lambdas, traits</title>
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="../template/cpptheme.js"></script>
<script type="module" src="../template/cpptheme.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML&delayStartupUntil=configured" type="text/javascript"></script>
<script defer src="../template/mathjax-setup.js"></script>

</head>

<body>

<script>
epcc.install();
cpptheme.install();
var slideshow = remark.create({sourceUrl: 'README.md'});
// Setup MathJax
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']
}
});

MathJax.Hub.Configured();
</script>

</body>
</html>
24 changes: 3 additions & 21 deletions lectures/classes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,9 @@
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="../template/cpptheme.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML&delayStartupUntil=configured" type="text/javascript"></script>
<script type="module" src="../template/cpptheme.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML&delayStartupUntil=configured" type="text/javascript"></script>
<script defer src="../template/mathjax-setup.js"></script>

</head>

<body>

<script>
epcc.install();
cpptheme.install();
var slideshow = remark.create({sourceUrl: 'README.md'});
// Setup MathJax
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']
}
});

MathJax.Hub.Configured();
</script>

</body>
</html>
13 changes: 1 addition & 12 deletions lectures/cpp-intro/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="../template/cpptheme.js"></script>
<script type="module" src="../template/cpptheme.js"></script>

</head>

<body>

<script>
epcc.install();
cpptheme.install();
var slideshow = remark.create({sourceUrl: 'README.md'});
</script>

</body>
</html>
27 changes: 7 additions & 20 deletions lectures/eigen/index.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>A brief introduction to C++</title>
<title>Linear Algebra for C++</title>
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML&delayStartupUntil=configured" type="text/javascript"></script>
<script src="../template/cpptheme.js"></script>

</head>

<body>
<!--URL Encoded Footer = "&copy; Joseph Lee, Rupert Nash (EPCC), Chris Richardson (University of Cambridge), CC-BY"-->
<script type="module" src="../template/cpptheme.js?footer=%26copy%3B%20Joseph%20Lee%2C%20Rupert%20Nash%20%28EPCC%29%2C%20Chris%20Richardson%20%28University%20of%20Cambridge%29%2C%20CC-BY"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML&delayStartupUntil=configured" type="text/javascript"></script>
<script defer src="../template/mathjax-setup.js"></script>

<script>
epcc.footer_text = "&copy; Joseph Lee, Rupert Nash (EPCC), Chris Richardson (University of Cambridge), CC-BY";
epcc.install();
cpptheme.install();
var slideshow = remark.create({sourceUrl: 'README.md'});
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']
}
});
MathJax.Hub.Configured();
</script>
</head>

</body>
</html>
15 changes: 2 additions & 13 deletions lectures/loops-containers/index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>C++ for numerical computing</title>
<title>Containers, loops, and iterators</title>
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="../template/cpptheme.js"></script>
<script type="module" src="../template/cpptheme.js"></script>

</head>

<body>

<script>
epcc.install();
cpptheme.install();
var slideshow = remark.create({sourceUrl: 'README.md'});
</script>

</body>
</html>
15 changes: 2 additions & 13 deletions lectures/resources/index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>A brief introduction to C++</title>
<title>Resource Management</title>
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="../template/cpptheme.js"></script>
<script type="module" src="../template/cpptheme.js"></script>

</head>

<body>

<script>
epcc.install();
cpptheme.install();
var slideshow = remark.create({sourceUrl: 'README.md'});
</script>

</body>
</html>
26 changes: 19 additions & 7 deletions lectures/template/cpptheme.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import {epcc, Theme} from "https://EPCCed.github.io/remark_theme/latest.js";

epcc.footer_text = "&copy; Rupert Nash, The University of Edinburgh, CC-BY";
cpptheme = new Theme(
(str => str.substring(0, str.lastIndexOf("/")))(document.currentScript.src),
var footer = new URL(import.meta.url).searchParams.get("footer");

if (!footer) {
footer = "&copy; Rupert Nash, The University of Edinburgh, CC-BY";
}
epcc.footer_text = footer;

var cpptheme = new Theme(
(str => str.substring(0, str.lastIndexOf("/")))(import.meta.url),
'$BASEURL/style.css',
{
thumb: function () {
return '.thumb[\n.thumbtxt[\n' + this +'\n]\n]';
}
});
thumb: function () {
return '.thumb[\n.thumbtxt[\n' + this +'\n]\n]';
}
}
);

epcc.install();
cpptheme.install();
globalThis.slideshow = remark.create({sourceUrl: 'README.md'});
8 changes: 8 additions & 0 deletions lectures/template/mathjax-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Setup MathJax
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']
}
});

MathJax.Hub.Configured();
13 changes: 1 addition & 12 deletions lectures/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="../template/cpptheme.js"></script>
<script type="module" src="../template/cpptheme.js"></script>

</head>

<body>

<script>
epcc.install();
cpptheme.install();
var slideshow = remark.create({sourceUrl: 'README.md'});
</script>

</body>
</html>
16 changes: 3 additions & 13 deletions lectures/threads-1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,9 @@
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="../template/cpptheme.js"></script>
</head>

<body>

<script>
epcc.footer_text = "&copy; EPCC, The University of Edinburgh, CC-BY-NC-SA 4.0";
epcc.install();
cpptheme.install();
<!--URL Encoded Footer = "&copy; EPCC, The University of Edinburgh, CC-BY-NC-SA 4.0"-->
<script type="module" src="../template/cpptheme.js?footer=%26copy%3B%20EPCC%2C%20The%20University%20of%20Edinburgh%2C%20CC-BY-NC-SA%204.0"></script>

var slideshow = remark.create({sourceUrl: 'README.md'});
</script>

</body>
</head>
</html>
16 changes: 3 additions & 13 deletions lectures/threads-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,9 @@
<meta charset="utf-8">

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script src="https://epcced.github.io/remark_theme/latest.js"></script>
<script src="../template/cpptheme.js"></script>
</head>

<body>

<script>
epcc.footer_text = "&copy; EPCC, The University of Edinburgh, CC-BY-NC-SA 4.0";
epcc.install();
cpptheme.install();
<!--URL Encoded Footer = "&copy; EPCC, The University of Edinburgh, CC-BY-NC-SA 4.0"-->
<script type="module" src="../template/cpptheme.js?footer=%26copy%3B%20EPCC%2C%20The%20University%20of%20Edinburgh%2C%20CC-BY-NC-SA%204.0"></script>

var slideshow = remark.create({sourceUrl: 'README.md'});
</script>

</body>
</head>
</html>