Fix Termix, curate GitHub grid, refresh skills, merge Jupyter into Python, full-time-only experience

This commit is contained in:
bobbert committed 2026-09-17 02:14:05 +01:00
1 parent d44dfc859f
commit 4e204471c6
3 files changed
+60 -123

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ export default function GitHubGrid() {
<div className="container">
<h2 className="section-title">On GitHub</h2>
<p className="section-lede">
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{" "}
+17 -119
View File
@@ -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 (
<div className="lang-panel">
<div className="lang-panel-head">
<h3 className="lang-panel-title">Language proficiency</h3>
<span className="lang-panel-sub">
{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
</span>
</div>
{state.status === "loading" && (
<p className="lang-note">Crunching your GitHub repos…</p>
)}
{state.status === "error" && (
<p className="lang-note">
Language stats are unavailable right now — they load live from GitHub.
</p>
)}
{state.status === "ready" &&
state.rows.map((row) => (
<div className="lang-row" key={row.name}>
<span className="lang-name">
<LangGlyph name={row.name} />
<span>{row.name}</span>
</span>
<div className="lang-bar-track">
<div
className="lang-bar-fill"
style={{ width: `${armed ? row.pct : 0}%` }}
/>
</div>
<span className="lang-pct">{Math.round(row.pct)}%</span>
{languageStats.map((row) => (
<div className="lang-row" key={row.name}>
<span className="lang-name">
<LangGlyph name={row.name} />
<span>{row.name}</span>
</span>
<div className="lang-bar-track">
<div
className="lang-bar-fill"
style={{ width: `${armed ? row.pct : 0}%` }}
/>
</div>
))}
<span className="lang-pct">{Math.round(row.pct)}%</span>
</div>
))}
</div>
);
}
+42 -3
View File
@@ -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 },
];