Skip to content

Commit

Permalink
add lecture files w/template
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Aug 20, 2024
1 parent 5082514 commit b21528c
Show file tree
Hide file tree
Showing 14 changed files with 414 additions and 6 deletions.
43 changes: 37 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# in the templates via {{ site.myvariable }}.

# TODO(setup): Typically the course number, "DEPT XXX". it appears on nearly every page. Keep it short. :)
title: Berkeley Class Site
title: A Berkeley Course
# TODO:(setup): This should be the extended title of your course. e.g. "Introduction to Data Science"
tagline: A Jekyll template for course websites
description: A modern, highly customizable, responsive Jekyll template for course websites
Expand All @@ -38,6 +38,8 @@ gradescope_course_id: 123456 # you can find this in the Gradescope URL after /co
bcourses_course_id: 123456 # Same as above, but for bCourses. Leave blank if not in use...
ed_course_id: 123456 # Again, same as above.
sememster: spYY | suYY | faYY # set for the current seemester
#
course_logo_path:
# This should be one of eecs, dsus, stat
# (Future) This will control some footer text, and later custom styling.
course_department: dsus
Expand All @@ -53,20 +55,29 @@ aux_links:
- 'https://edstem.org'
OH Queue:
- 'https://oh.c88c.org'
Berkeley Class Site on GitHub:
View Template on GitHub:
- 'https://github.com/berkeley-eecs/berkeley-class-site'

# TODO(template): These need to be documented
# TODO(semester): You may want to review these...
berkeley_theme_options:
show_logo_in_sidebar: true

# Collections for website data
collections:
staffers:
sort_by: name
modules:
schedules:
calendars:
output: false
announcements:
labs:
output: true
permalink: /:collection/:path/
lectures:
output: true
sort_by: number # Date could work...
permalink: /lectures/:path/
hw:
output: true
permalink: /:collection/:path/
Expand Down Expand Up @@ -109,19 +120,39 @@ defaults:
layout: module
- scope:
path: ''
type: schedules
type: calendars
values:
layout: schedule
layout: calendar
- scope:
path: ''
type: announcements
values:
layout: announcement


######################################################################
# Just the Docs / Berkeley Class Site Common Config
# Options below here will likely not need to be configured..
######################################################################
# TODO(template): We should clean these up + standardize...
# TODO(setup): You may want to add additional
callouts_level: quiet # or loud
callouts:
highlight:
color: yellow
important:
title: Important
color: blue
new:
title: New
color: green
note:
title: Note
color: purple
warning:
title: Warning
color: red

# TODO(template): CSS compilations. Handle warnings...
sass:
style: expanded
Expand Down Expand Up @@ -190,6 +221,6 @@ exclude:
- README.md
- CONTRIBUTING.md
- tmp/
- script/
- spec/
- docs/
- node_modules/
12 changes: 12 additions & 0 deletions _includes/questions/another_question.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def another_question(a, b, c):
"""
>>> another_question(1, 2, 3)
6
>>> another_question(0, 0, 0)
0
>>> another_question(3, 0, 0)
3
"""
# BEGIN SOLUTION
return a + b + c
# END SOLUTION
61 changes: 61 additions & 0 deletions _layouts/lecture.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
layout: default
nav_exclude: true
---

<div class="lecture">
<h1 class="title">Lecture {{page.number}} - {{page.title}}</h1>
{% if page.presented_by or page.date %}
<div class="subhead mb-3">
Presented
{% if page.presented_by %}
by {{ page.presented_by }}
{% endif %}
{% if page.date %}
on {{ page.date | date_to_long_string: "ordinal", "US" }}
{% endif %}
</div>
{% endif %}

{% if page.recording %}
<span class="fs-5 m-1">
<a href="{{ page.recording }}" target="_blank" class="btn btn-blue">
<i class="fa-solid fa-video" aria-hidden="true"></i>
View Recording
</a>
</span>
{% endif %}

