A mild, sweet and tangy jalapeno/apple cider based salsa for putting on absolutely everything or possibly just drinking with a bubble tea straw.
| ingredient | unit | quantity |
|---|
| import AppKit | |
| @main | |
| struct DateFormatters { | |
| static func main() { | |
| let iterations = 100_000 | |
| let startInterval: TimeInterval = 780_000_000 | |
| time("Create Date Baseline") { | |
| var results: [Date] = [] |
| /* | |
| The following feature is 100% pure Swift code. It compiles for a multitude of platforms, | |
| include iOS, macOS, Linux, Windows, Wasm, and more. It encapsulates all of the logic | |
| and behavior for the feature so that the view can concentrate on just the UI by reading | |
| state from the model and invoking methods on the model. | |
| */ | |
| import Dependencies | |
| import FactClient | |
| import Perception |
| // | |
| // ColorSchemeApp.swift | |
| // ColorScheme | |
| // | |
| // Created by Craig Hockenberry on 9/11/24. | |
| // | |
| import SwiftUI | |
| @main |
| [alias] | |
| # need llm CLI: https://llm.datasette.io/en/stable/ | |
| # based on https://gist.github.com/karpathy/1dd0294ef9567971c1e4348a90d69285?permalink_comment_id=5167582#gistcomment-5167582 | |
| commit-ai = "!f() { if [ -n \"$(git diff --cached)\" ]; then git commit -m \"$(git diff --cached | llm -m '4o-mini' 'Below is a diff of all staged changes, coming from the command:\\n```\\ngit diff --cached\\n```\\nPlease generate a concise, two-sentence, maximum 100 characteres commit message for these changes. Do not mention project name.')\"; else echo 'No changes to commit'; fi }; f" |
| // | |
| // ContentView.Swift | |
| // KeyboardAttachedView | |
| // | |
| // Created by Gavin Nelson on 8/19/24. | |
| // | |
| import SwiftUI | |
| import UIKit |
| // | |
| // ContentView.swift | |
| // ObservableTester | |
| // | |
| // Created by Craig Hockenberry on 4/18/24. | |
| // | |
| import SwiftUI | |
| class BackingStore { |
| // | |
| // ContentView.swift | |
| // NavigationTest | |
| // | |
| // Created by Craig Hockenberry on 4/16/24. | |
| // | |
| import SwiftUI | |
| struct OddView: View { |
| // In regards to https://mastodon.social/@mattiem/112285978801305971 | |
| // MainActor class with synchronous methods | |
| @MainActor final class M { | |
| func methodA() {} | |
| func methodB() {} | |
| } | |
| // Actor that relies on M. | |
| actor A { |
| // | |
| // ContentView.swift | |
| // BindableOptional | |
| // | |
| // Created by Craig Hockenberry on 4/12/24. | |
| // | |
| import SwiftUI | |
| @Observable |