Skip to content

Commit f6cc4cc

Browse files
committed
add URI-Online-Judge
1 parent e64882b commit f6cc4cc

3 files changed

Lines changed: 31 additions & 4 deletions

File tree

.github/workflows/update-dashboard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
git clone https://github.com/LorranSutter/advent-of-code.git ../advent-of-code
2626
git clone https://github.com/LorranSutter/everybody-codes.git ../everybody-codes
2727
git clone https://github.com/LorranSutter/leet-code.git ../leet-code
28+
git clone https://github.com/LorranSutter/URI-Online-Judge.git ../URI-Online-Judge
2829
2930
- name: Generate Dashboard README
3031
run: python3 generate_dashboard.py

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ Rather than pinning multiple individual repositories, this dashboard dynamically
99
- **[Advent of Code](https://github.com/LorranSutter/advent-of-code)**: Annual December coding puzzles (Python).
1010
- **[Everybody Codes](https://github.com/LorranSutter/everybody-codes)**: Annual November story-based coding challenges (Python).
1111
- **[LeetCode](https://github.com/LorranSutter/leet-code)**: Algorithm and problem-solving practice (Go).
12+
- **[URI Online Judge](https://github.com/LorranSutter/URI-Online-Judge)**: Archive of online judge problems (Python).
1213

1314
---
1415

1516
<!-- SUMMARY:START -->
1617
## 📊 Consolidated Progress
1718

18-
> ### 🏆 **Grand Total: 275 coding challenges completed!**
19+
> ### 🏆 **Grand Total: 631 coding challenges completed!**
1920
>
2021
> - **Advent of Code**: 95/100 parts (95.0%)
2122
> - **Everybody Codes**: 52/54 parts (96.3%)
2223
> - **LeetCode**: 128 problems solved
24+
> - **URI Online Judge**: 356 problems solved
2325
2426
### [🎄 Advent of Code](https://github.com/LorranSutter/advent-of-code)
2527

@@ -56,6 +58,22 @@ Rather than pinning multiple individual repositories, this dashboard dynamically
5658
### [💡 LeetCode](https://github.com/LorranSutter/leet-code)
5759

5860
> **Overall: 128 problems solved**
61+
62+
---
63+
64+
### [🌐 URI Online Judge](https://github.com/LorranSutter/URI-Online-Judge)
65+
66+
> **Overall: 356 problems solved**
67+
68+
| Category | Solved |
69+
| :--- | :---: |
70+
| 🔰 Beginner | 200 |
71+
| ⚙️ Ad-Hoc | 54 |
72+
| 📐 Geometry | 5 |
73+
| 🔢 Mathematics | 20 |
74+
| 🗄️ SQL | 9 |
75+
| 🔤 Strings | 54 |
76+
| 🧱 Structures | 14 |
5977
<!-- SUMMARY:END -->
6078

6179
---
@@ -64,6 +82,6 @@ Rather than pinning multiple individual repositories, this dashboard dynamically
6482

6583
This repository is fully automated:
6684
1. A **GitHub Actions Workflow** (`update-dashboard.yml`) runs daily.
67-
2. It dynamically clones the latest `main` branches of the three source repositories.
85+
2. It dynamically clones the latest `main` branches of the four source repositories.
6886
3. It executes `generate_dashboard.py` to scan each repository's `README.md` progress markers, rewrite relative links to absolute ones, calculate the grand totals, and update this file.
6987
4. If and only if changes are detected, it commits and pushes the updated README.

generate_dashboard.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
"title": "💡 LeetCode",
2121
"url": "https://github.com/LorranSutter/leet-code",
2222
"branch": "main",
23+
},
24+
"URI-Online-Judge": {
25+
"title": "🌐 URI Online Judge",
26+
"url": "https://github.com/LorranSutter/URI-Online-Judge",
27+
"branch": "main",
2328
}
2429
}
2530

@@ -54,7 +59,7 @@ def parse_stats(text: str, repo_id: str):
5459
"total": int(match.group(2)),
5560
"type": "parts"
5661
}
57-
elif repo_id == "leet-code":
62+
elif repo_id in ("leet-code", "URI-Online-Judge"):
5863
# Pattern: > **Overall: X problems solved**
5964
match = re.search(r"Overall:\s*(\d+)\s*problems solved", text)
6065
if match:
@@ -105,8 +110,9 @@ def main():
105110
ebc_solved = stats.get("everybody-codes", {}).get("solved", 0)
106111
ebc_total = stats.get("everybody-codes", {}).get("total", 0)
107112
lc_solved = stats.get("leet-code", {}).get("solved", 0)
113+
uri_solved = stats.get("URI-Online-Judge", {}).get("solved", 0)
108114

109-
total_challenges = aoc_solved + ebc_solved + lc_solved
115+
total_challenges = aoc_solved + ebc_solved + lc_solved + uri_solved
110116

111117
# Overall Badge-like summary
112118
lines.append(f"> ### 🏆 **Grand Total: {total_challenges} coding challenges completed!**")
@@ -117,6 +123,8 @@ def main():
117123
lines.append(f"> - **Everybody Codes**: {ebc_solved}/{ebc_total} parts ({ebc_solved/ebc_total*100:.1f}%)")
118124
if "leet-code" in stats:
119125
lines.append(f"> - **LeetCode**: {lc_solved} problems solved")
126+
if "URI-Online-Judge" in stats:
127+
lines.append(f"> - **URI Online Judge**: {uri_solved} problems solved")
120128
lines.append("")
121129

122130
# Detail sections for each repo

0 commit comments

Comments
 (0)