Skip to content

Instantly share code, notes, and snippets.

View zarxor's full-sized avatar
🎯
Focusing

Johan Boström zarxor

🎯
Focusing
View GitHub Profile
@zarxor
zarxor / gist:66735efed68d41fe2bc25e0140540f17
Created August 12, 2026 06:30
Bygma development-ready parity and preview gate
# Bygma development-ready parity and preview gate
## Gate principle
The prototype is ready for development handoff only when route-family parity, the five core journeys, scenario behavior, visual fidelity, accessibility, automated smoke coverage, and the prototype boundary are evidenced together. A polished homepage alone cannot satisfy the gate.
## 1. Route and feature parity matrix
Maintain one version-controlled matrix with one row for every currently identified Bygma route. Each row records:
@zarxor
zarxor / gist:4e32c9eec6cbb942bb94928f68cfa818
Created August 12, 2026 05:05
Bygma shell decision — Trade variant
# Bygma shell decision: Trade variant
## Decision
Use the **Trade / Modern Bygma** direction as the shared shell and homepage structure.
## Why it won
- It preserves the live Bygma identity rather than introducing a new visual world.
- The two-tier red/white shell makes Customer mode, Store, search, Favorite lists, and Cart immediately available.
@zarxor
zarxor / ThrottleAttribute.cs
Last active January 1, 2019 21:00
Request throttling for .NET Core MVC
[AttributeUsage(AttributeTargets.Method)]
public class ThrottleAttribute : ActionFilterAttribute
{
public string Name { get; set; }
public int Seconds { get; set; }
public string Message { get; set; }
private static MemoryCache Cache { get; } = new MemoryCache(new MemoryCacheOptions());
public override void OnActionExecuting(ActionExecutingContext c)