content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--- CONFIG IN "CUSTOM OPTIONS" TAB - DO NOT TOUCH THIS --- aura_env.anchorConfValues = { [1] = "TOP", [2] = "BOTTOM", [3] = "LEFT", [4] = "RIGHT", [5] = "CENTER", [6] = "TOPLEFT", [7] = "TOPRIGHT", [8] = "BOTTOMLEFT", [9] = "BOTTOMRIGHT", } -- check if ElvUI is used and the nameplat...
nilq/small-lua-stack
null
--[[ Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=2523149203 Profile Page: https://steamcommunity.com/id/Piengineer12 GitHub Page: https://github.com/Piengineer12/public-addons/tree/master/hacpg Donate: https://ko-fi.com/piengineer12 Links above are confirmed working as of 2021-06-21. All dates ...
nilq/small-lua-stack
null
-- Minichunkspy: Disassemble and reassemble chunks. -- Copyright M Joonas Pihlaja 2009 -- MIT license -- -- minichunkspy = require"minichunkspy" -- -- chunk = string.dump(loadfile"blabla.lua") -- disassembled_chunk = minichunkspy.disassemble(chunk) -- chunk = minichunkspy.assemble(disassembled_chunk) -- assert(minichun...
nilq/small-lua-stack
null
-- Standard awesome library local gears = require("gears") local awful = require("awful") require("awful.autofocus") -- does not reside inside the default awesome 4.0 config rc.lua -- awful.rules = require("awful.rules") -- Widget and layout library local wibox = require("wibox") -- Theme handling library local beaut...
nilq/small-lua-stack
null
-- trackselect.lua -- -- Because --slang isn't smart enough. -- -- This script tries to select non-dub -- audio and subtitle tracks. -- Idea from https://github.com/siikamiika/scripts/blob/master/mpv%20scripts/dualaudiofix.lua local defaults = { audio = { selected = nil, best = {}, lang_sco...
nilq/small-lua-stack
null
local Items = { { -- Ice ["titleBGA"] = color("#4488FF"), ["titleBGB"] = color("#112244"), ["titleBGPattern"] = color("#4488FF"), ["swmeHF"] = color("#224488"), ["swmeFooter"] = color("#224488"), ["swmeBGA"] = color("#224488"), ["swmeBGB"] = color("#224488"), ["swmeGr...
nilq/small-lua-stack
null
return { hand_left = { { {9, 40}, {12, 35}, {7, 39}, {-1, 38}, {0, 0}, {9, 40}, {9, 40}, {10, 40}, {8, 40}, {9, 39}, {1, 40}, {-10, 40}, }, { {9, 40}, {12, 32}, {7, 38}, {-2, 38}, {0, 0}, {-10, 40}, {-10, 40}, {-10, 40}, {-10, 40}, {-9, 38}, {-1, 40}, {-10, 40}, }, { {14, 30}, {0, 0}, {0, 0}, {18, 3...
nilq/small-lua-stack
null
local playsession = { {"Turbulent_Bread", {1902}}, {"Chevalier1200", {5595}}, {"ETK03", {99384}}, {"StormBreaker", {88794}}, {"tickterd", {71586}} } return playsession
nilq/small-lua-stack
null
---- TODO: make this a module with creation arguments, &c -- build a JI rate knob that goes through zero local ji = dofile(_path.code .. 'zebra/lib/ji.lua') -- the gamut local gam = ji.partch() n = #gam print("gamut size: "..#gam) -- multiply index by float, return pair gam.fmul = function(i,f) return { f*gam[i][1]...
nilq/small-lua-stack
null
local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end gatherTable = { --[[ { gather_zone = { 186601, -39031, 1451 }, gather_item = "unprocessed_weed", process_zone = { 70695, 9566, 1366 }, process_item = "processed_weed" }, { gather_zon...
nilq/small-lua-stack
null
-- TargetScore Graphs and Pacemaker contributed by iamjackg -- ActionOnMissedTarget contributed by DinsFire64 -- cleanup + fixes by djpohly and andrewipark -- --------------------------------------------------------------- -- first, the usual suspects local player = ... local pn = ToEnumShortString(player) ...
nilq/small-lua-stack
null
position = {x = 49.8963356018066, y = 0.94785475730896, z = 17.2338695526123} rotation = {x = 1.53067890096281E-06, y = 270.005737304688, z = -5.80849473408307E-06}
nilq/small-lua-stack
null
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local RD = CAF.GetAddon("Resource Distribution") local EnergyToTemperature_Increment = 250 function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:Se...
nilq/small-lua-stack
null
local _, private = ... -- Lua Globals -- -- luacheck: globals tinsert ipairs next -- RealUI -- local RealUI = private.RealUI local MODNAME = "InterfaceTweaks" local InterfaceTweaks = RealUI:NewModule(MODNAME, "AceEvent-3.0") local modules, moduleEvents = {}, {} local moduleAddons = { nibRealUI = { funct...
nilq/small-lua-stack
null
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet ---------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2015, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 15 May 2015 by Daniel Barne...
nilq/small-lua-stack
null
-- coding: utf-8 --[[ -- PLEASE DO "NOT" EDIT THIS FILE! -- This file was automatically created. -- -- If you won't to apply correction go to: -- http://rom.curseforge.com/addons/dailynotes/localization/ --]] return { ["AAHFILTER"] = "Objetos diarios. Con/<min_xp>/<max_level> (opcional)", ["CFG_CHARLVL"] = "Nivel de...
nilq/small-lua-stack
null
local http = require "socket.http" local json = require "lib/dkjson" -- Temp bot loading. Will need to clean this up. local nbot = require "bots/example" -- Initiate some global variables that bots will -- need access to. game = {} map = {taverns = {}, mines = {}, heros = true, hero = true} -- Set up for validity che...
nilq/small-lua-stack
null
local gHunger = 0.0 local gThirst = 0.0 RegisterNetEvent('BasicNeeds.utils') AddEventHandler('BasicNeeds.utils', function(calledFunction, ...) local p = promise.new() p:resolve({...}) local result = Citizen.Await(p) calledFunction(table.unpack(result)) end) RegisterCommand("callit", function(source, args)...
nilq/small-lua-stack
null
position = {x = -11.2038688659668, y = 1.43724429607391, z = 17.7157440185547} rotation = {x = -8.22400543256663E-05, y = 90.027229309082, z = -0.000312642223434523}
nilq/small-lua-stack
null
air = build.blockState("minecraft:air"); frameBlock = build.blockState("minecraft:light_gray_concrete"); platBlock = build.blockState("minecraft:polished_andesite"); ventBlock = build.blockState("minecraft:gray_concrete"); wallBlock = build.blockState("minecraft:quartz_pillar"); floorBlock = build.blockState("minecraft...
nilq/small-lua-stack
null
-- There shall be light ! -- -- WTFPL by Gundul lightup = {} lightup.switch = {} local timer = 0 -- do not touch local check = 0.1 -- intervall in which is checked for light, the smaller the more realistic but the harder for cpu local turnoff = 0.2 -- after how many seconds the light is turned off again loca...
nilq/small-lua-stack
null
-- keybindings ---@diagnostic disable-next-line: lowercase-global screen = screen or {} local awful = require('awful') local beautiful = require('beautiful') local gtable = require('gears.table') local config = require('config') local modkey = config.modkey local clientkeys = gtable.join( -- aw...
nilq/small-lua-stack
null
require("common/commonLogic"); require("hall/common/commonJumpCmds"); require("hall/gameData/share/shareDataInterface"); require("gameData/weixinShareUtil"); CommonJumpLogic = class(CommonLogic); CommonJumpLogic.s_commonJumpEvent = EventDispatcher.getInstance():getUserEvent(); CommonJumpLogic.getInstance = ...
nilq/small-lua-stack
null
local hap = require "hap" local Active = require "hap.char.Active" local CurTemp = require "hap.char.CurrentTemperature" local CurHeatCoolState = require "hap.char.CurrentHeaterCoolerState" local TgtHeatCoolState = require "hap.char.TargetHeaterCoolerState" local CoolThrholdTemp = require "hap.char.CoolingThresholdTemp...
nilq/small-lua-stack
null
-- oft.lua -- -- One Function Tests -- -- Check if we are on windows. If so, check for ANSICON env variable -- for color support. Otherwise, assume color support. local cs = package.config:sub(1,1) ~= '\\' if not cs then cs = os.getenv("ANSICON") end -- Rendering local RED = cs and '\27[31m' or '' local GREEN = cs a...
nilq/small-lua-stack
null
local up = "upvalue" local x, y = 0, f() or function() print(up) end y()
nilq/small-lua-stack
null
require "base" require "memory" local nes_cpu = {} nes.cpu = nes_cpu --register registers local nes_cpu_register_count = 0 local nes_cpu_registers = {} nes_cpu.registers = nes_cpu_registers local nes_cpu_reg_cache = emu.getregisters() local do_remove = false local emu_getregister = emu.getregister local function reg_...
nilq/small-lua-stack
null
require("globals") require("maths") WorldManager = require("worldmanager") BallManager = require("ballmanager") PadManager = require("padmanager") BrickManager = require("brickmanager") WallManager = require("wallmanager") function love.load() WorldManager.load() -- load world environnement (gravity, etc) WallMa...
nilq/small-lua-stack
null
-- A table with a build-in new()-method for creating instances. -- Based on http://lua.org/pil/16.1.html -- Note that the new()-method is effectively a constructor, so -- if you need your own, you can copy the code and adjust it -- to your needs instead. local class = { -- Create a new instance of the class. new = fu...
nilq/small-lua-stack
null
require 'nn' require 'nngraph' local inputs = {} -- nn.Identity used as a placeholder for input table.insert(inputs,nn.Identity()()) -- input table.insert(inputs,nn.Identity()()) -- c at t-1 table.insert(inputs,nn.Identity()()) -- h at t-1 local input = inputs[1] local prev_c = inputs[2] local prev_h = inputs[3] ...
nilq/small-lua-stack
null
local ui, uiu, uie = require("ui").quick() local themer = {} function themer.dump() local theme = {} for id, el in pairs(uie) do id = id:match("__(.+)") if not id then goto next end local style = el.__default style = style and style.style if not st...
nilq/small-lua-stack
null
local Packages = script.Parent.Parent local Roact = require(Packages.Roact) local joinDictionaries = require(script.Parent.joinDictionaries) local withTheme = require(script.Parent.withTheme) local BaseButton = Roact.Component:extend("BaseButton") local Constants = require(script.Parent.Constants) BaseButton.default...
nilq/small-lua-stack
null
--This is the minimum time to wait before the host can start the game (seconds) --Less than ~20 seconds will mean that the individual surfaces are not fully loaded wait_before_start = 20 --This is the length between each round of fighting (minutes) round_length = 10 --The clock will turn yellow below this time (seco...
nilq/small-lua-stack
null
--- -- xcode/xcode-alt.lua -- Common support code for the Apple Xcode exporters. -- Copyright (c) 2009-2015 Jason Perkins and the Premake project --- local p = premake p.modules.xcode_alt = {} local m = p.modules.xcode_alt m._VERSION = p._VERSION m.elements = {} include("xcode_common.lua") include("xcode4_wo...
nilq/small-lua-stack
null
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local object = require "classic" local IpcMessageQueue = require "ipc.IpcMessageQueue" local UnixSocket = require "socket.UnixSocket" --- -- Base class for a IPC communication partner. -- -- @type IpcCommunicationPartne...
nilq/small-lua-stack
null
local spread = 20 local m = Instance.new("Model") m.Name = "Dome" m.Parent = Workspace local m2 = Instance.new("Model") m2.Name = "Door" m2.Parent = m for ii = 1,21 do for i = 1, 90 do p = Instance.new("Part") p.Name = "Part"..i p.Anchored = true p.Parent = m p.Size = Vector3.new(1,spread*0.1,spread*0.075) p...
nilq/small-lua-stack
null
lighton=0 tmr.alarm(0,1000,1,function() if lighton==0 then lighton=1 led(512,512,512) -- 512/1024, 50% duty cycle else lighton=0 led(0,0,0) end end)
nilq/small-lua-stack
null
spinner = 0.0 cube = nil rot = nil lookAt = nil tristram = Model("tristram.glb") sponza = MeshGroup() --sponza:loadMesh("sponza.gltf") dofile("camera.lua") testEffect = Effect("test.fx") SPEED = 5.0 SENSITIVITY = 0.15 time = 0.0 renderMode = "PointLighting" alphaValue = 1.0 starfield = {} starradius = 64 starcoun...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
nilq/small-lua-stack
null
local FOLDER_NAME, private = ... local Chronicles = private.Core local Locale = LibStub("AceLocale-3.0"):GetLocale(private.addon_name) DemoFactionsDB = { --[[ structure: [factionId] = { id=[integer], -- Id of the faction name=[string], -- name of the faction description=[string], -- descr...
nilq/small-lua-stack
null
require 'paths' require 'image' local anno_utils = require 'utils.anno_utils_filter' local tablex = require('pl.tablex') local M = {} local DataLoader = torch.class('lstm.DataLoader', M) function DataLoader:__init(opt) print('Initialize dataloader...') self.feat_dirs = {} table.insert(self.feat_dirs, path...
nilq/small-lua-stack
null
mt = require "moduletest" json = require "json" local out = {} out["dials"] = {} for key, value in pairs(mt.list) do if type(value) == "table" then if #value > 0 and value[1] ~= "" then out["dials"][key] = value end else out[key] = value end end print(json.encode(out))
nilq/small-lua-stack
null
PWM_PINS = {5, 6, 7} -- gpio12, gpio13, gpio14 INPUT_PIN = 2 -- gpio04 function startup() if abort == true then print('Start aborted!') return end print('Start.') dofile('rgb-pwm.lua') end uart.setup(0, 9600, 8, 0, 1, 1) gpio.mode(INPUT_PIN, gpio.INPUT) for i=1, 3 do gpio.mode(PW...
nilq/small-lua-stack
null
local function onCreate(overlay) local menu = StackMenu:create(500, overlay, 15) local resume = menu:addButton("Resume") local exit = menu:addButton("Exit") resume.onClick = function() game.gui.pop() game.input.hideMouse() game.control.resume() end exit.onClick = func...
nilq/small-lua-stack
null
local themes = require('telescope.themes') local builtin = require('telescope.builtin') local extensions = require('telescope._extensions').manager local config = require('telescope.config') local command = {} local arg_value = { ['nil'] = nil,['""'] = '',['"'] = '' } local bool_type = { ['false'] = false,['true'...
nilq/small-lua-stack
null
local status, hyperModeAppMappings = pcall(require, 'keyboard.hyper-apps') if not status then hyperModeAppMappings = require('keyboard.hyper-apps-defaults') end for i, mapping in ipairs(hyperModeAppMappings) do hs.hotkey.bind({'shift', 'ctrl', 'alt', 'cmd'}, mapping[1], function() local appName = mapping[2] ...
nilq/small-lua-stack
null
--[[ Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio ]] package.path = ngx.var.app.."/?.lua;"..package.path local Http = require ("contrib/http"); local Crypt = require ("contrib/crypt"); local Sql = require ("contrib/sql"); --GenerateSessionId function GenUid (PseudoId) local Dict = "0X1P2QV4cCUdeAfgMhijEk...
nilq/small-lua-stack
null
local dataforms = require "util.dataforms"; local adhoc_util = require "util.adhoc"; local serialization = require "util.serialization"; local adhoc_new = module:require "adhoc".new; -- Dataform borrowed from Prosodys busted test for util.dataforms local form = dataforms.new({ title = "form-title", instructions = "...
nilq/small-lua-stack
null
return { encode = function(s) end, decode = function(s) end }
nilq/small-lua-stack
null
local shell = require("shell") local args, opts = shell.parse(...) local str = "" local out = {} if opts.a then opts.s = true; opts.r = true; opts.v = true; opts.p = true; opts.o = true; end if opts.s then table.insert(out, "Fuchas Kernel") end if opts.r then table.insert(out, OSDATA.VERSION) end if opts.v the...
nilq/small-lua-stack
null
dbg=require("debugger") function arrayInit(Arr,lim) for i=1,lim do Arr[i]=0 end return Arr end --copies contents of array A1 to A2 --optional 3rd argument: lim --controls how much of A1 to copy to A2 function arrayCopy(A1,A2,lim) lim=lim or #A1 for i=1,lim do table.insert(A2,A1[i]) end end func...
nilq/small-lua-stack
null
---addon namespace local _, ns = ... ns.pigments = { { itemId = 39151, name = "Alabaster Pigment", sources = { { itemId = 765, name = "Silverleaf", chance = 1.0, }, { itemId = 2447, ...
nilq/small-lua-stack
null
-- shears minetest.register_tool("creatures:shears", { description = "Shears", inventory_image = "creatures_shears.png", }) minetest.register_craft({ output = 'creatures:shears', recipe = { {'','default:steel_ingot'}, {'default:steel_ingot','default:stick'}, } }) -- drop items minetest.register_craftitem("cr...
nilq/small-lua-stack
null
function main(splash) splash:autoload([[ function get_document_title(){ return document.title; } ]]) assert(splash:go(splash.args.url)) return splash:evaljs("get_document_title()") end
nilq/small-lua-stack
null
local scene = {} scene.name = "Bars" scene.color = {} scene.color.fg = {5/8, 5/8, 5/8} scene.color.bg = {3/8, 3/8, 3/8} local speed, num, bars, barWidth local WIDTH, HEIGHT local str = [[ speed: %d (change with left/right arrow) number of bars: %d (change with -/+)]] newBars = function() barWidth = WIDTH / (num...
nilq/small-lua-stack
null
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' client_script "basic-c.lua" server_script "basic-s.lua" --[[ DO NOT REMOVE BELOW This script was fully created and developed by "Sean" there discord is "Sean B.#0899" if you need any help with the script please contact me on my discord and I w...
nilq/small-lua-stack
null
fx_version 'cerulean' game 'gta5' description 'QB-Inventory' version '1.0.0' shared_scripts { 'config.lua', '@qb-core/import.lua', '@qb-weapons/config.lua' } server_script 'server/main.lua' client_script 'client/main.lua' ui_page { 'html/ui.html' } files { 'html/ui.html', 'html/css/main.css', 'html/js/app.j...
nilq/small-lua-stack
null
require("ZZBase64") require("TSLib") require("leoScript") init(1) local ts = require("ts") local json = ts.json local image = require("tsimg") syxTime = ts.ms() local getAllFlag = false local bbmapcount = 0 jyc = {} wzg = {} stl = {} zzg = {} dhw = {} dtjw = {} dtgj = {} alg = {} nec = {} hgs = {} mjc = {} pts = {} c...
nilq/small-lua-stack
null
local super = Class("BorderFactory", LuaObject).getSuperclass() function BorderFactory.createLineBorder(...) return LineBorder(...) end
nilq/small-lua-stack
null
-- Punctuation, Other local make_set = require 'parse.char.utf8.make.set' return make_set { S = [["'\]] .. '*,./!#%&:;?@' .. '\u{a1}\u{a7}\u{b6}\u{b7}\u{bf}' .. '\u{37e}\u{387}\u{589}\u{5c0}\u{5c3}\u{5c6}\u{5f3}\u{5f4}\u{609}\u{60a}\u{60c}\u{60d}\u{61b}' .. '\u{61e}\u{61f}\u{6d4}\u{85e}\u{964}\u{965}\u{970}\u{a...
nilq/small-lua-stack
null
self = {} function OnSpellStart( keys )self.ap_scaling = keys.ability:GetSpecialValueFor( "ap_scaling" ) self.explosion_radius = keys.ability:GetSpecialValueFor( "explosion_radius" ) self.explosion_delay = keys.ability:GetSpecialValueFor( "explosion_delay" ) self.base_damage = keys.ability:GetAbilityDamage() s...
nilq/small-lua-stack
null
---@meta ---게임 클라이언트를 스크립트로 조작할 수 있게 해주는 클래스입니다. ---@class Game.Scripts.ScriptClient ---@field appVersion string 현재 유저의 네코랜드 앱 버전 ---@field changeSlot Game.Scripts.ScriptChangeSlot 게임 화면 내의 교체 슬롯 ---@field controller Game.Scripts.ScriptController 게임 화면 내의 방향키 패드(D-Pad) 객체 ---@field field Game.Scripts.ScriptField 현재 내 플...
nilq/small-lua-stack
null
require("@vue/compiler-core") require("@vue/compiler-core/ErrorCodes") require("compiler-dom/src/errors/DOMErrorCodes") function createDOMCompilerError(code, loc) -- [ts2lua]lua中0和空字符串也是true,此处__DEV__ or not __BROWSER__需要确认 return createCompilerError(code, loc, (__DEV__ or not __BROWSER__ and {DOMErrorMessages} or...
nilq/small-lua-stack
null
return { HOOK_ENTITY_TELEPORT = { CalledWhen = "Any entity teleports. Plugin may refuse teleport.", DefaultFnName = "OnEntityTeleport", -- also used as pagename Desc = [[ This function is called in each server tick for each {{cEntity|Entity}} that has teleported. Plugins may refuse the teleport. ]], ...
nilq/small-lua-stack
null
--[[ NPCAI - Server by: standardcombo v0.9.1 Logical state machine for an enemy NPC. Works in conjunction with NPCAttackServer. Will walk over terrain and any objects to get to its objective. To mark objects as not walkable, add to each one a custom property called "Walkable" of type boolean and set to false....
nilq/small-lua-stack
null
#! /usr/bin/lua require( "common" ) Items = data( "items" ) Shots = data( "shots" ) local Dir = "weapons" local Names, NamesCount = loadNames( Dir .. "/namesGuns.txt" ) local Types = { "lbg", "hbg", "bow", } local Bases = { lbg = { name = { hgg = "Light Bowguns" } }, hbg = { name = { hgg = "Heavy Bowguns" } ...
nilq/small-lua-stack
null
local ObjectID = 900118 local TeleportSpells{36400,48335,46705} local function StrangePortal_OnUse (event, player, object) for _, TeleportOnCastSpell in ipairs (TeleportSpells[Class]) do player:CastSpell(player, TeleportOnCastSpell) end player:Teleport(33, -322.891632, 2083.733154, 25.270866, 3.140095) ...
nilq/small-lua-stack
null
addEvent("playerChatting", true ) addEvent("playerNotChatting", true ) function playerChatting() triggerClientEvent("updateChatList", getRootElement(), source, true) end function playerNotChatting() triggerClientEvent("updateChatList", getRootElement(), source, false) end addEventHandler("player...
nilq/small-lua-stack
null
local function hax_prng_next(v) local hi = math.floor(v / 127773.0) local lo = v % 127773 v = 16807 * lo - 2836 * hi if v <= 0 then v = v + 2147483647 end return v end local function shuffle(arr, seed) local v = math.floor(seed / 2) + 0x30f6 v = hax_prng_next(v) for i = #arr, 1, -1 d...
nilq/small-lua-stack
null
local prefill_hooks = {} prefill_hooks["on_console_command"] = function(event) return not (settings.global["scis-logging-ignore-own-commands"] and tostring(event.command):find('^scis_logging.') ~= nil) end return prefill_hooks
nilq/small-lua-stack
null
ndoc.table.fwZoneControl = {} local cache = {} function fw.zone.setupCaptureNetworking(zone) ndoc.table.fwZoneControl[zone.id] = {} ndoc.table.fwZoneControl[zone.id].scores = {} if (cache[zone.id]) then ndoc.table.fwZoneControl[zone.id].isProtected = cache[zone.id].prot ndoc.table.fwZoneControl[zone.id].isNotC...
nilq/small-lua-stack
null
SuperSurvivorManager = {} SuperSurvivorManager.__index = SuperSurvivorManager function SuperSurvivorManager:new() local o = {} setmetatable(o, self) self.__index = self o.SuperSurvivors = {} o.SurvivorCount = 3 return o end function SuperSurvivorManager:init() self.SuperSurvivors[0] = SuperSurvivor:newS...
nilq/small-lua-stack
null
local old_instanted_init = EquipmentsTweakData.init function EquipmentsTweakData:init(tweak_data) old_instanted_init(self, tweak_data) self.trip_mine = { deploy_time = 0, dummy_unit = "units/payday2/equipment/gen_equipment_tripmine/gen_equipment_tripmine_dummy", use_function_name = "use_trip_mine", text_...
nilq/small-lua-stack
null
local accumulator = {} local LARGE_TIMEOUT = 1000.0 function accumulator.new(max_size, timeout, func) local ngx = require "ngx" local semaphore = require "ngx.semaphore" local function makeState() return { tasks = {}, sema = semaphore.new(), } end local s...
nilq/small-lua-stack
null
--[[-- Hotpatch Core: Module Object for Hotpatch-MultiMod: a tool to load multiple scenarios side-by-side, with support for both static loading and dynamic loading, as well as run-time patching. This module handles loading and running code, setting up environments, etc @module hotpatch.core-mod_object @author Chrisgbk ...
nilq/small-lua-stack
null
-- object based faces renderer, default renderer for faces. local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage:WaitForChild("common") local Assets = require(common:WaitForChild("Assets")) local FaceRenderer = {} local function applyFaceToRig(rig,image) local torso = ...
nilq/small-lua-stack
null
return { _VERSION = "0.0.1"; }
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
nilq/small-lua-stack
null
local settings_key = KEYS[1] local running_key = KEYS[2] local executing_key = KEYS[3] local index = ARGV[1] local now = ARGV[2] redis.call('zadd', executing_key, 0, index) return refresh_running(executing_key, running_key, settings_key, now)
nilq/small-lua-stack
null
local cm = {} function cm.new(init) init = init or {} local self = {} self.draw = cm.draw self.update = cm.update self.getHeight = cm.getHeight self.getWidth = cm.getWidth self.getEntryArea = cm.getEntryArea self.mouseInArea = cm.mouseInArea self.data = init.data or {} self.color_off = init.color_...
nilq/small-lua-stack
null
require("mod.elona.data.map_archetype.world") require("mod.elona.data.map_archetype.town") require("mod.elona.data.map_archetype.guild") require("mod.elona.data.map_archetype.instanced") require("mod.elona.data.map_archetype.player_owned") require("mod.elona.data.map_archetype.dungeon") require("mod.elona.data.map_arch...
nilq/small-lua-stack
null
local S = aurum.get_translator() aurum.tools.enchants = {} function aurum.tools.get_category_enchants(category) local ret = {} for k,v in pairs(aurum.tools.enchants) do if v.categories[category] then table.insert(ret, k) end end return ret end function aurum.tools.register_enchant(name, def) local def = b...
nilq/small-lua-stack
null
local lspconfig = require('lspconfig') local util = require('lspconfig/util') -- local lsp_status = require('lsp-status') local api = vim.api -- lsp_status.register_progress() local custom_on_attach = function(client, bufnr) api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') -- Mappings. loc...
nilq/small-lua-stack
null
local android = premake.extensions.android android.manifest = {} local manifest = android.manifest -- -- Generate AndroidManifest.xml -- function manifest.generate(prj) _p(0, '<?xml version="1.0" encoding="utf-8"?>') _p(0, '<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.%s" andro...
nilq/small-lua-stack
null
local files = {} local ctrlp = require('core.ctrlp') files.name = 'files' files.version = 'v0.1' files.cmds = {} files.cmds.grep = ctrlp.require_on_exported_call('ctrlp_files.files').grep function files.setup() ctrlp.register(files) end return files
nilq/small-lua-stack
null
print( "sh_sound_precacher" ) --[[ local sound_list = sound_list or {} hook.Add( "EntityEmitSound", "TV_ShSoundPrecacher_EntityEmitSound", function( data ) if not sound_list[ data.SoundName ] then print( "NEW:", data.SoundName, RealTime() ) sound_list[data.SoundName] = true end end ) ]]
nilq/small-lua-stack
null
local io = require('io') local os = require('os') local function dirname(str) if str:match(".-/.-") then local name = string.gsub(str, "(.*/)(.*)", "%1") return name else return '' end end local function basename(s) local name = string.gsub(s, "(.*/)(.*)", "%2") return name end local function check(ok,...
nilq/small-lua-stack
null
local typedefs = require 'nelua.typedefs' local tabler = require 'nelua.utils.tabler' local types = require 'nelua.types' local Symbol = require 'nelua.symbol' local Attr = require 'nelua.attr' local version = require 'nelua.version' local primtypes = typedefs.primtypes local symdefs = {} local function define_symbol...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Exponential statistical distribution. -- -- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved. -------------------------------------------------------------------------------- local ffi = require "ffi" local ex...
nilq/small-lua-stack
null
require ("_prolog") require ("_opencv") function RequireParams() lips_RequireParams("features_detector = combo([AKAZE, ORBS, BRISK, KAZE, SURF, SIFT, FAST_DAISY, FAST_FREAK] 0);" .. "matching_algorithm = combo([Brute Hamming, Brute force matching, FLANN] 2);" .. "homography = combo([LS, RANSAC, LMEDS, RHO]...
nilq/small-lua-stack
null
function LoadSPH(property) local sphloader sphloader = require("SphLoader")() sphloader:Load(property.filepath) return sphloader end
nilq/small-lua-stack
null
local rdebug = require 'remotedebug.visitor' local variables = require 'backend.worker.variables' local readfile = package.readfile if not readfile then function readfile(filename) local fullpath = assert(package.searchpath(filename, package.path)) local f = assert(io.open(fullpath)) local ...
nilq/small-lua-stack
null
return {'edmond','edmund','edmee','edmonds','edmunds','edmees'}
nilq/small-lua-stack
null
-- See LICENSE for terms local properties = {} local c = 0 local T = T local table_concat = table.concat local TraitPresets = TraitPresets --~ local added_cats = {} local function AddColonists(list) for i = 1, #list do local id = list[i] local trait = TraitPresets[id] local cat = trait.category ==...
nilq/small-lua-stack
null
local assets = { Asset("ANIM", "anim/maxwell_torch.zip") } local prefabs = { "maxwelllight_flame", } local function changelevels(inst, order) for i=1, #order do inst.components.burnable:SetFXLevel(order[i]) Sleep(0.05) end end local function light(inst) inst.task = inst:StartThre...
nilq/small-lua-stack
null
TestModule2 = {} register_module(TestModule2,"TestModule2"); function TestModule2.Init() io.write("TestModule2 Init!\n"); end function TestModule2.AfterInit() io.write("TestModule2 AfterInit!" .. tostring(pLuaScriptModule) .. "\n"); end function TestModule2.Execute() io.write("TestModule2 Execute!\n"); end func...
nilq/small-lua-stack
null
-- Main module -- Namespaces and global variables local _, SCRollHelper = ...; SCRollHelper.globalRolling = false; SCRollHelper.globalBonusesValue = 0; -- Some basics SCrollHelperCurrentDB = {}; -- Initalise main database troubleshootingEnabled = true; -- "true"" if troubleshooting is enabled -- helper function to t...
nilq/small-lua-stack
null
-- Copyright 2006-2019 Mitchell mitchell.att.foicica.com. See License.txt. -- C LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('ansi_c') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, l...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- Title: Mik's Scrolling Battle Text Parser -- Author: Mikord ------------------------------------------------------------------------------- -- Create module and set its name. local module = {} local moduleName = "Parser" MikSBT[...
nilq/small-lua-stack
null
require 'torch' require 'nn' require 'optim' require 'image' local c = require 'trepl.colorize' if itorch then path = require 'pl.path' end require 'cifar10-data-loader' -- CUDA Import Stuff local EXCLUDE_CUDA_FLAG = false local function cudaRequires() require 'cutorch' require 'cunn' end if pcall(cudaRe...
nilq/small-lua-stack
null