Skip to content

Instantly share code, notes, and snippets.

struct Value(Formattable):
var value: Float64
fn __init__(inout self, value: Float64):
self.value = value
fn format_to(self, inout writer: Formatter):
writer.write("Value(", self.value, ")")
def main():
v = Value(33)

imageim clock

@rectalogic
rectalogic / Animation.ts
Created May 31, 2024 20:11
animation interpolation code for posterity
// Copyright (C) 2024 Andrew Wason
// SPDX-License-Identifier: MIT
import * as D from 'decoders';
export namespace Animation {
export type Properties<P> = {
[Property in keyof P]?: number;
};
@rectalogic
rectalogic / asbury-park-happy-hour.md
Last active April 21, 2024 15:45
Asbury Park Happy Hours
@rectalogic
rectalogic / 0-asbury-park-housing.md
Last active June 21, 2024 15:54
Asbury Park, NJ new housing projects

Asbury Park Housing Construction


from __future__ import annotations
import typing as ta
# https://stackoverflow.com/questions/64161037/how-can-i-use-mypy-to-overload-the-init-method-to-adjust-a-getters-return-v
T = ta.TypeVar("T", covariant=True)
RT = ta.TypeVar("RT")
from fhir.resources import fhirtypes, reference, patient, organization, humanname
org = organization.Organization(
id="org1",
active=True,
name="Acme Corp",
)
patient = patient.Patient(
id="p001",
active=True,
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://raw.githubusercontent.com/HL7/cda-core-xsl/master/CDA.xsl"?>
<text xmlns="urn:hl7-org:v3"><list><item><caption>Auth/Cert</caption><table><colgroup><col span="2" width="16%"/><col width="18%"/><col span="2" width="16%"/><col width="18%"/></colgroup><thead><tr><th>Status</th><th>Reason</th><th>Specialty</th><th>Diagnoses / Procedures</th><th>Referred By Contact</th><th>Referred To Contact</th></tr></thead><tbody><tr><td styleCode="flagData"/><td/><td/><td><paragraph styleCode="cellHeader">Diagnoses</paragraph><paragraph/><paragraph/><paragraph>ACUTE MAXILLARY SINUSITIS J01.00</paragraph><paragraph>RETAINED FOREIGN BODY MIDDLE EAR H74.8X9</paragraph><br/><paragraph styleCode="cellHeader">Procedures</paragraph><paragraph>RIGHT NASAL ENDOSCOPY</paragraph><paragraph>MAXILLARY ANTROSTOMY</paragraph><paragraph>REMOVAL OF RIGHT PE TUBE </paragraph></td><td><paragraph/></td><td><paragraph/></td></tr></tbody></table><br/></item></list>
@rectalogic
rectalogic / sox.sh-session
Last active January 10, 2021 17:38
realtime ANC tests with sox
$ play --buffer 17 "|rec -p --buffer 17 rate 8k" vol -1 amplitude