Skip to content

Instantly share code, notes, and snippets.

View jeremyhon's full-sized avatar

Jeremy Hon jeremyhon

  • StaffAny
  • Singapore
View GitHub Profile
@jeremyhon
jeremyhon / create-command.md
Created July 24, 2025 12:51
Claude Code slash command for creating new commands
description
Create a new slash command with guidance

Context

Slash Command Development Guidelines

File Location:

  • Project commands: .claude/commands/ (shared with team, shows "(project)" in /help)
@jeremyhon
jeremyhon / commit.md
Last active July 24, 2025 12:52
Claude Code custom commit command with approval workflow
allowed-tools description
Bash(git:*), Bash(bun:*)
Analyze git state, perform code cleanup, and create atomic conventional commits

Context

Current Git State

  • Current branch: !git branch --show-current
  • Git status: !git status --porcelain
@jeremyhon
jeremyhon / CalendarSync.gs
Created January 3, 2018 07:06
Google Calendar Syncer (Google Apps Script)
function sync() {
var id="XXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time
var secondaryCal=CalendarApp.getCalendarById(id);
var secondaryEvents=secondaryCal.getEvents(today,enddate);