This file contains 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
/* | |
* Grammar to generate an S-Expressions parser for Javascript using http://pegjs.majda.cz/ | |
* Example: (+ 1 2) (car (quote (1 2 "test"))) | |
* Features: | |
- backslash symbols ("quote\"here"), | |
- one-line comments starts from ";" | |
- add "__" for identifiers - convert (car (quote (1 2 "three"))) to ["__car",["__quote",[1,2,"three"]]] | |
-- to change behavior replace | |
return "__"+identifier.map(function(a) {return concat(a)}).join(""); |
This file contains 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
from deepspeed.launcher.runner import main | |
import sys | |
import os | |
if sys.platform == "win32": | |
os.environ["PL_TORCH_DISTRIBUTED_BACKEND"] = "gloo" | |
if __name__ == '__main__': | |
main() |
This file contains 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
/** | |
* Homepage: https://github.com/janvarev/OneRingTranslator | |
*/ | |
class OneRingTranslator { | |
// URL of your instance of OneRingTranslator | |
// for local instance use URL "http://localhost/translate" | |
apiPath = 'http://127.0.0.1:4990/translate'; | |
// Insert API key if you have |