Skip to content

Instantly share code, notes, and snippets.

View maccman's full-sized avatar
🦞
gpu poor

Alex MacClaw maccman

🦞
gpu poor
View GitHub Profile
@maccman
maccman / chart_threeway_advantage.svg
Last active April 5, 2026 17:04
HSA+HDHP vs Zion Health Share vs PPO: 30-Year Financial Model (2025 Data)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maccman
maccman / healthcare_30yr_wealth_2025.svg
Last active April 5, 2026 16:37
HSA+HDHP vs PPO: 30-Year Financial Model (2025 Data)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maccman
maccman / healthcare_breakeven_2025.svg
Last active April 5, 2026 16:33
HSA+HDHP vs PPO: 30-Year Financial Model (2025 Data)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maccman
maccman / dna_analysis_guide.md
Created April 5, 2026 14:36
The Advanced Hacker's Guide to DNA Analysis with Cursor

The Hacker's Guide to DNA Sequencing and Offline Analysis with Cursor

Most consumer DNA tests (like 23andMe or Ancestry) only look at a tiny fraction of your genome (less than 1%) using microarray genotyping. If you want to truly understand your genetic code, calculate massive polygenic risk scores, and run offline analyses without trusting a third party, you need Whole Genome Sequencing (WGS) and an AI coding assistant like Cursor.

Here is the step-by-step guide on how to get your full 5GB DNA sequence, download it to your local machine, and use Cursor to uncover your true health risks.


Step 1: Sequence Your DNA (Whole Genome Sequencing)

@maccman
maccman / dna_analysis_guide.md
Created April 5, 2026 14:33
The Hacker's Guide to DNA Sequencing and Offline Analysis with Cursor

The Hacker's Guide to DNA Sequencing and Offline Analysis with Cursor

Most consumer DNA tests (like 23andMe or Ancestry) only look at a tiny fraction of your genome (less than 1%) using microarray genotyping. If you want to truly understand your genetic code, calculate massive polygenic risk scores, and run offline analyses without trusting a third party, you need Whole Genome Sequencing (WGS) and an AI coding assistant like Cursor.

Here is the step-by-step guide on how to get your full 5GB DNA sequence, download it to your local machine, and use Cursor to uncover your true health risks.


Step 1: Sequence Your DNA (Whole Genome Sequencing)

@maccman
maccman / juggernaut_channels.rb
Created June 26, 2012 04:56
Sinatra Server Side Event streaming with private channels.
# Usage: redis-cli publish message.achannel hello
require 'sinatra'
require 'redis'
conns = Hash.new {|h, k| h[k] = [] }
Thread.abort_on_exception = true
get '/' do
import type { ZodType } from 'zod'
import { z } from 'zod'
const API_BASE_URL = 'https://api.pipecat.daily.co/v1'
// Schemas
const AutoScalingConfigSchema = z.object({
minAgents: z.number().optional(),
maxAgents: z.number().optional(),
})
@maccman
maccman / ai-visual-effects-motion.markdown
Created June 1, 2025 17:21
AI visual effects motion
@maccman
maccman / jquery.onclose.coffee
Last active August 15, 2024 15:14
jQuery plugin to notify users if they close the page, and there are still some Ajax requests pending.
$ = jQuery
TRANSFORM_TYPES = ['PUT', 'POST', 'DELETE']
$.activeTransforms = 0
$(document).ajaxSend (e, xhr, settings) ->
return unless settings.type in TRANSFORM_TYPES
$.activeTransforms += 1
@maccman
maccman / counter.sql
Created July 7, 2013 03:11
Postgres counter cache using triggers.
--
-- Name: c_posts_voted(); Type: FUNCTION; Schema: public; Owner: -
--
CREATE FUNCTION c_posts_voted() RETURNS trigger
LANGUAGE plpgsql
AS $$ BEGIN
UPDATE "posts" SET voted_user_ids = array_append(voted_user_ids, NEW.user_id) WHERE "id" = NEW.post_id;
RETURN NEW;
END;