Skip to content

Instantly share code, notes, and snippets.

@NDCSwift
NDCSwift / xcode-file-header-macros.md
Created August 27, 2026 20:56
Xcode File Header Macros — the complete reference (IDETemplateMacros.plist). Every macro and modifier, read out of Xcode 26.6's own macro engine. Companion to the Noah Does Coding video.

Xcode File Header Macros — The Complete Reference

Companion to How to Change the Created By Header in Xcode (2026) — Noah Does Coding

Xcode stamps a header into every file you create, and there is no preference for it anywhere in the app. It reads a plist at launch and substitutes its FILEHEADER string into each new file — once, at creation, never again. Change the plist and nothing you already wrote moves.

Apple documents only a handful of these macros. The rest of this list was read out of the macro engine inside Xcode 26.6 (17F113) on macOS 26.5. If you're on a different Xcode, re-check

@NDCSwift
NDCSwift / CLAUDE.md
Created March 4, 2026 18:56
A simple template for Swift 6 and iOS development in Xcode using Agentic coding (Claude or Codex)

Project Context

Overview

  • iOS 26 SwiftUI app targeting iPhone and iPad
  • Minimum deployment: iOS 26
  • Swift 6 with strict concurrency
  • Uses SwiftUI throughout - no UIKit unless absolutely necessary

Architecture

@StewartLynch
StewartLynch / CLAUDE.md
Created February 6, 2026 20:34
Claude.md Instructions for Xcode 26.3

Global Claude Code Instructions

Project Documentation Requirements

CLAUDE.md (Project Memory)

When starting work on a new Xcode project, if no CLAUDE.md exists in the project root, create one with:

  • Project overview and purpose
  • Key architecture decisions
//
// ContentView.swift
// CommaVsPeriodDemo
//
// Created by Pedro Rojas on 18/09/25.
//
import SwiftUI
struct DecimalTextField: View {
@peyanski
peyanski / ESPHome-YAML-ld2410-esp32.yaml
Last active March 30, 2026 19:10
Use this code to make your LD2410 sensor to work with ESP32 or ESP8266 board
esphome:
name: ld2410-esp32
friendly_name: ld2410-esp32
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
@robertdean
robertdean / ng-setup.sh
Last active May 10, 2023 13:37
setup v2
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
echo "${green}${green}creating project shell${reset}"
ng new ui --skip-install=true --routing=true --style=scss --skip-git=true --create-application=false --commit=false --verbose=true
cd ui
echo "${green}creating admin projectl${reset}"
export class Constants {
public static apiRoot = '/api', // If there is some prefix for all the APIs, then define that in constants.
public static API_VERSIONS = {
Version1: 'version1',
};
public static pageSettings(): PageEvent {
return {
length: 0,
pageIndex: 0,
pageSize: 10,
@bennadel
bennadel / app.component.ts
Created July 21, 2020 11:44
Looking At Different Click-To-Edit Implementations In Angular 9.1.12
// Import the core angular services.
import { Component } from "@angular/core";
// ----------------------------------------------------------------------------------- //
// ----------------------------------------------------------------------------------- //
export interface Project {
id: string;
name: string;
}
@piyushchauhan2011
piyushchauhan2011 / jwt.js
Last active February 17, 2024 00:14
Deno Google Sheets using google service accounts JWT authentication
const jwt = require("jsonwebtoken");
const credentials = require('./credentials.json');
const privateKey = credentials["private_key"];
const iss = credentials["client_email"];
const scope = "https://www.googleapis.com/auth/drive.readonly";
const token = jwt.sign(
{
const fetch = require("node-fetch");
const getData = async () => {
try {
const response = await fetch("https://www.facebook.com/api/graphql/", {
headers: {
"content-type": "application/x-www-form-urlencoded"
},
body:
"av=0&__user=0&__a=1&__dyn=7xeUmBwjbgmwCwRyWzEsheC1swgE98nwgU6C4UKewSAAwCxW4E2czobohxi2i3qcw9m7oqx61BwvU2Vwb-q3q5Voy6o2xwbG783pwKx-8wlU-cBweq0wXAy85iaxq3m7Eaoy15wJwBgK4oK227Ua831wLwKwFxe0H8-7Eox21uwjojxm&__csr=&__req=l&__beoa=0&__pc=PHASED%3ADEFAULT&dpr=2&__rev=1001662448&__s=aw8z00%3Asobw97%3Az0y5t9&__hsi=6788100950301358546-0&lsd=AVqtNhkO&jazoest=2748&__spin_r=1001662448&__spin_b=trunk&__spin_t=1580477913&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=MarketplaceNewSearchFeedPaginationQuery&variables=%7B%22count%22%3A16%2C%22cursor%22%3A%22%7B%5C%22pg%5C%22%3A0%2C%5C%22b2c%5C%22%3A%7B%5C%22br%5C%22%3A%5C%22%5C%22%2C%5C%22it%5C%22%3A0%2C%5C%22hmsr%5C%22%3Afalse%2C%5C%22tbi%5C%22%3A0%7D%2C%5C%22c2c%5C%22%3A%7B%5C%22br%5C%22%3A%5C%22AboZViCziur4Ep