Skip to content

Instantly share code, notes, and snippets.

@robertdean
robertdean / CLAUDE.md
Created February 9, 2026 13:52 — forked from StewartLynch/CLAUDE.md
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
@robertdean
robertdean / gist:29c100a609f863f74c515a7cdc8b2677
Created July 14, 2025 20:03
Microsoft ENTRA ID Fetching from iOS app
import MSAL
func acquireTokenInteractively() {
guard let applicationContext = self.applicationContext,
let webViewParameters = self.webViewParameters else {
return
}
let parameters = MSALInteractiveTokenParameters(scopes: ["User.Read"], webviewParameters: webViewParameters)
parameters.promptType = .selectAccount
@robertdean
robertdean / ESPHome-YAML-ld2410-esp32.yaml
Created August 20, 2023 15:11 — forked from peyanski/ESPHome-YAML-ld2410-esp32.yaml
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}"
https://github.com/tldr-pages/tldr/blob/master/pages/common/ffmpeg.md
Video to GIF
SET filters="fps=%4,scale=%3:-1:flags=lanczos"
ffmpeg -v warning -i %1 -vf "%filters%,palettegen" -y palette.png
ffmpeg -v warning -i %1 -i palette.png -lavfi "%filters% \[x\]; \[x\]\[1:v\] paletteuse" -y %2
DEL palette.png
togif.bat <input.mp4> <output.gif> <width> <fps>
Extract audio from a video
@robertdean
robertdean / 🔥.excalidrawlib
Last active September 1, 2020 13:00
Excalidraw Library with some icons and stuff
{
"type": "excalidrawlib",
"version": 1,
"library": [
[
{
"type": "rectangle",
"version": 152,
"versionNonce": 1755960817,
"isDeleted": false,
@robertdean
robertdean / ui-library.excalidrawlib
Created August 18, 2020 12:19
ui-library.excalidrawlib
{
"type": "excalidrawlib",
"version": 1,
"library": [
[
{
"type": "rectangle",
"version": 152,
"versionNonce": 1755960817,
"isDeleted": false,
‎‎​
@robertdean
robertdean / local-storage.ts
Created June 4, 2018 13:18 — forked from faisalmuhammad/local-storage.ts
Generic Local Storage Class
/**
* Customized HTML5 local storage class with additional functionality.
*/
export class LocalStorage
{
// Public Methods
// -------------------------------------------------------------------------------------- //
/**
* Checks if the browser supports local storage.
* @returns true if the local storage is supported; false otherwise.
@robertdean
robertdean / data.service.ts
Created June 4, 2018 13:18 — forked from faisalmuhammad/data.service.ts
Angular | Parallel API Requests
/**
* @author Muhammad Faisal
* @description Service for getting data.
*/
// Angular Imports
import { Injectable } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { forkJoin as observableForkJoin, Observable } from 'rxjs';