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
| def calculadora_impuestos(ingresos): | |
| irpf_escalones = { | |
| 12_450 : 0.19, | |
| 20_200 : 0.24, | |
| 35_200 : 0.30, | |
| 60_000 : 0.37, | |
| 300_000 : 0.45, | |
| 1e100 : 0.47 | |
| } | |
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 zsh | |
| # chat – ask OpenAI using the last visible terminal lines (curl + jq) | |
| chat() { | |
| local lines=30 # how many terminal lines to capture | |
| local model="gpt-4.1-nano" # default model | |
| local verbose=false | |
| local -a query_parts=() | |
| # -------------------- parse options -------------------- |
OlderNewer