Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is
This gist contains:
ralph-loop.sh: runs Codex in an autonomous loop that repeatedly:- picks the highest-priority task from
PRD.md+progress.txt - implements only that task
- runs tests/typechecks
- updates
PRD.mdand appends toprogress.txt - commits
- picks the highest-priority task from
- stops when a “promise” file is created
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 | |
| # args: browser | |
| # example: ./getOpenTabs.sh "Brave Browser" | |
| # credits: | |
| # https://gist.github.com/samyk/65c12468686707b388ec43710430a421 | |
| # TODO: | |
| # validate args | |
| # don't open app if not already open |
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 main | |
| import ( | |
| "fmt" | |
| "hash/crc32" | |
| "math" | |
| "testing" | |
| ) | |
| /* |
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 | |
| # requires https://github.com/dbohdan/remarshal | |
| # generate diff summary for .lock file | |
| cat <(cat glide.lock| yaml2json -i - -o - | jq -r '.imports[] | .name + " " + .version') \ | |
| <(cat glide.lock| yaml2json -i - -o - | jq -r '.testImports[] | .name + " " + .version') \ | |
| | sort | uniq > glide.lock.summary |
For sure. So using some tests I had while testing mem <-> fst segment serialization, as a poor man's benchmark:
# pilosa
❯ time go test ./index/segment/tests -count=10
ok github.com/m3db/m3ninx/index/segment/tests 2.192s
/Users/prungta/code/go1.10.2/bin/go test ./index/segment/tests -count=10 3.81s user 0.47s system 131% cpu 3.266 total
# roaring binary
❯ time go test ./index/segment/tests -count=10
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 main | |
| import ( | |
| "bytes" | |
| "github.com/couchbaselabs/vellum" | |
| vregex "github.com/couchbaselabs/vellum/regexp" | |
| ) | |
| func main() { |
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 test contains utility methods for testing. | |
| package test | |
| import ( | |
| "fmt" | |
| "testing" | |
| "github.com/golang/mock/gomock" | |
| ) |
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 | |
| if ! [ -x "$(command -v git)" ]; then | |
| echo 'Error: git is not installed.' >&2 | |
| exit 1 | |
| fi | |
| if ! [ -x "$(command -v dot)" ]; then | |
| echo 'Error: graphviz (dot) is not installed.' >&2 | |
| exit 1 | |
| fi |
NewerOlder