Skip to content

Commit 9066a37

Browse files
committed
improved basics chapter
1 parent 10ea24e commit 9066a37

File tree

6 files changed

+334
-79
lines changed

6 files changed

+334
-79
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The list of files not under the CC BY‑NC‑SA 4.0 license bu
1515
+ The illustration of LIU Hui (刘徽) in file "text/main/basics/variables/assignment/liu_hui.jpg" is from Wenqi Ying (应雯棋), editor. Commemoration of Ancient Chinese Mathematical Master Liu Hui for his Timeless Influence on Mathematics and Civilizational Exchange. [Issue 48 of CAST Newsletter](https://english.cast.org.cn/cms_files/filemanager/1941250207/attach/202412/8f23655a82364d19ad7874eb37b23035.pdf). China, Beijing (中国北京市): 中国科学技术协会 (China Association for Science and Technology, CAST), 2024. Permission was granted to include it in this material, but the copyright remains with CAST.
1616
+ The illustration of Hero(n) of Alexandria in file "text/main/controlFlow/loops/heronOfAlexandria.jpg" is taken from the article "[The Ancient Greek Who Invented the World's First Steam Turbine](https://greekreporter.com/2023/12/13/ancient-greek-world-first-steam-turbine)", where its caption states *Heron of Alexandria. Codex of Saint Gregory Nazianzenos. Greek manuscript of the ninth century. Public Domain*.
1717
+ The illustration of Euclid of Alexandria in "text/main/controlFlow/functions/euclidOfAlexandria" [attributed](https://www.antike-griechische.de/Euklid.pdf) to the painter Charles Paul Landon (1760-1826). Source:~[Vikidia](https://fr.vikidia.org/wiki/Cat%C3%A9gorie:Image_Euclide), where it is noted as *domaine public,* i.e., as in the Public Domain.
18-
+ The illustration of Leonardo Pisano / Fibonnaci in file "text/main/controlFlow/iteration/fibonacci.jpg" shows a Sculpture by Bertel Thorvaldsen, 1834/1838 and is sourced from the Thorvaldsens Museum exhibit~[A187](https://kataloget.thorvaldsensmuseum.dk/A187) photographed by Jakob Faurvig, and is published under the Creative Commons Zero ([CC0](https://creativecommons.org/publicdomain/zero/1.0) license.
18+
+ The illustration of Leonardo Pisano / Fibonnaci in file "text/main/controlFlow/iteration/fibonacci.jpg" shows a Sculpture by Bertel Thorvaldsen, 1834/1838 and is sourced from the Thorvaldsens Museum exhibit~[A187](https://kataloget.thorvaldsensmuseum.dk/A187) photographed by Jakob Faurvig, and is published under the Creative Commons Zero ([CC0](https://creativecommons.org/publicdomain/zero/1.0)) license.
1919

2020

2121
## creative commons

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Die Slides zum Kurs in deutscher Sprache können unter <https://thomasweise.gith
6363
38. [Generator-Ausdrücke](https://thomasweise.github.io/programmingWithPythonSlidesDE/38_generator_ausdrücke.pdf)
6464
39. [Generator-Funktionen](https://thomasweise.github.io/programmingWithPythonSlidesDE/39_generator_funktionen.pdf)
6565
40. [Operationen für Iteratoren](https://thomasweise.github.io/programmingWithPythonSlidesDE/40_operationen_für_iteratoren.pdf)
66+
41. [Klassen: Grundlagen](https://thomasweise.github.io/programmingWithPythonSlidesDE/41_klassen_grundlagen.pdf)
6667

6768

6869
### 2.3. The Slides in English
@@ -101,7 +102,7 @@ The list of files not under the CC&nbsp;BY&#8209;NC&#8209;SA&nbsp;4.0 license bu
101102
+ The illustration of LIU Hui (刘徽) in file "text/main/basics/variables/assignment/liu_hui.jpg" is from Wenqi Ying (应雯棋), editor. Commemoration of Ancient Chinese Mathematical Master Liu Hui for his Timeless Influence on Mathematics and Civilizational Exchange. [Issue 48 of CAST Newsletter](https://english.cast.org.cn/cms_files/filemanager/1941250207/attach/202412/8f23655a82364d19ad7874eb37b23035.pdf). China, Beijing (中国北京市): 中国科学技术协会 (China Association for Science and Technology, CAST), 2024. Permission was granted to include it in this material, but the copyright remains with CAST.
102103
+ The illustration of Hero(n) of Alexandria in file "text/main/controlFlow/loops/heronOfAlexandria.jpg" is taken from the article "[The Ancient Greek Who Invented the World's First Steam Turbine](https://greekreporter.com/2023/12/13/ancient-greek-world-first-steam-turbine)", where its caption states *Heron of Alexandria. Codex of Saint Gregory Nazianzenos. Greek manuscript of the ninth century. Public Domain*.
103104
+ The illustration of Euclid of Alexandria in "text/main/controlFlow/functions/euclidOfAlexandria" [attributed](https://www.antike-griechische.de/Euklid.pdf) to the painter Charles Paul Landon (1760-1826). Source:~[Vikidia](https://fr.vikidia.org/wiki/Cat%C3%A9gorie:Image_Euclide), where it is noted as *domaine public,* i.e., as in the Public Domain.
104-
+ The illustration of Leonardo Pisano / Fibonnaci in file "text/main/controlFlow/iteration/fibonacci.jpg" shows a Sculpture by Bertel Thorvaldsen, 1834/1838 and is sourced from the Thorvaldsens Museum exhibit~[A187](https://kataloget.thorvaldsensmuseum.dk/A187) photographed by Jakob Faurvig, and is published under the Creative Commons Zero&nbsp;([CC0](https://creativecommons.org/publicdomain/zero/1.0) license.
105+
+ The illustration of Leonardo Pisano / Fibonnaci in file "text/main/controlFlow/iteration/fibonacci.jpg" shows a Sculpture by Bertel Thorvaldsen, 1834/1838 and is sourced from the Thorvaldsens Museum exhibit~[A187](https://kataloget.thorvaldsensmuseum.dk/A187) photographed by Jakob Faurvig, and is published under the Creative Commons Zero&nbsp;([CC0](https://creativecommons.org/publicdomain/zero/1.0)) license.
105106

106107
You can download its newest version of the course material from <https://thomasweise.github.io/databases>.
107108
This version may change since this course and book both are work in progress.

bookbase

download.sh

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
#!/bin/bash -
2+
3+
# strict error handling
4+
set -o pipefail # trace ERR through pipes
5+
set -o errtrace # trace ERR through 'time command' and other functions
6+
set -o nounset # set -u : exit the script if you try to use an uninitialized variable
7+
set -o errexit # set -e : exit the script if any statement returns a non-true return value
8+
9+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): Welcome to the download script."
10+
11+
curDir="$(pwd)"
12+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): The current directory is '$curDir'."
13+
14+
scriptDir="$(realpath "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/bookbase/scripts")"
15+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): The script directory is '$scriptDir'."
16+
17+
downloadScript="$(realpath "$scriptDir/download.sh")"
18+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): The download script directory is 'downloadScript'."
19+
20+
downloadDir="programmingWithPython_$(date +"%Y%m%d")"
21+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): We will use the download directory 'downloadDir'."
22+
mkdir -p "$downloadDir"
23+
cd "$downloadDir"
24+
25+
26+
27+
mkdir "original"
28+
mkdir "filtered"
29+
30+
31+
download () {
32+
url="https://thomasweise.github.io/$1/$2"
33+
echo "Now downloading '$url'."
34+
download.sh "$url"
35+
cp "$2" "original/"
36+
echo "Finished downloading '$url', now canonicalizing."
37+
filterPdfExact.sh "$2"
38+
mv "$2" "filtered/"
39+
rm "${2%%.*}.original.pdf"
40+
echo "Finished."
41+
}
42+
43+
44+
download "programmingWithPython" "programmingWithPython.pdf"
45+
46+
download "programmingWithPythonSlidesDE" "01_organisation.pdf"
47+
48+
download "programmingWithPythonSlidesDE" "02_einleitung.pdf"
49+
50+
download "programmingWithPythonSlidesDE" "03_python_installieren.pdf"
51+
52+
download "programmingWithPythonSlidesDE" "04_pycharm_installieren.pdf"
53+
54+
download "programmingWithPythonSlidesDE" "05_programme_erstellen_und_ausführen.pdf"
55+
56+
download "programmingWithPythonSlidesDE" "06_beispiele_herunterladen.pdf"
57+
58+
download "programmingWithPythonSlidesDE" "07_int.pdf"
59+
60+
download "programmingWithPythonSlidesDE" "08_float.pdf"
61+
62+
download "programmingWithPythonSlidesDE" "09_dokumentation.pdf"
63+
64+
download "programmingWithPythonSlidesDE" "10_bool.pdf"
65+
66+
download "programmingWithPythonSlidesDE" "11_str.pdf"
67+
68+
download "programmingWithPythonSlidesDE" "12_none.pdf"
69+
70+
download "programmingWithPythonSlidesDE" "13_variablen_wertzuweisung.pdf"
71+
72+
download "programmingWithPythonSlidesDE" "14_fehler_im_kode_mit_exceptions_und_ide_finden.pdf"
73+
74+
download "programmingWithPythonSlidesDE" "15_variablen_typen_und_type_hints.pdf"
75+
76+
download "programmingWithPythonSlidesDE" "16_gleichheit_und_identität.pdf"
77+
78+
download "programmingWithPythonSlidesDE" "17_listen.pdf"
79+
80+
download "programmingWithPythonSlidesDE" "18_ruff.pdf"
81+
82+
download "programmingWithPythonSlidesDE" "19_tupel.pdf"
83+
84+
download "programmingWithPythonSlidesDE" "20_mengen.pdf"
85+
86+
download "programmingWithPythonSlidesDE" "21_dictionaries.pdf"
87+
88+
download "programmingWithPythonSlidesDE" "22_alternativen_mit_if.pdf"
89+
90+
download "programmingWithPythonSlidesDE" "23_schleifen_mit_for.pdf"
91+
92+
download "programmingWithPythonSlidesDE" "24_enumerate_und_pylint.pdf"
93+
94+
download "programmingWithPythonSlidesDE" "25_schleifen_mit_while.pdf"
95+
96+
download "programmingWithPythonSlidesDE" "26_funktionen_definieren_und_aufrufen.pdf"
97+
98+
download "programmingWithPythonSlidesDE" "27_funktionen_in_modulen.pdf"
99+
100+
download "programmingWithPythonSlidesDE" "28_unit_tests.pdf"
101+
102+
download "programmingWithPythonSlidesDE" "29_funktionsargumente.pdf"
103+
104+
cd "$curDir"
105+
xzCompress.sh "$downloadDir"
106+
107+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): Done with the download script."

0 commit comments

Comments
 (0)