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
| BASE64=$(base64 -w 0 prek-design-foregrounded-transp-bg.png) | |
| curl -o "prek-badge-transp-bg.svg" "https://img.shields.io/badge/prek-enabled-brightgreen.svg?logo=data:image/png;base64,${BASE64}&logoWidth=30" | |
| BASE64=$(base64 -w 0 prek-design-transp-orange-fg.png) | |
| curl -o "prek-badge-transp-orange-fg.svg" "https://img.shields.io/badge/prek-enabled-brightgreen.svg?logo=data:image/png;base64,${BASE64}&logoWidth=30" | |
| BASE64=$(base64 -w 0 prek-design-transp-white-fg.png) | |
| curl -o "prek-badge-transp-white-fg.svg" "https://img.shields.io/badge/prek-enabled-brightgreen.svg?logo=data:image/png;base64,${BASE64}&logoWidth=30" | |
| # Orange badges |
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 itertools | |
| # Generate and print every possible string (length 1–5) from the characters: _, a, A, z, Z | |
| print(", ".join("".join(c) for r in range(1, 6) for c in itertools.product("_aAzZ", repeat=r))) |
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
| function vsearch () | |
| { | |
| local filename="$1"; | |
| local search_string="$2"; | |
| if [ -z "$filename" ] || [ -z "$search_string" ]; then | |
| echo "Usage: vsearch filename 'search_string'"; | |
| return 1; | |
| fi; | |
| vim $(fd -1 "$filename") -c "/$search_string" -c "normal! zz" | |
| } |
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
| # Delete all the unwanted defaults | |
| gh label delete bug --yes | |
| gh label delete documentation --yes | |
| gh label delete duplicate --yes | |
| gh label delete enhancement --yes | |
| gh label delete "good first issue" --yes | |
| gh label delete "help wanted" --yes | |
| gh label delete invalid --yes | |
| gh label delete question --yes | |
| gh label delete wontfix --yes |
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 rust-script | |
| //! ```cargo | |
| //! [dependencies] | |
| //! facet = "0.30" | |
| //! facet-json = "0.30" | |
| //! ``` | |
| use facet::Facet; | |
| use facet_json; |
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
| fields: | |
| - name: node_types | |
| type: | |
| items: | |
| fields: | |
| - name: type | |
| type: string | |
| - name: named | |
| type: boolean | |
| - name: subtypes |
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 rust-script | |
| //! ```cargo | |
| //! [dependencies] | |
| //! ropey = "1.6" | |
| //! smartstring = "1.0" | |
| //! ``` | |
| use ropey::Rope; | |
| use smartstring::alias::String as Tendril; |
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
| cargo doc --message-format=json 2>/dev/null | ./cdoc.rs - |
NewerOlder