unslopkit

Components / Code blocks

Punch card

One line of FORTRAN on an 80 column card, with the holes punched where the letters say and the columns named underneath. For retro docs and a deck you page through.

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
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-punch-card">
<figure class="pc">
  <div class="hd"><span class="nm">Deck INVOICE.FOR</span><span class="nav"><button type="button" aria-label="Previous card"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"/></svg></button><span>Card 12 of 40</span><button type="button" aria-label="Next card"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></span></div>
  <svg class="card" viewBox="0 0 820 366" role="img" aria-label="An 80 column punch card holding one FORTRAN statement, TOTAL = HOURS * RATE + PARTS, with sequence number INV00120">
<path class="stock" d="M26 1H819V365H1V26Z"/>
<path class="rule" d="M60 30V365"/><path class="rule" d="M70 30V365"/><path class="rule" d="M730 30V365"/>
<text class="dg" x="12.3" y="101" textLength="800" lengthAdjust="spacing">00000000000000000000000000000000000000000000000000000000000000000000000000000000</text><text class="dg" x="12.3" y="127" textLength="800" lengthAdjust="spacing">11111111111111111111111111111111111111111111111111111111111111111111111111111111</text><text class="dg" x="12.3" y="153" textLength="800" lengthAdjust="spacing">22222222222222222222222222222222222222222222222222222222222222222222222222222222</text><text class="dg" x="12.3" y="179" textLength="800" lengthAdjust="spacing">33333333333333333333333333333333333333333333333333333333333333333333333333333333</text><text class="dg" x="12.3" y="205" textLength="800" lengthAdjust="spacing">44444444444444444444444444444444444444444444444444444444444444444444444444444444</text><text class="dg" x="12.3" y="231" textLength="800" lengthAdjust="spacing">55555555555555555555555555555555555555555555555555555555555555555555555555555555</text><text class="dg" x="12.3" y="257" textLength="800" lengthAdjust="spacing">66666666666666666666666666666666666666666666666666666666666666666666666666666666</text><text class="dg" x="12.3" y="283" textLength="800" lengthAdjust="spacing">77777777777777777777777777777777777777777777777777777777777777777777777777777777</text><text class="dg" x="12.3" y="309" textLength="800" lengthAdjust="spacing">88888888888888888888888888888888888888888888888888888888888888888888888888888888</text><text class="dg" x="12.3" y="335" textLength="800" lengthAdjust="spacing">99999999999999999999999999999999999999999999999999999999999999999999999999999999</text>
<text class="pr" x="75" y="22">T</text><rect class="hole" x="72.5" y="91.5" width="5" height="13" rx="1"/><rect class="hole" x="72.5" y="169.5" width="5" height="13" rx="1"/><text class="pr" x="85" y="22">O</text><rect class="hole" x="82.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="82.5" y="247.5" width="5" height="13" rx="1"/><text class="pr" x="95" y="22">T</text><rect class="hole" x="92.5" y="91.5" width="5" height="13" rx="1"/><rect class="hole" x="92.5" y="169.5" width="5" height="13" rx="1"/><text class="pr" x="105" y="22">A</text><rect class="hole" x="102.5" y="39.5" width="5" height="13" rx="1"/><rect class="hole" x="102.5" y="117.5" width="5" height="13" rx="1"/><text class="pr" x="115" y="22">L</text><rect class="hole" x="112.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="112.5" y="169.5" width="5" height="13" rx="1"/><text class="pr" x="135" y="22">=</text><rect class="hole" x="132.5" y="247.5" width="5" height="13" rx="1"/><rect class="hole" x="132.5" y="299.5" width="5" height="13" rx="1"/><text class="pr" x="155" y="22">H</text><rect class="hole" x="152.5" y="39.5" width="5" height="13" rx="1"/><rect class="hole" x="152.5" y="299.5" width="5" height="13" rx="1"/><text class="pr" x="165" y="22">O</text><rect class="hole" x="162.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="162.5" y="247.5" width="5" height="13" rx="1"/><text class="pr" x="175" y="22">U</text><rect class="hole" x="172.5" y="91.5" width="5" height="13" rx="1"/><rect class="hole" x="172.5" y="195.5" width="5" height="13" rx="1"/><text class="pr" x="185" y="22">R</text><rect class="hole" x="182.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="182.5" y="325.5" width="5" height="13" rx="1"/><text class="pr" x="195" y="22">S</text><rect class="hole" x="192.5" y="91.5" width="5" height="13" rx="1"/><rect class="hole" x="192.5" y="143.5" width="5" height="13" rx="1"/><text class="pr" x="215" y="22">*</text><rect class="hole" x="212.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="212.5" y="195.5" width="5" height="13" rx="1"/><rect class="hole" x="212.5" y="299.5" width="5" height="13" rx="1"/><text class="pr" x="235" y="22">R</text><rect class="hole" x="232.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="232.5" y="325.5" width="5" height="13" rx="1"/><text class="pr" x="245" y="22">A</text><rect class="hole" x="242.5" y="39.5" width="5" height="13" rx="1"/><rect class="hole" x="242.5" y="117.5" width="5" height="13" rx="1"/><text class="pr" x="255" y="22">T</text><rect class="hole" x="252.5" y="91.5" width="5" height="13" rx="1"/><rect class="hole" x="252.5" y="169.5" width="5" height="13" rx="1"/><text class="pr" x="265" y="22">E</text><rect class="hole" x="262.5" y="39.5" width="5" height="13" rx="1"/><rect class="hole" x="262.5" y="221.5" width="5" height="13" rx="1"/><text class="pr" x="285" y="22">+</text><rect class="hole" x="282.5" y="39.5" width="5" height="13" rx="1"/><rect class="hole" x="282.5" y="247.5" width="5" height="13" rx="1"/><rect class="hole" x="282.5" y="299.5" width="5" height="13" rx="1"/><text class="pr" x="305" y="22">P</text><rect class="hole" x="302.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="302.5" y="273.5" width="5" height="13" rx="1"/><text class="pr" x="315" y="22">A</text><rect class="hole" x="312.5" y="39.5" width="5" height="13" rx="1"/><rect class="hole" x="312.5" y="117.5" width="5" height="13" rx="1"/><text class="pr" x="325" y="22">R</text><rect class="hole" x="322.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="322.5" y="325.5" width="5" height="13" rx="1"/><text class="pr" x="335" y="22">T</text><rect class="hole" x="332.5" y="91.5" width="5" height="13" rx="1"/><rect class="hole" x="332.5" y="169.5" width="5" height="13" rx="1"/><text class="pr" x="345" y="22">S</text><rect class="hole" x="342.5" y="91.5" width="5" height="13" rx="1"/><rect class="hole" x="342.5" y="143.5" width="5" height="13" rx="1"/><text class="pr" x="735" y="22">I</text><rect class="hole" x="732.5" y="39.5" width="5" height="13" rx="1"/><rect class="hole" x="732.5" y="325.5" width="5" height="13" rx="1"/><text class="pr" x="745" y="22">N</text><rect class="hole" x="742.5" y="65.5" width="5" height="13" rx="1"/><rect class="hole" x="742.5" y="221.5" width="5" height="13" rx="1"/><text class="pr" x="755" y="22">V</text><rect class="hole" x="752.5" y="91.5" width="5" height="13" rx="1"/><rect class="hole" x="752.5" y="221.5" width="5" height="13" rx="1"/><text class="pr" x="765" y="22">0</text><rect class="hole" x="762.5" y="91.5" width="5" height="13" rx="1"/><text class="pr" x="775" y="22">0</text><rect class="hole" x="772.5" y="91.5" width="5" height="13" rx="1"/><text class="pr" x="785" y="22">1</text><rect class="hole" x="782.5" y="117.5" width="5" height="13" rx="1"/><text class="pr" x="795" y="22">2</text><rect class="hole" x="792.5" y="143.5" width="5" height="13" rx="1"/><text class="pr" x="805" y="22">0</text><rect class="hole" x="802.5" y="91.5" width="5" height="13" rx="1"/>
</svg>
  <figcaption class="cap">
    <div class="read"><span class="lbl">Reads</span><pre class="src"><code>      TOTAL = HOURS * RATE + PARTS</code></pre><button class="copy" type="button" aria-label="Copy the statement"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="8" width="12" height="12" rx="1"/><path d="M16 8V4H4v12h4"/></svg></button></div>
    <ul class="cols">
      <li><b>1 to 5</b>label</li>
      <li><b>6</b>continuation</li>
      <li class="on"><b>7 to 72</b>statement</li>
      <li><b>73 to 80</b>sequence</li>
    </ul>
  </figcaption>
</figure>
</div>

More code blocks

All 24
  • 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

  • src/hours/closed-days.tsConflict 1 of 3
    export const closedDays = [
      "2026-12-25",
    <<<<<<< mainkeptdropped
      "2026-12-31", // stocktake
    =======
      "2027-01-02", // staff day
    >>>>>>> holiday-hourskeptdropped
    ];

    Result keeps the stocktake day from main.Result keeps the staff day from holiday-hours.Result keeps both days, main first.

    Merge conflict picker