import pandas as pd
visits = pd.read_csv("visits_2026.csv", parse_dates=["booked_for"])
visits["weekday"] = visits["booked_for"].dt.day_name()
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.
TOTAL = HOURS * RATE + PARTS- 1 to 5label
- 6continuation
- 7 to 72statement
- 73 to 80sequence
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>
.ukc-code-punch-card { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-code-punch-card *, .ukc-code-punch-card *::before, .ukc-code-punch-card *::after { box-sizing: border-box; }
.ukc-code-punch-card :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-code-punch-card :where(ul, ol) { padding: 0; list-style: none; }
.ukc-code-punch-card :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-code-punch-card :where(a) { color: inherit; }
.ukc-code-punch-card svg { flex: none; }
.ukc-code-punch-card .pc { max-width: 640px; margin: 0; }
.ukc-code-punch-card .hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; font: 12.5px/1.5 var(--uk-font-mono, ui-monospace, monospace); }
.ukc-code-punch-card .nm { font-weight: 600; }
.ukc-code-punch-card .nav { display: inline-flex; align-items: center; gap: 8px; color: var(--uk-muted); font-variant-numeric: tabular-nums; }
.ukc-code-punch-card .nav button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-sm); background: var(--uk-paper); color: var(--uk-ink); cursor: pointer; transition: border-color var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-punch-card .nav button:hover { border-color: var(--line-strong); }
.ukc-code-punch-card .nav button:focus-visible, .ukc-code-punch-card .copy:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-code-punch-card .card { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px color-mix(in srgb, black 22%, transparent)); }
.ukc-code-punch-card .stock { fill: color-mix(in srgb, var(--uk-highlight) 20%, var(--uk-surface)); stroke: var(--line-strong); stroke-width: 1.5; }
.ukc-code-punch-card .rule { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.ukc-code-punch-card .dg { fill: var(--uk-muted); font: 9px var(--uk-font-mono, ui-monospace, monospace); opacity: 0.55; }
.ukc-code-punch-card .pr { fill: var(--uk-ink); font: 600 11px var(--uk-font-mono, ui-monospace, monospace); text-anchor: middle; }
.ukc-code-punch-card .hole { fill: var(--uk-paper); stroke: var(--uk-ink); stroke-width: 0.8; }
.ukc-code-punch-card .cap { margin-top: 12px; }
.ukc-code-punch-card .read { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-md), 10px); background: var(--uk-surface); }
.ukc-code-punch-card .lbl { flex: none; color: var(--uk-muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ukc-code-punch-card .src { flex: 1; min-width: 0; margin: 0; overflow-x: auto; font: 600 13px/1.6 var(--uk-font-mono, ui-monospace, monospace); }
.ukc-code-punch-card .src code { font: inherit; white-space: pre; }
.ukc-code-punch-card .copy { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--uk-radius-sm); background: none; color: var(--uk-muted); cursor: pointer; transition: background-color var(--uk-motion-duration) var(--uk-motion-ease), color var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-punch-card .copy:hover { background: var(--ink-soft); color: var(--uk-ink); }
.ukc-code-punch-card .cols { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; color: var(--uk-muted); font-size: 12.5px; }
.ukc-code-punch-card .cols b { margin-right: 6px; color: var(--uk-ink); font: 600 11.5px/1.5 var(--uk-font-mono, ui-monospace, monospace); }
.ukc-code-punch-card .cols .on { color: var(--uk-ink); text-decoration: underline; text-decoration-color: var(--uk-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
More code blocks
All 24LATEFEE.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 ENDTear here
RUN DUNE OWES $ 1.75 ULYSSES OWES $ 4 READY.
9 lines · 2 patrons owe fees crontab · roastery-01 30minute6hour*day of month*month1-5day of weekruns
/opt/roastery/bin/roast-plan --notifyEvery weekday at 06:30, Monday to Friday, in any month.
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 outLine 7Each step adds the newest reading and drops the oldest, so the loop never sums the whole window again.
No-shows by weekday
Harlow Street Clinic, bookings from January to October 2026.
[3][4]
[4]rate = visits.groupby("weekday")["no_show"].mean() * 100 rate.round(1).sort_values(ascending=False).head(3)weekday Monday 14.2 Friday 11.8 Wednesday 7.9 Name: no_show, dtype: float64
[*]visits.to_parquet("visits.parquet")Running for 4 s
Run 482 · main · a41c9e2
Fix family ticket rounding
Failed in 2m 03s
- PassedCheck out code2s
- PassedInstall dependencies41s
- PassedLint12s
-
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
- SkippedDeploy to stagingskipped
- 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.