Skip to content

Instantly share code, notes, and snippets.

@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 April 16, 2024 14:25
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
import os
import getpass
import boto3
os.environ['AWS_ACCESS_KEY_ID'] = ... # your accounts access key
os.environ['AWS_SECRET_ACCESS_KEY'] = ... # your accounts secret
client = boto3.client("sts")
token = getpass.getpass("Enter MFA token -> ")
# Exchange permanent key/secret for temporary ones
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.ssl_ import create_urllib3_context
# https://gist.github.com/mtigas/952344
# https://github.com/requests/requests/issues/2118
# https://github.com/requests/requests/issues/3774#issuecomment-267871876
class ClientCertificateAdapter(HTTPAdapter):
def init_poolmanager(self, *args, **kwargs):
tree ./node_modules/phantomjs-prebuilt
./node_modules/phantomjs-prebuilt
├── LICENSE.txt
├── bin
│   └── phantomjs
├── install.js
├── lib
│   ├── location.js
│   ├── phantom
│   │   ├── ChangeLog