Skip to content

Instantly share code, notes, and snippets.

View HackyDev's full-sized avatar
🙂

Евгений Епифанов HackyDev

🙂
  • Степногорск
View GitHub Profile
@HackyDev
HackyDev / LlamaSpawner.ts
Last active August 7, 2023 16:35
Use Llama2 in a `nodejs` project
/* INFO
This class allows you to use Llama2 in a `nodejs` project.
The class spawns a process which can be setup using instructions from here https://replicate.com/blog/run-llama-locally
The communication between llama2 and node is done using `stdin/stdout` interface.
*/
/* USAGE EXAMPLE
@HackyDev
HackyDev / ru-en-url-transliterator.ts
Last active February 22, 2023 09:31
Транслитератор кирилического алфавита в латинский и обратно для использования в url
class RuEnUrlTransliterator {
constructor () {
this.init()
}
private ruEn: Record<string, string> = {}
private enRu: Record<string, string> = {
a: 'а',
b: 'б',
v: 'в',