<section>
<h2>Materials</h2>
<ul>
{% if page.files.slides %}
<li><a href="{{ page.files.slides }}" target="_blank">Slides</a></li>
{% endif %}
{% if page.files.pdf_slides %}
<li><a href="{{ page.files.pdf_slides }}" target="_blank">Slides (PDF)</a></li>
{% endif %}
{% if page.files.notes %}
<li><a href="{{ page.files.notes }}" target="_blank">Notes</a></li>
{% endif %}
{% if page.files.code %}
<li><a href="{{ page.files.code }}">Code</a></li>
{% endif %}
{% if page.files.code_html %}
<li><a href="{{ page.files.code_html }}">Code (HTML)</a></li>
{% endif %}
{% if page.files.jupyter_notebook %}
<li><a href="{{ page.files.jupyter_notebook }}" target="_blank">Jupyter Notebook</a></li>
{% endif %}
{% if page.files.additional_files %}
{% for item in page.files.additional_files %}
{% if item.name and item.link %}
<li><a href="{{ item.link }}" target="{{ item.target }}">{{ item.name }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
</section>

{{ content }}
</div>
32 changes: 32 additions & 0 deletions _lectures/01.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
layout: lecture
published: true
number: 1
date: 2023-8-28
presented_by: Lisa Yan
title: Introduction, Data Engineering Lifecycle
files:
slides: https://example.com
pdf_slides: https://example.com
code: https://example.com
code_html: https://example.com
notebook: https://example.com
notes: https://example.com
additional_files:
- name: A link
link: https://example.com
target: #or leave empty
recording: https://youtube.com
---


Presented by Lisa Yan

Content by many dedicated Data 100 instructors at UC Berkeley. See our [Acknowledgments](../../acks) page.

<!--
- [slides](https://docs.google.com/presentation/d/1TLtHG8ONBzY20LQBwfrztAW-Y_L8TnfQurwXRd8L6iQ/edit?usp=sharing){:target="_blank"}
- [code](http://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec01%2Flec01.ipynb){:target="_blank"}
- [code HTML](../../resources/assets/lectures/lec01/lec01.html)
- [recording](https://bcourses.berkeley.edu/courses/1525605/pages/lecture-1-course-overview)
-->
29 changes: 29 additions & 0 deletions _lectures/02.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: lecture
published: true
number: 2
# date:
presented_by:
title: Lecture 2 – Pandas, Part I
files:
slides:
pdf_slides:
code:
code_html:
notebook:
notes:
recording:
---

# Lecture 2 – Pandas, Part I

Presented by Bella Crouch

Content by many dedicated Data 100 instructors at UC Berkeley. See our [Acknowledgments](../../acks) page.

- [slides](https://docs.google.com/presentation/d/1Tqid2IqCYiOVqacYWxMbqZ-8vLMPpbo95PpaI-4gmxo/edit?usp=sharing){:target="_blank"}
- [code](https://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec02%2Flec02.ipynb){:target="_blank"}
- [code HTML](../../resources/assets/lectures/lec02/lec02.html)
- [code (Data 8)](https://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec02%2Fdata8_translation_examples.ipynb){:target="_blank"}
- [code HTML (Data 8)](../../resources/assets/lectures/lec02/data8_translation_examples.html)
- [recording](https://bcourses.berkeley.edu/courses/1525605/pages/lecture-2-pandas-part-i)
27 changes: 27 additions & 0 deletions _lectures/03.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: lecture
published: true
number: 3
# date:
presented_by:
title: Lecture 3 – Pandas, Part II
files:
slides:
pdf_slides:
code:
code_html:
notebook:
notes:
recording:
---

# Lecture 3 – Pandas, Part II

Presented by Bella Crouch

Content by many dedicated Data 100 instructors at UC Berkeley. See our [Acknowledgments](../../acks) page.

- [slides](https://docs.google.com/presentation/d/1oPuS6m1ihO7-cADfhodrEglxzKQOmYZE8i-PRxIAB3g/edit?usp=sharing){:target="_blank"}
- [code](https://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec03%2Flec03.ipynb){:target="_blank"}
- [code HTML](../../resources/assets/lectures/lec03/lec03.html)
- [recording](https://bcourses.berkeley.edu/courses/1525605/pages/lecture-3-pandas-ii)
27 changes: 27 additions & 0 deletions _lectures/04.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: lecture
published: true
number: 4
# date:
presented_by:
title: Lecture 4 – Pandas, Part III and EDA, Part I
files:
slides:
pdf_slides:
code:
code_html:
notebook:
notes:
recording:
---

# Lecture 4 – Pandas, Part III and EDA, Part I

Presented by Dominic Liu

Content by many dedicated Data 100 instructors at UC Berkeley. See our [Acknowledgments](../../acks) page.

- [slides](https://docs.google.com/presentation/d/1C_RIOOQfPZ0C6wU4L2jx__5J93ijD8gcv_-arg1hyH8/edit?usp=sharing){:target="_blank"}
- [Pandas Demo](https://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec04%2Flec04-pandas-iii.ipynb){:target="_blank"} ([HTML](../../resources/assets/lectures/lec04/lec04-pandas-iii.html){:target="_blank"})
- [EDA Demo](https://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec04%2Flec04-eda.ipynb){:target="_blank"} ([HTML](../../resources/assets/lectures/lec04/lec04-eda.html){:target="_blank"})
- [recording](https://bcourses.berkeley.edu/courses/1525605/pages/lecture-4-pandas-iii-eda-i)
27 changes: 27 additions & 0 deletions _lectures/05.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: lecture
published: true
number: 5
# date:
presented_by:
title: Lecture 5 – EDA II
files:
slides:
pdf_slides:
code:
code_html:
notebook:
notes:
recording:
---

# Lecture 5 – EDA II

Presented by Dominic Liu

Content by many dedicated Data 100 instructors at UC Berkeley. See our [Acknowledgments](../../acks) page.

- [slides](https://docs.google.com/presentation/d/1McjwCGWWXYsBi4r9V5en-aT2EJGXTh-pSmsJZ0UPw1E/edit?usp=sharing){:target="_blank"}
- [code](https://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec05%2Flec05-eda.ipynb){:target="_blank"}
- [code HTML](../../resources/assets/lectures/lec05/lec05-eda.html)
- [recording](https://bcourses.berkeley.edu/courses/1525605/pages/lecture-5-eda-ii)
29 changes: 29 additions & 0 deletions _lectures/06.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: lecture
published: true
number: 6
# date:
presented_by:
title: Lecture 6 – Text Wrangling and Regex
files:
slides:
pdf_slides:
code:
code_html:
notebook:
notes:
recording:
---

# Lecture 6 – Text Wrangling and Regex

Presented by Bella Crouch

Content by many dedicated Data 100 instructors at UC Berkeley. See our [Acknowledgments](../../acks) page.

- [slides](https://docs.google.com/presentation/d/1puT_wpKPJ3N1wOrS81lbVikwQf7-LtSXIdMv6cqOK3g/edit?usp=sharing){:target="_blank"}
- [code](https://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec06%2Flec06.ipynb){:target="_blank"}
- [code HTML](../../resources/assets/lectures/lec06/lec06.html)
- [recording](https://bcourses.berkeley.edu/courses/1525605/pages/lecture-6-text-wrangling-regex)
- The screen is blank for the first 15 minutes of the recording, please follow along with the slides. Sorry for any inconvenience.
- You can also watch the last 12 minutes of the Data 100 (Spring 2023) Lecture 5 [recording](https://www.youtube.com/watch?v=yE09RfMBCpo).
27 changes: 27 additions & 0 deletions _lectures/07.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: lecture
published: true
number: 7
# date:
presented_by:
title: Lecture 7 – Visualization
files:
slides:
pdf_slides:
code:
code_html:
notebook:
notes:
recording:
---

# Lecture 7 – Visualization

Presented by Bella Crouch

Content by many dedicated Data 100 instructors at UC Berkeley. See our [Acknowledgments](../../acks) page.

- [slides](https://docs.google.com/presentation/d/1Zmc_kokOIicNjxohASH0ulCJ2kW3s7MM4o_ja9j0Uxc/edit?usp=sharing){:target="_blank"}
- [code](https://data100.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.luolix.top%2FDS-100%2Fsu23-materials&branch=main&urlpath=lab%2Ftree%2Fsu23-materials%2Flec%2Flec07%2Flec07.ipynb){:target="_blank"}
- [code HTML](../../resources/assets/lectures/lec07/lec07.html)
- [recording](https://bcourses.berkeley.edu/courses/1525605/pages/lecture-7-visualization)
Loading

0 comments on commit b21528c

Please sign in to comment.