- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately
- Don't keep pushing.
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
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
| // remove will remove drop from the start or end of s. | |
| // If drop is not found at front or end of s then the | |
| // original string is returned. If drop occurs at the | |
| // start and end of s, it will only be dropped from the | |
| // start. | |
| func remove2(s, drop string) string { | |
| if strings.HasPrefix(s, drop) { | |
| return strings.TrimPrefix(s, drop) | |
| } | |
| return strings.TrimSuffix(s, drop) |
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
| git config --global --replace-all core.pager "less -F -X" |
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
| local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
| PROMPT='${ret_status} %{$fg[black]%}%c%{$reset_color%} $(git_prompt_info)' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[red]%}✗" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
I hereby claim:
- I am danmux on github.
- I am danmux (https://keybase.io/danmux) on keybase.
- I have a public key ASAe8Fp7aPFSOA7EUbWXDpzLPCcp6sm2XE295-pvrwCAUgo
To claim this, I am signing this object:
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
| package iban | |
| import ( | |
| "testing" | |
| "libs/hbci/iban/assert" | |
| ) | |
| func TestParseIbanAsser(t *testing.T) { | |
| // Valid IBAN |
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
| package iban | |
| import "testing" | |
| func ibanParseEqual(t *testing.T, iban, cc, cd, bb string, willErr bool) { | |
| got, err := Parse(iban) | |
| if willErr && err == nil { | |
| t.Error("expected error") | |
| } | |
| if !willErr && err != nil { |
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
| package iban | |
| import "testing" | |
| func eq(t *testing.T, got, want, note string) { | |
| if got != want { | |
| t.Errorf("%s got <%s> wanted <%s>", note, got, want) | |
| } | |
| } |
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
| package iban | |
| import "testing" | |
| import "reflect" | |
| func TestParseDE(t *testing.T) { | |
| fix := []struct { | |
| in string | |
| iban Iban | |
| err bool |
NewerOlder