diff --git a/cards/2021.org b/cards/2021.org index f2d7fac..266e10c 100644 --- a/cards/2021.org +++ b/cards/2021.org @@ -3,10 +3,18 @@ :END: #+title: Anki: 2021 #+date: "2021-05-01 20:20:25 +08:00" -#+date_modified: "2021-05-14 01:10:36 +08:00" +#+date_modified: "2021-05-16 13:58:36 +08:00" #+language: en #+property: anki_deck 2021 +#+name: lilypond-paper-config +#+begin_src lilypond :exports none +\paper { + indent=10\mm + oddFooterMarkup=##f +} +#+end_src + My collection of tips and tricks I collected in 2021. * Finding devices @@ -174,6 +182,7 @@ systemd-analyze calendar *-*-8/4 * Type checking in Bash :PROPERTIES: :ANKI_NOTE_TYPE: Styled cards + :ANKI_NOTE_ID: 1620959083242 :END: ** Front Implement a little bit of type checking in Bash. @@ -543,7 +552,7 @@ Accepted values include =yes=, =no=, or a relative path to the Org document wher :ANKI_NOTE_ID: 1620897025800 :END: ** Front -Is creating dynamic content possible? +Is creating dynamic content in Org mode possible? If so, how? ** Back Yes! @@ -575,7 +584,7 @@ You can then pass header arguments by appending in square brackets (=[]=) before :ANKI_NOTE_ID: 1620897027194 :END: ** Front -Are callouts possible? +Are [[https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/][Asciidoctor-style callouts]] possible in Org mode? If so, how? ** Back Surprisingly, yes! @@ -620,7 +629,7 @@ To make creating timestamps easier, execute ~org-time-stamp~ (or whatever keybin :ANKI_NOTE_ID: 1620897027915 :END: ** Front -How to make deadlines and schedules? +How to make deadlines and schedules in Org mode entries? ** Back Just prepend the keywords =DEADLINE= and =SCHEDULED=, respectively. @@ -695,8 +704,8 @@ Give various practices for studying effectively. * Focused and diffused mode :PROPERTIES: :ANKI_NOTE_TYPE: Styled cards +:ANKI_NOTE_ID: 1621144711876 :END: -# TODO: Pass this to Anki in 2021-05-14 ** Front What is focused and diffused mode? When those two modes often found in certain situations? @@ -711,6 +720,7 @@ This is the reason why we sometimes get a sudden realization (a Eureka! moment). * Benefits of sleep :PROPERTIES: :ANKI_NOTE_TYPE: Styled cards +:ANKI_NOTE_ID: 1621144712101 :END: ** Front How does sleep help in the learning process? @@ -721,3 +731,100 @@ Sleep has certain processes that helps our brain. - Eliminating less relevant neural structures in favor of strengthening stronger ones for tomorrow. - Thinking of a solution in the background of the thing you worry about. +* Bash conditional with an unset variable +:PROPERTIES: +:ANKI_NOTE_TYPE: Styled cards +:ANKI_NOTE_ID: 1620959105474 +:END: +** Front +In Bash, what does ~${HOME:-"/home/me"}~ means? +** Back +If ~$HOME~ is unset, substitute with the given value (i.e., =/home/me=). + +* Bash conditional with a set variable +:PROPERTIES: +:ANKI_NOTE_TYPE: Styled cards +:ANKI_NOTE_ID: 1620959105702 +:END: +** Front +In Bash, what does ~${HOME:+"/home/me"}~ means? +** Back +If ~$HOME~ has a value, then return the given value (i.e., =/home/me=). + +* Shell help system +:PROPERTIES: +:ANKI_NOTE_TYPE: Styled cards +:ANKI_NOTE_ID: 1621089757772 +:END: +** Front +Give some ways to make use of the help system in the shell (or most Unix environment). +** Back +- help sections (i.e., =--help= or =-h=) +- manual pages (i.e., ~man~) +- TexInfo (i.e., ~info~) +- [[https://github.com/tldr-pages/tldr][tldr pages]] (i.e., [[https://github.com/tldr-pages/tldr/wiki/tldr-pages-clients][with clients]] like tealdeer) + +* Basic music notation reading 1 +:PROPERTIES: +:ANKI_NOTE_TYPE: Styled cards +:ANKI_NOTE_ID: 1621089760711 +:END: +** Front +What notes are displayed (in order)? + +#+begin_src lilypond :file basic-notation-reading-1.png +<> +{ + c a' f b +} +#+end_src + +#+results: +[[file:assets/2021/basic-notation-reading-1.png]] + +** Back +C A F B + +* Basic music notation reading 2 +:PROPERTIES: +:ANKI_NOTE_TYPE: Styled cards +:ANKI_NOTE_ID: 1621089763239 +:END: +** Front +What notes are displayed (in order)? + +#+begin_src lilypond :file basic-notation-reading-2.png +<> +{ + \chordmode { c1 } + \relative c' { e f a } +} +#+end_src + +#+results: +[[file:assets/2021/basic-notation-reading-2.png]] + +** Back +A C major triad (i.e., C E G). +Then the notes E, F, and A. + +* Basic music notation reading 3 +:PROPERTIES: +:ANKI_NOTE_TYPE: Styled cards +:ANKI_NOTE_ID: 1621089765539 +:END: +** Front +What notes are displayed (in order)? + +#+begin_src lilypond :file basic-notation-reading-3.png +<> +{ + c''1 d' +} +#+end_src + +#+results: +[[file:assets/2021/basic-notation-reading-3.png]] + +** Back +C, D, C-A (a major sixth), E-B (a minor fifth), and G-F (a seventh). diff --git a/cards/assets/2021/basic-notation-reading-1-1.eps b/cards/assets/2021/basic-notation-reading-1-1.eps new file mode 100644 index 0000000..0fbfcdb Binary files /dev/null and b/cards/assets/2021/basic-notation-reading-1-1.eps differ diff --git a/cards/assets/2021/basic-notation-reading-1-systems.count b/cards/assets/2021/basic-notation-reading-1-systems.count new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/cards/assets/2021/basic-notation-reading-1-systems.count @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/cards/assets/2021/basic-notation-reading-1-systems.texi b/cards/assets/2021/basic-notation-reading-1-systems.texi new file mode 100644 index 0000000..d3234e9 --- /dev/null +++ b/cards/assets/2021/basic-notation-reading-1-systems.texi @@ -0,0 +1,2 @@ +@image{basic-notation-reading-1-1} +@c eof diff --git a/cards/assets/2021/basic-notation-reading-1.png b/cards/assets/2021/basic-notation-reading-1.png new file mode 100644 index 0000000..1087c9f Binary files /dev/null and b/cards/assets/2021/basic-notation-reading-1.png differ diff --git a/cards/assets/2021/basic-notation-reading-2-1.eps b/cards/assets/2021/basic-notation-reading-2-1.eps new file mode 100644 index 0000000..f7ef542 Binary files /dev/null and b/cards/assets/2021/basic-notation-reading-2-1.eps differ diff --git a/cards/assets/2021/basic-notation-reading-2-systems.count b/cards/assets/2021/basic-notation-reading-2-systems.count new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/cards/assets/2021/basic-notation-reading-2-systems.count @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/cards/assets/2021/basic-notation-reading-2-systems.texi b/cards/assets/2021/basic-notation-reading-2-systems.texi new file mode 100644 index 0000000..098d2c9 --- /dev/null +++ b/cards/assets/2021/basic-notation-reading-2-systems.texi @@ -0,0 +1,2 @@ +@image{basic-notation-reading-2-1} +@c eof diff --git a/cards/assets/2021/basic-notation-reading-2.png b/cards/assets/2021/basic-notation-reading-2.png new file mode 100644 index 0000000..d285153 Binary files /dev/null and b/cards/assets/2021/basic-notation-reading-2.png differ diff --git a/cards/assets/2021/basic-notation-reading-3-1.eps b/cards/assets/2021/basic-notation-reading-3-1.eps new file mode 100644 index 0000000..c59004b Binary files /dev/null and b/cards/assets/2021/basic-notation-reading-3-1.eps differ diff --git a/cards/assets/2021/basic-notation-reading-3-systems.count b/cards/assets/2021/basic-notation-reading-3-systems.count new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/cards/assets/2021/basic-notation-reading-3-systems.count @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/cards/assets/2021/basic-notation-reading-3-systems.texi b/cards/assets/2021/basic-notation-reading-3-systems.texi new file mode 100644 index 0000000..5ce98b8 --- /dev/null +++ b/cards/assets/2021/basic-notation-reading-3-systems.texi @@ -0,0 +1,2 @@ +@image{basic-notation-reading-3-1} +@c eof diff --git a/cards/assets/2021/basic-notation-reading-3.png b/cards/assets/2021/basic-notation-reading-3.png new file mode 100644 index 0000000..32ec9d9 Binary files /dev/null and b/cards/assets/2021/basic-notation-reading-3.png differ diff --git a/literature/2021-04-29-18-27-29.org b/literature/2021-04-29-18-27-29.org index 544470d..c560088 100644 --- a/literature/2021-04-29-18-27-29.org +++ b/literature/2021-04-29-18-27-29.org @@ -3,7 +3,7 @@ :END: #+title: Fundamentals of music theory #+date: "2021-04-29 18:27:29 +08:00" -#+date_modified: "2021-05-10 19:15:02 +08:00" +#+date_modified: "2021-05-16 13:57:06 +08:00" #+language: en #+source: https://www.coursera.org/learn/edinburgh-music-theory/ @@ -61,6 +61,7 @@ Keep in mind this course mainly deals with western musical concepts and notation + different tonics = different pattern of semitones and tones = different quality and flavor = different melodies + each of tonics in diatonic scale is called a mode (e.g., A is called Aeolian mode, E is Phrygian) + Aeolian mode is a natural minor mode (has a pattern of TSTTSTT) + + Ionian mode is a natural major mode (has a pattern of TSTTSTT) #+begin_src lilypond :file modes.png <> @@ -87,12 +88,18 @@ Keep in mind this course mainly deals with western musical concepts and notation + perfect fifth + diminished third = diminished triad (Cdim) + triads are also named with the lowest notes so a triad of C, E, and G is a C triad + but it is a C major triad (written as Cmaj) since C and E is a major third and C, E, and G is a perfect fifth - + primary major chords: tonic, dominant, subdominant + + primary major chords: tonic, dominant, subdominant — the first, fourth, and fifth chord in the scale, respectively #+begin_src lilypond :file chords.png <> \chordmode { c1 d e f g a b } +\addlyrics { I II III IV V VI VII } #+end_src #+results: [[file:assets/2021-04-29-18-27-29/chords.png]] + + + + +* Week 2 diff --git a/literature/assets/2021-04-29-18-27-29/chords-1.eps b/literature/assets/2021-04-29-18-27-29/chords-1.eps index 40a8c34..ddd6b14 100644 Binary files a/literature/assets/2021-04-29-18-27-29/chords-1.eps and b/literature/assets/2021-04-29-18-27-29/chords-1.eps differ diff --git a/literature/assets/2021-04-29-18-27-29/chords.png b/literature/assets/2021-04-29-18-27-29/chords.png index c56925e..1f48c86 100644 Binary files a/literature/assets/2021-04-29-18-27-29/chords.png and b/literature/assets/2021-04-29-18-27-29/chords.png differ diff --git a/literature/assets/2021-04-29-18-27-29/modes-1.eps b/literature/assets/2021-04-29-18-27-29/modes-1.eps index f4f8fc7..ab2e96e 100644 Binary files a/literature/assets/2021-04-29-18-27-29/modes-1.eps and b/literature/assets/2021-04-29-18-27-29/modes-1.eps differ diff --git a/literature/assets/2021-04-29-18-27-29/modes.png b/literature/assets/2021-04-29-18-27-29/modes.png index 3e769ad..e45afef 100644 Binary files a/literature/assets/2021-04-29-18-27-29/modes.png and b/literature/assets/2021-04-29-18-27-29/modes.png differ