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 | |
| # Status line: model + progress bars for 5h/7d rate-limit usage and context | |
| # window usage. Reads the JSON payload Claude Code pipes on stdin (see | |
| # `claude` status line docs). | |
| # Force C numeric formatting: a locale with a comma decimal separator (e.g. | |
| # de_DE) makes printf/awk's %f reject or mis-render plain decimal input. | |
| export LC_NUMERIC=C | |
| input=$(cat) | |
| model=$(echo "$input" | jq -r '.model.display_name // "?"') |
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
| const longArgs = arg => { | |
| const [ key, value ] = arg.split('='); | |
| return { [key.slice(2)]: value || true } | |
| }; | |
| const flags = arg => [...arg.slice(1)].reduce((flagObj, f) => ({ ...flagObj, [f]: true }), {}); | |
| module.exports = () => | |
| process.argv | |
| .slice(2) |
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.exports = (...args) => | |
| args.reduce((instance, arg) => ({ | |
| ...instance, | |
| [arg]: Symbol(arg) | |
| }), {}) |
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
| // ---- | |
| // Sass (v3.3.12) | |
| // Compass (v1.0.0.alpha.21) | |
| // ---- | |
| .class1 { | |
| color: red; | |
| } | |
| .class2 { | |
| font-size: 16px; |
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
| article, | |
| aside, | |
| details, | |
| figcaption, | |
| figure, | |
| footer, | |
| header, | |
| hgroup, | |
| nav, |
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
| <!DOCTYPE html> | |
| <!--[if lt IE 8]> | |
| <html class="no-js lt-ie9 lt-ie8"> | |
| <![endif]--> | |
| <!--[if IE 8]> | |
| <html class="no-js lt-ie9"> | |
| <![endif]--> | |
| <!--[if gt IE 8]><!--> | |
| <html class="no-js"> | |
| <!--<![endif]--> |