-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
161 lines (131 loc) · 3.82 KB
/
index.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---
title: "Title"
subtitle: "Subtitle"
date: now
date-format: "D. MMMM YYYY"
format:
revealjs:
multiplex: true
header: Header Text
slide-number: true
chalkboard:
buttons: false
preview-links: auto
logo: images/hsh.svg
css: styles.css
footer: Author Name
theme: serif
template-partials:
- title-slide.html
include-in-header:
- text: |
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js""></script>
<script type="text/javascript">
$(document).ready(function() {
$('body').prepend('<div class=\"zoomDiv\"><img src=\"\" class=\"zoomImg\"></div>');
// onClick function for all plots (img's)
$('img:not(.zoomImg)').click(function() {
$('.zoomImg').attr('src', $(this).attr('src')).css({width: '100%'});
$('.zoomDiv').css({opacity: '1', width: 'auto', border: '1px solid white', borderRadius: '5px', position: 'fixed', top: '50%', left: '50%', marginRight: '-50%', transform: 'translate(-50%, -50%)', boxShadow: '0px 0px 50px #888888', zIndex: '50', overflow: 'auto', maxHeight: '100%'});
});
// onClick function for zoomImg
$('img.zoomImg').click(function() {
$('.zoomDiv').css({opacity: '0', width: '0%'});
});
});
</script>
revealjs-plugins:
- attribution
resources:
- demo.pdf
filters:
- reveal-header
---
# First Slide
- 1: Write code that works on your machine
- 2: Break everything on someone else’s machine
- 3: Blame the compiler.
## You can change the header
::: header
Tabs vs. Spaces: The Eternal Battle
:::
::: {.columns}
::: {.column width="50%"}
Left Column: Where all the good code lives.
// TODO: Refactor this mess later.
:::
::: {.column width="50%"}
Right Column: Definitely not full of commented-out hacks.
/* If you're reading this, no you’re not. */
:::
:::
::: notes
Hidden from the viewer, but shown in speaker-view (press 's' to open)
:::
## Automatic incremental slides
::: {.incremental}
- Press `Space` to see the next point
- Press `Space` again to see the next point
- Good job!
:::
## Manual incremental slides
Is there anything else on this slide?
::: {.fragment}
Yes there is! <br>
:o
:::
::: {.fragment}
Surprised?
:::
## Code with highlighted lines {auto-animate="true" visibility="uncounted"}
```prisma {code-line-numbers="4-5,8-10"}
model Module {
id Int @id @default(autoincrement())
credits Int
degreeProgram DegreeProgram @relation(fields: [degreeProgramId], references: [id])
degreeProgramId Int
...
model DegreeProgram {
id Int @id @default(autoincrement())
modules Module[]
...
```
## Growing / animated code {auto-animate="true"}
```ts {code-line-numbers="3|4-6|1-2"}
@ApiTags('Degrees')
@Controller('degrees')
export class DegreeController {
constructor(
private degreeService: DegreeService
) {}
```
## Growing / animated code {auto-animate="true" visibility="uncounted"}
```ts {code-line-numbers="8-10"}
@ApiTags('Degrees')
@Controller('degrees')
export class DegreeController {
constructor(
private degreeService: DegreeService
) {}
@Get(':id')
findOne(@Param('id') id: string, @Req() request: Request): Promise<any> {
}
}
```
## Tables
<br>
| | Bootstrap | PrimeNG |
|------------------|--------|--------|
| Weekly Downloads | 424,283 | 355,443 |
| ... | ... | ... |
| Component count | ~25 | ~100 |
## Mermaid Diagrams
```{mermaid}
pie title When you forget someones name
"Wait until someone else says the name" : 80
"Guess their name wrong" : 15
"Guess their name right" : 4
"Ask for the name" : 1
```
## Uncounted slide {visibility="uncounted"}
![](images/screenshot.jpg)