Skip to content

Instantly share code, notes, and snippets.

View matthewmorek's full-sized avatar

Matthew Morek matthewmorek

View GitHub Profile
@retlehs
retlehs / CC.md
Last active October 16, 2026 20:14
Backlinks for any domain via Common Crawl
@ppries
ppries / README.md
Last active November 17, 2026 22:32
Autonomous multi-agent workflow for OpenCode — plan, review, implement, PR from a Linear issue

Autonomous Multi-Agent Workflow for OpenCode

A fire-and-forget workflow that takes a Linear issue ID and autonomously plans, tests, implements, and opens a draft PR — with TDD baked in. You walk away; it notifies you when done.

Built for OpenCode using custom agents and slash commands.

Important: The /workflow command must run with agent: build (OpenCode's default agent with full tool access). The orchestrator needs unrestricted access to do git operations, dispatch subagents, and create PRs. If you're in a restricted mode, switch to build first.

Why this exists:

  • Fire and forget. Kick off a task and walk away. You get notified when it's done or needs attention.
@jtvargas
jtvargas / MatrixEffect.swift
Created September 9, 2024 01:24
Stress Fiddle App in SwiftUI
//
// MatrixEffect.swift
//
// Created by J.T on 9/8/24.
//
import SwiftUI
import Combine
class MatrixEffectModel: ObservableObject {
@dkaraush
dkaraush / oklch2rgb.js
Last active September 6, 2026 07:35
conversion OKLCH into RGB and RGB into OKLCH in js, simplified
const multiplyMatrices = (A, B) => {
return [
A[0]*B[0] + A[1]*B[1] + A[2]*B[2],
A[3]*B[0] + A[4]*B[1] + A[5]*B[2],
A[6]*B[0] + A[7]*B[1] + A[8]*B[2]
];
}
const oklch2oklab = ([l, c, h]) => [
l,
@realvjy
realvjy / ChoasLinesShader.metal
Last active July 18, 2026 20:41
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
import SwiftUI
struct ChatGPTTextField: View {
// MARK: - State
/// State to hold our `TextField` query.
@State private var queryMessage: String = ""
/// Focus state for our `TextField`.
@bbauman1
bbauman1 / AlertItem.swift
Created August 13, 2023 19:39
SwiftUI Alerts
//
// AlertItem.swift
//
// Created by Brett Bauman on 7/25/23.
import Foundation
import SwiftUI
struct AlertItem: Identifiable {
@kylewelsby
kylewelsby / 20230504090000_tracks.sql
Last active May 17, 2023 11:05
Slugify and Pathify
CREATE TABLE public.artists (
title character varying NOT NULL,
slug character varying NOT NULL,
id SERIAL PRIMARY KEY -- I use a different ID technique
);
ALTER TABLE public.artists OWNER TO postgres;
CREATE TABLE public.tracks (
@mathesond2
mathesond2 / react-performance.md
Last active April 20, 2025 18:59
Notes on React Performance

React Performance

Notes From Steve Kinney's "React Performance" Frontend Masters Course

General

re: optimizations: "Start with a problem first, then solve it. dont go looking for problems."

"measure first before you optimize for performance. And then measure again."

//
// Created by Adam Whitcroft on 2023-01-23.
//
import SwiftUI
struct SimpleDragGesture: View {
@State private var focussedItem: String = "middle"
@State private var offset = CGSize.zero
@State private var accumulatedOffset = CGSize.zero