Skip to content

Commit

Permalink
fa24
Browse files Browse the repository at this point in the history
  • Loading branch information
malavikhasudarshan committed Aug 17, 2024
0 parents commit 06a09c9
Show file tree
Hide file tree
Showing 360 changed files with 471,117 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**/.DS_Store
**/*.ipynb_checkpoints/
_site/*
_staffers/sheets_parser.json
.DS_Store
.*.swp
.*.swo
DS_Store
.bundle
Gemfile.lock
_site/
*~
*.gem

.bundle/
.jekyll-cache/
.jekyll-metadata
.sass-cache/

node_modules/
vendor/
!assets/vendor/
tmp/
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-f documentation -f documentation --out tmp/rspec_output.txt -f json --out tmp/rspec_output.json -f html --out tmp/rspec_output.html
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require:
- rubocop-rspec
- rubocop-capybara

AllCops:
NewCops: enable
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.0
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.3.0
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
source 'https://rubygems.org'
# frozen_string_literal: true

gem 'jekyll'
gem 'github-pages', group: :jekyll_plugins
gem 'webrick'

group :jekyll_plugins do
gem 'jekyll-sitemap'
gem 'just-the-docs'
end
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Kevin Lin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Data 100 Fall 2024 Website
186 changes: 186 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole site, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing these this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.github_repo }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

title: Data 100
description: Principles and Techniques of Data Science
author: Joseph E. Gonzalez, Narges Norouzi
baseurl: '/fa24-testing' # the subpath of your site, e.g. /blog
url: 'https://ds100.org' # the base hostname & protocol for your site, e.g. http://example.com
logo: 'resources/assets/favicon/panda-logo.png'

# Theme settings
remote_theme: just-the-docs/[email protected]
color_scheme: light
search_enabled: true
permalink: pretty


# External navigation links
nav_external_links:
# - title: Course Notes
# url: https://ds100.org/course-notes/
# hide_icon: true
- title: Course FAQ
url: https://ds100.org/faqs/fa24/
hide_icon: true

footer: >-
Powered by <a href="https://github.com/kevinlin1/just-the-class">Just the Class</a>
heading_anchors: false

color_scheme: wider

# Collections for website data
collections:
- modules
- announcements
- staffers
# Default layouts for each collection type
defaults:
- scope:
path: ''
type: modules
values:
layout: module
- scope:
path: ''
type: announcements
values:
layout: announcement
- scope:
path: ''
type: staffers
values:
layout: staffer

callouts:
highlight:
color: yellow
important:
title: Important
color: blue
new:
title: New
color: green
note:
title: Note
color: purple
warning:
title: Warning
color: red

# Course variables
# Course variables can appear in various places around the website, if something isn't used leave it blank.
# TODO(setup): Set all of these course variables
# course: DATA 100
# course_email: data100.instructors
# gradescope_course_id: 123456 # you can find this in the Gradescope URL after /courses
# 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
# This should be one of eecs, dsus, stat
# (Future) This will control some footer text, and later custom styling.
course_department: dsus
# This should be the page of all class archives
# Typically just / for DS courses (with a visible index page), or /archives if you're hosting your own, or a link to the inst.eecs page
# If you have no archive page, comment this line out or leave blank.
class_archive_path: /

# # TODO(setup): Set these auxiliary links as you wish - they show up on the top right
# aux_links:
# # TODO(template): Move this to be built-in.
# Ed:
# - 'https://edstem.org'
# OH Queue:
# - 'https://oh.c88c.org'
# Berkeley Class Site on GitHub:
# - 'https://github.com/berkeley-eecs/berkeley-class-site'

######################################################################
# Just the Docs / Berkeley Class Site Common Config
# Options below here will likely not need to be configured..
######################################################################
# TODO(template): CSS compilations. Handle warnings...
# sass:
# style: compressed
# sass_dir: _sass
# sourcemap: always
# quiet_deps: true
# verbose: false

# The sitemap **must** be enabled. It's published as /baseurl/sitemap.xml
plugins:
- jekyll-sitemap
- jekyll-seo-tag
- jekyll-github-metadata
- jekyll-include-cache

# # Theme settings
# theme: just-the-docs
# search_enabled: true
# heading_anchors: true
# permalink: pretty

## Footer Content.
# You should probably not change these, but may add to footer_content if necessary.
# Replace `true` with any additional HTML that you would like to add.
# Footer *must* included the accessibility text defined in footer_custom.html
footer_content: true
back_to_top: true
back_to_top_text: "Back to Top"
last_edit_timestamp: true
last_edit_time_format: '%m %d, %Y at %H:%M'

# Compilation settings used by compress-html plugin:
# https://github.com/penibelst/jekyll-compress-html/tree/v3.2.0?tab=readme-ov-file
# compress_html:
# clippings: all
# comments: all
# endings: all
# startings: []
# blanklines: false
# profile: false

# Native Jeykll build options
# You likely shouldn't need to touch these, but they are documented here just in case.
# https://jekyllrb.com/docs/configuration/options/

# This makes it easier when pushing to a static directory.
# The default false removes files in that directory, which is useful for when you unpublish pages.
# keep_files: false

# Likely not necessary, but a google default for Berkeley
timezone: America/Los_Angeles

# Note: dotfiles are excluded by default. .htaccess is included as a common case.
include:
- LICENSE
- .htaccess
- robots.txt

exclude:
- .sass-cache/
- .jekyll-cache/
- gemfiles/
- Gemfile
- Gemfile.lock
- vendor/
- README.md
- CONTRIBUTING.md
- tmp/
- spec/
- docs/
- node_modules/
20 changes: 20 additions & 0 deletions _includes/minutes.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% capture _minutes_workspace %}
{% comment %}
Return the number of minutes between midnight and the given time string (e.g. '9:30 AM').
Parameters:
`time` (string): the time to convert.
{% endcomment %}

{% assign _time = include.time %}
{% assign _hhmm = _time | split: ' ' | first | split: ':' %}
{% assign _hours = _hhmm | first | to_integer %}
{% assign _minutes = _hhmm | last | to_integer %}
{% assign _ampm = _time | split: ' ' | last | upcase %}

{% if _ampm == 'AM' and _hours == 12 %}
{% assign _hours = _hours | minus: 12 %}
{% elsif _ampm == 'PM' and _hours != 12 %}
{% assign _hours = _hours | plus: 12 %}
{% endif %}
{% endcapture %}{% assign _minutes_workspace = '' %}{{ _hours | times: 60 | plus: _minutes }}
4 changes: 4 additions & 0 deletions _layouts/module.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h2 class="fs-4" id="{{ page.title | slugify }}" >{{ page.title }}</h2>
<div class="module">
{{ content }}
</div>
34 changes: 34 additions & 0 deletions _layouts/schedule.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% assign start_time = page.timeline | first %}
{% capture offset %}{% include minutes.liquid time=start_time %}{% endcapture %}
<div class="schedule">
<ul class="schedule-timeline" style="min-width: {{ page.schedule | size | times: 120 }}px">
{% for time in page.timeline %}
<li class="schedule-time">{{ time }} </li>
{% endfor %}
</ul>
<ul class="schedule-group">
{% for day in page.schedule %}
<li class="schedule-day">
<h2 class="schedule-header">{{ day.name }}</h2>
{% if day.events %}
<ul class="schedule-events" style="height: {{ page.timeline | size | times: 40 }}px">
{% for event in day.events %}
{% capture start %}{% include minutes.liquid time=event.start %}{% endcapture %}
{% capture end %}{% include minutes.liquid time=event.end %}{% endcapture %}
{% assign top = start | minus: offset | times: 40 | divided_by: 30 %}
{% assign height = end | minus: start | times: 40 | divided_by: 30 %}
<li class="schedule-event {% if event.class %}{{ event.class }}{% else %}{{ event.name | slugify }}{% endif %}"
style="top: {{ top }}px; height: {{ height }}px;">
<div class="name">{{ event.name }}</div>
<div class="time">{{ event.start }}–{{ event.end }}</div>
{% if event.location %}
<div class="location">{{ event.location }}</div>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
37 changes: 37 additions & 0 deletions _layouts/staffer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<div class="staffer">
{% if page.photo %}
<img class="staffer-image" src="{{ page.photo }}" alt="{{ page.name }}">
{% endif %}
<div>
{% if page.team %}
<span class="team label-{{ page.team }}">{{ page.team }}</span>
{% endif %}
<h3 class="staffer-name">
{% if page.website %}
<a href="{{ page.website }}" target="_blank">{{ page.name }}</a>
{% else %}
{{ page.name }}
{% endif %}
{% if page.pronouns %}
<p class="staffer-pronouns"><b>{{ page.pronouns }}</b></p>
{% endif %}
</h3>
{% if page.email %}
<p><a href="mailto:{{ page.email }}">{{ page.email }}</a></p>
{% endif %}

{% if page.discussion %}
<p><b>Disc(s):</b> {{ page.discussion }}</p>
{% endif %}

{% if page.lab %}
<p><b>Lab(s):</b> {{ page.lab }}</p>
{% endif %}

{% if page.oh %}
<p><b>Office Hours:</b> {{ page.oh }}</p>
{% endif %}

{{ content }}
</div>
</div>
13 changes: 13 additions & 0 deletions _modules/week-01.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Week 1
---

Aug 29
: **Lecture 1**{: .label .label-lecture } Introduction
: ([*Sp24 Note*](https://ds100.org/course-notes/intro_lec/introduction.html) - to be updated)
: **Lecture Participation 1**{: .label .label-survey } Lecture Participation 1


Aug 30
: **Lab 1**{: .label .label-lab } Prerequisite Coding (due Sep 3)
: **Homework 1**{: .label .label-hw } Prerequisite Math (due Sep 5)
17 changes: 17 additions & 0 deletions _modules/week-02.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Week 2
---


Sep 3
: **Lecture 2**{: .label .label-lecture} Pandas I
: **Discussion 1**{: .label .label-disc } Prerequisites


Sep 5
: **Lecture 3**{: .label .label-lecture } Pandas II


Sep 6
: **Lab 2A**{: .label .label-lab } Pandas (due Sep 10)
: **Homework 2A**{: .label .label-hw } Food Safety (due Sep 12)
Loading

0 comments on commit 06a09c9

Please sign in to comment.