content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--[[ The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://ultimate-empire-at-war.com/cpal. The License is based on the Mozilla Public License Versio...
nilq/small-lua-stack
null
local drawableNinePatch = require("structs.drawable_nine_patch") local drawableSprite = require("structs.drawable_sprite") -- Some of this plugin is copy-pasted from MaxHelpingHand's Flag Switch Gates -- https://github.com/max4805/MaxHelpingHand/blob/master/Loenn/entities/flagSwitchGate.lua local dashGateBlock = {} ...
nilq/small-lua-stack
null
local Dta = select(2, ...) Dta.copa_ui = {} ------------------------------- -- BUILD THE DIMENSIONTOOLS COPY/PASTE WINDOW ------------------------------- local CopyPasteWindowSettings = { WIDTH = 325, HEIGHT = 260, CLOSABLE = true, MOVABLE = true, POS_X = "CopyPastewindowPosX", POS_Y = "CopyPastewindowPosY" }...
nilq/small-lua-stack
null
local Log = 'https://discord.com/api/webhooks/808645189396463646/HQJ2NByd16rA58dPtZrok4nYZrBxMMAofulNKi1WFENnXQES6DuWSfuk4TG0GKLWBiyi' RegisterServerEvent('Fuckmedaddy:log') AddEventHandler('Fuckmedaddy:log', function(pedId) local _source = source local name = GetPlayerName(_source) local targetName ...
nilq/small-lua-stack
null
----------------------------------- -- Area: Windurst Waters -- NPC: Ahyeekih -- Only sells when Windurst controls Kolshushu -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/events/harvest_festivals") local ID = require("scripts/zones/Windurst_Waters/IDs"); require("scr...
nilq/small-lua-stack
null
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('Ludwig') then return end function AS:Ludwig() hooksecurefunc(Ludwig, 'ToggleSearchFrame', function() if LudwigFrame.isSkinned then return end -- Main frame AS:SkinFrame(LudwigFrame) LudwigFrame:SetHeight(456) LudwigFrame:SetWidth(360) LudwigFrame:Set...
nilq/small-lua-stack
null
CONFIG_PATH = os.getenv("HOME") .. "/.config/nvim" DATA_PATH = vim.fn.stdpath("data") CACHE_PATH = vim.fn.stdpath("cache") TERMINAL = vim.fn.expand("$TERMINAL") USER = vim.fn.expand("$USER") O = { keys = { leader_key = "space" }, colorscheme = "nord", line_wrap_cursor_movement = true, transparent_window = false, ...
nilq/small-lua-stack
null
aurum.magic = {} b.dofile("doc.lua") b.dodir("rituals") b.dodir("spells")
nilq/small-lua-stack
null
local gears = require("gears") -- Theme handling library local beautiful = require("beautiful") -- Themes define colours, icons, and wallpapers beautiful.init("/home/hegza/.config/awesome/themes/zenburn/theme.lua") -- {{{ Wallpaper on all screens if beautiful.wallpaper_space then for s = 1, screen.count() do ...
nilq/small-lua-stack
null
local fn = vim.fn local packer_install_dir = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" local plug_url_format = "" plug_url_format = "https://github.com/%s" local packer_repo = string.format(plug_url_format, "wbthomason/packer.nvim") local install_cmd = string.format("10split |term git clone --dept...
nilq/small-lua-stack
null
module(..., package.seeall) function onCreate(params) view = View { scene = scene, } scroller = Scroller { parent = view, layout = VBoxLayout { align = {"center", "center"}, padding = {10, 10, 10, 10}, gap = {10, 10}, }, } for i = ...
nilq/small-lua-stack
null
Class = require 'lib/class' Timer = require 'lib/timer' Signal = require 'lib/signal' Camera = require 'lib/camera' require 'src/constants' require 'src/util' require 'src/StateMachine' require 'src/Animation' require 'src/Target' require 'src/Lockpick' require 'src/Lock' require 'src/TensionWrench' require 'src/Progr...
nilq/small-lua-stack
null
-- sourcing config files. require("settings") require("plugins") require("maps") require("theme") require("user_settings")
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- --<[ Модуль GUI ]>-------------------------------------------------------------- -------------------------------------------------------------------------------- GUI = { screenSize = { x = 0; y = 0; }; browser = nil; --guiBrowserElement...
nilq/small-lua-stack
null
--[[--------------------------------------------------------------------------- functions ---------------------------------------------------------------------------]] local meta = FindMetaTable("Player") function meta:addMoney(amount) if not amount then return false end local total = self:getDarkRPVar("money")...
nilq/small-lua-stack
null
SERVER_LIST = {} RANK_LOOKUP = {} function LoadExternData() LoadServers() LoadPlayers() end function LoadServers() cPluginManager:BindCommand("/transfer", "pepsiutils.transfer", CommandTransfer, "") cPluginManager:BindConsoleCommand("transfer", ConsoleCommandTransfer, "") cUrlClient:Get("https://g...
nilq/small-lua-stack
null
local Draw = require("api.Draw") local Gui = require("api.Gui") local Chara = require("api.Chara") local EquipmentMenu = require("api.gui.menu.EquipmentMenu") local FeatsMenu = require("api.gui.menu.FeatsMenu") local MaterialsMenu = require("api.gui.menu.MaterialsMenu") local CharacterInfoMenu = require("api.gui.menu....
nilq/small-lua-stack
null
-- -- ─── COMMON TYPES ─────────────────────────────────────────────────────────────── -- ---@class Global _G = _G ---Vector aliases ---@alias X_AXIS number|nil ---@alias Y_AXIS number|nil ---@alias Z_AXIS number|nil --- vector { x-axis, y-axis } ---@class vector ---@field x X_AXIS ---@field y Y_AXIS ---@type vector ...
nilq/small-lua-stack
null
local base = require 'hj212.calc.db' local siri_data = require 'db.siridb.data' local siri_series = require 'db.siridb.series' local data_merge = require 'siridb.data_merge' local cjson = require 'cjson.safe' local poll = base:subclass('siridb.poll') function poll:initialize(hisdb, poll_id, no_db) self._hisdb = hisd...
nilq/small-lua-stack
null
-- API local UTIL_API = require(script:GetCustomProperty("MetaAbilityProgressionUTIL_API")) local _Constants_API = require(script:GetCustomProperty("Constants_API")) local CURRENCY = _Constants_API:WaitForConstant("Currency") local XP = _Constants_API:WaitForConstant("XP") local viewRange = script:GetCustomProperty("...
nilq/small-lua-stack
null
module(..., package.seeall) local pcap = require("apps.pcap.pcap") local dpdkdev = require("apps.dpdk_device.dpdk_device") local packet_counter = require("apps.packet_counter.packet_counter") local log = require("log") function run(parameters) log:info("running example_packet_loop") if #parameters ~= 3 then ...
nilq/small-lua-stack
null
local metadata = { plugin = { format = "staticLibrary", -- This is the name without the 'lib' prefix. -- In this case, the static library is called: libSTATIC_LIB_NAME.a staticLibs = { "FirebaseMessaging", "Protobuf" }, frameworks = {}, frameworksOptional = {} } }, coronaManifest = { dependencies...
nilq/small-lua-stack
null
ys = ys or {} slot1 = ys.Battle.BattleConfig ys.Battle.BattleMainDamagedView = class("BattleMainDamagedView") slot2 = class("BattleMainDamagedView") ys.Battle.BattleMainDamagedView = slot2 slot2.__name = "BattleMainDamagedView" slot2.Ctor = function (slot0, slot1) slot0._go = slot1 slot0:Init() end slot2.Init = fu...
nilq/small-lua-stack
null
function love.conf(t) t.title = "Hello, Punchdrunk" t.author = "Tanner Rogalsky" t.identity = "punchdrunk" t.window.width = 900 t.window.height = 300 t.modules.joystick = true t.modules.audio = true t.modules.keyboard = true t.modules.event = true t.modules.image = true t.modules.graphics = true ...
nilq/small-lua-stack
null
-- Weak tables, defaults example defaults = {} -- Weakly keyed setmetatable(defaults, {__mode = "k"}) function setDefault(t, d) defaults[t] = d setmetatable(t, {__index = function (t, _) return defaults[t] end}) end ttab = {} ttab['first'] = {a = 5, b = 10} -- bind table A setDefault(ttab['first'], 0) -- enro...
nilq/small-lua-stack
null
local require = require return function(mode) return require(""..mode) end
nilq/small-lua-stack
null
inspect = require('inspect') raw = [[ pid,name,country,languages,description 123,Tom,CN,zh-hans,hello hi 456,Jason,US,["en", "zh", "ja", "fr"],this is a person description ]] function enumerate (tb) local i = 0 return function () i = i + 1 if i <= #tb then return i, tb[i] end e...
nilq/small-lua-stack
null
--chest code from default(Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com>) local chest_formspec = "size[8,9]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "list[current_name;main;0,0.3;8,4;]" .. "list[current_player;main;0,4.85;8,1;]" .. "list[current_player;main;0,6.08;8,3;...
nilq/small-lua-stack
null
-- Test all of the special levels local special_levels = { "air", "asmodeus", "astral", "baalz", "bigrm-10", "bigrm-1", "bigrm-2", "bigrm-3", "bigrm-4", "bigrm-5", "bigrm-6", "bigrm-7", "bigrm-8", "bigrm-9", "castle", "earth", "fakewiz1", "fakewiz2", "fire", "juiblex", "knox", "medusa-1", "medusa-2", "medusa-3", "med...
nilq/small-lua-stack
null
--[[==================================== Example.lua Original Code by zdroid9770 Version 9 ========================================]]-- -- % Complete: 90% -- Defias Bandit function DB_OnCombat(Unit, Event) Unit:RegisterEvent("DB_SKck", 10000, 0) end function DB_SKck(pUnit, Event) local plr = pUnit:GetMain...
nilq/small-lua-stack
null
-- ~~Test~~AgileWM: a 'window manager' for testing purposes. -- This is as modular as you can get while calling it a 'WM' - on it's own, -- it more or less acts as the "null window manager", -- not bothering to do anything and passing through requests as given. local args = {...} for k, v in ipairs(args) do print("...
nilq/small-lua-stack
null
M = Game:GetService("InsertService"):LoadAsset(23456459) M.Parent = Game.Workspace M:MakeJoints() M:MoveTo(Game.Workspace.acb227.Torso.Position + Vector3.new(0, 0, 0))
nilq/small-lua-stack
null
return { { type = "picture", id = 0, { tex = 1 , src = { 226, 61, 226, 94, 254, 94, 254, 61 }, screen = { -382, -640, -382, 428, 514, 428, 514, -640} }, }, { type = "picture", id = 1, { tex = 1 , src = { 66, 97, 34, 97, 34, 128, 66, 128 }, screen = { -368, -620, -372, 388, 604, 392, 608, -616} }, }, { type = "pi...
nilq/small-lua-stack
null
-- Logger.lua -- Implements a logger that can output log messages and filter them based on loglevel local Logger = { -- The various log levels: ERROR = 9, -- Emitting this log also prints stacktrace and terminates the entire program WARNING = 5, INFO = 4, DEBUG = 3, TRACE = 1, } -- If currentLogL...
nilq/small-lua-stack
null
object_draft_schematic_furniture_furniture_murra_blanca_trophy = object_draft_schematic_furniture_shared_furniture_murra_blanca_trophy:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_murra_blanca_trophy, "object/draft_schematic/furniture/furniture_murra_blanca_trophy.iff")
nilq/small-lua-stack
null
local Dta = select(2, ...) Dta.move_ui = {} ------------------------------- -- BUILD THE DIMENSIONTOOLS MOVEWINDOW ------------------------------- local MoveWindowSettings = { WIDTH = 305, HEIGHT = 130, CLOSABLE = true, MOVABLE = true, POS_X = "MovewindowPosX", POS_Y = "MovewindowPosY" } function Dta.move_ui...
nilq/small-lua-stack
null
local runner = require("test_executive") local console = require("console") -- Setup -- t = icesat2.ut_atl06() -- Unit Test -- print('\n------------------\nTest01\n------------------') runner.check(t:lsftest(), "Failed lsftest") print('\n------------------\nTest02\n------------------') runner.check(t:sorttest(), "...
nilq/small-lua-stack
null
return function(params) local store = module:open_store(); local api = {}; function api:get(node) local settings, err = store:get(node); if not settings and err then module:log("error", "Error reading push notification storage for node '%s': %s", node, tostring(err)); return nil, false; end if not sett...
nilq/small-lua-stack
null
do local Nil = { __tag = "Nil" } local use = print local function map(f) local function map_sat(x) if x.__tag ~= "Cons" then return Nil end local tmp = x[1] return { { _1 = f(tmp._1), _2 = map_sat(tmp._2) }, __tag = "Cons" } end return map_sat end use(map) local function map_no...
nilq/small-lua-stack
null
SWEP.Base = "weapon_maw_base" SWEP.Slot = 4 SWEP.PrintName = "AWP" SWEP.HoldType = "ar2" SWEP.ViewModel = "models/weapons/v_snip_awp.mdl" SWEP.WorldModel = "models/weapons/w_snip_awp.mdl" SWEP.Primary.Sound = "Weapon.Fire_Awp" SWEP.Primary.Recoil = 1 SWEP.Primary.Damage = 95 SWEP.Primary.N...
nilq/small-lua-stack
null
-- Minimal logging utility local log = {_logs = {}} function log:setName(name) self._handleName = name end function log:add(message) self._logs[#self._logs+1] = message end function log:clear() self._logs = {} self._handleName = '' end function log:export(fileName) local file = fileName or self._handleNam...
nilq/small-lua-stack
null
local test = require("cp.test") local log = require("hs.logger").new("t_text") local inspect = require("hs.inspect") local config = require("cp.config") local text = require("cp.text") local matcher = require("cp.text.matcher") local TEXT_PATH = config.scriptPath .. "/tests/unicode/" function expectEr...
nilq/small-lua-stack
null
great_squill = Creature:new { objectName = "@mob/creature_names:squill_great", socialGroup = "squill", faction = "", level = 20, chanceHit = 0.33, damageMin = 200, damageMax = 210, baseXp = 1609, baseHAM = 5400, baseHAMmax = 6600, armor = 0, resists = {110,110,10,10,-1,-1,10,-1,-1}, meatType = "meat_carniv...
nilq/small-lua-stack
null
local defaultconfig = { modActive = true, chance = 7.5, maxCycle = 75, useBestCont = false, tombRaider = false, showSpawn = false, showReset = false, affectScripted = false, dangerFactor = true, removeRecycle = false, hotkey = true, hotkeyOpenTable = { keyCode = tes3.scanCode.k }, ho...
nilq/small-lua-stack
null
--- System that updates the camera. local class = require "lib.middleclass" local tiny = require "lib.tiny" local Camera = require "src.camera" local CameraUpdateSystem = tiny.system(class("CameraUpdateSystem")) --- Updates the camera. function CameraUpdateSystem:update() Camera:update() end return CameraUpdate...
nilq/small-lua-stack
null
local platform = ... -- simple io-library tests -- -- C version on Windows will add change \n into \r\n for text files at least -- print(io ~= nil) print(io.open ~= nil) print(io.stdin ~= nil) print(io.stdout ~= nil) print(io.stderr ~= nil) print('write', io.write()) print('write', io.write("This")) print('write', io....
nilq/small-lua-stack
null
--- -- A module that contains all functions related to playermodels -- @author Mineotopia if SERVER then AddCSLuaFile() util.AddNetworkString("TTT2UpdatePlayerModel") util.AddNetworkString("TTT2UpdateChangedPlayerModel") util.AddNetworkString("TTT2ResetPlayerModels") end local pairs = pairs local playerManagerAl...
nilq/small-lua-stack
null
function Egg:GetMaturityRate() return kEggMaturationTime end function Egg:GetMatureMaxHealth() return kMatureEggHealth end function Egg:GetMatureMaxArmor() return kMatureEggArmor end if Server then local function GestatePlayer(self, player, fromTechId) player.oneHive = false player.twoHives = false ...
nilq/small-lua-stack
null
model.packMlDlg={} function model.packMlDlg.onClose() if model.packMlDlg.ui then model.packMlDlg.dlg_wasClosed=true model.packMlDlg.closeDlg() end end function model.packMlDlg.closeDlg() if model.packMlDlg.ui then local x,y=simUI.getPosition(model.packMlDlg.ui) model.packMl...
nilq/small-lua-stack
null
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
nilq/small-lua-stack
null
local timer = require 'script.timer' local redis = require 'script.redis' local util = require 'script.utility' local KEY = require 'script.jzslm.key' local money = require 'script.jzslm.money' local item = require 'script.jzslm.item' local camp = require 'script.jzslm.camp' local cheat = require 'script.jzslm.che...
nilq/small-lua-stack
null
----------------------------------------------------------------------- -- FILE: luaotfload-letterspace.lua -- DESCRIPTION: part of luaotfload / letterspacing ----------------------------------------------------------------------- local ProvidesLuaModule = { name = "luaotfload-letterspace", ...
nilq/small-lua-stack
null
setenv("Version", myModuleFullName())
nilq/small-lua-stack
null
createObject(14577,2192.51953125,-1162.0185546875,934.91632080078,0,0,0,3,10631) createObject(1566,2247.3994140625,-1165.2373046875,931.31005859375,0,0,89.31884765625,3,10631) createObject(2517,2236.0727539063,-1158.7027587891,927.99438476563,0,0,0,3,10631) createObject(2517,2235.0178222656,-1158.7053222656,927.9924...
nilq/small-lua-stack
null
-- Copyright (C) 2018 by chrono local function action_get() ngx.req.discard_body() local t = ngx.time() ngx.say(ngx.http_time(t)) end local function action_post() ngx.req.read_body() local data = ngx.req.get_body_data() local num = tonumber(data) if not num then ngx.log(ngx.ERR, ...
nilq/small-lua-stack
null
-- from https://en.wikipedia.org/wiki/Moore%E2%80%93Penrose_pseudoinverse local function pseudoInverse(A) local AT = A:transpose() local APlus if #A > #A[1] then local ATA = (AT * A)():inverse() APlus = (ATA * AT)() else local AAT = (A * AT)():inverse() APlus = (AT * AAT)() end local APlusA = (APlus * A)(...
nilq/small-lua-stack
null
local options = { number = true, -- Show line numbers relativenumber = true, -- Show relative numbers swapfile = false, -- Don't use swapfile backup = false, -- Don't create backup files writebackup = false, -- Don't write backup autowrite = true, -- Automatically save before :next, :make etc. showmatch =...
nilq/small-lua-stack
null
bindingId=5, laser={ damage=0, power=0, range=2767, width=0, color=0x007f7f7f, }, shroud={ {size={8.66, 5}, offset={14.434, 0, 1e-16}, taper=0, count=1, tri_color1_id=1, line_color_id=2}, {size={8.66, 5}, offset={-11.546, 15, 1e-16}, taper=0, count=1, tri_color1_id=1, line_color_id=2}, ...
nilq/small-lua-stack
null
Locales['en'] = { --=====General=====-- ['ticket-machine'] = 'Ticket Machine', ['buy-ticket'] = 'Buy a ticket', ['are-you-sure-you-want-to-buy-a-ticket'] = 'Are you sure that you want to buy a ticket?', ['yes'] = 'Yes', ['no'] = 'No', ['ticket-bought'] = 'You succesfuly bought a ticket! Safe journeys!', ['ticke...
nilq/small-lua-stack
null
local level local buffer local visited local putValue local escape_char = { [ "\\" .. string.byte "\a" ] = "\\".."a", [ "\\" .. string.byte "\b" ] = "\\".."b", [ "\\" .. string.byte "\f" ] = "\\".."f", [ "\\" .. string.byte "\n" ] = "\\".."n", [ "\\" .. string.byte "\r" ] = "\\".."r", [ "\\" .....
nilq/small-lua-stack
null
local extras = require "nvim-lsp-installer.extras.utils" local M = {} function M.rename_file(old, new) local old_uri = vim.uri_from_fname(old) local new_uri = vim.uri_from_fname(new) extras.send_client_request("tsserver", "workspace/executeCommand", { command = "_typescript.applyRenameFile", ...
nilq/small-lua-stack
null
vim.o.tabstop = 2 vim.o.shiftwidth = 2 vim.o.expandtab = true vim.o.tw = 80 vim.o.wrap = true
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceGhostMoveStop_pb', package.seeall) local BCEGHOSTMOVESTOP = protobuf.Descriptor(); local BCEGHOSTMOVESTOP_X_FIELD = protobuf.FieldDescriptor(); local BCEGHOSTMOVESTOP_Y_FIELD = protobuf.FieldDescriptor(); BCEGHOSTMOVESTOP_X_FIE...
nilq/small-lua-stack
null
--[[ Outer product between two vectors with batch processing support --]] local OuterProd, parent = torch.class('nn.OuterProd', 'nn.Module') function OuterProd:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor()} end function OuterProd:updateOutput(input) assert(#input==2, 'only...
nilq/small-lua-stack
null
dofile("patterns.lua"); dofile("HTTPserver.lua"); setlights("All");
nilq/small-lua-stack
null
local openssl = premake.extensions.openssl local opensslimpl = openssl.impl -- -- Copy the public openssl headers to the specified location -- creates the directory $target_dir/openssl and populates -- it -- openssl.copy_public_headers = function(cfg) opensslimpl.verify_cfg(cfg) -- create the target ...
nilq/small-lua-stack
null
--[[ Jamba - Jafula's Awesome Multi-Boxer Assistant Copyright 2008 - 2018 Michael "Jafula" Miller License: The MIT License ]]-- -- Create the addon using AceAddon-3.0 and embed some libraries. local AJM = LibStub( "AceAddon-3.0" ):NewAddon( "JambaQuestWatcher", "JambaModule-1.0", "AceConsole-3.0", "AceEvent-3....
nilq/small-lua-stack
null
local STool = {} CatmullRomCams.SToolMethods.MapIOEditor = STool function STool.LeftClick(self, trace) if not self:ValidTrace(trace) then return end local dur = self:GetClientNumber("duration") or 2 trace.Entity:SetNWFloat("Duration", (dur > 0.001) and dur or 0.001) return true end function STool.RightClic...
nilq/small-lua-stack
null
-------------------------------- -- @module ParticleData -- @parent_module cc -------------------------------- -- -- @function [parent=#ParticleData] release -- @param self -- @return ParticleData#ParticleData self (return value: cc.ParticleData) -------------------------------- -- -- @function [parent=#P...
nilq/small-lua-stack
null
--- Eva game module -- Contains basic game functions -- Like exit, reboot, open url etc -- time_policy: -- - local - just socket.gettime -- - local_uptime - try to protect time with uptime -- - server - use server time -- @submodule eva local log = require("eva.log") local app = require("eva.app") local const = re...
nilq/small-lua-stack
null
-- cdcview.lua class "CDCView"(QFrame) function CDCView:__init(vid,pid) QFrame.__init(self) self.windowTitle = tr("CDC View") self.btnRefresh = QPushButton(tr("Refresh")) self.portList = QComboBox() self.baudList = QComboBox{ minW = 80, QSerialPort.ValidBaudRate(), editable = true } self.b...
nilq/small-lua-stack
null
ESX = nil if Config.UseESX then Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(10) end end) end RegisterNetEvent("delall") AddEventHandler("delall", function () if Config.alerts then ...
nilq/small-lua-stack
null
#!/usr/bin/env lua --- Tests on bundleTemplate.lua. local lu = require("luaunit") -- Cache global arguments value, set argument to make call to dofile run properly, then restore global context. -- NOTE: This expects the tests/results directory to exist before being called. local originalArguments = _G.arg _G.arg = {"...
nilq/small-lua-stack
null
local lmprof = require("lmprof") lmprof.start() local x = 10
nilq/small-lua-stack
null
local util = require "navigator.util" local log = util.log local api = vim.api local references = {} -- returns r1 < r2 based on start of range local function before(r1, r2) if r1.start.line < r2.start.line then return true end if r2.start.line < r1.start.line then return false end if r1.start.charac...
nilq/small-lua-stack
null
local _={} _[7]={} _[6]={tags=_[7],text="ok"} _[5]={tags=_[7],text=" = "} _[4]={tags=_[7],text="ok"} _[3]={_[4],_[5],_[6]} _[2]={"return"} _[1]={"text",_[3]} return {_[1],_[2]} --[[ { "text", { { tags = <1>{}, text = "ok" }, { tags = <table 1>, text = " = " }, { tags = <table 1>, ...
nilq/small-lua-stack
null
local Schema = require('schema') local Player = Schema.define({ ["name"] = "string", ["x"] = "number", ["y"] = "number", ["on_change"] = function(changes) end, ["on_remove"] = function() print("REMOVE!") print(self.name .. " HAS BEEN REMOVED!") end, -- field order ...
nilq/small-lua-stack
null
local NOW = KEYS[1] local PACKAGE_TIMEOUT = tonumber(KEYS[2]) local the_lock = redis.call('get', 'chat:ref_lock') if the_lock and tonumber(NOW) - tonumber(the_lock) < PACKAGE_TIMEOUT then return nil end redis.call('set', 'chat:ref_lock', NOW, 'PX', PACKAGE_TIMEOUT) return '1'
nilq/small-lua-stack
null
local Job = require "plenary.job" local Deployer = {} function Deployer.check(self, origin) -- check whether the origin is supported or not local match = string.match(origin, "^https?://([^/:]+)") if match == self.host then error(string.format("%s is already deployed on %s", origin, self.host)) end end f...
nilq/small-lua-stack
null
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras of Aerie ...
nilq/small-lua-stack
null
object_tangible_tcg_series7_garage_display_vehicles_pod_racer_one = object_tangible_tcg_series7_garage_display_vehicles_shared_pod_racer_one:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_garage_display_vehicles_pod_racer_one, "object/tangible/tcg/series7/garage_display_vehicles/pod_racer_one.iff")
nilq/small-lua-stack
null
local function round(number, decimalPlaces) decimalPlaces = decimalPlaces or 0 local placer = 10^(-decimalPlaces) return (math.floor(number/placer + .5))*placer end local function multiple(number, m) return round(number/m)*m end local function clamp(number, min, max) number = (number > min) and nu...
nilq/small-lua-stack
null
--[[ ]]-- function soloveh_sendRequestValidate(plr,cmd,cel) if (not cel) then outputChatBox("Użycie: /pojedynek <id/nick>",plr) return end local target = findPlayer(plr,cel) if (not target) then outputChatBox("Nie znaleziono gracza o podanym id/nicku.",plr) return end --if (target == plr) then -- o...
nilq/small-lua-stack
null
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/deve...
nilq/small-lua-stack
null
package.path = package.path .. ";data/scripts/lib/?.lua" include("utility") local utility_execute = execute function execute(sender, commandName, ...) local player = Player(sender) if not player or not player.craft then return 1, "", "Eval: You're not in a ship!" end if not Server():hasAdminPr...
nilq/small-lua-stack
null
-- Fuchas Boot Manager (computer or package.loaded.computer).supportsOEFI = function() return false end if (...) then os_arguments = ... end loadfile = function(file) local pc,cp = computer or package.loaded.computer, component or package.loaded.component local addr, invoke = pc.getBootAddress(), cp.invoke local...
nilq/small-lua-stack
null
sendHouseMap = function(player, origin) local worldMap = "clanban1" local x0 = {0} local y0 = {0} local name = {"Test"} local m = {0} local x1 = {0} local y1 = {0} player:mapSelection(worldMap, x0, y0, name, m, x1, y1) end
nilq/small-lua-stack
null
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[3.3]particle system renderer node[parent:RendererNode] --- ---@class ParticleSystemRendererNodeLegacy ParticleSystemRendererNodeLegacy = {} --- ---[3.3]play particle system --- --- @nodiscard function ParticleSystemRendererNodeLeg...
nilq/small-lua-stack
null
SetItemList = { "Hat of Adroitness", "Necklace of Adroitness", "Robe of Adroitness", "Sash of Adroitness", "Staff of Adroitness", "Afflicted Battle Axe", "Afflicted Choker", "Afflicted Cuirass", "Afflicted Gauntlets", "Afflicted Helm", "Afflicted Pauldrons", "Afflicted Sabatons", "Cuirass of Akatosh's Bles...
nilq/small-lua-stack
null
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
nilq/small-lua-stack
null
object_tangible_loot_mustafar_jedi_relic_03 = object_tangible_loot_mustafar_shared_jedi_relic_03:new { } ObjectTemplates:addTemplate(object_tangible_loot_mustafar_jedi_relic_03, "object/tangible/loot/mustafar/jedi_relic_03.iff")
nilq/small-lua-stack
null
-- Keep these for backwards compatibility function hud.save_hunger(player) hud.set_hunger(player) end function hud.load_hunger(player) hud.get_hunger(player) end -- Poison player local function poisenp(tick, time, time_left, player) time_left = time_left + tick if time_left < time then minetest.after...
nilq/small-lua-stack
null
----------------------------------- -- Area: Metalworks -- NPC: Franziska -- Type: Standard Info NPC ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if (player:getCharVar("OptionalcsCornelia") ==1) then player:startEvent(777); else player:startEvent(620); en...
nilq/small-lua-stack
null
local Queue = require "util.queue" local NoteInfo = require "noteinfo" local MidiSignals = require "midisignals" local NoteWave = require "notewave" local SampleProvider = require "sampleprovider" local MidiState = require "util.class" "MidiState" function MidiState:__init() self._sampleProvider = SampleProvider:...
nilq/small-lua-stack
null
-- ESC/VP.net protocol dissector for Wireshark -- Version 0.1.0 -- Author H.Doi escvpnet = Proto("ESCVPNET","ESC/VP.net") typeid = { [0] = "NULL (reserved)", [1] = "HELLO", [2] = "PASSWORD", [3] = "CONNECT" } statuscode = { [0x00] = "Always set 0x00 since it is a request", [0x20] = "OK", [0x40] = "Bad Request...
nilq/small-lua-stack
null
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.itemid ~= 5114 then return true end if player:getStorageValue(Storage.TheInquisition.Questline) == 18 then player:teleportTo(toPosition, true) item:transform(5115) end return true end
nilq/small-lua-stack
null
--[[NIGHTOWLACE_WEAPONRY]]-- --Works, But no Damage, Definitely Needs a fix.-- wait(1 / 60) Effects = { } local Player = game.Players.localPlayer local Character = Player.Character local Humanoid = Character.Humanoid local mouse = Player:GetMouse() local m = Instance.new('Model', Character) m.Name = "WeaponModel" loca...
nilq/small-lua-stack
null
platforms = {} platforms.instances = {} function platforms:create(x,y,w,h,b) local platform = {} platform.state = "solid" platform.b = b platform.x = x or 100 platform.y = y or 300 platform.w = w or 100 platform.h = h or 1 platform.collider = world:newRectangleCollider(platform.x,platform.y,platform.w...
nilq/small-lua-stack
null
-- chttp.lua -- -- Wrappers and utility functions for CHTTP -- Don't overwrite an old version of the module if chttp then return chttp end local function getLibExt() local os = jit.os local arch = jit.arch if os == "Windows" and arch == "x86" then return "win32" elseif os == "Windows" and arch == "x64" then ...
nilq/small-lua-stack
null
-- Support for motion key sequences local M = {} -- Implementations of the movements local vi_motions = require 'textadept-vi.vi_motions' -- Wrap a possibly nested table, returning a proxy which modifies any value -- which isn't a nested table. A nested table is considered one with no -- integer keys (so #t == 0, or...
nilq/small-lua-stack
null