-
Notifications
You must be signed in to change notification settings - Fork 0
/
presentation_v0.1.1.html
143 lines (118 loc) · 5.01 KB
/
presentation_v0.1.1.html
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
---
layout: presentation_v0.1.1
---
<section>
<section data-ticker='{"visibility": "visible", "tickertext": "foobar" }'>
<h1>Slide 3</h1>
</section>
<section data-ticker='{"visibility": "visible"}'>
<h1>Slide 4</h1>
</section>
<section data-ticker='{"visibility": "foo"}'>
<h1>Slide 5</h1>
</section>
<section data-ticker='{"visibility": "visible"}' data-lower-third='{"visibility": "expanded", "layout": "one-line", "content": {"line1": "Foobar"}}'>
<h1>Slide 6</h1>
</section>
<section data-lower-third='{"visibility": "expanded", "layout": "two-line", "content": {"line1": "Foo", "line2": "Bar"}}'>
<h1>Slide 7</h1>
</section>
</section>
<section>
<section data-lower-third='{"visibility": "collapsed", "layout": "two-line", "content": {"line1": "Title", "line2": "Subtitle"}}'>
<h2>Example Code</h2>
<pre class="r-stretch r-fit-text"><code data-trim data-noescape>
# Load the project.json file as a JSON object from the specified or default directory
$projectJsonPath = Join-Path -Path $DirectoryPath -ChildPath "project.json"
$projectJson = Get-Content $projectJsonPath -Raw | ConvertFrom-Json
# Retrieve the latest commit message from the git log
$commitMessage = (cd $DirectoryPath && git log --format=%B -n 1) -join " "
# Increment the Semantic Version based on the latest commit message
$incrementedVersion = Increment-SemVer -semVerString $projectJson.projectVersion -commitMessage $commitMessage
# Update the projectVersion in the JSON object
$projectJson.projectVersion = $incrementedVersion
# Convert the JSON object back to a JSON formatted string and save it to the project.json file in the specified or default directory
$projectJson | ConvertTo-Json -Depth 99 | Set-Content $projectJsonPath
# Stage the modified project.json for commit, suppressing e.g. untracked file output
git add $projectJsonPath 2>$null
# Commit the version update to the repository with a message noting the new version number
git commit -m "Version bump in project.json to new version $incrementedVersion" --quiet
# Push the commit to the remote repository
# Uncomment if you really want this script to push
#git push</code></pre>
</section>
<section>
<h2>Python</h2>
<pre><code class="language-python">def greet(name):
return f"Hello, {name}!"
print(greet("World"))</code></pre>
</section>
<section>
<h2>VisualBasic</h2>
<pre><code class="language-vbnet">Public Function AddNumbers(a As Integer, b As Integer) As Integer
Return a + b
End Function</code></pre>
</section>
<section>
<h2>CSharp</h2>
<pre><code class="language-csharp">public class Calculator
{
public int AddNumbers(int a, int b)
{
return a + b;
}
}</code></pre>
</section>
<section>
<h2>PowerShell</h2>
<pre><code class="language-powershell">function Get-Greeting {
param([string]$Name)
"Hello, $Name!"
}
Get-Greeting -Name "World"</code></pre>
</section>
</section>
<section>
<section>
<wa-image-comparer>
<img slot="before"
src="https://images.unsplash.com/photo-1517331156700-3c241d2b4d83?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80&sat=-100&bri=-5"
alt="Grayscale version of kittens in a basket looking around." />
<img slot="after"
src="https://images.unsplash.com/photo-1517331156700-3c241d2b4d83?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
alt="Color version of kittens in a basket looking around." />
</wa-image-comparer>
</section>
<section>
<wa-carousel pagination navigation mouse-dragging loop>
<wa-carousel-item>
<img alt="The sun shines on the mountains and trees (by Adam Kool on Unsplash)"
src="https://images.unsplash.com/photo-1426604966848-d7adac402bff?q=10" />
</wa-carousel-item>
<wa-carousel-item>
<img alt="A river winding through an evergreen forest (by Luca Bravo on Unsplash)"
src="https://images.unsplash.com/photo-1473448912268-2022ce9509d8?q=10" />
</wa-carousel-item>
<wa-carousel-item>
<img alt="The sun is setting over a lavender field (by Leonard Cotte on Unsplash)"
src="https://images.unsplash.com/photo-1499002238440-d264edd596ec?q=10" />
</wa-carousel-item>
<wa-carousel-item>
<img alt="A field of grass with the sun setting in the background (by Sapan Patel on Unsplash)"
src="https://images.unsplash.com/photo-1475113548554-5a36f1f523d6?q=10" />
</wa-carousel-item>
<wa-carousel-item>
<img alt="A scenic view of a mountain with clouds rolling in (by V2osk on Unsplash)"
src="https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?q=10" />
</wa-carousel-item>
</wa-carousel>
</section>
</section>
<section>
<section data-background="#00ffff">
<h2>data-background: #00ffff</h2>
</section>
<section data-background="#bb00bb">
<h2>data-background: #bb00bb</h2>
</section>
</section>