Skip to content

Commit b01aa8a

Browse files
authored
feat: adds lesson_10 homework and lesson_11 pre-work (#356)
Signed-off-by: Anthony D. Mays <[email protected]>
1 parent 4e6a697 commit b01aa8a

32 files changed

+7294
-1
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check Lesson 10 Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- "lesson_10/libraries/**"
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 Lesson 10 with Node.js
25+
working-directory: ./lesson_10/libraries
26+
run: |
27+
npm ci
28+
npm run check

.github/workflows/check_push.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,13 @@ jobs:
9393
run: |
9494
npm ci
9595
npm run compile
96+
97+
- name: Build Lesson 09 with Gradle
98+
working-directory: ./lesson_09/types
99+
run: ./gradlew check
100+
101+
- name: Build Lesson 10 with Node.js
102+
working-directory: ./lesson_10/libraries
103+
run: |
104+
npm ci
105+
npm run compile

lesson_10/README.md

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

1111
## Homework
1212

13-
- TODO(anthonydmays): Finish this
13+
- [ ] Complete [Loading the Media Collection](#loading-the-media-collection) assignment.
14+
- [ ] Do pre-work for [lesson 11](/lesson_11/).
15+
16+
### Loading The Media Collection
17+
18+
For this assignment, you are tasked with writing code to load data from a set of CSV files.
19+
20+
* Use the example loader file at [libraries/src/loaders/anthony_mays_loader.ts][example-loader-file] to make your own unique copy of the loader.
21+
* Implement the `loadMediaItems` method by loading the data from the [data/media_items.csv][media-items-file] file.
22+
23+
To try out the app with your loader, you can run the following command.
24+
25+
```bash
26+
npm run compile
27+
npm start -- --loader yourLoaderNameHere
28+
```
29+
30+
Before submitting your work, be sure to run the tests.
31+
32+
```bash
33+
npm run test
34+
```
35+
36+
### Extra credit
37+
38+
For additional credit on this assignment, combine the credits with the media items you loaded by modifying the `loadData` method. You can test that you've loaded everything correctly by using this special command:
39+
40+
```bash
41+
LOADER_NAME=yourLoaderNameHere npm run test
42+
```
43+
44+
[example-loader-file]: ./libraries/src/loaders/anthony_mays_loader.ts
45+
[media-items-file]: ./libraries/data/media_items.csv

lesson_10/libraries/.editorconfig

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

lesson_10/libraries/.eslintignore

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

lesson_10/libraries/.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_10/libraries/.prettierrc

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

lesson_10/libraries/data/credits.csv

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
id,media_item_id,role,name
2+
75,38,Actor,Edward Norton
3+
159,80,Actor,Max von Sydow
4+
121,61,Director,David Lynch
5+
15,8,Actor,Leonardo DiCaprio
6+
167,84,Writer,Italo Calvino
7+
45,23,Actor,Johnny Depp
8+
77,39,Writer,Jane Austen
9+
110,55,Producer,Andrew Kosove
10+
125,63,Writer,Franz Kafka
11+
113,57,Writer,Philip K. Dick
12+
118,59,Actor,Paul Dano
13+
73,37,Director,David Fincher
14+
129,65,Actor,Jeff Bridges
15+
52,26,Actor,Ingrid Bergman
16+
60,30,Composer,Alexandre Desplat
17+
137,69,Writer,James Joyce
18+
164,82,Producer,Angelo Rizzoli
19+
38,19,Producer,Fran Walsh
20+
166,83,Actor,Anita Ekberg
21+
7,4,Director,Steven Spielberg
22+
78,39,Composer,Thomas Newman
23+
2,1,Producer,Jane Smith
24+
172,86,Actor,Aldo Fabrizi
25+
134,67,Producer,Jon Kilik
26+
151,76,Director,Akira Kurosawa
27+
177,89,Actor,Monica Vitti
28+
87,44,Actor,Mark Hamill
29+
36,18,Composer,James Horner
30+
72,36,Composer,Elmer Bernstein
31+
31,16,Director,James Cameron
32+
42,21,Composer,Alan Silvestri
33+
1,1,Director,John Doe
34+
16,8,Actor,Brad Pitt
35+
90,45,Composer,Patrick Doyle
36+
35,18,Writer,Arthur Conan Doyle
37+
89,45,Writer,Victor Hugo
38+
98,49,Producer,Rob Cowan
39+
149,75,Writer,James Baldwin
40+
32,16,Producer,Gale Anne Hurd
41+
143,72,Writer,Marcel Proust
42+
81,41,Actor,Christian Bale
43+
74,37,Producer,Cean Chaffin
44+
68,34,Producer,David Giler
45+
19,10,Director,Quentin Tarantino
46+
86,43,Producer,Gary Kurtz
47+
165,83,Actor,Marcello Mastroianni
48+
196,98,Actor,Lee Van Cleef
49+
49,25,Director,Alfred Hitchcock
50+
120,60,Composer,Jonny Greenwood
51+
163,82,Director,Federico Fellini
52+
156,78,Composer,Fumio Hayasaka
53+
58,29,Actor,Al Pacino
54+
14,7,Producer,Emma Thomas
55+
101,51,Writer,H.G. Wells
56+
122,61,Producer,Mark Frost
57+
82,41,Actor,Heath Ledger
58+
145,73,Director,Jean-Luc Godard
59+
12,6,Composer,John Williams
60+
13,7,Director,Christopher Nolan
61+
168,84,Composer,Nino Rota
62+
54,27,Composer,Max Steiner
63+
47,24,Writer,Ray Bradbury
64+
17,9,Writer,J.K. Rowling
65+
128,64,Producer,Ethan Coen
66+
88,44,Actor,Harrison Ford
67+
198,99,Composer,Ennio Morricone
68+
50,25,Producer,David O. Selznick
69+
106,53,Actor,Michael Shannon
70+
91,46,Director,Michael Bay
71+
133,67,Director,Spike Lee
72+
56,28,Producer,Jan Harlan
73+
175,88,Director,Michelangelo Antonioni
74+
109,55,Director,Denis Villeneuve
75+
139,70,Director,Woody Allen
76+
116,58,Producer,JoAnne Sellar
77+
108,54,Composer,Clint Mansell
78+
190,95,Actor,Silvana Mangano
79+
184,92,Actor,Claudia Cardinale
80+
136,68,Actor,Spike Lee
81+
117,59,Actor,Daniel Day-Lewis
82+
107,54,Writer,George Orwell
83+
39,20,Actor,Daniel Radcliffe
84+
97,49,Director,James Wan
85+
186,93,Composer,Franco Mannino
86+
157,79,Director,Ingmar Bergman
87+
53,27,Writer,Ernest Hemingway
88+
130,65,Actor,John Goodman
89+
144,72,Composer,Philip Glass
90+
180,90,Composer,Giovanni Fusco
91+
160,80,Actor,Liv Ullmann
92+
5,3,Writer,Mark Twain
93+
29,15,Writer,Agatha Christie
94+
105,53,Actor,Sally Hawkins
95+
37,19,Director,Peter Jackson
96+
65,33,Writer,William Shakespeare
97+
26,13,Producer,Irwin Winkler
98+
150,75,Composer,Michel Legrand
99+
61,31,Director,Francis Ford Coppola
100+
62,31,Producer,Gray Frederickson
101+
141,71,Actor,Diane Keaton
102+
55,28,Director,Stanley Kubrick
103+
94,47,Actor,Megan Fox
104+
102,51,Composer,Marco Beltrami
105+
199,100,Director,Franco Zeffirelli
106+
155,78,Writer,Yukio Mishima
107+
161,81,Writer,Henrik Ibsen
108+
104,52,Producer,J. Miles Dale
109+
40,20,Actor,Emma Watson
110+
93,47,Actor,Shia LaBeouf
111+
27,14,Actor,Matt Damon
112+
80,40,Producer,Robert Lorenz
113+
171,86,Actor,Anna Magnani
114+
30,15,Composer,Ennio Morricone
115+
187,94,Director,Pier Paolo Pasolini
116+
99,50,Actor,Patrick Wilson
117+
146,73,Producer,Georges de Beauregard
118+
23,12,Writer,Stephen King
119+
154,77,Actor,Takashi Shimura
120+
21,11,Actor,Tom Hanks
121+
124,62,Actor,Laura Dern
122+
25,13,Director,Martin Scorsese
123+
64,32,Actor,Morgan Freeman
124+
192,96,Composer,Carlo Rustichelli
125+
123,62,Actor,Kyle MacLachlan
126+
127,64,Director,Joel Coen
127+
148,74,Actor,Anna Karina
128+
191,96,Writer,Alberto Moravia
129+
9,5,Actor,Robert Downey Jr.
130+
138,69,Composer,Terence Blanchard
131+
200,100,Producer,John Brabourne
132+
112,56,Actor,Harrison Ford
133+
18,9,Composer,Howard Shore
134+
169,85,Director,Roberto Rossellini
135+
162,81,Composer,Erik Nordgren
136+
92,46,Producer,Jerry Bruckheimer
137+
41,21,Writer,Isaac Asimov
138+
83,42,Writer,Leo Tolstoy
139+
28,14,Actor,Ben Affleck
140+
63,32,Actor,Clint Eastwood
141+
111,56,Actor,Ryan Gosling
142+
193,97,Director,Sergio Leone
143+
46,23,Actor,Helena Bonham Carter
144+
20,10,Producer,Lawrence Bender
145+
115,58,Director,Paul Thomas Anderson
146+
51,26,Actor,Humphrey Bogart
147+
11,6,Writer,George R.R. Martin
148+
10,5,Actor,Chris Hemsworth
149+
140,70,Producer,Letty Aronson
150+
132,66,Composer,Carter Burwell
151+
189,95,Actor,Franco Citti
152+
43,22,Director,Tim Burton
153+
195,98,Actor,Clint Eastwood
154+
170,85,Producer,Salvo D'Angelo
155+
131,66,Writer,William Faulkner
156+
142,71,Actor,Mia Farrow
157+
119,60,Writer,John Steinbeck
158+
183,92,Actor,Burt Lancaster
159+
173,87,Writer,Umberto Eco
160+
44,22,Producer,Denise Di Novi
161+
6,3,Composer,Hans Zimmer
162+
3,2,Actor,Chris Evans
163+
147,74,Actor,Jean-Paul Belmondo
164+
85,43,Director,George Lucas
165+
59,30,Writer,F. Scott Fitzgerald
166+
96,48,Composer,John Ottman
167+
34,17,Actor,Tommy Lee Jones
168+
84,42,Composer,James Newton Howard
169+
22,11,Actor,Robin Wright
170+
79,40,Director,Clint Eastwood
171+
185,93,Writer,Primo Levi
172+
70,35,Actor,Carrie Fisher
173+
182,91,Producer,Goffredo Lombardo
174+
103,52,Director,Guillermo del Toro
175+
176,88,Producer,Carlo Ponti
176+
69,35,Actor,Harrison Ford
177+
179,90,Writer,Giuseppe Tomasi di Lampedusa
178+
48,24,Composer,Michael Giacchino
179+
174,87,Composer,Ennio Morricone
180+
178,89,Actor,Alain Delon
181+
188,94,Producer,Alfredo Bini
182+
126,63,Composer,Angelo Badalamenti
183+
194,97,Producer,Claudio Mancini
184+
197,99,Writer,Giovanni Verga
185+
57,29,Actor,Marlon Brando
186+
4,2,Actor,Scarlett Johansson
187+
24,12,Composer,Danny Elfman
188+
33,17,Actor,Will Smith
189+
67,34,Director,Ridley Scott
190+
135,68,Actor,Denzel Washington
191+
181,91,Director,Luchino Visconti
192+
76,38,Actor,Brad Pitt
193+
71,36,Writer,Charles Dickens
194+
66,33,Composer,John Barry
195+
95,48,Writer,Edgar Allan Poe
196+
114,57,Composer,Hans Zimmer
197+
158,79,Producer,Allan Ekelund
198+
152,76,Producer,Sôjirô Motoki
199+
153,77,Actor,Toshirô Mifune
200+
8,4,Producer,Kathleen Kennedy
201+
100,50,Actor,Vera Farmiga

0 commit comments

Comments
 (0)