Skip to content

Commit 1fde124

Browse files
committed
add markdowns
1 parent 5ed8976 commit 1fde124

44 files changed

Lines changed: 28325 additions & 5 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

convert_ipynb_to_markdown.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Convert all notebooks/*.ipynb to Markdown into markdowns/
5+
if ! command -v jupyter >/dev/null 2>&1; then
6+
echo "Error: jupyter is not installed or not on PATH" >&2
7+
exit 1
8+
fi
9+
10+
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
11+
NOTEBOOK_DIR="${ROOT_DIR}/notebooks"
12+
OUTPUT_DIR="${ROOT_DIR}/markdowns"
13+
14+
mkdir -p "${OUTPUT_DIR}"
15+
shopt -s nullglob
16+
notebooks=("${NOTEBOOK_DIR}"/*.ipynb)
17+
if [[ ${#notebooks[@]} -eq 0 ]]; then
18+
echo "No .ipynb files found in ${NOTEBOOK_DIR}" >&2
19+
exit 1
20+
fi
21+
22+
for nb in "${notebooks[@]}"; do
23+
echo "Converting ${nb} to Markdown..."
24+
jupyter nbconvert --to markdown "${nb}" --output-dir "${OUTPUT_DIR}"
25+
done
26+
27+
count=$(ls -1q "${OUTPUT_DIR}"/*.md | wc -l)
28+
echo "Converted ${count} notebooks to Markdown format in ${OUTPUT_DIR} folder."
29+
echo "All done!"

markdowns/00-TableOfContents.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Object-Oriented Programming and Design Patterns with Python
2+
3+
## Table of Contents
4+
5+
### [Tools and Python Fundamentals Review](Tools-Python-Review.ipynb)
6+
7+
### [Coding Best Practices](CodingBestPractices.ipynb)
8+
9+
### [Testing Functions with unittest Library](TestingFunctions-unittest.ipynb)
10+
11+
### [Python Objects & Singleton Pattern](PythonObjects-Singleton.ipynb)
12+
13+
### [UML](UML.ipynb)
14+
15+
### [Object-Oriented Design](ObjectOrientedDesign.ipynb)
16+
17+
### [When to Use Object-Oriented Programming](WhenToUseOOP.ipynb)
18+
19+
### [Operator Overloading](OperatorOverloading.ipynb)
20+
21+
### [Expecting the Unexpected](ExpectingTheUnexpected.ipynb)
22+
23+
### [Functions & Decorator Pattern](Functions-DecoratorPattern.ipynb)
24+
25+
### [Test Data Generation](TestDataGeneration.ipynb)
26+
27+
### [Testing with Mocking and Patching](TestingMockingPatching.ipynb)
28+
29+
### [Serialization, JSON & Rich CLI](SerializationAndJSON.ipynb)
30+
31+
### [When Objects are Alike - Inheritance](WhenObjectsAreAlike.ipynb)
32+
33+
### [SOLID Principle](SOLID.ipynb)
34+
35+
### [Abstract Base Classes](ABC.ipynb)
36+
37+
### [The Iterator Pattern](IteratorPattern.ipynb)
38+
39+
### [Common Design Patterns](CommonDesignPatterns.ipynb)
40+
41+
### [Advanced Design Patterns](AdvancedDesignPatterns.ipynb)
42+
43+
### [Python Data Structures](PythonDataStructures.ipynb)
44+
45+
### [Intersection of OOP and Functional Programming](IntersectionOfOOPAndFunctionalProgramming.ipynb)
46+
47+

0 commit comments

Comments
 (0)