Skip to content

Instantly share code, notes, and snippets.

View camerongoodman's full-sized avatar
🎯
Focusing

Cameron Goodman camerongoodman

🎯
Focusing
View GitHub Profile
@ctoth
ctoth / CLAUDE.md
Created November 30, 2025 20:46
My Current global CLAUDE.md

Working with Q — Coding Agent Protocol

What This Is

Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.

This is correct for code, where:

  • Reality has hard edges (the compiler doesn't care about your intent)
  • Mistakes compound (a wrong assumption propagates through everything built on it)
  • The cost of being wrong exceeds the cost of being slow
@jongpie
jongpie / generate-retrieve-commands.cls
Last active January 14, 2025 23:57
SFDX: Retrieve All EmailTemplates
// Get the email templates
Set<String> folderNames = new Set<String>();
List<EmailTemplate> emailTemplates = [SELECT Id, DeveloperName, FolderName FROM EmailTemplate ORDER BY FolderName, DeveloperName];
for (EmailTemplate emailTemplate : emailTemplates) {
folderNames.add(emailTemplate.FolderName);
}
// Get the folder dev names - this assumes the Folder.Name (display name) is unique in the org
Map<String, String> folderDisplayNameToDevName = new Map<String, String>();
for (Folder folder : [SELECT Id, DeveloperName, Name FROM Folder WHERE Name IN :folderNames and Name != 'Unfiled Public Classic Email Templates']) {
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active March 1, 2026 11:51
Online Resources For Web Developers (No Downloading)
@jahe
jahe / spring-boot-cheatsheet.java
Last active September 3, 2025 14:31
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}