This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module OAuthSignupHandlers | |
| extend ActiveSupport::Concern | |
| def classify_person | |
| if @person = Person.find_by_email(@auth.info.email) | |
| classify_existing_person | |
| elsif @person = Person.build_from_oauth_signup(@auth) | |
| NewMember | |
| else | |
| Invalid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Usage: write-workplan.sh <claude-pid> <plan-names...> | |
| # Call as: ~/.claude/write-workplan.sh $PPID plan-name.md | |
| # $PPID is expanded by the calling shell (where it equals the Claude Code PID). | |
| pid="$1"; shift | |
| echo "$*" > "/tmp/claude-workplan-$pid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| input=$(cat) | |
| # Dracula theme: https://draculatheme.com/contribute | |
| PURPLE='\033[38;2;189;147;249m'; CYAN='\033[38;2;139;233;253m'; ORANGE='\033[38;2;255;184;108m' | |
| RED='\033[38;2;255;85;85m'; PINK='\033[38;2;255;121;198m'; GREEN='\033[38;2;80;250;123m' | |
| COMMENT='\033[38;2;98;114;164m'; DIM='\033[38;2;68;71;90m'; RESET='\033[0m' | |
| model=$(echo "$input" | jq -r '.model.display_name // empty') | |
| used_pct=$(echo "$input" | jq -r '.context_window.used_percentage // empty') | |
| ctx_size=$(echo "$input" | jq -r '.context_window.context_window_size // 0') |
OlderNewer