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
-- Define a dotenv object | |
local dotenv = {} | |
-- Define a function to read a file and return its contents as a string | |
local function readFile(filename) | |
-- Open the file in read mode | |
local file = io.open(filename, 'r') | |
-- Check if the file exists | |
if not file then | |
-- Return nil and an error message |
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
const { buf } = require("crc-32"); | |
const { readFile, stat } = require("fs").promises; | |
const { createWriteStream } = require("fs"); | |
const addon_data = JSON.stringify(require("./addon.json")); | |
class GMAFile { | |
constructor(fname) { | |
this.stream = createWriteStream(fname); | |
this.current_length = 8; // crc32 + 0 (uint) |
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
--[[------------------------------------------------------------------------- | |
2019.01.16 | |
Урезанный класс для склонения русских слов | |
https://github.com/petrovich/petrovich-php | |
В оригинале работает с именами | |
Полезные ссылки: | |
https://petroleks.ru/gramota/13.php | |
https://pymorphy2.readthedocs.io/en/latest/ |
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
AddCSLuaFile() | |
do -- override type functions | |
gtype = type | |
local getmetatable = getmetatable | |
local rawequal = rawequal | |
getmetatable("").MetaName = "string" |