unslopkit

Components / Code blocks

Inline code and keys

Docs prose with inline code, a file path, and key caps, plus a short list of shortcuts. Shows how code sits inside sentences, not just in blocks.

Guides · API keys

Rotate a key without downtime

Run halden keys rotate in your project folder. The old key keeps working for 24 hours, so a deploy that still reads HALDEN_KEY won't fail halfway.

The CLI writes the new key to ~/.halden/config.toml. Rather click than type? Press Ctrl K in the dashboard and search for keys.

Shortcuts in the docs

Search the docs
/
Copy the focused snippet
C
Next or previous heading
JK
Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-code-prose-inline">
<article class="doc">
  <p class="crumb">Guides · API keys</p>
  <h3>Rotate a key without downtime</h3>
  <p>Run <code>halden keys rotate</code> in your project folder. The old key keeps working for 24 hours, so a deploy that still reads <code>HALDEN_KEY</code> won't fail halfway.</p>
  <p>The CLI writes the new key to <code class="file"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h6l2 2h10v11H3z"/></svg>~/.halden/config.toml</code>. Rather click than type? Press <kbd>Ctrl</kbd>&nbsp;<kbd>K</kbd> in the dashboard and search for keys.</p>
  <div class="keys">
    <p class="kh">Shortcuts in the docs</p>
    <dl>
      <div><dt>Search the docs</dt><dd><kbd>/</kbd></dd></div>
      <div><dt>Copy the focused snippet</dt><dd><kbd>C</kbd></dd></div>
      <div><dt>Next or previous heading</dt><dd><kbd>J</kbd><kbd>K</kbd></dd></div>
    </dl>
  </div>
</article>
</div>

More code blocks

All 24
  • Deck INVOICE.FORCard 12 of 40
    00000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222222222222222222233333333333333333333333333333333333333333333333333333333333333333333333333333333444444444444444444444444444444444444444444444444444444444444444444444444444444445555555555555555555555555555555555555555555555555555555555555555555555555555555566666666666666666666666666666666666666666666666666666666666666666666666666666666777777777777777777777777777777777777777777777777777777777777777777777777777777778888888888888888888888888888888888888888888888888888888888888888888888888888888899999999999999999999999999999999999999999999999999999999999999999999999999999999 TOTAL=HOURS*RATE+PARTSINV00120
    Reads
          TOTAL = HOURS * RATE + PARTS
    • 1 to 5label
    • 6continuation
    • 7 to 72statement
    • 73 to 80sequence

    Punch card

  • LATEFEE.BASLENDING DESK27-NOV-26 PAGE 1

    10 REM LATE FEES, 25 CENTS A DAY AFTER 14 DAYS
    20 READ N
    30 FOR I = 1 TO N
    40 READ T$, D
    50 IF D > 14 THEN PRINT T$; " OWES $"; (D - 14) * .25
    60 NEXT I
    70 DATA 3
    80 DATA "DUNE", 21, "EMMA", 9, "ULYSSES", 30
    90 END
     

    Tear here

    RUN
    DUNE OWES $ 1.75
    ULYSSES OWES $ 4
    READY.
    9 lines · 2 patrons owe fees

    Fanfold printout

  • crontab · roastery-01
    30minute 6hour *day of month *month 1-5day of week

    runs/opt/roastery/bin/roast-plan --notify

    Every weekday at 06:30, Monday to Friday, in any month.

    Cron line, explained

  • Listing 4.2A running mean over tide gauge readings
    def moving_average(values, window):
        if window < 1 or window > len(values):
            return []
        total = sum(values[:window])
        out = [total / window]
        for i in range(window, len(values)):
            total += values[i] - values[i - window]
            out.append(total / window)
        return out

    Line 7Each step adds the newest reading and drops the oldest, so the loop never sums the whole window again.

    Book-style listing

  • no_shows.ipynbPython 3.12 · busy

    No-shows by weekday

    Harlow Street Clinic, bookings from January to October 2026.

    [3]
    import pandas as pd
     
    visits = pd.read_csv("visits_2026.csv", parse_dates=["booked_for"])
    visits["weekday"] = visits["booked_for"].dt.day_name()
    [4]
    rate = visits.groupby("weekday")["no_show"].mean() * 100
    rate.round(1).sort_values(ascending=False).head(3)
    [4]
    weekday
    Monday       14.2
    Friday       11.8
    Wednesday     7.9
    Name: no_show, dtype: float64
    [*]
    visits.to_parquet("visits.parquet")

    Running for 4 s

    Notebook cells

  • Run 482 · main · a41c9e2

    Fix family ticket rounding

    Failed in 2m 03s

    1. PassedCheck out code2s
    2. PassedInstall dependencies41s
    3. PassedLint12s
    4. FailedRun tests1m 08s
      $ npm test
      PASS tests/cart.test.ts (14 tests)
      PASS tests/timeslots.test.ts (19 tests)
      FAIL tests/pricing.test.ts (9 tests, 1 failed)
        family ticket covers two adults and three children
          Expected: 38
          Received: 47.5
          at tests/pricing.test.ts:27:31
      Tests: 1 failed, 41 passed, 42 total
      Process exited with code 1

    Build log by step