Skip to content

Instantly share code, notes, and snippets.

View PaulSolt's full-sized avatar

Paul Solt PaulSolt

View GitHub Profile
@PaulSolt
PaulSolt / ViewController.swift
Created February 28, 2018 18:10
Animate Auto Layout Constraints Swift 4
//
// ViewController.swift
// SwiftButton
//
// Created by Paul Solt on 7/21/15.
// Copyright (c) 2015 Paul Solt. All rights reserved.
//
import UIKit
@PaulSolt
PaulSolt / Markdown Table of Contents Playground
Last active July 13, 2018 13:39
Sample code to extract the table of contents and output in-line for a blog post on Ghost (copy/paste, buggy output currently)
//: Table of contents generator for Markdown using {{TOC}} for text replacement and link insertion
//: Fixed the bug with {{TOC}} on second pass, added some more logic to prevent losing whitespace, and making
//: non-unicode links from the TOC (good start prototyping and working with strings, now I need to cleanup and do TDD + Mac UI)
//: I plan to wrap it up more and fix the bugs, so that I can use it as a Mac app, but this was my starting point
//: with lots of todos
//: Paul Solt (Swift 4.2 in Xcode 10)
//: 7-12-18
import Cocoa
#!/usr/bin/env bash
# Atomic commit helper to prevent AI's from accidentally deleting
# changes from dangerous commands. I only allow AI agents to commit with this flow.
# I disallow AI agents from git reset, git checkout, and git revert because
# they are dangerous operations when multiple agents (or I) are editing
# files in the same work tree.
set -euo pipefail
usage() {
cat >&2 <<'EOF'
@PaulSolt
PaulSolt / Task.md
Last active January 17, 2026 06:07

Numbering rule: Task IDs use plain integers (no leading zeros).

Task schema + ownership rules live in AGENTS.md (see Task Tracking Schema). Use the ID prefixes below whenever you add new items; legacy sections will migrate to the new format as we groom them. Task IDs never include leading zeros (e.g., AD-12). Only check a phase or parent task after the underlying code/tests/docs have merged; if anything is still outstanding, leave the checkbox unchecked and call out the remaining work in the notes. When you pause or hand off work, follow these handoff rules:

  1. Capture the latest xcodebuild log exactly as described in docs/apple/xcodebuild.md (for example, make ara-build | tee build_build.log).
  2. Record the log’s path/name in the task notes so the next agent can pick up without rerunning blind.

Formatting / ordering rules: • Prepend every task entry with a Markdown header ## AD-XX — Title so IDs are easy to scan. • Keep tasks sorted by ID; when adding a new entry, insert