Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Illustration: one card lifted out of a page wireframe, framed by curly braces and a crosshair
Photo, no description
Photo, no description
If we use the correct data types in MongoDB, things flow better !
Photo, no description
Photo, no description
The editor's Record menu open over a scene, Record viewport highlighted.
JavaScript code example using the Compression Streams API to compress and decompress data streams. Includes a function to zip data with 'CompressionStream' and another to unzip with 'DecompressionStream'.
Illustration: three browser windows side by side, one with a green tick, one with a red cross and a block sticking out of its edge, one with an amber dash
Card reading: Changing the model is cheap while the only records in it are seed data. Prototype to production, part 5 of 9. kevinhorek.com
Tab shows the help hint beside the focused button.
Photo, no description
Photo, no description
Photo, no description
Super Dark Mode visual preview
Angular code in broadcast-signal.ts. First, export function broadcastSignal<T>(name: string, initial: T). Inside: const channel = new BroadcastChannel(name); const synced = signal(initial); const value = linkedSignal(() => synced()). Then channel.onmessage = (event: MessageEvent<T>) => synced.set(event.data); and inject(DestroyRef).onDestroy(() => channel.close()). Then an effect: if (value() !== synced()) { channel.postMessage(value()); synced.set(value()); }, and the function returns value. Next, an @Service() class Auth with readonly user = broadcastSignal<User | null>('user', readSession()); and private readonly router = inject(Router). Its constructor runs an effect: if (!this.user()) { this.router.navigate(['/login']); }. Its logout() method calls this.user.set(null). The postMessage line, the navigate line and the this.user.set(null) line are highlighted.
Comic with 4 panels in a 2x2 grid. The CSS logo (a purple square with the letters CSS in white inside) appears in the first three with some off-panel character saying something. The first panel is the regular logo, and the comment is "make it lighter". In the second panel, the logo is lighter and the comment is "no, make it darker". In the third panel, the logo is really dark, and the comment is "you know what... Let's start again!" The last panel is the old CSS3 logo (a blue shield with the number 3 inside) by itself with no comment.
Dark terminal-style panel titled "my-bad v1 in a plain Node script (no framework)", showing the real renderAnsi() output of my test. Top: "Error: Could not load user 42" with a source snippet of app.mjs lines 2-6, line 4 marked and a caret under "throw new Error". Then "at loadUser app.mjs:4:21" and "… 4 runtime frames". Below: "Caused by: SyntaxError: Expected double-quoted property name in JSON at position 10" with its own snippet, line 3 marked with a caret under JSON.parse, followed by collapsed runtime frames.
TypeScript code in roles.ts. const ROLES = ['admin', 'editor', 'viewer'] as const; type Role = (typeof ROLES)[number]; const role = new URLSearchParams(location.search).get('role') ?? 'viewer'. A comment says "Error: 'string' is not assignable to 'admin' | 'editor' | 'viewer'" above the highlighted line ROLES.includes(role). A second comment says "Fix: widen the array for the check, narrow the value with a type guard", followed by function isRole(value: string): value is Role { return (ROLES as readonly string[]).includes(value); }, with the return line highlighted. Last: if (isRole(role)) { openDashboard(role); } with the comment "role is Role here".
Photo, no description
Load more