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
게시글 이미지
Photo, no description
Photo, no description
@Directive({ selector: 'button[uiButton], a[uiButton]', host: {
  '[attr.disabled]': '!isLink && disabled() ? "" : null',
  '[attr.aria-disabled]': '(isLink && disabled()) || null',
  '(click)': 'isLink && disabled() && $event.preventDefault()',
} })
export class UiButton {
  protected readonly isLink = inject(HOST_TAG_NAME) === 'a';
  readonly disabled = input(false, { transform: booleanAttribute });
}
export const cartEvents = eventGroup({ source: 'Cart Page', events: {
  added: type<CartItem>(), removed: type<number>(),
} });
export const CartStore = signalStore(
  withState({ items: [] as CartItem[] }),
  withReducer(
    on(cartEvents.added, ({ payload }, { items }) => ({ items: [...items, payload] })),
    on(cartEvents.removed, ({ payload }, { items }) => ({ items: items.filter((i) => i.id !== payload) })),
  ),
);
@let current = status();
@switch (current) {
  @case ('pending') { <span>Waiting for payment</span> }
  @case ('shipped') { <span>On the way</span> }
  @case ('delivered') { <span>Delivered</span> }
  @case ('refunded') { <span>Refunded</span> }
  @default never;
}

✔ Application bundle generation complete.
Dark code card titled 'Decode reads it. Verify checks it.' A token.ts snippet contrasts two jose calls: decodeJwt(token) reading sub and role, marked WRONG because anyone can forge the values, and jwtVerify(token, key) with issuer and audience options, marked RIGHT because it checks the signature. Footer: decodeJwt is claims only, jwtVerify is signature checked.
Why Always Like That?
Photo, no description
Fuse React – NextJS  Vite Admin Dashboard Template
// Angular 22.2 compiler output for the template above (excerpt)
var arrowFn0 = (ctx, view) => (a, b) => a.price - b.price;

ɵɵlistener("click", function App_Template_button_click_1_listener() {
  return ctx.cart.update((items) => items.filter((i) => i.id !== ctx.product.id));
});

ɵɵproperty("items", ctx.products())("sortFn", ɵɵarrowFunction(3, arrowFn0, ctx));

// after 10 change detection runs, sortFn input has never changed
@Injectable()
export class AppTitleStrategy extends TitleStrategy {
  private title = inject(Title);
  private unread = inject(Inbox).unreadCount;
  private page = signal<string | undefined>(undefined);
  private sync = effect(() => this.title.setTitle(
    (this.unread() ? `(${this.unread()}) ` : '') + (this.page() ?? 'Acme CRM')));

  override updateTitle(snapshot: RouterStateSnapshot) { this.page.set(this.buildTitle(snapshot)); }
}
// app.config.ts
provideRouter(routes, withComponentInputBinding({ queryParams: false }));

// order-list.ts   route: orders/:id   URL: /orders/7?page=2
export class OrderList {
  id = input<string>();    // '7'
  page = input<string>();  // undefined: query params no longer bind
}
Dark dashboard card titled 'ESLint's rules, Bun's speed'. A table compares lint times, bun lint vs ESLint, from Bun's own benchmark: shadcn/ui 2.1s vs 90.4s (43x), chakra-ui 0.59s vs 22.6s (38x), vscode 15.8s vs 404s (26x), mastodon 6.6s vs 100s (15x), playwright 4.9s vs 53.4s (11x). Notes: 9,823 of 9,826 vscode messages identical, 99.8% of oxlint tests pass, not in stable v1.4.3 yet.
게시글 이미지
Photo, no description