Skip to content
Permalink
Browse files
Updated the labs themeing, and moved to powershell scripts
  • Loading branch information
ab6459 committed Nov 8, 2022
1 parent 0d11c19 commit 929f2a77b2aed34553f0cb85f7f6f5f243cf348d
Showing 21 changed files with 256 additions and 253 deletions.

This file was deleted.

@@ -4,4 +4,4 @@

| Attempt | Hand-Out Date | Due-In Date | HTML Brief | PDF Brief | Submission Link |
|---------|---------------|-------------|-----------------|-----------------|-----------------|
| 1 | 00/00/0000 | 00/00/0000 | [Access Here]() | [Access Here]() | [Submit Here]() |
| 1 | 00/00/0000 | 00/00/0000 | [Access Here]() | [Access Here]() | [Submit Here]() |
Binary file not shown.

This file was deleted.

@@ -0,0 +1,38 @@
---
subtitle: Lab Activity 1a
author: Dr Ian Cornelius
lang: en-GB
---

# Task 1

## Sub-Task A

### Sub-Sub-Task i

# Task 2

## Sub-Task A

### Sub-Sub-Task i

# Task 3

```python
def hello_world(_a):
print("Hello World")
return _a
hello_world("Ian")
```

## Sub-Task A

### Sub-Sub-Task i

# Task 4

## Sub-Task A

## Sub-Task B

## Sub-Task C
Binary file not shown.
@@ -0,0 +1,5 @@
# Week 1 - Lab Activities

| Activity | Hand-Out Date | HTML Labs | Knowledge Check |
|----------|---------------|-----------------------------------|-----------------|
| 1 | 00/00/0000 | [Access Here](html/1a_Example.md) | [Access Here]() |
@@ -25,6 +25,68 @@
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ background-color: #f8f8f8; }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ef2929; } /* Alert */
code span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #c4a000; } /* Attribute */
code span.bn { color: #0000cf; } /* BaseN */
code span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4e9a06; } /* Char */
code span.cn { color: #000000; } /* Constant */
code span.co { color: #8f5902; font-style: italic; } /* Comment */
code span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */
code span.dt { color: #204a87; } /* DataType */
code span.dv { color: #0000cf; } /* DecVal */
code span.er { color: #a40000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #0000cf; } /* Float */
code span.fu { color: #000000; } /* Function */
code span.im { } /* Import */
code span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #204a87; font-weight: bold; } /* Keyword */
code span.op { color: #ce5c00; font-weight: bold; } /* Operator */
code span.ot { color: #8f5902; } /* Other */
code span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */
code span.sc { color: #000000; } /* SpecialChar */
code span.ss { color: #4e9a06; } /* SpecialString */
code span.st { color: #4e9a06; } /* String */
code span.va { color: #000000; } /* Variable */
code span.vs { color: #4e9a06; } /* VerbatimString */
code span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */
</style>
<link rel="stylesheet" href="https://github.coventry.ac.uk/pages/ab6459/reveal.js/dist/theme/coventry.css" id="theme">
<script src="https://kit.fontawesome.com/92b30beff7.js" crossorigin="anonymous"></script>
@@ -34,7 +96,7 @@
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAQAAAAnZu5uAAAACXBIWXMAAAsTAAALEwEAmpwYAAAE/WlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDg4LCAyMDIwLzA3LzEwLTIyOjA2OjUzICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIwLTEyLTAyVDEyOjE1OjUxWiIgeG1wOk1vZGlmeURhdGU9IjIwMjAtMTItMDJUMTI6MzQ6NTNaIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTEyLTAyVDEyOjM0OjUzWiIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjEiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJEb3QgR2FpbiAyMCUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzRiMWZkNmQtZWNmOC0wNDRmLWJiOGMtN2JjMDBlZDFlNmRkIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjc0YjFmZDZkLWVjZjgtMDQ0Zi1iYjhjLTdiYzAwZWQxZTZkZCIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjc0YjFmZDZkLWVjZjgtMDQ0Zi1iYjhjLTdiYzAwZWQxZTZkZCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NzRiMWZkNmQtZWNmOC0wNDRmLWJiOGMtN2JjMDBlZDFlNmRkIiBzdEV2dDp3aGVuPSIyMDIwLTEyLTAyVDEyOjE1OjUxWiIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKFdpbmRvd3MpIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PreZUd0AAAAQSURBVAiZY/zPAANMDMQzATcUAQlC6ztoAAAAAElFTkSuQmCC" />
</span>
<span class="title">
4061CEM: Programming and Algorithms 1
5062CEM: Programming and Algorithms 2
</span>
</div>
</header>
@@ -58,8 +120,8 @@
</ul></li>
</ul>
</section>
<section id="sub-section" class="slide level2">
<h2>Sub-Section</h2>
<section id="level-two-and-three-headings" class="slide level2">
<h2>Level Two and Three Headings</h2>
<ul>
<li>Some Content
<ul>
@@ -73,12 +135,39 @@
<li>Some More Content</li>
</ul></li>
</ul>
</section>
<section id="columns" class="slide level2">
<h2>Columns</h2>
<div class="columns">
<div class="column" style="width:50%;">
<ul>
<li>Column A</li>
</ul>
</div><div class="column" style="width:50%;">
<ul>
<li>Column B</li>
</ul>
</div>
</div>
</section>
<section id="code-using-codebraid" class="slide level2">
<h2>Code using CodeBraid</h2>
<div class="sourceCode" id="cb1"
data-include_file="master_files/lectures/code/1a_Example.py"
data-include_lines="1-3" data-line_numbers="false"><pre
class="sourceCode python cb-code"><code class="sourceCode python"></code></pre></div>
<div class="sourceCode output">
<div class="sourceCode" id="cb2"
data-include_file="master_files/lectures/code/1a_Example.py"
data-include_lines="1-4" data-line_numbers="false"><pre
class="sourceCode python cb-run"><code class="sourceCode python"></code></pre></div>
</div>
</section></section>
<section id="goodbye" class="title-slide slide level1">
<h1>Goodbye</h1>
<ul>
<li>Dr Ian Cornelius, <a href="mailto:ab6459@coventry.ac.uk"
class="email">ab6459@coventry.ac.uk</a></li>
<li>Dr Ian Cornelius, <a
href="mailto:ab6459@coventry.ac.uk">ab6459@coventry.ac.uk</a></li>
</ul>
</section>
</div>
Binary file not shown.
@@ -0,0 +1,13 @@
Get-ChildItem .\master_files\labs -Recurse -filter "*.md" | foreach {
$name = [System.IO.Path]::GetFileNameWithoutExtension($_.Name)
$fullName = $_.FullName
Copy-Item $fullName .\docs\labs\html\$name.md
# pandoc.exe `
# -f markdown `
# --to html5 `
# --template=https://github.coventry.ac.uk/pages/ab6459/reveal.js/dist/templates/lab_template.html `
# -B https://github.coventry.ac.uk/pages/ab6459/reveal.js/headers/lab/4061cem.html `
# -A .\master_files\labs\checklists\$name.html `
# -o .\docs\labs\html\$name.html `
# $fullName
}

0 comments on commit 929f2a7

Please sign in to comment.