From 4e204471c6ef14e8d06afc6f69506964c98d0338 Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Thu, 17 Sep 2026 02:14:05 +0100 Subject: [PATCH] Fix Termix, curate GitHub grid, refresh skills, merge Jupyter into Python, full-time-only experience --- src/components/GitHubGrid.jsx | 2 +- src/components/LanguagePanel.jsx | 136 ++++--------------------------- src/content.js | 45 +++++++++- 3 files changed, 60 insertions(+), 123 deletions(-) diff --git a/src/components/GitHubGrid.jsx b/src/components/GitHubGrid.jsx index 75bd4f3..07ab4ed 100644 --- a/src/components/GitHubGrid.jsx +++ b/src/components/GitHubGrid.jsx @@ -11,7 +11,7 @@ export default function GitHubGrid() {

On GitHub

- A curated selection from my 38 repositories — 30 self-made and 8 + A curated selection from my 38 repositories — 27 self-made and 11 fully agentic projects built with AI agents, to develop a feel for system design and AI-assisted software development. The full list lives on{" "} diff --git a/src/components/LanguagePanel.jsx b/src/components/LanguagePanel.jsx index de60c6a..996acbb 100644 --- a/src/components/LanguagePanel.jsx +++ b/src/components/LanguagePanel.jsx @@ -1,12 +1,7 @@ import { useEffect, useState } from "react"; -import { profile } from "../content.js"; +import { languageStats } from "../content.js"; import { skillIcons } from "./skill-icons.js"; -const CACHE_KEY = "gh-lang-stats-v1"; -// 1h TTL: each refresh costs ~9 unauthenticated API calls (repo list + one /languages per repo), -// well inside the 60/hour limit. -const TTL_MS = 60 * 60 * 1000; - // GitHub /languages names → glyph keys in skill-icons.js const ICONS = { JavaScript: "JavaScript", @@ -39,135 +34,38 @@ function LangGlyph({ name }) { ); } -function readCache() { - try { - const raw = localStorage.getItem(CACHE_KEY); - if (!raw) return null; - const parsed = JSON.parse(raw); - return parsed && Array.isArray(parsed.rows) ? parsed : null; - } catch { - return null; - } -} - -function writeCache(rows, repoCount) { - try { - localStorage.setItem(CACHE_KEY, JSON.stringify({ at: Date.now(), rows, repoCount })); - } catch { - // storage unavailable — panel still works uncached - } -} - -async function fetchRows(githubUser) { - const reposRes = await fetch( - `https://api.github.com/users/${githubUser}/repos?per_page=100`, - { headers: { Accept: "application/vnd.github+json" } } - ); - if (!reposRes.ok) throw new Error("repo list failed"); - const repos = await reposRes.json(); - - const langResults = await Promise.allSettled( - repos.map((r) => - fetch(`https://api.github.com/repos/${githubUser}/${r.name}/languages`).then( - (res) => (res.ok ? res.json() : null) - ) - ) - ); - - const totals = {}; - for (const result of langResults) { - if (result.status === "fulfilled" && result.value) { - for (const [lang, bytes] of Object.entries(result.value)) { - totals[lang] = (totals[lang] || 0) + bytes; - } - } - } - - const total = Object.values(totals).reduce((a, b) => a + b, 0); - if (!total) throw new Error("no language data"); - - const rows = Object.entries(totals) - .map(([name, bytes]) => ({ name, pct: (bytes / total) * 100 })) - .filter((r) => r.pct >= 1) - .sort((a, b) => b.pct - a.pct) - .slice(0, 8); - - return { rows, repoCount: repos.length }; -} - export default function LanguagePanel() { - const [state, setState] = useState(() => { - const cached = readCache(); - if (cached) { - // Fresh or stale cache both render immediately; a refetch refreshes in the background. - return { status: "ready", rows: cached.rows, repoCount: cached.repoCount }; - } - return { status: "loading" }; - }); const [armed, setArmed] = useState(false); useEffect(() => { - let cancelled = false; - fetchRows(profile.githubUser) - .then(({ rows, repoCount }) => { - if (cancelled) return; - writeCache(rows, repoCount); - setState({ status: "ready", rows, repoCount }); - }) - .catch(() => { - if (cancelled) return; - const cached = readCache(); - if (cached) setState({ status: "ready", rows: cached.rows, repoCount: cached.repoCount }); - else setState({ status: "error" }); - }); - return () => { - cancelled = true; - }; - }, []); - - useEffect(() => { - if (state.status !== "ready") return; const frame = requestAnimationFrame(() => setArmed(true)); return () => cancelAnimationFrame(frame); - }, [state.status]); + }, []); return (

Language proficiency

- {state.repoCount - ? `Share of code across ${state.repoCount} public GitHub repos` - : "Live from your public GitHub repos"} + Share of code across my 27 self-made GitHub repos
- {state.status === "loading" && ( -

Crunching your GitHub repos…

- )} - - {state.status === "error" && ( -

- Language stats are unavailable right now — they load live from GitHub. -

- )} - - {state.status === "ready" && - state.rows.map((row) => ( -
- - - {row.name} - -
-
-
- {Math.round(row.pct)}% + {languageStats.map((row) => ( +
+ + + {row.name} + +
+
- ))} + {Math.round(row.pct)}% +
+ ))}
); } diff --git a/src/content.js b/src/content.js index 9ebfc15..a6e7471 100644 --- a/src/content.js +++ b/src/content.js @@ -42,7 +42,7 @@ export const profile = { // Numbers shown in the stats strip under the hero. export const stats = [ { value: "7+", label: "Projects built end to end" }, - { value: "17", label: "Languages & frameworks" }, + { value: "19", label: "Languages & frameworks" }, { value: "15", label: "Self-hosted services running" }, { value: "1:1", label: "First-class BSc Computer Science" }, ]; @@ -54,7 +54,7 @@ export const experience = [ title: "Graduate Software Engineer", org: "Open to roles · London / Remote", detail: - "Seeking graduate and early-career software engineering roles. Open to placements, contracts, and full-time starts.", + "Seeking graduate and early-career software engineering roles. Open to full-time starts only.", }, { period: "Summers 2020 — 2026", @@ -232,6 +232,22 @@ export const githubRepos = [ stars: 3, url: `https://github.com/${GITHUB_USER}/Treasure-Hunt-App`, }, + { + name: "MAD-Treasure-Hunt", + description: + "GPS and proximity-driven React Native treasure hunt — players claim hidden caches from physical location.", + language: "JavaScript", + stars: 0, + url: `https://github.com/${GITHUB_USER}/MAD-Treasure-Hunt`, + }, + { + name: "Kotlin-TB2P1", + description: + "Native Android habit tracker in Kotlin — MVVM architecture, Room persistence, and reminder notifications.", + language: "Kotlin", + stars: 0, + url: `https://github.com/${GITHUB_USER}/Kotlin-TB2P1`, + }, { name: "Project-MAD-crudler", description: "University project for learning React Native — a CRUD(L) demo app.", @@ -239,6 +255,13 @@ export const githubRepos = [ stars: 0, url: `https://github.com/${GITHUB_USER}/Project-MAD-crudler`, }, + { + name: "LearningGo", + description: "Small programs and notes from my self-taught Go journey.", + language: "Go", + stars: 0, + url: `https://github.com/${GITHUB_USER}/LearningGo`, + }, { name: "Opera-GX-Styled-Floorp-Sidebar", description: "Opera GX–styled sidebar mod for the Floorp browser.", @@ -258,11 +281,13 @@ export const skills = { "HTML", "CSS", "JavaScript", + "TypeScript", "Python", "Bash", "PHP", "SQL", "JSON", + "LaTeX", "React.js", "Node.js", "Express.js", @@ -272,11 +297,13 @@ export const skills = { "IntelliJ IDEA", "WebStorm", "PyCharm", + "Jupyter", "Arduino IDE", "Docker", "Git", "RESTful APIs", "VS Code", + "NeoVim", "Android Studio", "Expo", "Linux", @@ -302,7 +329,7 @@ export const homelab = [ { name: "Vaultwarden", detail: "Self-hosted password manager" }, { name: "Immich", detail: "Private photo and video library" }, { name: "Home Assistant", detail: "Home automation hub" }, - { name: "Termux", detail: "Android terminal for on-the-go lab access" }, + { name: "Termix", detail: "Self-built containerised SSH manager for hopping between device sessions via a central web UI" }, ]; export const localAI = { @@ -312,3 +339,15 @@ export const localAI = { "It's not just theory: my Discord bot pairs a Cloud Gemma 4 31B-IT model for text chat and voice with a local Gemma 4 E4B QAT fallback.", ], }; + +// Share of code across my 27 self-made GitHub repos, excluding AI-agent-built +// repos and this site's repo. Jupyter Notebook bytes count as Python. +// Snapshot via the GitHub API on 2026-09-17; refresh by re-fetching /languages +// per repo and re-aggregating bytes. +export const languageStats = [ + { name: "Python", pct: 55.9 }, + { name: "JavaScript", pct: 33.3 }, + { name: "TypeScript", pct: 4.7 }, + { name: "Kotlin", pct: 3.1 }, + { name: "CSS", pct: 1.1 }, +];