Skip to content

Commit 437b3fc

Browse files
authored
Merge branch 'code-differently:main' into feature/lesson02
2 parents 5173b06 + 5b879ae commit 437b3fc

25 files changed

+6615
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Lesson 03 Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- "lesson_03/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/typescript/codedifferently-instructional
26+
run: npm ci
27+
28+
- name: Build Lesson 03 with Node.js
29+
working-directory: ./lesson_03/quiz
30+
run: |
31+
npm ci
32+
npm run check

.github/workflows/check_push.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths:
77
- "lib/**"
88
- "lesson_02/quiz/**"
9+
- "lesson_03/quiz/**"
910

1011
jobs:
1112
build:
@@ -42,4 +43,17 @@ jobs:
4243
npm ci
4344
npm run test
4445
46+
- name: Build Lesson 02 with Node.js
47+
working-directory: ./lesson_02/quiz
48+
run: |
49+
npm ci
50+
node run compile
51+
52+
- name: Build Lesson 03 with Node.js
53+
working-directory: ./lesson_03/quiz
54+
run: |
55+
npm ci
56+
npm run compile
57+
npm run lint
58+
4559

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"editor.formatOnPaste": true,
66
"editor.formatOnSave": true,
77
"prettier.requireConfig": true,
8+
"editor.codeActionsOnSave": {
9+
"source.fixAll.eslint": "explicit",
10+
"source.organizeImports": "explicit"
11+
},
812
"[typescriptreact]": {
913
"editor.defaultFormatter": "esbenp.prettier-vscode"
1014
},

lesson_00/chigazograham/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
g# Chigazo Grahams READ.ME
2+
3+
## Who is Chigazo?
4+
My full name is Chigazo Austin Graham I was born and raised here, in Wilmington, Delaware.<br> Growing up I was a part of various programs teaching me skills in business and technology, I even owned my own business selling hygiene products by the age of 7 and won at a business pitch competition against high school students. I graduated from Salesianum high school and during my time there I was shortly a part of the Code Differently Youth Program as a junior software engineer before departing to focus on my studies. I attended Delaware State University (DSU) with a major in computer science for a year prior to joining the Code Differently adult program to further my current software engineering skills and to begin building a career for myself.
5+
6+
### Learning Style:
7+
* I am a **multimodal learner** (*Uses multiple modes or methodologies to learn a concept*)
8+
* My strongest learning styles are **kinesthetic** (*Learning that involves physical activity*) and **visual learning** (*Learning through information presented in a visual format*)
9+
* My weakest learing style is **auditory learning**
10+
11+
### Work Hours & Preferences:
12+
* I am **NOT** a morning person, but I am available to work at any time **as long as the meeting time is discussed and agreed upon at least 24 hours before said meeting.**
13+
* I prefer chats due to ease of use but I am available for in-person meetings if properly scheduled.
14+
* In order the most effective method of communication to me would be text message, then email, and finally LinkedIn.
15+
16+
### Feedback:
17+
18+
* **Feedback, criticism, and advice is always welcomed!** I prefer to give and receive feedback via email
19+
* During **weekdays** I try to check my email **every hour from 9 am to 9 pm** unless I am preoccupied with more important work.
20+
* On **weekends** I usually check my emails three times a day from **9 am to 3 pm, once in the morning, at noon, and in the afternoon**.
21+
22+
### Facts That Aren't Really Fun:
23+
24+
1. **My hometown:** Wilmington, Delaware
25+
26+
1. **My birthday:** September 19th (*I just turned 20!*)
27+
1. **My favorite baked good:** Croissants
28+
1. **My coffee order:** French Vanilla Hazelnut Iced Coffee Regular Cream & Sugar
29+
30+
![Isolated.png](images/GSF_Speaker.jpeg)
31+
![Isolated.png](images/GSF_Comp.jpeg)
32+
9.27 KB
Loading
4.95 KB
Loading

lesson_03/README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,51 @@ Please review the following resources before lecture:
99

1010
## Homework
1111

12-
TODO(anthonydmays): Add this
12+
- [ ] Review [important reminders below](#important-reminders).
13+
- [ ] Create [new quiz questions](#creating-new-quiz-questions).
14+
- [ ] Do pre-work for [lesson 04](/lesson_04/).
15+
16+
### Important reminders
17+
18+
* Make sure to sync your fork before creating a branch in order to pull in the latest changes.
19+
* Sync your branch often to avoid merge conflicts and execute `git pull` to bring the latest changes to your machine.
20+
* If your branch is too far behind or you run into too many issues, feel free to delete and re-create your repository. Make sure to review the article linked at the bottom of the [lesson_00](/lesson_00/README.md) README for instructions on how to create your fork and branch properly.
21+
* Remember, you should not reuse a branch you've used to submit a pull request. If you need to make changes, create a new branch and work from there after you've updated your fork to the latest.
22+
23+
### Creating new quiz questions
24+
25+
Now's your chance to quiz the instructor! In this assignment, you will modify the quiz project to include three quiz questions based on the content you've learned in this course so far. Feel free to choose any topic for your questions.
26+
27+
1. Navigate to the [quiz][quiz-folder] directory and install the required dependencies.
28+
```bash
29+
cd lesson_03/quiz
30+
npm install --prefix ../../lib/typescript/codedifferently-instructional
31+
npm install
32+
npm start
33+
```
34+
2. You will create a quiz file in the [quizzes folder][quizzes-folder]. You should model yours after the example provided in [anthony_mays_quiz.ts][quiz-example]. Note that the name of the file you create should match the name of the class in the file.
35+
3. Make sure to provide a unique provider name for your questions provider. You'll need this name to provide answers in step 5.
36+
```typescript
37+
getProviderName(): string {
38+
return '<your unique name goes here>';
39+
}
40+
```
41+
4. Make at least three questions for your quiz and _leave them unanswered_.
42+
5. To provide answers, you will need to update the [quiz.yaml][test-config-file] file in the test directory. You can copy the example in the file to get started, but you must provide your own answers. To generate an encrypted answer, use [bcrypt.online](https://bcrypt.online).
43+
6. Lastly, you'll need to modify the [quizzes.module.ts][quizzes-module] file to include your quiz.
44+
7. Before attempting to submit your quiz, make sure to run the linter on the code and run the tests to ensure that you've updated things correctly. The commands must be run from the [quiz][quiz-folder] sub-folder just like the previous assignment:
45+
```bash
46+
npm run check
47+
```
48+
8. Once everything passes, submit a PR.
49+
50+
**Note: If you want to check that you've encoded your answers correctly, you can update you quiz with the real answers and then run the tests using the command below.
51+
```bash
52+
PROVIDER_NAME=<Your provider name here> npm run test
53+
```
54+
55+
[quizzes-folder]: ./quiz/src/quizzes/
56+
[quiz-folder]: ./quiz/
57+
[quiz-example]: ./quiz/src/quizzes/anthony_mays_quiz.ts
58+
[test-config-file]: ./quiz/quiz.yaml
59+
[quizzes-module]: ./quiz/src/quizzes/quizzes.module.ts

lesson_03/quiz/.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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
9+
organize_imports = true
10+
trim_trailing_whitespace = true
11+
quote_type = single

lesson_03/quiz/.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
coverage

lesson_03/quiz/.prettierrc

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

0 commit comments

Comments
 (0)