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
| #!/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
| 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
| 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 |
NewerOlder