diff --git a/_share/media/img/add frames.png b/_share/media/img/add frames.png deleted file mode 100644 index 121b834..0000000 Binary files a/_share/media/img/add frames.png and /dev/null differ diff --git a/_share/media/img/add new animation.png b/_share/media/img/add new animation.png deleted file mode 100644 index d82a977..0000000 Binary files a/_share/media/img/add new animation.png and /dev/null differ diff --git a/_share/media/img/albert/S03_L10_EX01.png b/_share/media/img/albert/S03_L10_EX01.png deleted file mode 100644 index f01d6ee..0000000 Binary files a/_share/media/img/albert/S03_L10_EX01.png and /dev/null differ diff --git a/_share/media/img/albert/S03_L10_EX02.png b/_share/media/img/albert/S03_L10_EX02.png deleted file mode 100644 index 3bc72bc..0000000 Binary files a/_share/media/img/albert/S03_L10_EX02.png and /dev/null differ diff --git a/_share/media/img/albert/S03_L10_EX03.png b/_share/media/img/albert/S03_L10_EX03.png deleted file mode 100644 index 3667603..0000000 Binary files a/_share/media/img/albert/S03_L10_EX03.png and /dev/null differ diff --git a/_share/media/img/albert/add frames.png b/_share/media/img/albert/add frames.png deleted file mode 100644 index 121b834..0000000 Binary files a/_share/media/img/albert/add frames.png and /dev/null differ diff --git a/_share/media/img/albert/add new animation.png b/_share/media/img/albert/add new animation.png deleted file mode 100644 index d82a977..0000000 Binary files a/_share/media/img/albert/add new animation.png and /dev/null differ diff --git a/_share/media/img/albert/attach_new_script.png b/_share/media/img/albert/attach_new_script.png deleted file mode 100644 index 6aa25e2..0000000 Binary files a/_share/media/img/albert/attach_new_script.png and /dev/null differ diff --git a/_share/media/img/albert/ch12/animation_snap.png b/_share/media/img/albert/ch12/animation_snap.png deleted file mode 100644 index f9db3aa..0000000 Binary files a/_share/media/img/albert/ch12/animation_snap.png and /dev/null differ diff --git a/_share/media/img/albert/ch12/animation_timeline.png b/_share/media/img/albert/ch12/animation_timeline.png deleted file mode 100644 index a71a754..0000000 Binary files a/_share/media/img/albert/ch12/animation_timeline.png and /dev/null differ diff --git a/_share/media/img/albert/ch12/discrete.png b/_share/media/img/albert/ch12/discrete.png deleted file mode 100644 index 73fbc7f..0000000 Binary files a/_share/media/img/albert/ch12/discrete.png and /dev/null differ diff --git a/_share/media/img/albert/ch12/frame_coords.png b/_share/media/img/albert/ch12/frame_coords.png deleted file mode 100644 index 71f921b..0000000 Binary files a/_share/media/img/albert/ch12/frame_coords.png and /dev/null differ diff --git a/_share/media/img/albert/ch12/g12_animation.png b/_share/media/img/albert/ch12/g12_animation.png deleted file mode 100644 index dfd71cc..0000000 Binary files a/_share/media/img/albert/ch12/g12_animation.png and /dev/null differ diff --git a/_share/media/img/albert/ch12/length_looping.png b/_share/media/img/albert/ch12/length_looping.png deleted file mode 100644 index 97b2ece..0000000 Binary files a/_share/media/img/albert/ch12/length_looping.png and /dev/null differ diff --git a/_share/media/img/albert/ch12/lock_animation.png b/_share/media/img/albert/ch12/lock_animation.png deleted file mode 100644 index d299cb7..0000000 Binary files a/_share/media/img/albert/ch12/lock_animation.png and /dev/null differ diff --git a/_share/media/img/albert/ch12/lock_properties.png b/_share/media/img/albert/ch12/lock_properties.png deleted file mode 100644 index 3b92ecd..0000000 Binary files a/_share/media/img/albert/ch12/lock_properties.png and /dev/null differ diff --git a/_share/media/img/albert/marker2d-world.jpg b/_share/media/img/albert/marker2d-world.jpg deleted file mode 100644 index 2cbd65e..0000000 Binary files a/_share/media/img/albert/marker2d-world.jpg and /dev/null differ diff --git a/_share/media/img/albert/script_icon.png b/_share/media/img/albert/script_icon.png deleted file mode 100644 index c9f75f9..0000000 Binary files a/_share/media/img/albert/script_icon.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L11_EX01.png b/_share/media/img/albert/section03/S03_L11_EX01.png deleted file mode 100644 index bcfdd6e..0000000 Binary files a/_share/media/img/albert/section03/S03_L11_EX01.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L11_EX02.png b/_share/media/img/albert/section03/S03_L11_EX02.png deleted file mode 100644 index c72311b..0000000 Binary files a/_share/media/img/albert/section03/S03_L11_EX02.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L11_EX03.png b/_share/media/img/albert/section03/S03_L11_EX03.png deleted file mode 100644 index 73d7b3d..0000000 Binary files a/_share/media/img/albert/section03/S03_L11_EX03.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L12_EX01.png b/_share/media/img/albert/section03/S03_L12_EX01.png deleted file mode 100644 index fd42d83..0000000 Binary files a/_share/media/img/albert/section03/S03_L12_EX01.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L12_EX02.png b/_share/media/img/albert/section03/S03_L12_EX02.png deleted file mode 100644 index 5d69deb..0000000 Binary files a/_share/media/img/albert/section03/S03_L12_EX02.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L14_EX01.png b/_share/media/img/albert/section03/S03_L14_EX01.png deleted file mode 100644 index ad5b8d8..0000000 Binary files a/_share/media/img/albert/section03/S03_L14_EX01.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L15_EX01.png b/_share/media/img/albert/section03/S03_L15_EX01.png deleted file mode 100644 index 83fd106..0000000 Binary files a/_share/media/img/albert/section03/S03_L15_EX01.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L16_E01.png b/_share/media/img/albert/section03/S03_L16_E01.png deleted file mode 100644 index 2afcc04..0000000 Binary files a/_share/media/img/albert/section03/S03_L16_E01.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L16_E02.png b/_share/media/img/albert/section03/S03_L16_E02.png deleted file mode 100644 index 1989928..0000000 Binary files a/_share/media/img/albert/section03/S03_L16_E02.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L16_E03.png b/_share/media/img/albert/section03/S03_L16_E03.png deleted file mode 100644 index b806898..0000000 Binary files a/_share/media/img/albert/section03/S03_L16_E03.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L16_E04.png b/_share/media/img/albert/section03/S03_L16_E04.png deleted file mode 100644 index 4fa5f93..0000000 Binary files a/_share/media/img/albert/section03/S03_L16_E04.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L16_E05.png b/_share/media/img/albert/section03/S03_L16_E05.png deleted file mode 100644 index 0a74df6..0000000 Binary files a/_share/media/img/albert/section03/S03_L16_E05.png and /dev/null differ diff --git a/_share/media/img/albert/section03/S03_L16_E06.png b/_share/media/img/albert/section03/S03_L16_E06.png deleted file mode 100644 index a9c79e8..0000000 Binary files a/_share/media/img/albert/section03/S03_L16_E06.png and /dev/null differ diff --git a/_share/media/img/albert/select animation.png b/_share/media/img/albert/select animation.png deleted file mode 100644 index b8cfb17..0000000 Binary files a/_share/media/img/albert/select animation.png and /dev/null differ diff --git a/_share/media/img/albert/select animation.pxm b/_share/media/img/albert/select animation.pxm deleted file mode 100644 index 91e7c2f..0000000 Binary files a/_share/media/img/albert/select animation.pxm and /dev/null differ diff --git a/_share/media/img/albert/sprite-endpoint.jpg b/_share/media/img/albert/sprite-endpoint.jpg deleted file mode 100644 index 9edbf59..0000000 Binary files a/_share/media/img/albert/sprite-endpoint.jpg and /dev/null differ diff --git a/_share/media/img/ch12/animation_snap.png b/_share/media/img/ch12/animation_snap.png deleted file mode 100644 index f9db3aa..0000000 Binary files a/_share/media/img/ch12/animation_snap.png and /dev/null differ diff --git a/_share/media/img/ch12/animation_timeline.png b/_share/media/img/ch12/animation_timeline.png deleted file mode 100644 index a71a754..0000000 Binary files a/_share/media/img/ch12/animation_timeline.png and /dev/null differ diff --git a/_share/media/img/ch12/discrete.png b/_share/media/img/ch12/discrete.png deleted file mode 100644 index 73fbc7f..0000000 Binary files a/_share/media/img/ch12/discrete.png and /dev/null differ diff --git a/_share/media/img/ch12/frame_coords.png b/_share/media/img/ch12/frame_coords.png deleted file mode 100644 index 71f921b..0000000 Binary files a/_share/media/img/ch12/frame_coords.png and /dev/null differ diff --git a/_share/media/img/ch12/g12_animation.png b/_share/media/img/ch12/g12_animation.png deleted file mode 100644 index dfd71cc..0000000 Binary files a/_share/media/img/ch12/g12_animation.png and /dev/null differ diff --git a/_share/media/img/ch12/length_looping.png b/_share/media/img/ch12/length_looping.png deleted file mode 100644 index 97b2ece..0000000 Binary files a/_share/media/img/ch12/length_looping.png and /dev/null differ diff --git a/_share/media/img/ch12/lock_animation.png b/_share/media/img/ch12/lock_animation.png deleted file mode 100644 index d299cb7..0000000 Binary files a/_share/media/img/ch12/lock_animation.png and /dev/null differ diff --git a/_share/media/img/ch12/lock_properties.png b/_share/media/img/ch12/lock_properties.png deleted file mode 100644 index 3b92ecd..0000000 Binary files a/_share/media/img/ch12/lock_properties.png and /dev/null differ diff --git a/_share/media/img/lecture01/ex01.png b/_share/media/img/lecture01/ex01.png new file mode 100644 index 0000000..26cdbcf Binary files /dev/null and b/_share/media/img/lecture01/ex01.png differ diff --git a/_share/media/img/marker2d-world.jpg b/_share/media/img/marker2d-world.jpg deleted file mode 100644 index 2cbd65e..0000000 Binary files a/_share/media/img/marker2d-world.jpg and /dev/null differ diff --git a/_share/media/img/select animation.png b/_share/media/img/select animation.png deleted file mode 100644 index b8cfb17..0000000 Binary files a/_share/media/img/select animation.png and /dev/null differ diff --git a/_share/media/img/select animation.pxm b/_share/media/img/select animation.pxm deleted file mode 100644 index 91e7c2f..0000000 Binary files a/_share/media/img/select animation.pxm and /dev/null differ diff --git a/_share/media/img/sprite-endpoint.jpg b/_share/media/img/sprite-endpoint.jpg deleted file mode 100644 index 9edbf59..0000000 Binary files a/_share/media/img/sprite-endpoint.jpg and /dev/null differ diff --git a/_subsections/lesson-01.org b/_subsections/lesson-01.org new file mode 100644 index 0000000..757f496 --- /dev/null +++ b/_subsections/lesson-01.org @@ -0,0 +1,105 @@ +#+title: Lesson 01 | Course Overview + Shell +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: + +* Links +#+attr_html: :class links +- [[../toc.org][TOC | Missing Semester]] +- [[https://www.youtube.com/playlist?list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J][Playlist: Missing Semester]] +- current: https://youtu.be/Z56Jmr9Z34Q?si=t9wQkGXDznscDtNH&t=1217 + +* Notes +** why +- there are many tools that make life easier for programmers +- lecture notes and recordings are available online + +** the shell +- programs are meant to be integrates with each other through the shell +- most common shell is Bourne Again Shell (bash) + +** shell prompt +- typical shell prompt: + #+attr_html: :width 300px + file:../_share/media/img/lecture01/ex01.png + +- shells can be customized extensibly +- arguments are seperated by whitespace +- multiple words can be passed as a single argument via: + - quotes + #+begin_src bash + echo "Hello world" + #+end_src + + - escapes + #+begin_src bash + echo Hello\ world + #+end_src + +** how does the shell know where programs are +- via environment variable + - things that are set whenever you start your shell + - where is your home directory + - what is your username + - what are the PATHs to your programs +- shells, and bash in particular, are programming languages + +** paths +*** PATH environment variable + +- a list seperated by colons (:) +- when bash is asked to run a program bash will search through the directories in path until it finds the program + +*** absolute vs relative path + +- pwd: print working directory +- all relative paths are relative to your current working directory +- absolute path starts with '/' + +*** special directories +- '.' current directory +- '..' parent directory + +*** tilde (~) +- always expands to your home directory + +*** dash (-) +- toggles to the previous directory you were at + + #+begin_src bash + cd /home/ronny/programs/notes/courses + cd ../../ + cd - + pwd + #+end_src + +the output will be +=/home/ronny/programs/notes/courses= + + +*** Playlist + +#+attr_html: :class playlist +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=20s][00:20 why we're doing this class]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=251s][04:11 the shell]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=338s][05:38 install a terminal and a shell]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=364s][06:05 the shell prompt]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=411s][06:51 shell prompt]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=522s][08:42 how does the shell know what these programs are]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=672s][11:12 paths]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=738s][12:18 absolute path]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=759s][12:39 relative paths]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=1034s][17:14 tilde character]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=1336s][22:16 directories]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=1376s][22:56 execute on directories]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=1514s][25:14 cp command]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=1547s][25:47 rm]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=1590s][26:30 create a new directory]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=1912s][31:52 pipe character]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=2044s][34:04 grep]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=2145s][35:45 the root user]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=2239s][37:19 kernel paramters]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=2612s][43:32 scroll lock led]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=2706s][45:06 open a file]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=2829s][47:09 lecture notes]] +- [[https://www.youtube.com/watch?v=Z56Jmr9Z34Q&list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J&t=2875s][office hours]] diff --git a/_subsections/lesson-02.org b/_subsections/lesson-02.org index 08b3a19..62ca152 100644 --- a/_subsections/lesson-02.org +++ b/_subsections/lesson-02.org @@ -10,6 +10,48 @@ * Notes +** bash +*** spaces are critical with bash + - this works: + #+begin_src bash + foo=bar + echo $foo + #+end_src + + - this doesn't: + + #+begin_src bash + foo = bar + echo $foo + #+end_src + + the output of that will be + =zsh: command not found: foo= + + - what happens in the above example is that we are effectively calling the "foo" program with the arguments: "=" and "bar" + +*** quotes +- you can use double or single quotes to print a value + #+begin_src bash + echo "Hello" + #+end_src + #+begin_src bash + echo 'Hello' + #+end_src + +- double quotes can interpolate variables + #+begin_src bash + echo "Value is $foo" + #+end_src + + will return: =Value is bar= + +- single quotes can NOT interpoloate variables + #+begin_src bash + echo 'Value is $foo' + #+end_src + + will return: =Value is $foo= *** Playlist diff --git a/toc.org b/toc.org index 9c9fa40..4433e75 100644 --- a/toc.org +++ b/toc.org @@ -11,8 +11,8 @@ * Contents Overview #+attr_html: :class contents-overview -- [[./_subsections/lesson-02.org][Lesson 01 | Course Overview + The Shell]] -- [[./_subsections/lesson-03.org][Lesson 02 | Shell Tools and Scripting]] +- [[./_subsections/lesson-01.org][Lesson 01 | Course Overview + The Shell]] +- [[./_subsections/lesson-02.org][Lesson 02 | Shell Tools and Scripting]] *** Playlist