Skip to content

Instantly share code, notes, and snippets.

View KajSzy's full-sized avatar

Kajetan Szymczak KajSzy

  • Warsaw
  • 15:00 (UTC -12:00)
View GitHub Profile
@landry-fairwinds
landry-fairwinds / example.tsx
Last active January 5, 2026 23:00
Next 16 Cache Components + Draft Mode
// page.tsx
const slug = 'home'
export default async function HomePage(_: PageProps<'/'>) {
return (
<PageLayout breadcrumbs={<PageBreadcrumbs slug={slug} />} footer={<Footnotes />}>
<ErrorBoundary FallbackComponent={ErrorFallback}>
<HeroSlice slug={slug} />
<SliceRenderer slug={slug} />
@pontusab
pontusab / proximity-prefetch.tsx
Created April 6, 2025 06:43
Next.js Proximity Prefetch (PPF)
"use client";
import { useRouter } from "next/navigation";
import type { ReactNode } from "react";
import { useCallback, useEffect, useState } from "react";
interface ProximityPrefetchProps {
children: ReactNode;
threshold?: number;
predictionInterval?: number;
@HactarCE
HactarCE / - Factorio - 4-lane RHD Modular Rail System.md
Last active November 19, 2024 01:22
Factorio - 4-lane RHD Modular Rail System

Factorio Modular Rail System

All blueprints are RHD (right-hand drive)

Modules are 42x42 (big electric poles overlap on neighboring modules)

Included blueprint books:

  • MRS - 2 Lane - RHD - 20 blueprints
  • MRS - 2 Lane Single - RHD - 34 blueprints
  • MRS - 4 Lane - RHD - 25 blueprints
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active March 6, 2026 03:16
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings