Skip to content

Instantly share code, notes, and snippets.

View JetForMe's full-sized avatar

Rick M JetForMe

View GitHub Profile
@JetForMe
JetForMe / 03.mak
Last active December 27, 2015 13:18
pcl failed to build on 10.9
/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/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -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
@JetForMe
JetForMe / Park.ino
Last active December 29, 2015 00:49
Hacktacular parking ranging code. This was a fatigue-fueled throwaway effort for the Parking Ranger described here http://www.youtube.com/watch?v=lHSCSfiCXpA. 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…
/**
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
JetForMe / BB-ENABLE-PRU.dts
Created September 24, 2015 09:50
Building toward the overlay for Podtique1.
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone-black";
/* identification */
part-number = "BB-ENABLE-PRU";
/* version */
@JetForMe
JetForMe / asound.state
Last active October 29, 2015 21:49
My /var/lib/alsa/asound.state file
state.EVM {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value.0 50
value.1 50
comment {
access 'read write'
type INTEGER
count 2
@JetForMe
JetForMe / gist:ef7a3510620b792d155aa0cf747c442a
Created October 21, 2016 00:48
Simplified User and Vault
@Service("/User")
public
interface
UserVault extends Vault<IdAsset, User>
{
void
create(HOASession.UserRegistrationForm inForm,
Result<IdAsset> ioResult);
void
@JetForMe
JetForMe / Example.swift
Created November 15, 2020 00:55
Home automation DSL in Swift
/**
ExampleAutomationScript.swift
ZWaveTest
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.
*/
@JetForMe
JetForMe / TestSpecs.md
Last active January 7, 2021 22:12
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
JetForMe / optimized.asm
Last active April 28, 2021 07:13
SCNQuaternion Test
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 11, 0 sdk_version 11, 3
.globl _main
.p2align 4, 0x90
_main:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
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
JetForMe / make-inst-rom.swift
Created December 10, 2022 15:10
Ben Eater CPU Microcode ROM Generator
#!/usr/bin/env swift sh
/**
This Swift script requires that you have [swift-sh](https://github.com/mxcl/swift-sh) installed:
```
$ brew install swift-sh
```
My CPU differs from Bean Eater’s, in that I program two different ROMs,