Skip to content

Commit 6ec65d2

Browse files
committed
Add section links to homepage
1 parent 63ac8d5 commit 6ec65d2

File tree

5 files changed

+675
-116
lines changed

5 files changed

+675
-116
lines changed

tools/book_model.jl

Lines changed: 213 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,237 @@
1-
book_model = [
1+
book_model = Any[
22
Chapter(1, "Images, Transformations, Abstractions"),
3-
Section(1, 1, "Images as Data and Arrays", "notebooks/week1/images.jl", "3zTO3LEY-cM"),
4-
Section(1, 2, "Intro to Abstractions", "notebooks/week1/abstraction.jl", "3zTO3LEY-cM"),
3+
Section(
4+
1,
5+
1,
6+
"Images as Data and Arrays",
7+
"notebooks/week1/images.jl",
8+
"3zTO3LEY-cM",
9+
"https://user-images.githubusercontent.com/6933510/136196634-2294d0a7-e79a-40d0-bbb8-81da70f4d398.png",
10+
),
11+
Section(
12+
1,
13+
2,
14+
"Intro to Abstractions",
15+
"notebooks/week1/abstraction.jl",
16+
"3zTO3LEY-cM",
17+
"",
18+
),
519
Section(
620
1,
721
3,
822
"Transformations & Autodiff",
923
"notebooks/week2/transformations_and_autodiff.jl",
1024
"AAREeuaKCic",
25+
"https://user-images.githubusercontent.com/6933510/136196632-ad67cb84-a4c9-410e-ab72-f4fcfc26f69a.png",
1126
),
1227
Section(
1328
1,
1429
4,
1530
"Transformations with Images",
1631
"notebooks/week2/transforming_images.jl",
1732
"uZYVjDDZW9A",
33+
"https://user-images.githubusercontent.com/6933510/136196626-194e81c9-00f7-49f6-90c3-09945723b6a3.png",
1834
),
1935
Section(
2036
1,
2137
5,
2238
"Transformations II: Composability, Linearity and Nonlinearity",
2339
"notebooks/week3/transformations2.jl",
2440
"VDPf3RjoCpY",
41+
"https://user-images.githubusercontent.com/6933510/136196619-0750544f-cd6d-4ae3-ace7-60c24443d721.png",
42+
),
43+
Section(
44+
1,
45+
6,
46+
"The Newton Method",
47+
"notebooks/week3/newton_method.jl",
48+
"Wjcx9sNSLP8",
49+
"https://user-images.githubusercontent.com/6933510/136196605-b6119b9d-223c-44bc-97d5-ef7cfce66483.gif",
50+
),
51+
Section(
52+
1,
53+
7,
54+
"Intro to Dynamic Programming",
55+
"notebooks/week4/dynamicprograms.jl",
56+
"KyBXJV1zFlo",
57+
"https://user-images.githubusercontent.com/6933510/136196599-c6ae60f0-9269-4134-bb0d-5bcab928bd2b.gif",
58+
),
59+
Section(
60+
1,
61+
8,
62+
"Seam Carving",
63+
"notebooks/week4/seamcarving.jl",
64+
"KyBXJV1zFlo",
65+
"https://user-images.githubusercontent.com/6933510/136196584-b3c806a8-aa61-48d9-9e73-30583fcc38bf.gif",
66+
),
67+
Section(
68+
1,
69+
9,
70+
"Taking Advantage of Structure",
71+
"notebooks/week4/structure.jl",
72+
"wZrVxbmX218",
73+
"https://user-images.githubusercontent.com/6933510/136196581-ffdf4a3b-f35c-4eb8-85a7-f07560bd421b.png",
2574
),
26-
Section(1, 6, "The Newton Method", "notebooks/week3/newton_method.jl", "Wjcx9sNSLP8"),
27-
Section(1, 7, "Intro to Dynamic Programming", "notebooks/week4/dynamicprograms.jl", "KyBXJV1zFlo"),
28-
Section(1, 8, "Seam Carving", "notebooks/week4/seamcarving.jl", "KyBXJV1zFlo"),
29-
Section(1, 9, "Taking Advantage of Structure", "notebooks/week4/structure.jl", "wZrVxbmX218"),
30-
3175
Chapter(2, "Statistics, Probability, Learning"),
32-
Section(2, 1, "Principal Component Analysis", "notebooks/week5/pca.jl", "iuKrM_NzxCk"),
33-
Section(2, 2, "Sampling and Random Variables", "notebooks/week5/random_vars.jl", "7HrpoFZzITI"),
34-
Section(2, 3, "Modeling with Stochastic Simulation", "notebooks/week6/simulating_component_failure.jl", "d8BohH76C7E"),
35-
Section(2, 4, "Random Variables as Types", "notebooks/week7/random_variables_as_types.jl", "xKAO38UsXo0"),
36-
Section(2, 5, "Random Walks", "notebooks/week7/random_walks.jl", "14hHtGJ4s-g"),
37-
Section(2, 6, "Random Walks II", "notebooks/week8/random_walks_II.jl", "pIAFHyLmwbM"),
38-
Section(2, 7, "Discrete and Continuous", "notebooks/week8/discrete_and_continuous.jl", "H6Dcx3YeTkE"),
39-
Section(2, 8, "Linear Model, Data Science, & Simulations", "notebooks/week9/linearmodel_datascience.jl","O6NTKsR8TjQ"),
40-
Section(2, 9, "Optimization", "notebooks/week9/optimization.jl","44RA9fclTdA"),
41-
76+
Section(
77+
2,
78+
1,
79+
"Principal Component Analysis",
80+
"notebooks/week5/pca.jl",
81+
"iuKrM_NzxCk",
82+
"https://user-images.githubusercontent.com/6933510/136196577-512cee99-aebf-48a9-97b8-358d5ca561ca.png",
83+
),
84+
Section(
85+
2,
86+
2,
87+
"Sampling and Random Variables",
88+
"notebooks/week5/random_vars.jl",
89+
"7HrpoFZzITI",
90+
"https://user-images.githubusercontent.com/6933510/136196576-70e45c9d-ef0e-4498-bf61-58d9ae854c3e.png",
91+
),
92+
Section(
93+
2,
94+
3,
95+
"Modeling with Stochastic Simulation",
96+
"notebooks/week6/simulating_component_failure.jl",
97+
"d8BohH76C7E",
98+
"https://user-images.githubusercontent.com/6933510/136196572-b11974d5-7335-4678-9092-630e034bbe8f.png",
99+
),
100+
Section(
101+
2,
102+
4,
103+
"Random Variables as Types",
104+
"notebooks/week7/random_variables_as_types.jl",
105+
"xKAO38UsXo0",
106+
"https://user-images.githubusercontent.com/6933510/136196570-478bbb89-05fb-4799-99a0-0ede06354cb6.png",
107+
),
108+
Section(
109+
2,
110+
5,
111+
"Random Walks",
112+
"notebooks/week7/random_walks.jl",
113+
"14hHtGJ4s-g",
114+
"https://user-images.githubusercontent.com/6933510/136196563-f4b5b44c-5252-4e67-8c82-c550de891c55.png",
115+
),
116+
Section(
117+
2,
118+
6,
119+
"Random Walks II",
120+
"notebooks/week8/random_walks_II.jl",
121+
"pIAFHyLmwbM",
122+
"",
123+
),
124+
Section(
125+
2,
126+
7,
127+
"Discrete and Continuous",
128+
"notebooks/week8/discrete_and_continuous.jl",
129+
"H6Dcx3YeTkE",
130+
"https://user-images.githubusercontent.com/6933510/136196552-ce16c06f-bd12-427f-80e5-aedb1fbc734a.png",
131+
),
132+
Section(
133+
2,
134+
8,
135+
"Linear Model, Data Science, & Simulations",
136+
"notebooks/week9/linearmodel_datascience.jl",
137+
"O6NTKsR8TjQ",
138+
"https://user-images.githubusercontent.com/6933510/136199721-8fd577cb-d6f3-492d-bbdc-37bc74664ca7.png",
139+
),
140+
Section(
141+
2,
142+
9,
143+
"Optimization",
144+
"notebooks/week9/optimization.jl",
145+
"44RA9fclTdA",
146+
"https://user-images.githubusercontent.com/6933510/136199719-a56a217b-cd36-4da2-b407-7285dcec94df.png",
147+
),
42148
Chapter(3, "Differential Equations & Climate Modeling"),
43-
Section(3, 1, "Time stepping", "notebooks/week10/time_stepping.jl", "3Y5gVyO8KcI"),
44-
Section(3, 2, "ODEs and parameterized types", "notebooks/week11/odes_and_parameterized_types.jl", "S71YIZ8e7MQ"),
45-
Section(3, 3, "Why we can't predict the weather", "notebooks/week11/predicting_the_weather.jl", "M3udLzIHtsc"),
46-
Section(3, 4, "Our first climate model", "notebooks/week12/our_first_climate_model.jl", "J1UsMa1cTeE"),
47-
Section(3, 5, "How to collaborate on software", "notebooks/week12/how_to_collaborate_on_software.jl", "7N9Vvc8amGM"),
48-
Section(3, 6, "Snowball Earth and hysteresis", "notebooks/week13/climate2_snowball_earth.jl", "cdIgr_2nUvI"),
49-
Section(3, 7, "Advection and diffusion in 1D", "notebooks/week13/advection_and_diffusion.jl", "Xb-iUwXI78A"),
50-
Section(3, 8, "Resistors, stencils and climate models", "notebooks/week14/resistors_and_stencils.jl", "DdTWgBlDgr0"),
51-
Section(3, 9, "Advection and diffusion in 2D", "notebooks/week14/2d_advection_diffusion.jl", "DdTWgBlDgr0"),
52-
Section(3, 10, "Inverse climate modeling", "notebooks/week14/inverse_climate_model.jl", "nm86_hDwYTU"),
53-
Section(3, 11, "Solving inverse problems", "notebooks/week14/optimization_with_JuMP.jl", "nm86_hDwYTU"),
54-
55-
56-
]
149+
Section(
150+
3,
151+
1,
152+
"Time stepping",
153+
"notebooks/week10/time_stepping.jl",
154+
"3Y5gVyO8KcI",
155+
"https://user-images.githubusercontent.com/6933510/136199718-ff811eb3-aad6-4d6b-99e0-f6bf922816b4.png",
156+
),
157+
Section(
158+
3,
159+
2,
160+
"ODEs and parameterized types",
161+
"notebooks/week11/odes_and_parameterized_types.jl",
162+
"S71YIZ8e7MQ",
163+
"https://user-images.githubusercontent.com/6933510/136199713-25eb2e90-c5cd-4e11-8463-6f6069a81a51.png",
164+
),
165+
Section(
166+
3,
167+
3,
168+
"Why we can't predict the weather",
169+
"notebooks/week11/predicting_the_weather.jl",
170+
"M3udLzIHtsc",
171+
"https://user-images.githubusercontent.com/6933510/136199708-af8acad2-4172-4fa7-911e-e30300efb5ee.png",
172+
),
173+
Section(
174+
3,
175+
4,
176+
"Our first climate model",
177+
"notebooks/week12/our_first_climate_model.jl",
178+
"J1UsMa1cTeE",
179+
"https://user-images.githubusercontent.com/6933510/136199705-7bdb6bb0-8698-43a1-87e6-c073ab102da5.png",
180+
),
181+
Section(
182+
3,
183+
5,
184+
"How to collaborate on software",
185+
"notebooks/week12/how_to_collaborate_on_software.jl",
186+
"7N9Vvc8amGM",
187+
"https://user-images.githubusercontent.com/6933510/136199704-ba6d0586-34bf-490c-8fd0-6959ab42cd23.png",
188+
),
189+
Section(
190+
3,
191+
6,
192+
"Snowball Earth and hysteresis",
193+
"notebooks/week13/climate2_snowball_earth.jl",
194+
"cdIgr_2nUvI",
195+
"https://user-images.githubusercontent.com/6933510/136199703-5edb4791-f9c0-4872-b0a7-7c9b1b6502d5.png",
196+
),
197+
Section(
198+
3,
199+
7,
200+
"Advection and diffusion in 1D",
201+
"notebooks/week13/advection_and_diffusion.jl",
202+
"Xb-iUwXI78A",
203+
"https://user-images.githubusercontent.com/6933510/136200627-8211654f-7730-4f4a-8933-5b64164806c3.gif",
204+
),
205+
Section(
206+
3,
207+
8,
208+
"Resistors, stencils and climate models",
209+
"notebooks/week14/resistors_and_stencils.jl",
210+
"DdTWgBlDgr0",
211+
"https://user-images.githubusercontent.com/6933510/136200635-33c007ff-89f6-48dc-b1d3-eb56fd16003e.gif",
212+
),
213+
Section(
214+
3,
215+
9,
216+
"Advection and diffusion in 2D",
217+
"notebooks/week14/2d_advection_diffusion.jl",
218+
"DdTWgBlDgr0",
219+
"https://user-images.githubusercontent.com/6933510/136200688-e3c6d6ee-808c-433f-8252-af6ad278fb4d.gif",
220+
),
221+
Section(
222+
3,
223+
10,
224+
"Inverse climate modeling",
225+
"notebooks/week14/inverse_climate_model.jl",
226+
"nm86_hDwYTU",
227+
"https://user-images.githubusercontent.com/6933510/136199660-315b045b-f144-4009-9282-7fe6d1f5d41b.gif",
228+
),
229+
Section(
230+
3,
231+
11,
232+
"Solving inverse problems",
233+
"notebooks/week14/optimization_with_JuMP.jl",
234+
"nm86_hDwYTU",
235+
"https://user-images.githubusercontent.com/6933510/136200827-89647ae8-cb06-42ea-a18d-5f64e9cc2b25.png",
236+
),
237+
]

tools/generate_book.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ struct Section
3838
name::String
3939
notebook_path::String
4040
video_id::String
41+
preview_image_url::String
4142
end
4243

4344
struct Chapter

0 commit comments

Comments
 (0)