Welcome to the Class Practice Repository! This repo will contain all the code, examples, mini-assignments, and practice work written during classes. It’s a single place to store, review, and track progress.
Note: All official class documents (slides, notes, references) will be available on Google Classroom.
- Class practice code
- Example snippets explained in class
- Mini assignments / exercises
- Experimentation & drafts
- (Docs live on Google Classroom)
-
Git installed:
git --version -
A code editor (e.g., VS Code)
-
Programming languages/tools used in class (install as needed):
- Node.js for JavaScript/TypeScript
- Python (if we do Python lessons)
- Java / JDK or C++ compilers (if needed)
-
Clone the repository
git clone <YOUR-REPO-URL> cd <your-repo-folder>
-
Open in your editor (e.g., VS Code)
code . -
Create your first class folder (see structure below) and start coding.
-
Commit & push your changes
git add . git commit -m "Add: first class practice" git push origin main
.
├── README.md
├── 2025-08-22-intro/
│ ├── README.md # Notes for this class session
│ ├── js/
│ │ └── basics.js
│ ├── python/
│ │ └── basics.py
│ └── assets/
│ └── screenshot.png
├── 2025-08-24-arrays-loops/
│ ├── README.md
│ └── js/
│ └── arrays.js
└── .gitignore
-
Create a folder using date + short topic:
mkdir 2025-08-24-arrays-loops && cd $_
-
Add a mini README for that class (template below):
# Class: Arrays & Loops (2025-08--24) ## Covered - Arrays basics - For/While loops - Common pitfalls ## Snippets - See `js/arrays.js` ## Homework / Practice - Solve 5 array problems from sheet ## Notes - Any reminders here
-
Add code files inside language folders (create if missing), e.g.
js/,python/,java/. -
Stage, commit, and push
git add . git commit -m "Add: 2025-08-24 arrays & loops notes + code" git push origin main
JavaScript / Node.js
node path/to/file.jsTypeScript (transpile or use ts-node)
npx ts-node path/to/file.tsPython
python path/to/file.pyJava
javac Main.java && java MainC++
g++ main.cpp -o app && ./appTip: If a class uses a specific tool (like
npm,pip, or a framework CLI), add a short note in that class folder’sREADME.md.
- Folders:
YYYY-MM-DD-topic(e.g.,2025-08-24-arrays-loops) - Files:
lowercase-with-dashesorcamelCase(consistent per language) - Images/Assets: put inside an
assets/folder inside that class folder
-
Pull latest changes
git pull origin main
-
Make edits / add files
-
Commit with clear messages
git add . git commit -m "Add: <date-topic> <what you added>" git push origin main
Configure your Git identity once (if needed):
git config --global user.name "Your Name"
git config --global user.email "you@example.com"This repo is primarily for personal/class use. If someone wants to contribute:
- Fork the repo
- Create a branch
- Open a Pull Request with a clear description
All official class documents (slides, notes, PDFs, references) are posted on Google Classroom.
- Classroom Link:
- Check there for announcements, homework sheets, and grades.
- Keep each class in its own folder to stay organized.
- Add a short
README.mdinside each class folder for quick recall later. - Don’t commit secrets or private keys (use
.gitignore). - If you try new libraries, note the install commands in that class
README.md.
- "Permission denied" or run issues: ensure you’re in the right folder and the file exists.
- Node.js errors: check Node version; run
node -v. - Python version:
python --version(orpython3). - Git push blocked: run
git pull --rebase origin mainthen push again.
Q: Where are the class slides and notes? A: On Google Classroom (link above).
Q: Can I organize by week instead of by date?
A: Yes! Keep it consistent (e.g., week-01-intro).
Q: Can I mix languages in the same class folder?
A: Yes. Use subfolders like js/, python/, java/ etc.
Choose a license if you plan to make this public (e.g., MIT). Add a LICENSE file or update this section.
For questions, reach out during class or via Google Classroom comments.