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
| Simple fuzzy search algorithm similar to sublimeText | |
| this is a simple algorithm to give a similar result | |
| as SublimeText search feature, if you don't use sublimeText | |
| i think you should just give it a shot from here : | |
| http://www.sublimetext.com | |
| to know more about fuzzy search you should check this wiki page: | |
| http://en.wikipedia.org/wiki/Fuzzy_string_searching |
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 ( | |
| "flag" | |
| "fmt" | |
| "strings" | |
| ) | |
| type flagT string |
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 | |
| # Exit on any error | |
| set -e | |
| # Determine which shell the user is using and select the appropriate profile file | |
| if [[ "$SHELL" == */zsh ]]; then | |
| PROFILE_FILE="$HOME/.zshrc" | |
| elif [[ "$SHELL" == */bash ]]; then | |
| PROFILE_FILE="$HOME/.bashrc" |
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 | |
| adjectives=('Adamant' 'Adroit' 'Amatory' 'Animistic' 'Antic' 'Arcadian' 'Baleful' | |
| 'Bellicose' 'Bilious' 'Boorish' 'Calamitous' 'Caustic' 'Cerulean' 'Comely' | |
| 'Concomitant' 'Contumacious' 'Corpulent' 'Crapulous' 'Defamatory' 'Didactic' | |
| 'Dilatory' 'Dowdy' 'Efficacious' 'Effulgent' 'Egregious' 'Endemic' 'Equanimous' | |
| 'Execrable' 'Fastidious' 'Feckless' 'Fecund' 'Friable' 'Functional' 'Fulsome' | |
| 'Garrulous' 'Guileless' 'Gustatory' 'Heuristic' 'Histrionic' 'Hubristic' | |
| 'Incendiary' 'Insidious' 'Insolent' 'Intransigent' 'Inveterate' 'Invidious' | |
| 'Irksome' 'Jejune' 'Jocular' 'Judicious' 'Lachrymose' 'Limpid' 'Loquacious' | |
| 'Luminous' 'Mannered' 'Mendacious' 'Meretricious' 'Minatory' 'Mordant' |
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
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
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
| public class CodeQR | |
| { | |
| public Code Code {get;} | |
| public CodeQR() { | |
| Code = new Code(); | |
| } | |
| public int GetCode() | |
| { |
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 ( | |
| "flag" | |
| "fmt" | |
| "go/ast" | |
| "go/parser" | |
| "go/token" | |
| "os" | |
| "regexp" |
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 agent | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "github.com/pkg/errors" | |
| "github.com/tmc/langchaingo/llms" | |
| "github.com/tmc/langchaingo/llms/openai" | |
| "github.com/tmc/langchaingo/schema" |
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
| linters-settings: | |
| cyclop: | |
| skip-tests: true | |
| tagalign: | |
| align: true | |
| sort: true | |
| order: | |
| - json | |
| - validate | |
| - gorm |
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 | |
| # Function to display help | |
| function display_help() { | |
| echo "Usage: $0 <db-type> [OPTIONS]" | |
| echo "db-type: Type of the database ('psql' for PostgreSQL, 'mysql' for MySQL)." | |
| echo "Options:" | |
| echo " --container-name Name of the Docker container to be used. Default is 'docker-postgres' for PostgreSQL and 'docker-mysql' for MySQL." | |
| echo " --db-password Password for the database. Default is 'S3cret*_2024'." | |
| echo " --db-user User for the database. Default is 'admin' for mysql and 'postgres' for psql." |
OlderNewer