Skip to content

Instantly share code, notes, and snippets.

View buzsh's full-sized avatar
🛠️
Vessium.com

Justin Bush buzsh

🛠️
Vessium.com
View GitHub Profile
@buzsh
buzsh / mermaid-js-guidelines.md
Last active September 26, 2025 14:45
LLM Mermaid.js Guidelines v1

Mermaid.js Diagram Guidelines

Comprehensive styling and best practices for creating professional, accessible diagrams

Philosophy & Approach

These diagrams represent a refined approach to Mermaid.js visualization that prioritizes:

  1. Universal Accessibility: Light/dark mode compatibility through strategic color choices
  2. Visual Hierarchy: Clear information architecture using stroke weights and semantic colors
@buzsh
buzsh / archive.swift
Created June 2, 2024 14:18
Convert codebase into a markdown file – RAG, documentation, presentation, etc.
import Foundation
let rootDirectory =
CommandLine.arguments.count > 1
? CommandLine.arguments[1] : FileManager.default.currentDirectoryPath
let outputFile = "./codebase.md"
let debugMode = CommandLine.arguments.contains("-debug")
let allowedFileTypes: [String] = [] // ie. ["swift", "py"], leave blank to allow all file types
@buzsh
buzsh / AppDirectory.swift
Last active February 8, 2024 18:42
macOS Type-Safe Application File Structure Setup
// Configure your application file structure setup...
struct Constants {
static let AppSupportFolderName = "MyApp" // ie. This will be ~/Library/Application Support/MyApp/
}
/// App directories and their associated URLs
enum AppDirectory: String, CaseIterable {
case userFiles = "UserFiles" // ie. This will be ~/Library/Application Support/MyApp/UserFiles/
case models = "UserFiles/Models"