Skip to content

Instantly share code, notes, and snippets.

View sethmills21's full-sized avatar

Seth Miller sethmills21

View GitHub Profile
@tomkrikorian
tomkrikorian / AGENTS.MD
Last active December 10, 2025 19:34
AGENTS.MD for visionOS 26 & Swift 6.2 development
name description
visionos-agent
Senior visionOS Engineer and Spatial Computing Expert for Apple Vision Pro development.

VISIONOS AGENT GUIDE

ROLE & PERSONA

You are a Senior visionOS Engineer and Spatial Computing Expert. You specialize in SwiftUI, RealityKit, and ARKit for Apple Vision Pro. Your code is optimized for the platform, adhering strictly to Apple's Human Interface Guidelines for spatial design.

@igor-makarov
igor-makarov / README.md
Last active October 21, 2025 09:17
Replace Xcode MCP with CLI (saves about 32k tokens)

Replace Xcode MCP with CLI (saves about 32k tokens)

There are two files:

  • xcodebuild - the script that the agent is expected to run
  • building-with-xcode.md - the instructions given to the agent, i.e. in CLAUDE.md

You are an experienced software developer tasked with addressing a GitHub issue. Your goal is to analyze the issue, understand the codebase, and create a comprehensive plan to tackle the task. Follow these steps carefully:

  1. First, review the GitHub issue using the gh issue view command.

<github_issue> #$ARGUMENTS </github_issue>

  1. Next, examine the relevant parts of the codebase.

Analyze the code thoroughly until you feel you have a solid understanding of the context and requirements.

const { google } = require("googleapis");
const fs = require("fs");
// You need to go to Google Cloud console (console.cloud.google.com), then APIs
// & Services -> Credentials. There, create a new service account (or reuse
// existing if you have one). Click on a service account, go to Keys, and create
// a new key, and download JSON for it. You'll use path to that JSON for
// SERVICE_ACCOUNT_FILE var.
//
// Then, go to Google Play Console, then "Users and Permissions" on the left
const fetch = require("node-fetch");
const fs = require("fs");
const jwt = require("jsonwebtoken");
const util = require("util");
// To get the private key, go to App Store Connect (appstoreconnect.apple.com), then "Users and Access"
// at the top. Then go to "Integrations" -> "App Store Connect API", under "Team Keys" create a new key,
// and you'll be able to download the private key for it.
const PRIVATE_KEY = fs.readFileSync("AuthKey_F2BLAHBLAH.p8", "utf8");
@luthviar
luthviar / BottomSheetPeopleDetectedInputView+SwiftUI+UIKit.swift
Created August 12, 2024 03:26
Create a Bottom Sheet SwiftUI View and present from UIKit UIViewController
class ViewController: UIViewController, BottomSheetPeopleDetectedInputDelegate {
private var overlayView: UIView?
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .white
let showButton = UIButton(type: .system)
showButton.setTitle("Show Bottom Sheet", for: .normal)
showButton.addTarget(self, action: #selector(showBottomSheet), for: .touchUpInside)
@MartinWeiss12
MartinWeiss12 / spotifyArtistGrid.py
Last active January 4, 2024 05:10
Get Artist Image URL With Spotify API
artistImageUrlList = []
print('Total artists streamed:', len(uniqueArtistUriList))
for uri in range(49):
spotifyUrl = requests.get('https://open.spotify.com/artist/' +
str(uniqueArtistUriList[uri]))
spoifyHtmlData = str(soup(spotifyUrl.text, 'html.parser'))
spoifyHtmlData = spoifyHtmlData.split('<')
artistName = spoifyHtmlData[5].split('>')
artistName = artistName[1].split('|')
artistApiResults = requests.get('https://api.spotify.com/v1/search',
@markusand
markusand / logger.js
Created January 15, 2022 18:33
Express logger module with Winston + Morgan
import winston from 'winston';
import morgan from 'morgan';
import json from 'morgan-json';
/* WINSTON */
const filterLevel = level => winston.format(info => info.level === level ? info : undefined)();
const logger = winston.createLogger({
levels: { error: 0, warn: 1, info: 2, debug: 3, http: 4 },
transports: [
@gauravkeshre
gauravkeshre / readme.md
Last active August 21, 2023 18:03
iOS Cocoa Touch Universal Framework Script

iOS Cocoa Touch Universal Framework Script

What

For an framework to be compatible with various devices it has to be compiled for them specifically, This script does those tasks in single shot.

How

Install Script

  1. Select Target
@drakeguan
drakeguan / convert_mp4_to_caf_opus.sh
Last active October 14, 2020 22:18
Extract audio track, convert to CAF/Opus, and generate a RSS2 feed for personal hosting podcast!
#!/bin/bash
ffmpeg -y -i "$f" -vn -c:a libfdk_aac -b:a 128k "audio/$(basename $f .mp4).m4a"
afconvert -f caff -d opus -b 8000 "audio/$(basename $f .mp4).m4a" "opus/$(basename $f .mp4).caf"