shanep-class 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +43 -0
- data/_config.yml +28 -0
- data/_includes/alert.html +6 -0
- data/_includes/asciinema.html +5 -0
- data/_includes/course-sidebar.html +33 -0
- data/_includes/footer.html +25 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +5 -0
- data/_includes/semester-info.html +115 -0
- data/_includes/svg-image.html +7 -0
- data/_includes/syllabus-policies.html +235 -0
- data/_includes/toc.html +182 -0
- data/_includes/youtube.html +9 -0
- data/_layouts/course-notoc.html +13 -0
- data/_layouts/course.html +17 -0
- data/_layouts/default.html +16 -0
- data/_layouts/home.html +9 -0
- data/_layouts/lab.html +62 -0
- data/_layouts/project.html +25 -0
- data/_layouts/reading-zybooks.html +26 -0
- data/_sass/asciinema-player.scss +2563 -0
- data/_sass/highlight.scss +181 -0
- data/_sass/main.scss +246 -0
- data/_sass/normalize.scss +349 -0
- data/_sass/style.scss +279 -0
- data/assets/casts/.gitkeep +0 -0
- data/assets/css/main_new.scss +8 -0
- data/assets/images/.DS_Store +0 -0
- data/assets/images/construction.gif +0 -0
- data/assets/images/home_page.png +0 -0
- data/assets/js/asciinema-player.js +1210 -0
- data/assets/js/plugins.js +24 -0
- metadata +90 -0
data/_includes/toc.html
ADDED
@@ -0,0 +1,182 @@
|
|
1
|
+
{% capture tocWorkspace %}
|
2
|
+
{% comment %}
|
3
|
+
Copyright (c) 2017 Vladimir "allejo" Jimenez
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person
|
6
|
+
obtaining a copy of this software and associated documentation
|
7
|
+
files (the "Software"), to deal in the Software without
|
8
|
+
restriction, including without limitation the rights to use,
|
9
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the
|
11
|
+
Software is furnished to do so, subject to the following
|
12
|
+
conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
19
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
21
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
22
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
24
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
{% endcomment %}
|
26
|
+
{% comment %}
|
27
|
+
Version 1.1.0
|
28
|
+
https://github.com/allejo/jekyll-toc
|
29
|
+
|
30
|
+
"...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
|
31
|
+
|
32
|
+
Usage:
|
33
|
+
{% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
|
34
|
+
|
35
|
+
Parameters:
|
36
|
+
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
|
37
|
+
|
38
|
+
Optional Parameters:
|
39
|
+
* sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
|
40
|
+
* class (string) : '' - a CSS class assigned to the TOC
|
41
|
+
* id (string) : '' - an ID to assigned to the TOC
|
42
|
+
* h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
|
43
|
+
* h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
|
44
|
+
* ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
|
45
|
+
* item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
|
46
|
+
* submenu_class (string) : '' - add custom class(es) for each child group of headings; has support for '%level%' placeholder which is the current "submenu" heading level
|
47
|
+
* base_url (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
|
48
|
+
* anchor_class (string) : '' - add custom class(es) for each anchor element
|
49
|
+
* skip_no_ids (bool) : false - skip headers that do not have an `id` attribute
|
50
|
+
|
51
|
+
Output:
|
52
|
+
An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
|
53
|
+
generate the table of contents and will NOT output the markdown given to it
|
54
|
+
{% endcomment %}
|
55
|
+
|
56
|
+
{% capture newline %}
|
57
|
+
{% endcapture %}
|
58
|
+
{% assign newline = newline | rstrip %} <!-- Remove the extra spacing but preserve the newline -->
|
59
|
+
|
60
|
+
{% capture deprecation_warnings %}{% endcapture %}
|
61
|
+
|
62
|
+
{% if include.baseurl %}
|
63
|
+
{% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "baseurl" has been deprecated, use "base_url" instead -->{{ newline }}{% endcapture %}
|
64
|
+
{% endif %}
|
65
|
+
|
66
|
+
{% if include.skipNoIDs %}
|
67
|
+
{% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "skipNoIDs" has been deprecated, use "skip_no_ids" instead -->{{ newline }}{% endcapture %}
|
68
|
+
{% endif %}
|
69
|
+
|
70
|
+
{% capture jekyll_toc %}{% endcapture %}
|
71
|
+
{% assign orderedList = include.ordered | default: false %}
|
72
|
+
{% assign baseURL = include.base_url | default: include.baseurl | default: '' %}
|
73
|
+
{% assign skipNoIDs = include.skip_no_ids | default: include.skipNoIDs | default: false %}
|
74
|
+
{% assign minHeader = include.h_min | default: 1 %}
|
75
|
+
{% assign maxHeader = include.h_max | default: 6 %}
|
76
|
+
{% assign nodes = include.html | strip | split: '<h' %}
|
77
|
+
|
78
|
+
{% assign firstHeader = true %}
|
79
|
+
{% assign currLevel = 0 %}
|
80
|
+
{% assign lastLevel = 0 %}
|
81
|
+
|
82
|
+
{% capture listModifier %}{% if orderedList %}ol{% else %}ul{% endif %}{% endcapture %}
|
83
|
+
|
84
|
+
{% for node in nodes %}
|
85
|
+
{% if node == "" %}
|
86
|
+
{% continue %}
|
87
|
+
{% endif %}
|
88
|
+
|
89
|
+
{% assign currLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
|
90
|
+
|
91
|
+
{% if currLevel < minHeader or currLevel > maxHeader %}
|
92
|
+
{% continue %}
|
93
|
+
{% endif %}
|
94
|
+
|
95
|
+
{% assign _workspace = node | split: '</h' %}
|
96
|
+
|
97
|
+
{% assign _idWorkspace = _workspace[0] | split: 'id="' %}
|
98
|
+
{% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
|
99
|
+
{% assign htmlID = _idWorkspace[0] %}
|
100
|
+
|
101
|
+
{% assign _classWorkspace = _workspace[0] | split: 'class="' %}
|
102
|
+
{% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
|
103
|
+
{% assign htmlClass = _classWorkspace[0] %}
|
104
|
+
|
105
|
+
{% if htmlClass contains "no_toc" %}
|
106
|
+
{% continue %}
|
107
|
+
{% endif %}
|
108
|
+
|
109
|
+
{% if firstHeader %}
|
110
|
+
{% assign minHeader = currLevel %}
|
111
|
+
{% endif %}
|
112
|
+
|
113
|
+
{% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
|
114
|
+
{% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
|
115
|
+
|
116
|
+
{% if include.item_class and include.item_class != blank %}
|
117
|
+
{% capture listItemClass %} class="{{ include.item_class | replace: '%level%', currLevel | split: '.' | join: ' ' }}"{% endcapture %}
|
118
|
+
{% endif %}
|
119
|
+
|
120
|
+
{% if include.submenu_class and include.submenu_class != blank %}
|
121
|
+
{% assign subMenuLevel = currLevel | minus: 1 %}
|
122
|
+
{% capture subMenuClass %} class="{{ include.submenu_class | replace: '%level%', subMenuLevel | split: '.' | join: ' ' }}"{% endcapture %}
|
123
|
+
{% endif %}
|
124
|
+
|
125
|
+
{% capture anchorBody %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
|
126
|
+
|
127
|
+
{% if htmlID %}
|
128
|
+
{% capture anchorAttributes %} href="{% if baseURL %}{{ baseURL }}{% endif %}#{{ htmlID }}"{% endcapture %}
|
129
|
+
|
130
|
+
{% if include.anchor_class %}
|
131
|
+
{% capture anchorAttributes %}{{ anchorAttributes }} class="{{ include.anchor_class | split: '.' | join: ' ' }}"{% endcapture %}
|
132
|
+
{% endif %}
|
133
|
+
|
134
|
+
{% capture listItem %}<a{{ anchorAttributes }}>{{ anchorBody }}</a>{% endcapture %}
|
135
|
+
{% elsif skipNoIDs == true %}
|
136
|
+
{% continue %}
|
137
|
+
{% else %}
|
138
|
+
{% capture listItem %}{{ anchorBody }}{% endcapture %}
|
139
|
+
{% endif %}
|
140
|
+
|
141
|
+
{% if currLevel > lastLevel %}
|
142
|
+
{% capture jekyll_toc %}{{ jekyll_toc }}<{{ listModifier }}{{ subMenuClass }}>{% endcapture %}
|
143
|
+
{% elsif currLevel < lastLevel %}
|
144
|
+
{% assign repeatCount = lastLevel | minus: currLevel %}
|
145
|
+
|
146
|
+
{% for i in (1..repeatCount) %}
|
147
|
+
{% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
|
148
|
+
{% endfor %}
|
149
|
+
|
150
|
+
{% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
|
151
|
+
{% else %}
|
152
|
+
{% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
|
153
|
+
{% endif %}
|
154
|
+
|
155
|
+
{% capture jekyll_toc %}{{ jekyll_toc }}<li{{ listItemClass }}>{{ listItem }}{% endcapture %}
|
156
|
+
|
157
|
+
{% assign lastLevel = currLevel %}
|
158
|
+
{% assign firstHeader = false %}
|
159
|
+
{% endfor %}
|
160
|
+
|
161
|
+
{% assign repeatCount = minHeader | minus: 1 %}
|
162
|
+
{% assign repeatCount = lastLevel | minus: repeatCount %}
|
163
|
+
{% for i in (1..repeatCount) %}
|
164
|
+
{% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
|
165
|
+
{% endfor %}
|
166
|
+
|
167
|
+
{% if jekyll_toc != '' %}
|
168
|
+
{% assign rootAttributes = '' %}
|
169
|
+
{% if include.class and include.class != blank %}
|
170
|
+
{% capture rootAttributes %} class="{{ include.class | split: '.' | join: ' ' }}"{% endcapture %}
|
171
|
+
{% endif %}
|
172
|
+
|
173
|
+
{% if include.id and include.id != blank %}
|
174
|
+
{% capture rootAttributes %}{{ rootAttributes }} id="{{ include.id }}"{% endcapture %}
|
175
|
+
{% endif %}
|
176
|
+
|
177
|
+
{% if rootAttributes %}
|
178
|
+
{% assign nodes = jekyll_toc | split: '>' %}
|
179
|
+
{% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %}
|
180
|
+
{% endif %}
|
181
|
+
{% endif %}
|
182
|
+
{% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc }}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<div style="text-align: center;">
|
2
|
+
<iframe width="560" height="315"
|
3
|
+
src="{{ include.param }}"
|
4
|
+
title="YouTubevideo player"
|
5
|
+
frameborder="0"
|
6
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
|
7
|
+
|
8
|
+
</iframe>
|
9
|
+
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% include course-sidebar.html %}
|
6
|
+
|
7
|
+
<div id="main-content" class="post-content">
|
8
|
+
<article>
|
9
|
+
<h1>{{page.title}}</h1>
|
10
|
+
<div id="main-content" class="course-toc">
|
11
|
+
<span id="course-toc-title">table of contents</span>
|
12
|
+
{% include toc.html html=content %}
|
13
|
+
</div>
|
14
|
+
{{content}}
|
15
|
+
</article>
|
16
|
+
{% include footer.html %}
|
17
|
+
</div>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
{%- include head.html -%}
|
4
|
+
|
5
|
+
<body>
|
6
|
+
|
7
|
+
<div class="wrapper">
|
8
|
+
<div class="content" role="main">
|
9
|
+
<a class="skip-main" href="{{site.url}}{{page.url}}#main-content">Skip to main content</a>
|
10
|
+
{{content}}
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
<script src="{{site.url}}/assets/js/plugins.js"></script>
|
14
|
+
</body>
|
15
|
+
|
16
|
+
</html>
|
data/_layouts/home.html
ADDED
data/_layouts/lab.html
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
layout: course
|
3
|
+
---
|
4
|
+
|
5
|
+
<h2 id="overview">Overview</h2>
|
6
|
+
|
7
|
+
<p>
|
8
|
+
All of your Lab work will be submitted through Github Classroom. You are responsible for
|
9
|
+
ensuring all your code is properly pushed to Github! Any code not pushed to Github by the
|
10
|
+
deadline will not be accepted under any circumstances.The first step is to create a
|
11
|
+
<a href="https://github.com">GitHub</a> account if you don’t already have one.
|
12
|
+
</p>
|
13
|
+
|
14
|
+
<h2 id="accept-the-assignment">Accept the assignment</h2>
|
15
|
+
|
16
|
+
<ul>
|
17
|
+
<li><a href="{{site.data.semester-info.labs[page.slug]}}">Get the Starter Code</a></li>
|
18
|
+
<li>When you accept the assignment it is critical that you select your student email
|
19
|
+
address from the list. If you don’t select your student email address your instructor will not be
|
20
|
+
able to grade your code. If you can’t find your email in the list, contact your instructor ASAP to
|
21
|
+
get the issue resolved.
|
22
|
+
</li>
|
23
|
+
<li>
|
24
|
+
Make sure and save the github URL so you can find your assignment later if needed!
|
25
|
+
</li>
|
26
|
+
</ul>
|
27
|
+
|
28
|
+
{% include youtube.html param="https://www.youtube.com/embed/U1vCFZmtYUA" %}
|
29
|
+
|
30
|
+
<h2 id="clone-the=repository-using-vscode">Clone the repository using VSCode</h2>
|
31
|
+
|
32
|
+
<ul>
|
33
|
+
<li>
|
34
|
+
Once you have accepted your assignment you can launch VSCode to clone your repository and start
|
35
|
+
working on your assignment.
|
36
|
+
</li>
|
37
|
+
<li>
|
38
|
+
After the due date for the assignment passes your instructor will grade whatever code you
|
39
|
+
have committed and pushed to your repository.
|
40
|
+
</li>
|
41
|
+
</ul>
|
42
|
+
|
43
|
+
{% include youtube.html param="https://www.youtube.com/embed/fiPsHGi3Z_s" %}
|
44
|
+
|
45
|
+
|
46
|
+
<h2 id="submitting-your-finished-code-to-github">Submitting your finished code to Github</h2>
|
47
|
+
|
48
|
+
After you have completed the assignment you need to add, commit, and push your code to Github so
|
49
|
+
it can be graded. Any code that is not pushed by the due date will not be graded and can not be
|
50
|
+
submitted late.
|
51
|
+
|
52
|
+
{% include youtube.html param="https://www.youtube.com/embed/ersuzAUtTsY" %}
|
53
|
+
|
54
|
+
|
55
|
+
<h2 id="universal-grading-rubric">Universal Grading Rubric</h2>
|
56
|
+
|
57
|
+
<p>
|
58
|
+
All labs will be graded according to the <a href="{{site.url}}/docs/grading-rubric.html">
|
59
|
+
universal grading rubric</a>.
|
60
|
+
</p>
|
61
|
+
|
62
|
+
{{content}}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
layout: lab
|
3
|
+
---
|
4
|
+
|
5
|
+
<h2 id="project-information">Project information</h2>
|
6
|
+
|
7
|
+
<p>This is a multistage project consisting of the following lessons:</p>
|
8
|
+
|
9
|
+
<ul>
|
10
|
+
{% for lesson in page.lessons %}
|
11
|
+
<li><a href="{{lesson}}.html">{{lesson}}</a></li>
|
12
|
+
{% endfor %}
|
13
|
+
</ul>
|
14
|
+
|
15
|
+
<p>
|
16
|
+
At each checkpoint your code will be spot checked according to the list below. This is a
|
17
|
+
pass/fail checkpoint, no partial credit will be given.
|
18
|
+
</p>
|
19
|
+
|
20
|
+
<ul>
|
21
|
+
<li>Your code <strong>must</strong> compile!</li>
|
22
|
+
<li>You must have completed all tasks up to this point.</li>
|
23
|
+
</ul>
|
24
|
+
|
25
|
+
{{content}}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
layout: course
|
3
|
+
---
|
4
|
+
|
5
|
+
{{content}}
|
6
|
+
|
7
|
+
<h2 id="reading-assignment">Reading Assignment</h2>
|
8
|
+
|
9
|
+
<p>
|
10
|
+
You need to log into the textbook with the link below and complete the assigned challenge and
|
11
|
+
participation questions. After the due date has passed your instructor will download your
|
12
|
+
completed activities and calculate your grade. There is nothing you need to explicitly turn in
|
13
|
+
all your progress is saved automatically by the textbook.
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
Your grade will be calculated with the formula: <strong>%complete * 20 = grade</strong>. For
|
18
|
+
example, if you completed 80% of the assigned challenge and participation questions your grade
|
19
|
+
would be <strong>.8 * 20 = 16.</strong>
|
20
|
+
</p>
|
21
|
+
|
22
|
+
<ul>
|
23
|
+
<li><a href="{{site.data.semester-info-cs2.textbook}}?selectedPanel=assignments-panel">{{site.data.semester-info.reading[page.slug]}}</a></li>
|
24
|
+
<li><a href="https://zybooks.zendesk.com/hc/en-us/articles/360007538033-What-are-assignments-how-do-I-get-credit-for-them-and-how-do-I-submit-them-">Zybooks Help</a></li>
|
25
|
+
</ul>
|
26
|
+
|