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
/** @author=TheNerdMan */ | |
/** | |
* Creates an array of shape [{outputStr: string, weight: number}] | |
* | |
* @param stringArray An array of strings, strings should be formated as such "\<String To Ouput\>, \<weight\>" | |
* an example is ["Foo, 0.5", "Bar, 0.25", "FooBar, 0.25"]. | |
* | |
* Weights must add up to 1.0. | |
*/ |
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 | |
safe_pip() { | |
if [ -f "./requirements.txt" ]; then | |
echo "Safely installing each pip in this dir's requirements.txt"; | |
cat requirements.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 pip install; | |
else | |
echo "no requirements.txt found!" | |
fi | |
} |
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
{"lastUpload":"2020-11-26T09:35:18.660Z","extensionVersion":"v3.4.3"} |