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
| #!/usr/bin/env sh | |
| set -e | |
| master_names='main|master' | |
| branch_regexp='s/[^A-Za-z0-9_\/-]*//g' | |
| master_branch="$(git branch | grep -E "${master_names}" | sed "${branch_regexp}" | head -n 1)" | |
| branches="$(git branch | grep -v -E "${master_names}" | sed "${branch_regexp}")" |
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
| #!/usr/bin/env bash | |
| if [[ "$1" == -* ]]; then | |
| # If first argument starts with "-", assume Claude CLI options | |
| set -- claude "$@" | |
| fi | |
| docker run --init -it --rm \ | |
| -v "$(pwd):$(pwd)" -w "$(pwd)" \ | |
| -v "$HOME/.claude:/home/agent/.claude" \ |
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
| #!/usr/bin/env bash | |
| set -e | |
| # Usage: parse_mongo_url URL | |
| # It sets the following variables: | |
| # MONGO_HOST | |
| # MONGO_PORT | |
| # MONGO_DATABASE | |
| # MONGO_USER | |
| # MONGO_PASSWORD |
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
| import { Provider } from 'mobx-react/native'; | |
| const SPECIAL_REACT_KEYS = { children: true, key: true, ref: true }; | |
| export default class MobxRnnProvider extends Provider { | |
| props: { | |
| store: Object | |
| }; | |
| context: { |