Made an epic showcase website and API!
This commit is contained in:
parent
9e21e4dbdd
commit
1907fad7c5
89 changed files with 36444 additions and 3 deletions
6
website/docs/day-16.md
Normal file
6
website/docs/day-16.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Day 16 - Learning OOP with Python
|
||||
|
||||
- OOP concepts were taught in the source main.py file, such as classes, attributes, and methods. The Turtle and prettytable packages were also used to explore these concepts, and I installed prettytable in a virtual environment for this.
|
||||
- The main objective of today is to simulate a coffee machine using OOP in the oop-coffee-machine folder. The coffee_maker.py, menu.py, and money_machine.py were given as abstract modules to work from in order to understand OOP.
|
||||
|
||||

|
||||
6
website/docs/day-17.md
Normal file
6
website/docs/day-17.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Day 17 - Implementing Classes
|
||||
|
||||
- Learned the structure of creating a class with its attributes, methods, and how to initialize objects
|
||||
- Created a trivia quiz game, with some neat questions from [opentdb](https://opentdb.com/).
|
||||
|
||||

|
||||
29
website/docs/day-18.md
Normal file
29
website/docs/day-18.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Day 18 - Turtle & the Graphical User Interface (GUI)
|
||||
|
||||
- Developed various basic turtle graphics.
|
||||
- Spirograph, random walk, various polygons, dashed line, and square.
|
||||
- Formed a dot art based on Hirst artwork.
|
||||
|
||||
## Dot art
|
||||
|
||||

|
||||
|
||||
## Spirograph
|
||||
|
||||

|
||||
|
||||
## Random Walk
|
||||
|
||||

|
||||
|
||||
## Polygons
|
||||
|
||||

|
||||
|
||||
## Dashed Line
|
||||
|
||||

|
||||
|
||||
## Square
|
||||
|
||||

|
||||
21
website/docs/day-19.md
Normal file
21
website/docs/day-19.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Day 19 - Instances, State, and Higher Order Functions
|
||||
|
||||
- Built an etch-a-sketch while understanding higher order functions
|
||||
- Simulated a turtle race with randomized steps using class instances
|
||||
|
||||
## Etch-a-Sketch
|
||||
|
||||

|
||||
|
||||
This etch-a-sketch uses higher order functions to run when keys are pressed on the keyboard.
|
||||
- **w** - Move forwards
|
||||
- **s** - Move backwards
|
||||
- **a** - Turn left
|
||||
- **d** - Turn right
|
||||
- **c** - Reset etch-a-sketch
|
||||
|
||||
## The Great Turtle Race
|
||||
|
||||

|
||||
|
||||
The Great Turtle Race uses multiple instances of the Turtle object from [the turtle module](https://docs.python.org/3/library/turtle.html) that move by a random number of steps to the edge of the screen.
|
||||
8
website/docs/day-20.md
Normal file
8
website/docs/day-20.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Day 20 - Build the Snake Game Part 1: Animation & Coordinates
|
||||
|
||||
- Made a controllable snake, and will complete the full snake game on Day 21.
|
||||
- Abstracted snake logic into a Snake class.
|
||||
|
||||
## Snake
|
||||
|
||||

|
||||
15
website/docs/day-21.md
Normal file
15
website/docs/day-21.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Day 21 - Build the Snake Game Part 2: Inheritance & List Slicing
|
||||
|
||||
- Built a snake game.
|
||||
- Learned about class inheritance and list slicing.
|
||||
|
||||
```python
|
||||
# The Fish class inherits the attributes and methods of the Animal class
|
||||
class Fish(Animal):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
```
|
||||
|
||||
## Snake Game
|
||||
|
||||

|
||||
34
website/docs/welcome.md
Normal file
34
website/docs/welcome.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Welcome to My 100 Days of Code!
|
||||
|
||||
Here you'll find many different projects I've built with **[Python](https://www.python.org/)** and other tools/frameworks.
|
||||
|
||||
I've been building these projects from **[Dr. Angela Yu's 100 Days of Code Python Bootcamp](https://www.udemy.com/course/100-days-of-code/)**. It's really fun!
|
||||
|
||||
This website is built with **[Docusaurus](https://docusaurus.io/)** and continuously deployed on **[Netlify](https://www.netlify.com/)** which is routed to a subdomain on **[Google Domains](https://domains.google.com/)**.
|
||||
|
||||
The pages are collected from my README files within the projects folder in my **[repository on GitHub](https://github.com/rzmk/100-days-of-code)** for each day, scraped with **[FastAPI](https://fastapi.tiangolo.com/)** that runs on a **[Uvicorn ASGI server](https://www.uvicorn.org/)** which is hosted on **[Heroku](https://www.heroku.com/)**.
|
||||
|
||||
:::note
|
||||
|
||||
Not all projects have READMEs for now, but will be added at a later date.
|
||||
|
||||
:::
|
||||
|
||||
:::info How does this work?
|
||||
|
||||
Navigate from the sidebar or arrows at the bottom of each page to check out my projects and notes for each!
|
||||
|
||||
:::
|
||||
|
||||
:::tip Pro Tip
|
||||
|
||||
I suggest enabling **Dark Mode** in the header.
|
||||
Just a preference, but it's really cool!
|
||||
|
||||
:::
|
||||
|
||||
> [Check out all of the code for all of my project code, this website, and the API by clicking here!](https://github.com/rzmk/100-days-of-code)
|
||||
Loading…
Add table
Add a link
Reference in a new issue