Skip to content

Commit dc8255f

Browse files
committed
now using second slides repository to fix build duration
1 parent d3f926e commit dc8255f

File tree

3 files changed

+21
-89
lines changed

3 files changed

+21
-89
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ Die Slides zum Kurs in deutscher Sprache können unter <https://thomasweise.gith
6262
37. [Set und Dictionary Comprehension](https://thomasweise.github.io/programmingWithPythonSlidesDE/37_set_und_dictionary_comprehension.pdf)
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)
65-
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)
67-
42. [Klassen: Kapselung](https://thomasweise.github.io/programmingWithPythonSlidesDE/42_klassen_kapselung.pdf)
68-
43. [Klassen: Vererbung](https://thomasweise.github.io/programmingWithPythonSlidesDE/43_klassen_vererbung.pdf)
69-
44. [Klassen/Dunder: `__str__`, `__repr__`, und `__eq__`](https://thomasweise.github.io/programmingWithPythonSlidesDE/44_klassen_dunder_str_rep_eq.pdf)
70-
45. [Klassen/Dunder: `__hash__`](https://thomasweise.github.io/programmingWithPythonSlidesDE/45_klassen_dunder_hash.pdf)
71-
46. [Klassen/Dunder: Arithmetische Operatoren und Vergleiche](https://thomasweise.github.io/programmingWithPythonSlidesDE/46_klassen_dunder_math.pdf)
72-
47. [Zwischenspiel: Debugger](https://thomasweise.github.io/programmingWithPythonSlidesDE/47_debugger.pdf)
65+
40. [Operationen für Iteratoren](https://thomasweise.github.io/programmingWithPythonSlidesDE2/40_operationen_für_iteratoren.pdf)
66+
41. [Klassen: Grundlagen](https://thomasweise.github.io/programmingWithPythonSlidesDE2/41_klassen_grundlagen.pdf)
67+
42. [Klassen: Kapselung](https://thomasweise.github.io/programmingWithPythonSlidesDE2/42_klassen_kapselung.pdf)
68+
43. [Klassen: Vererbung](https://thomasweise.github.io/programmingWithPythonSlidesDE2/43_klassen_vererbung.pdf)
69+
44. [Klassen/Dunder: `__str__`, `__repr__`, und `__eq__`](https://thomasweise.github.io/programmingWithPythonSlidesDE2/44_klassen_dunder_str_rep_eq.pdf)
70+
45. [Klassen/Dunder: `__hash__`](https://thomasweise.github.io/programmingWithPythonSlidesDE2/45_klassen_dunder_hash.pdf)
71+
46. [Klassen/Dunder: Arithmetische Operatoren und Vergleiche](https://thomasweise.github.io/programmingWithPythonSlidesDE2/46_klassen_dunder_math.pdf)
72+
47. [Zwischenspiel: Debugger](https://thomasweise.github.io/programmingWithPythonSlidesDE2/47_debugger.pdf)
7373

7474

7575
### 2.3. The Slides in English

download.sh

Lines changed: 12 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -14,94 +14,26 @@ echo "$(date +'%0Y-%0m-%0d %0R:%0S'): The current directory is '$curDir'."
1414
scriptDir="$(realpath "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/bookbase/scripts")"
1515
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): The script directory is '$scriptDir'."
1616

17-
downloadScript="$(realpath "$scriptDir/download.sh")"
18-
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): The download script directory is 'downloadScript'."
17+
download="$(realpath "$scriptDir/downloadMulti.sh")"
18+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): The download script directory is '$download'."
1919

2020
downloadDir="programmingWithPython_$(date +"%Y%m%d")"
21-
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): We will use the download directory 'downloadDir'."
21+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): We will use the download directory '$downloadDir'."
2222
mkdir -p "$downloadDir"
2323
cd "$downloadDir"
2424

25+
"$download" "programmingWithPython" "programmingWithPython.pdf"
2526

27+
mkdir slidesDE
28+
cd slidesDE
2629

27-
mkdir "original"
28-
mkdir "filtered"
30+
"$download" "programmingWithPythonSlidesDE" "01_organisation.pdf" "02_einleitung.pdf" "03_python_installieren.pdf" "04_pycharm_installieren.pdf" "05_programme_erstellen_und_ausführen.pdf" "06_beispiele_herunterladen.pdf" "07_int.pdf" "08_float.pdf" "09_dokumentation.pdf" "10_bool.pdf" "11_str.pdf" "12_none.pdf" "13_variablen_wertzuweisung.pdf" "14_fehler_im_kode_mit_exceptions_und_ide_finden.pdf" "15_variablen_typen_und_type_hints.pdf" "16_gleichheit_und_identität.pdf" "17_listen.pdf" "18_ruff.pdf" "19_tupel.pdf" "20_mengen.pdf" "21_dictionaries.pdf" "22_alternativen_mit_if.pdf" "23_schleifen_mit_for.pdf" "24_enumerate_und_pylint.pdf" "25_schleifen_mit_while.pdf" "26_funktionen_definieren_und_aufrufen.pdf" "27_funktionen_in_modulen.pdf" "28_unit_tests.pdf" "29_funktionsargumente.pdf" "30_callables_und_lambdas.pdf" "31_ausnahmen_auslösen.pdf" "32_ausnahmen_verarbeiten.pdf" "33_testen_auf_ausnahmen.pdf" "34_iteration.pdf" "35_list_comprehension.pdf" "36_doctests.pdf" "37_set_und_dictionary_comprehension.pdf" "38_generator_ausdrücke.pdf" "39_generator_funktionen.pdf"
2931

32+
"$download" "programmingWithPythonSlidesDE2" "40_operationen_für_iteratoren.pdf" "41_klassen_grundlagen.pdf" "42_klassen_kapselung.pdf" "43_klassen_vererbung.pdf" "44_klassen_dunder_str_rep_eq.pdf" "45_klassen_dunder_hash.pdf" "46_klassen_dunder_math.pdf" "47_debugger.pdf"
3033

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"
34+
cd ..
35+
git clone --depth 1 https://github.com/thomasWeise/programmingWithPythonCode
36+
mv programmingWithPythonCode examples
37+
rm -rf examples/.git
10638

10739
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): Done with the download script."

0 commit comments

Comments
 (0)