Skip to content

Instantly share code, notes, and snippets.

View corychainsman's full-sized avatar

Cory Chainsman corychainsman

View GitHub Profile
@dominikmartn
dominikmartn / black-october-mac-check.md
Last active October 31, 2026 21:22
Black October: paste into Claude Code or Codex to check your Mac. Checks first, asks before every fix. As of 2026-10-23.

Black October: check your Mac with your coding agent

This now lives in a repo, PRs welcome: https://github.com/dominikmartn/black-october-check

As of 2026-10-23. For people who run AI coding agents (Claude Code, Codex, and similar) on their Mac with full shell access.

How to use it: paste this file into your agent and say: run the checks, report, then ask me before every fix.

Lines marked "What we saw" come from two Macs (macOS 26.6.2 and 27.0.1) on Oct 22 and 23. Everything else comes from the linked sources. Versions change daily, so check them against the sources.

@aparente
aparente / SKILL.md
Last active November 2, 2026 03:51
tufte-viz Claude Code skill — Edward Tufte data visualization principles

name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays

@imaurer
imaurer / Unsloth Gemma 4 MOE Setup Guide.md
Created April 14, 2026 23:26
This guide covers running **Gemma 4 26B MOE** (Mixture of Experts) locally on an Apple Silicon Mac using llama.cpp with memory-mapped files. The MOE architecture activates only 8 of 128 experts per token, making it incredibly efficient.

Unsloth Gemma 4 MOE Setup Guide

Running a 26B parameter model with only 6GB RAM using mmap

Overview

This guide covers running Gemma 4 26B MOE (Mixture of Experts) locally on an Apple Silicon Mac using llama.cpp with memory-mapped files. The MOE architecture activates only 8 of 128 experts per token, making it incredibly efficient.

Spec Value
@EthanSK
EthanSK / main.swift
Created June 1, 2024 18:51
Change macOS Pointer Size (2024+)
import Foundation
import ApplicationServices
import AppKit
let appleScript = """
tell application "System Settings"
activate
reveal anchor "AX_CURSOR_SIZE" of pane id "com.apple.Accessibility-Settings.extension"
delay 1.0
@VictorTaelin
VictorTaelin / a_b_challenge.md
Last active April 12, 2026 20:34
A::B Prompting Challenge: $10k to prove me wrong!

CHALLENGE

Develop an AI prompt that solves random 12-token instances of the A::B problem (defined here), with 90%+ success rate.

RULES

1. The AI will be given a <problem/> to solve.

We'll use your prompt as the SYSTEM PROMPT, and a specific instance of problem as the PROMPT, inside XML tags. Example:

@gd3kr
gd3kr / script.js
Created February 15, 2024 06:30
Download a JSON List of twitter bookmarks
/*
the twitter api is stupid. it is stupid and bad and expensive. hence, this.
Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes.
When finished, it downloads a JSON file containing the raw text content of every bookmark.
for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please?
*/
@supermamon
supermamon / require-example.js
Last active January 10, 2022 19:41
port of node's `require` for Scriptable.app
const require = importModule('scriptable-require')
const moment = await require('moment', true)
log(moment().format('dddd'))
@kevinkub
kevinkub / scriptable-line-chart.js
Last active February 16, 2026 18:27
Simple line chart class for https://scriptable.app 📈
class LineChart {
// LineChart by https://kevinkub.de/
constructor(width, height, values) {
this.ctx = new DrawContext();
this.ctx.size = new Size(width, height);
this.values = values;
}
_calculatePath() {
@mzeryck
mzeryck / mz_invisible_widget.js
Last active October 25, 2026 18:28
A Scriptable script that creates "invisible" widget backgrounds based on your iOS wallpaper, and then either uses them as a Scriptable widget background or exports to your camera roll.
/*
MIT License
Copyright (c) 2024 Maxwell Zeryck
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW
@dcatanzaro
dcatanzaro / widget-html-css-scriptable-jobs.js
Last active September 1, 2024 22:06
Widget con HTML y CSS en Scriptable
//Twitter: https://twitter.com/DamianCatanzaro
const html = "<html> \
<head> \
<style> \
body { \
margin: 0; \
background-color: cyan; \
width: 500px; \
height: 500px; \