Skip to content

Commit 7326e0e

Browse files
authored
Merge branch 'code-differently:main' into Lesson_04
2 parents 5ab3456 + 867b201 commit 7326e0e

39 files changed

+13348
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Lesson 06 Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- "lesson_06/expression/**"
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Use Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '20.x'
23+
24+
- name: Build Shared Lib with Node.js
25+
working-directory: ./lib/javascript/codedifferently-instructional
26+
run: npm ci
27+
28+
- name: Build Lesson 06 with Node.js
29+
working-directory: ./lesson_06/expression
30+
run: |
31+
npm ci
32+
npm run check
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Lesson 06 Quiz Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- "lesson_06/quiz/**"
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Use Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '20.x'
23+
24+
- name: Build Shared Lib with Node.js
25+
working-directory: ./lib/javascript/codedifferently-instructional
26+
run: npm ci
27+
28+
- name: Build Lesson 06 Quiz with Node.js
29+
working-directory: ./lesson_06/quiz
30+
run: |
31+
npm ci
32+
npm run check

.github/workflows/check_push.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- "lib/**"
99
- "lesson_02/quiz/**"
1010
- "lesson_03/quiz/**"
11+
- "lesson_06/quiz/**"
12+
- "lesson_06/expression/**"
1113
jobs:
1214
build:
1315
runs-on: ubuntu-latest
@@ -71,3 +73,16 @@ jobs:
7173
npm ci
7274
npm run compile
7375
npm run lint
76+
77+
- name: Build Lesson 06 Quiz with Node.js
78+
working-directory: ./lesson_06/quiz
79+
run: |
80+
npm ci
81+
npm run compile
82+
npm run lint
83+
84+
- name: Build Lesson 06 Expression with Node.js
85+
working-directory: ./lesson_06/expression
86+
run: |
87+
npm ci
88+
npm run compile

lesson_05/ezra5/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## User's Stories
2+
3+
# Matcha Café
4+
As a matcha enthusiast, I want a restaurant just like Crumbl Cookies but for Matcha. I want to craft my own matcha and try out different flavors recommended by other matcha enthusiasts.
5+
6+
# ChatGPT but for medical field
7+
As a healthcare provider, I want an AI that can help remind me the proper procedure of handling different situation and AI that analyzes sysmptoms for accurate diagnosis.
8+
9+
# AI as a personal assistant.
10+
I want AI to help me keep up with day to day tasks such as budgeting, planning schedule and setting reminders on things I need to do.

lesson_05/karenalabi/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
1. User Story 1: Fashion Designer
2+
As a fashion designer, I want to create a digital portfolio where clients can explore my latests designs, customize peices to fit their style, and place orders seamlessly so that I can showcase my creativity, attract high end clients, and transform my passion into a global brand.
3+
4+
5+
2. User Story 2: College Student and Business Owner
6+
As a college student and business owner, I want to develop a system that provides students in financial need with a quarterly paycheck based on their GPA and volunteer hours, so that they can recieve finacial assistance while staying motivated to excel academically and contribute to their community.
7+
8+
9+
3. User Story 3: Young Travelers Society
10+
As a travel enthusiast, I want to create a app that connects travelers by age range, budget, and interests, so that people can easily find compatible travel partners and book trips easily.

lesson_05/khaylasaunders/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# User Stories
2+
//comment: Template for this assignment was generated using chatgpt
3+
## Overview
4+
This document outlines three user stories for **Libby: Library App**, designed to increase accessibility by allowing users to interact with their local libraries directly from their devices.
5+
6+
## User Stories
7+
8+
### 1️st User Story: Retaining Access to Highlights in Returned Books
9+
**As a** student,
10+
**I want** to continue accessing the pages I highlighted in my returned digital books,
11+
**So that** I can reference key information even after returning the book.
12+
13+
**Acceptance Criteria:**
14+
- Users can save up to **30% of highlighted pages** from a returned book.
15+
- Before returning a book, a **confirmation prompt** will allow users to select which highlights they want to save.
16+
- Saved highlights will be stored in a **"Saved Highlights"** section in the app for future reference.
17+
18+
---
19+
20+
### 2️nd User Story: Signing Up for a New Library Card
21+
**As a** new Delaware resident,
22+
**I want** to apply for a new library card directly in the app,
23+
**So that** I can access my local library immediately without visiting in person.
24+
25+
**Acceptance Criteria:**
26+
- Users can fill out a **library card application** within the app.
27+
- The system verifies the user's **residency and eligibility** (e.g., by entering an address or scanning an ID).
28+
- Upon approval, users receive a **digital library card** that can be used instantly.
29+
30+
---
31+
32+
### 3️rd User Story: Borrowing Books from Regional Libraries
33+
**As a** local truck driver,
34+
**I want** access to multiple libraries within my region,
35+
**So that** I can borrow books from different collections while traveling.
36+
37+
**Acceptance Criteria:**
38+
- Users can request a **regional library loan** within the app.
39+
- The app displays **available partner libraries** and their collections.
40+
- Borrowed books from regional libraries follow the **same return policies** as local loans.
41+
42+
---
43+
44+
## Future Enhancements
45+
- **AI Recommendations:** Suggest books based on reading history.
46+

lesson_06/README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,36 @@ Please review the following resources before lecture:
88

99
## Homework
1010

11-
- TODO(anthonydmays): Add details
11+
- [ ] Complete the [Expression Calculator](#expression-calculator) exercise.
12+
- [ ] Read article entitled [3 Questions That Will Make You A Phenomenal Rubber Duck][article-link]
13+
- [ ] Do pre-work for [lesson 07](/lesson_07/).
14+
15+
### Expression Calculator
16+
17+
For this assignment, you will need to implement the functions and logic required to calculate a mathematical expression. After implementing the `add`, `divide`, and `multiply` functions, you will combine these functions to compute the final result.
18+
19+
1. Update the [.env.test][env-file] file to configure the correct homework version.
20+
```bash
21+
# Example config for students assigned to homework "D".
22+
HW_VERSION=D
23+
```
24+
2. Run the program to determine the expression you must implement.
25+
```bash
26+
npm install
27+
npm run compile
28+
npm start
29+
```
30+
1. Update the code in the [expression_calculator.ts][calculator-file] file.
31+
2. To check your work, you can run the application using the first command below and run the tests using the second one.
32+
```bash
33+
npm start
34+
```
35+
1. As usual, make sure that you format your code and run the check command before creating your pull request.
36+
```bash
37+
npm run check
38+
```
39+
1. You must only submit changes to the `expression_calculator.ts` file to receive full credit.
40+
41+
[article-link]: https://blog.danslimmon.com/2024/01/18/3-questions-that-will-make-you-a-phenomenal-rubber-duck/
42+
[calculator-file]: ./expression/src/expression_calculator.ts
43+
[env-file]: ./expression/.env.test

lesson_06/expression/.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
insert_final_newline = true

lesson_06/expression/.env.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HW_VERSION=your assigned version here

lesson_06/expression/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

0 commit comments

Comments
 (0)