Skip to content

Instantly share code, notes, and snippets.


Rick M JetForMe

View GitHub Profile
View Brief.swift
struct CurveEditor: View {
var body: some View
GeometryReader { geom in
let width = geom.width // Make the rest of the code a bit cleaner
let height = geom. height
Path { path in
path.move(to: CGPoint(x: 10.0, y: 10.0))
path.addLine(to: CGPoint(x: geom.size.width - 10.0, y: geom.size.height - 10.0))
JetForMe / optimized.asm
Last active Apr 28, 2021
SCNQuaternion Test
View optimized.asm
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 11, 0 sdk_version 11, 3
.globl _main
.p2align 4, 0x90
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
JetForMe /
Last active Jan 7, 2021
LA-area COVID test specs

I’ve been getting periodic current-infection COVID tests at Curative sites in Los Angeles for several months now. Today I learned that their test has poor specificity for asymptomatic individuals. I also took their new antibody test.

The new antibody test was developed in a joint effort between Curative and OraSure.1

Test Sensitivity/+Agreement Specificity/-Agreement
Curative RT-PCR2 (asymptomatic) 0/3 82.4%
Curative/OraSure COVID-19 Antibody 90.9% 100%
JetForMe / Example.swift
Created Nov 15, 2020
Home automation DSL in Swift
View Example.swift
Created by Rick Mann on 2020-11-11.
Copyright © 2020 Latency: Zero, LLC. All rights reserved.
This file was born as a scratchpad to help me think about what I wanted this
automation language to look like.
View gist:ef7a3510620b792d155aa0cf747c442a
UserVault extends Vault<IdAsset, User>
create(HOASession.UserRegistrationForm inForm,
Result<IdAsset> ioResult);
JetForMe / asound.state
Last active Oct 29, 2015
My /var/lib/alsa/asound.state file
View asound.state
state.EVM {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value.0 50
value.1 50
comment {
access 'read write'
count 2
JetForMe / BB-ENABLE-PRU.dts
Created Sep 24, 2015
Building toward the overlay for Podtique1.
/ {
compatible = "ti,beaglebone-black";
/* identification */
part-number = "BB-ENABLE-PRU";
/* version */
JetForMe / Park.ino
Last active Dec 29, 2015
Hacktacular parking ranging code. This was a fatigue-fueled throwaway effort for the Parking Ranger described here The code sets up a color table, one entry per LED, and initializes everything else. It then sits in a loop, triggering the sensor and then measuring the resulting pulse width. It then conv…
View Park.ino
Simple Arduino parking range display.
Designed for an Arduino MEGA 2560, connected via SPI0 (pins 51, 52)
to an LDP8806 52-LED strip, and a Parallax PING))) ultrasonic
sensor on pin 22.
#include "LPD8806.h"
#include "SPI.h"
JetForMe / 03.mak
Last active Dec 27, 2015
pcl failed to build on 10.9
View 03.mak
/usr/local/Cellar/cmake/2.8.12/bin/cmake -H/tmp/pcl-fuFk/pcl-pcl-1.7.0 -B/tmp/pcl-fuFk/pcl-pcl-1.7.0/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_start /tmp/pcl-fuFk/pcl-pcl-1.7.0/build/CMakeFiles /tmp/pcl-fuFk/pcl-pcl-1.7.0/build/CMakeFiles/progress.marks
/Applications/ -f CMakeFiles/Makefile2 all
/Applications/ -f common/CMakeFiles/pcl_common.dir/build.make common/CMakeFiles/pcl_common.dir/depend
cd /tmp/pcl-fuFk/pcl-pcl-1.7.0/build && /usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pcl-fuFk/pcl-pcl-1.7.0 /tmp/pcl-fuFk/pcl-pcl-1.7.0/common /tmp/pcl-fuFk/pcl-pcl-1.7.0/build /tmp/pcl-fuFk/pcl-pcl-1.7.0/build/common /tmp/pcl-fuFk/pcl-pcl-1.7.0/build/common/CMakeFiles/pcl_common.dir/DependInfo.cmake --color=
Dependee "/tmp/pcl-fuFk/pcl-pcl-1.7.0/build/common/CMakeFiles/pcl_common.dir/DependInfo.cmake" is newer than depender "/tmp/p