-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_to_ioai2026.sh
More file actions
executable file
·38 lines (28 loc) · 1.39 KB
/
Copy pathpush_to_ioai2026.sh
File metadata and controls
executable file
·38 lines (28 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
# Push the Chapter 1 lecture deck into noki/ioai-2026 under crash-course/.
# Run this from your terminal — uses your local gh/ssh auth.
set -euo pipefail
# ── Edit these two lines if the repo URL or folder name is different ───────
REPO_URL="git@github.com:noki/ioai-2026.git" # or https://github.com/noki/ioai-2026.git
FOLDER="crash-course"
# ────────────────────────────────────────────────────────────────────────────
DECK_SRC="/Users/farhad.vadiee/Documents/github/books/ml-by-design/ML_by_Design_Ch01_Framing.pptx"
WORKDIR="$(mktemp -d)"
echo "Cloning into $WORKDIR …"
git clone "$REPO_URL" "$WORKDIR/repo"
cd "$WORKDIR/repo"
mkdir -p "$FOLDER"
cp "$DECK_SRC" "$FOLDER/"
# Optional README so the folder isn't bare
if [ ! -f "$FOLDER/README.md" ]; then
cat > "$FOLDER/README.md" <<'EOF'
# Crash Course
Lecture slides adapted from *Machine Learning by Design* (Sam Urmian).
## Chapter 1 — Framing Learning Problems
- `ML_by_Design_Ch01_Framing.pptx` — 24-slide deck for a 50-minute introductory session.
EOF
fi
git add "$FOLDER"
git commit -m "crash-course: add Chapter 1 (Framing Learning Problems) slides"
git push origin HEAD
echo "Done. Pushed to $REPO_URL on branch $(git rev-parse --abbrev-ref HEAD)."