Skip to content

Instantly share code, notes, and snippets.

View jamesaphoenix's full-sized avatar
🎯
Building the future

James Phoenix jamesaphoenix

🎯
Building the future
View GitHub Profile
#!/bin/bash
set -e
# Claude Code PostToolUse hook for formatting and linting
# Reads JSON from stdin and runs formatting on edited files
INPUT=$(cat)
# Debug: show what we received
echo "Received input: $INPUT" >&2
#!/bin/bash
set -e
# Claude Code PostToolUse hook for type checking
# Reads JSON from stdin and runs TypeScript compiler on the project when TS files are modified
INPUT=$(cat)
# Debug: show what we received
echo "Received input: $INPUT" >&2
#!/bin/bash
set -e
# Colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
# Get schema from environment or use 'public'
import os
import uuid
from typing import List
import requests
from fastapi import HTTPException
def get_profiles(api_url: str, headers: dict) -> List[dict]:
"""