Skip to content

Instantly share code, notes, and snippets.


title: "Claude Code Hooks — Input & Output Schemas" description: "Authoritative reference for the JSON input/output schemas for all Claude Code hook events, including blocking behaviors and exit codes" category: "reference" tags: ["claude-code", "hooks", "json-schema", "api", "automation", "tool-control", "permissions", "stdin", "stdout"] last_updated: "2025-01-18" difficulty: "advanced" estimated_time: "30 minutes" author: "Claude Code Team" status: "published"

@jlln
jlln / separator.py
Last active November 9, 2023 19:59
Efficiently split Pandas Dataframe cells containing lists into multiple rows, duplicating the other column's values.
def splitDataFrameList(df,target_column,separator):
''' df = dataframe to split,
target_column = the column containing the values to split
separator = the symbol used to perform the split
returns: a dataframe with each entry for the target column separated, with each element moved into a new row.
The values in the other columns are duplicated across the newly divided rows.
'''
def splitListToRows(row,row_accumulator,target_column,separator):
split_row = row[target_column].split(separator)