Skip to content

Instantly share code, notes, and snippets.

View SoundBlaster's full-sized avatar
πŸ’­
Specs & Tests Driven Vibe Coding

Egor Merkushev SoundBlaster

πŸ’­
Specs & Tests Driven Vibe Coding
View GitHub Profile
@SoundBlaster
SoundBlaster / CALayer_actionForKey.m
Last active November 12, 2025 15:18
The method `-[CALayer actionForKey:]` from QuartzCore approximately reversed from ASM to pseudo Objective-C by DeepSeek
// QuartzCore`-[CALayer actionForKey:]
- (id<CAAction>)actionForKey:(NSString *)event {
// <+0>: pacibsp
// <+4>: sub sp, sp, #0x60
// <+8>: stp x24, x23, [sp, #0x20]
// <+12>: stp x22, x21, [sp, #0x30]
// <+16>: stp x20, x19, [sp, #0x40]
// <+20>: stp x29, x30, [sp, #0x50]
// <+24>: add x29, sp, #0x50
@SoundBlaster
SoundBlaster / CoreAnimationProblemDisplayLink.swift
Created November 12, 2025 14:40
Trying to sync sublayer and UIView layer
@SoundBlaster
SoundBlaster / SublayerAnimationProblem.swift
Last active November 12, 2025 06:26
Demo for problem of animation sublayer with explicit animations
import UIKit
class SublayerDelegate: NSObject, CALayerDelegate {
func animationFromSuperlayer(of layer: CALayer, forKey event: String) -> CAAnimation? {
guard let superlayer = layer.superlayer else { return nil }
guard let firstAnimationKey = superlayer.animationKeys()?.first else { return nil }
return superlayer.animation(forKey: event) ?? superlayer.animation(forKey: firstAnimationKey)
}
@SoundBlaster
SoundBlaster / LLM-PRD-Prompt.md
Created September 24, 2025 05:33
Prompt for expert project analyst and specification architect

System: You are an expert project analyst and specification architect, specialized in creating implementation-ready technical assignments (Tech Specs), actionable TODO breakdowns, and complete PRD (Product Requirements Documents) tailored for execution by LLM-based agents. Your output must be self-contained, unambiguous, and machine-readable, enabling LLM agents to execute the plan without human clarification.

For each provided high-level goal or idea:

  1. Define the scope and intent. β€’ Restate the objective in precise, unambiguous terms. β€’ Identify the primary deliverables and success criteria. β€’ Explicitly note any constraints, assumptions, or external dependencies.

  2. Decompose into a structured, hierarchical TODO plan.

@SoundBlaster
SoundBlaster / Shaped_Liquid_Glass_Effect.swift
Created August 20, 2025 13:03
SwiftUI Shape with Shaped Liquid Glass Effect
//
// ContentView.swift
// GlassOnAWater
//
// Created by Merkushev Egor on 20.08.2025.
//
import SwiftUI
struct DonutShape: Shape {
@SoundBlaster
SoundBlaster / AppleGlassSwiftUI.swift
Last active August 20, 2025 12:44
SwiftUI: Liquid Glass. From Basic to (A Little) Advance
// source 'SwiftUI: Liquid Glass. From Basic to (A Little) Advance' https://levelup.gitconnected.com/swiftui-liquid-glass-from-basic-to-a-little-advance-cdef4e4c5b90
import SwiftUI
struct ContentView: View {
@State private var offsetX: CGFloat = 0.0
@State private var containerSpacing: CGFloat = 30.0
@State private var show: Bool = true
@Namespace private var namespace
@SoundBlaster
SoundBlaster / GPT-5_Test_SwiftUI.swift
Created August 8, 2025 05:58
Test GPT-5 with SwiftUI
// Prompt: "Write simple SwiftUI app. Return only code in markdown blocks."
import SwiftUI
@main
struct SimpleSwiftUIApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
@SoundBlaster
SoundBlaster / gpt-oss-20b-swiftui-app-test.swift
Created August 5, 2025 21:56
GPT-OSS-20B SwiftUI App Test
// ──────────────────────────────────────────────────────────────
// 1️⃣ Project‑Structure (all files in one block for demo)
// ──────────────────────────────────────────────────────────────
//
// AppDelegate.swift – UIApplicationDelegate (optional)
// SceneDelegate.swift – UIWindowSceneDelegate (if needed)
// MainApp.swift – @main entry point
// Models/CounterEntity.swift
// Domain/Protocols/CounterRepositoryProtocol.swift
// Domain/UseCases/IncrementCounter.swift
@SoundBlaster
SoundBlaster / SwiftUIApp.swift
Last active July 29, 2025 20:41
Qwen3-30b-a3b-2507-4bit
// MIT Licence
//
// LLM: qwen/qwen3-30b-a3b-2507
//
// Software: LMStudio
//
// Prompt in 3 steps:
// 1. I want to built simple SwiftUI app in one file. Help
// 2. Please, return only code in the markdown markup. No comments, no detail text.
// Make this app more complex - add several buttons and functions for them.