content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
require("../logger") require("../diff/diff_export") require("../events") require("../tick") require("../utils/deepcopy") Track = {} Track.__index = Track setmetatable(Track, { __call = function(cls, ...) return cls.init(...) end }) function Track.init() local self = setmetatable({}, ...
nilq/small-lua-stack
null
Note = {} Note.__index = Note setmetatable(Note, { __call = function(cls, ...) return cls.init(...) end, __lt = function(a, b) return a:lt(b) end }) Note.Objects = { AUTO = 0, DEFAULT = "Meteor", DEFAULT_TAIL = "Meteor_Tail" } Note.HandTypes = { ...
nilq/small-lua-stack
null
-- Vis Sleuth Plugin -- Detect and set indentation. require("vis") local tab_width = 2 local defaults = { expandtab = "on" , softtabstop = tab_width , tabwidth = tab_width } local function vis_sleuth(win) local function map(fn, list) local mapped = {} for key, value in pairs(list) do ...
nilq/small-lua-stack
null
redis_host = os.getenv("REDIS_HOST") dark_canary_threshold = tonumber(os.getenv("DARK_CANARY_THRESHOLD"))
nilq/small-lua-stack
null
Plane = class.sub(Mob) function Plane:init(pDelay) Mob.init(self, pDelay, -100, love.math.random(150) + 50) self.speed = 1.7 + self.level/10 if self.speed >= 5 then self.speed = 5 end self.score = 5 self.targetX = config.gameWidth + 100 self.targetY = love.math.random(150)...
nilq/small-lua-stack
null
pistol_intimidator = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Intimidator pistol", directObjectTemplate = "object/weapon/ranged/pistol/pistol_intimidator.iff", craftingValues = { {"mindamage",150,200,0}, {"maxdamage",200,250,0}, {"attackspeed",5.3,3.7,1}, {"woundchance",8,16,0}, {"round...
nilq/small-lua-stack
null
local P = {} local debug_level = tonumber(os.getenv('jagen_debug')) or -1 function P.message(...) io.write('(I) ', string.format(...), '\n') io.flush() end function P.warning(...) io.stderr:write('(W) ', string.format(...), '\n') io.stderr:flush() end function P.error(...) io.stderr:write('(E) '...
nilq/small-lua-stack
null
--[[ Netherstorm -- Nether Ray.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHer0, Ju...
nilq/small-lua-stack
null
local Spawn = require("coro-spawn") return { GetWifi = function () local Commands = { Windows = "Powershell.exe -Command \"(get-netconnectionProfile).Name\"", Mac = "/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | awk -F: '/ SSID/{print $2}'" } ...
nilq/small-lua-stack
null
-- -- config -- local P = {} setfenv(1, P) -- Redis P.redis = {} P.redis.host = "127.0.0.1" P.redis.port = "6379" -- 短链服务序列号[0|1|2|3] P.worker_id = 0 return P
nilq/small-lua-stack
null
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
nilq/small-lua-stack
null
pg = pg or {} pg.item_data_frame = { [0] = { time_limit_type = 0, name = "默认装扮", gain_by = "", id = 0, time_second = 0, desc = "<color=#ffffff>不设置任何头像框</color>\n该状态下将誓约角色设置为秘书舰,可显示誓约头像框", scene = {} }, [101] = { time_limit_type = 0, name = "一周年纪念", gain_by = "", id = 101, time_second = 0, d...
nilq/small-lua-stack
null
RegisterClientScript() RegisterClientAssets("placeholder/socle.png") ENTITY.IsNetworked = true ENTITY.Properties = { { Name = "respawntime", Type = PropertyType.Integer, Default = 30 }, { Name = "powerup_type", Type = PropertyType.String, Default = "" } } ENTITY.CanSpawn = true function ENTITY:Initialize() if (C...
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
--[[ Event system (aka pub/sub) mixin for any object or class. Written by Cosmin Apreutesei. Public Domain. Events are a way to associate an action with one or more callback functions to be called on that action, with the distinct ability to remove one or more callbacks later on, based on a criteria. This module i...
nilq/small-lua-stack
null
local EMPTY_VALUE = "NULL" local currentGame local lastGestationData = {} local function initCurrentGameObject() currentGame = {} currentGame["classKillCounts"] = {} currentGame["classBuildCounts"] = {} currentGame["classBuildCompleteCounts"] = {} currentGame["clients"] = {} currentGame["WeldHealth"] = {} curre...
nilq/small-lua-stack
null
RegisterServerEvent('npc-vehicleshop.requestInfo') AddEventHandler('npc-vehicleshop.requestInfo', function() local src = source local user = exports["npc-core"]:getModule("Player"):GetUser(src) local firstname = user:getCurrentCharacter().first_name local rows TriggerClientEvent('npc-vehicleshop....
nilq/small-lua-stack
null
-- Buildat: extension/sandbox_test/init.lua -- http://www.apache.org/licenses/LICENSE-2.0 -- Copyright 2014 Perttu Ahola <celeron55@gmail.com> local log = buildat.Logger("sandbox_test") local dump = buildat.dump local try_exploit = dofile(buildat.extension_path("sandbox_test").."/try_exploit.lua") local M = {} local f...
nilq/small-lua-stack
null
------------------------------------------------- -- AE2 auto craft 'fluix crystal' 自動生成用プログラム -- 要求最大128個ver -- -- creater 'wusagi24' ------------------------------------------------- local material_1_slot = 1 local material_2_slot = 2 local material_3_slot = 3 local product_slot = 16 while true do -- インベントリにアイテムが...
nilq/small-lua-stack
null
-- Toggle dynamic lighting on blaster bolts if !ConVarExists("cl_dynamic_tracer") then CreateClientConVar("cl_dynamic_tracer", 1, true, false, "Enable/Disable dynamic lighting on Star Wars weapons") end
nilq/small-lua-stack
null
-- Licensed to the public under the Apache License 2.0. local m = Map("radicale2", translate("Radicale 2.x"), translate("A lightweight CalDAV/CardDAV server")) local s = m:section(NamedSection, "logging", "section", translate("Logging")) s.addremove = true s.anonymous = false local logging_file = nil logging...
nilq/small-lua-stack
null
project "VortexAnimatSim" language "C++" kind "SharedLib" files { "../*.h", "../*.cpp"} configuration { "Debug or Debug_Double", "windows" } includedirs { "../../../include", "../../../../3rdParty/Vortex_5_1/include", "../../../../3rdParty/Vortex_5_1/3rdparty/osg-2.8.3/include...
nilq/small-lua-stack
null
ENT.Base = "base_ai" ENT.Type = "ai" ENT.PrintName = "Black Helicopter" ENT.Author = "Shark_vil by. Xystus234" ENT.Contact = "https://steamcommunity.com/groups/fgserv" ENT.Purpose = "Helicopter for battles." ENT.Instructions = "You can spawn it through the Sandbox menu, in the NPC tab, in the SCP:CB category...
nilq/small-lua-stack
null
function WallMovementMixin:TraceWallNormal(startPoint, endPoint, result, feelerSize) local theTrace = Shared.TraceCapsule(startPoint, endPoint, feelerSize, 0, CollisionRep.Move, PhysicsMask.AllButPCs, EntityFilterOneAndIsaActual(self, "Babbler")) --[[ double-comment to see wall-walk traces if Cl...
nilq/small-lua-stack
null
addCommandHandler("rapor", function(cmd, ...) if getElementData(localPlayer, "loggedin") == 1 then if not (...) then outputChatBox(exports.mrp_pool:getServerSyntax(false, "e").."/rapor <bilgi>", 255, 255, 255, true) return end local message = table.concat({...}, " ") triggerServerEvent("clientSen...
nilq/small-lua-stack
null
local server = require "nvim-lsp-installer.server" local installers = require "nvim-lsp-installer.installers" local path = require "nvim-lsp-installer.path" local zx = require "nvim-lsp-installer.installers.zx" local root_dir = server.get_server_root_path "ruby" return server.Server:new { name = "solargraph", ...
nilq/small-lua-stack
null
/* * @package : rlib * @module : promises * @author : Richard [http://steamcommunity.com/profiles/76561198135875727] * @copyright : (C) 2020 - 2020 * @since : 1.0.0 * @website : https://rlib.io * @docs : https://docs.rlib.io * * MIT License * * TH...
nilq/small-lua-stack
null
-- test case:__index is a table print("----------test case 1----------") local mt = { [1] = 2020 } local tbl = setmetatable({}, { __index = mt }) print(tbl[1]) print(tbl[2]) -- test case2 print("----------test case 2----------") local c2_mt0 = { world = "hello" } local c2_mt1 = { hello = "world" } setmetatable(c2_mt1,...
nilq/small-lua-stack
null
local insert,getn,remove = table.insert,table.getn,table.remove local p = require('pretty-print').prettyPrint local Events = { name = "Events", magicalCharacters = {'+','-','*','.','?','^','@',"#"}, registeredEvents = { Emoji = {} }, pendent = { guildLoad = {} }, redirections = {}, whitel...
nilq/small-lua-stack
null
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_hoodwink_...
nilq/small-lua-stack
null
local utSwitchCam = false function onCreate() makeLuaSprite('hall', 'stages/sans/hall', 0, 0); addLuaSprite('hall', false); end function onMoveCamera(focus) if not utSwitchCam then if focus == 'dad' then setProperty('camFollow.y', getProperty('camFollow.y') ); setProperty('camF...
nilq/small-lua-stack
null
return function() local Root = script.Parent.Parent local MarketplaceService = game:GetService("MarketplaceService") local CorePackages = game:GetService("CorePackages") local PurchasePromptDeps = require(CorePackages.PurchasePromptDeps) local Rodux = PurchasePromptDeps.Rodux local RequestType = require(Root.Enu...
nilq/small-lua-stack
null
local play = require 'play' local title = require 'title' function normalise(vx, vy, speed) local length = math.sqrt(vx * vx + vy * vy) local speed_len = speed / length return vx * speed_len, vy * speed_len end function switch_scene(c_scene) scene = c_scene c_scene.load() for i, v in pairs(c_s...
nilq/small-lua-stack
null
-- Class definition of a servient -- Autor: Sebastian Kaebisch (sebastiankb@git) -- servient class servient={} servient.name = "" -- which protocols does the servient support (e.g., CoAP, HTTP, ...) servient.coap=false servient.http=false servient.properties={} -- servient's properties servient.actions={} -- servie...
nilq/small-lua-stack
null
--------------------------------------------- -- Amber Scutum -- Family: Wamouracampa -- Description: Increases defense. -- Type: Enhancing -- Utsusemi/Blink absorb: N/A -- Range: Self --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/status") -------------...
nilq/small-lua-stack
null
fx_version 'bodacious' game 'gta5' developer 'kim111#2795' client_scripts { 'config.lua', 'client/*.lua', 'locale.lua', 'Locales/*.lua' } server_scripts { '@mysql-async/lib/MySQL.lua', 'server/*.lua', 'config.lua', 'locale.lua', 'Locales/*.lua' }
nilq/small-lua-stack
null
local m = {}; function m.print() print("module03 print()."); end return m;
nilq/small-lua-stack
null
function morebombs.nuke(pos, radius) tnt.boom(pos, { radius = radius, }) local corium = minetest.find_node_near(pos, 3, {"air"}) or pos minetest.set_node(corium, {name = "morebombs:falling_corium"}) minetest.check_for_falling(corium) end minetest.register_node("morebombs:falling_corium", {...
nilq/small-lua-stack
null
---@class IsoSpriteManager : zombie.iso.sprite.IsoSpriteManager ---@field public instance IsoSpriteManager ---@field public NamedMap HashMap|String|IsoSprite ---@field public IntMap TIntObjectHashMap|Unknown ---@field private emptySprite IsoSprite IsoSpriteManager = {} ---@public ---@param gid String ---@return IsoSpr...
nilq/small-lua-stack
null
AddCSLuaFile(); SWEP.PrintName = "Base"; SWEP.Slot = 1; SWEP.SlotPos = 1; SWEP.ViewModelFlip = false; SWEP.ViewModelFOV = 54; SWEP.ViewModel = ""; SWEP.WorldModel = ""; SWEP.SwayScale = 0; SWEP.Primary.ClipSize = -1; SWEP.Primary.DefaultClip = -1; SWEP.Primary.Ammo = ""; SWEP.Primary.Automatic = ...
nilq/small-lua-stack
null
return {'cortes','cordiaal','cordiet','corduroy','corebusiness','coreferent','coregisseur','corgi','cornedbeef','corner','cornerbal','cornerspecialist','cornervlag','cornet','cornflakes','corona','coronaal','coronair','corporale','corporalen','corporatie','corporatief','corporatisme','corporatistisch','corporeel','corp...
nilq/small-lua-stack
null
-- =========================================================================== -- Cui Great Person Tooltip -- eudaimonia, 2/26/2019 -- =========================================================================== include("InstanceManager") include("SupportFunctions") include("CivilizationIcon") local CuiGreatPersonTT = ...
nilq/small-lua-stack
null
class 'EventManager' function EventManager:__init( ... ) self.active_events = {} self.timer = Timer() self.event_post_tick = Events:Subscribe( 'PostTick', self, self.Tick ) self.event_module_load = Events:Subscribe( 'MapsLoaded', self, self.LoadDebug ) end function EventManager:LoadDebug() -- military base test...
nilq/small-lua-stack
null
require "weapon" WeaponsManager = {} -- this manager give the ability of who inherat to use weapons function WeaponsManager.new() local self = {} self.weapons = {} function self.change_delay_of_all_weapons(new_delay) for _, weapon in ipairs(self.weapons) do weapon.change_delay_to(new_delay) end ...
nilq/small-lua-stack
null
package = "blunty666.nodes" interface = "INodeController" methods = { "_CheckCoordDrawn", "_CheckCoordVisible", "_CheckCoordClickable", "GetOrder", "SetOrder", "_CheckActiveSubNode", "GetActiveSubNode", "SetActiveSubNode", }
nilq/small-lua-stack
null
local a = 1 local b = 1 log(a) log(b) log(mathex.add(a, b))
nilq/small-lua-stack
null
----------------------------------- -- Area: Bastok Mines -- NPC: Davyad -- Involved in Mission: Bastok 3-2 -- !pos 83 0 30 234 ----------------------------------- require("scripts/globals/missions") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) if (...
nilq/small-lua-stack
null
--- currently contains useful lua functions for vrep only --- to use: --- 1) symlink or copy grl.lua into the same folder as the vrep executable --- 2) add the following line to your script before you want to use the library: --- require "grl" --- 3) call your function! ex: grl.isModuleLoaded('') grl = {} grl....
nilq/small-lua-stack
null
--[[FDOC @id AiRtEvChkIsPlayingVoice @category Ai RouteNodeEvent @brief ルートイベント条件スクリプト * 汎用。ChVoicePluginの再生完了待ちを行うスクリプト ]]-- AiRtEvChkIsPlayingVoice = { ---------------------------------------- --開始条件判定 EnableCheck() -- RouteNodeEventのアクション実行前に呼ばれます。 -- boolを返してください。 -- true: アクションを開始します。 -- false: アクションを開始せず...
nilq/small-lua-stack
null
if settings.startup["enable-morebobsaddon"] and settings.startup["enable-morebobsaddon"].value then require("lib/tu_market") script.on_event(defines.events.on_entity_died, function(event) -- get shops market_spawning(event) end) local tuonela = require("lib/tuonela") end
nilq/small-lua-stack
null
-- this module define some Mono tools (ex: non global assembly loader) (experimental, doesn't fully work) local Mono = {} local function splitString(str, sep) if sep == nil then sep = "%s" end local t={} local i=1 for str in string.gmatch(str, "([^"..sep.."]+)") do t[i] = str i = i + 1 end retu...
nilq/small-lua-stack
null
local skynet = require "skynet" local Room = require "Room" local constant = require "constant" local log = require "skynet.log" local cluster = require "skynet.cluster" local utils = require "utils" local ALL_CARDS = constant.ALL_CARDS local RECOVER_GAME_TYPE = constant.RECOVER_GAME_TYPE local GAME_CMD = constant.GAME...
nilq/small-lua-stack
null
local table_stack = {} function table_stack.new() return setmetatable({ n = 0 }, table_stack) end function table_stack:push(...) self.n = self.n + 1 local entry = self[self.n] for i = 1, select('#', ...) do entry[i] = select(i, ...) end return entry end function table_stack:peek() ...
nilq/small-lua-stack
null
return { library = [[ ```json "Lua.workspace.library": { "C:/lua": true, "../lib": [ "temp/*" ] } ``` ]], disable = [[ ```json "Lua.diagnostics.disable" : [ "unused-local", "lowercase-global" ] ``` ]], globals = [[ ```json "Lua.diagnostics.globals" : [ "GLOBAL1", "GLOBAL2...
nilq/small-lua-stack
null
local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") vRP = Proxy.getInterface("vRP") --[ LOCAIS ]----------------------------------------------------------------------------------------------------------------------------- Resg = Tunnel.getInterface("nav_uniforme-medico") --[ FUNCTION ]-...
nilq/small-lua-stack
null
--海竜神の怒り function c82685480.initial_effect(c) aux.AddCodeList(c,22702055) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,82685480+EFFECT_COUNT_CODE_OATH) e1:SetH...
nilq/small-lua-stack
null
local ObjectManager = require("managers.object.object_manager") NewsnetMenuComponent = { } function NewsnetMenuComponent:fillObjectMenuResponse(pSceneObject, pMenuResponse, pPlayer) local menuResponse = LuaObjectMenuResponse(pMenuResponse) menuResponse:addRadialMenuItem(20, 3, "@gcw:read_headline") -- Read Headlin...
nilq/small-lua-stack
null
----------------------------------------- -- Spell: Grand Slam -- Delivers an area attack. Damage varies with TP -- Spell cost: 24 MP -- Monster Type: Beastmen -- Spell Type: Physical (Blunt) -- Blue Magic Points: 2 -- Stat Bonus: INT+1 -- Level: 30 -- Casting Time: 1 seconds -- Recast Time: 14.25 seconds -- Skillchain...
nilq/small-lua-stack
null
modifier_boss_charger_hero_pillar_debuff = class(ModifierBaseClass) function modifier_boss_charger_hero_pillar_debuff:DeclareFunctions() return { MODIFIER_PROPERTY_OVERRIDE_ANIMATION, } end function modifier_boss_charger_hero_pillar_debuff:IsDebuff() return true end function modifier_boss_charger_hero_pil...
nilq/small-lua-stack
null
local moon = require("moon") local socket = require("moon.socket") local conf = ... or {} local total,count,client_num,send_count count = 0 local start_time = 0 local result = {} local connects = {} local time_count = {} local send_data = "Hello World" local n = 0 socket.on("connect",function(fd,msg) conn...
nilq/small-lua-stack
null
--[[ MATRIX MODULE v1.0 by RedPolygon All functions (except fill) return new matrices --]] -- INITIALIZE local matrix = {} local mt = {} -- FUNCTIONS function matrix.new( rows, cols ) local m = {} if type(rows) == "table" then -- Filled matrix if type(rows[1]) == "table" then m = rows else -...
nilq/small-lua-stack
null
module("XPluginManager", mkSingleton) setmetatable(XPluginManager, {__index=XLuaBehaviour}) function Init(self) -- current plugin list self.plugins = { } end -- start plugin manager function Startup(self) self.gameObject = GameObject("XPluginManager") if not self.gameObject then error("Can't creat...
nilq/small-lua-stack
null
--- Keymap command support. -- -- This module (and associated autoloads) provides support for -- using standard keymap commands such as `:map` and `:nnoremap`. -- However, consider using the `bex.keymap` API instead. -- -- The right-hand side of a mapping may be a Lua callable instead -- of a raw command or expression,...
nilq/small-lua-stack
null
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --Permission is hereby granted, free of charge, to any person obtaining a copy --of this software and associated documentation files (the "Software"), to deal --in the Software without restriction, including without limitation the ...
nilq/small-lua-stack
null
-- Set keep_alive. The return value specifies if this is possible at all. canKeepAlive = mg.keep_alive(true) now = os.date("!%a, %d %b %Y %H:%M:%S") -- First send the http headers mg.write("HTTP/1.1 200 OK\r\n") mg.write("Content-Type: text/html\r\n") mg.write("Date: " .. now .. " GMT\r\n") mg.write("Cache-Control: no...
nilq/small-lua-stack
null
-- Copyright 2017 Xingwang Liao <kuoruan@gmail.com> -- Licensed to the public under the Apache License 2.0. local m, s, o local sid = arg[1] local qos_gargoyle = "qos_gargoyle" m = Map(qos_gargoyle, translate("Edit Upload Service Class")) m.redirect = luci.dispatcher.build_url("admin/network/qos_gargoyle/upload") if...
nilq/small-lua-stack
null
#!/usr/bin/env lua -- MoonFLTK example: clipboard.lua -- -- Derived from the FLTK examples/clipboard.cxx example (http://www.fltk.org) -- fl = require("moonfltk") -- Displays and follows the content of the clipboard with either image or text data function chess(x, y, h, w) -- a box with a chess-like pattern below it...
nilq/small-lua-stack
null
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT return { csv = require "moonpie.ext.csv", ensureKey = require "moonpie.utility.ensure_key", files = require "moonpie.utility.files", function_timer = require "moonpie.util...
nilq/small-lua-stack
null
local string = { } local metatable = { __tostring = function (self) return string[ self ] end, } local function tokenizer (input) local next = input: gmatch "." local line = 1 local column = 0 local buffer = "" local state = { } function state.initial (char) if cha...
nilq/small-lua-stack
null
function ItemPurchaseThink() end
nilq/small-lua-stack
null
function StallVehicle() Citizen.CreateThread(function() IsStalling = true local endTime = GetGameTimer() + GetRandomIntInRange(table.unpack(Config.Stalling.StallTime)) local vehicle = CurrentVehicle while GetGameTimer() < endTime and vehicle == CurrentVehicle do SetVehicleCurrentRpm(vehicle, 0.0) Cit...
nilq/small-lua-stack
null
Locales['en'] = { ['invoices'] = 'invoices', ['received_invoice'] = 'you ~r~received~s~ an invoice', ['paid_invoice'] = 'you ~g~paid~s~ an invoice of ~r~$', ['received_payment'] = 'you ~g~received~s~ a payment of ~r~$', ['player_not_logged'] = 'the player is not logged in', }
nilq/small-lua-stack
null
local api = vim.api local lsp = require("feline.providers.lsp") local vi_mode_utils = require("feline.providers.vi_mode") local colors = { bg = "#282c34", fg = "#DCD7BA", yellow = "#DCA561", cyan = "#658594", darkblue = "#223249", green = "#98BB6C", orange = "#FFA066", violet = "#957FB8", magenta = "#D27E99",...
nilq/small-lua-stack
null
--- Pre-defined Node Sound Groups -- -- @topic node_groups sounds.node = { dig = { --- @sndgroup sounds.node.dig.choppy -- @snd[r3] node_dig_choppy -- @see node sounds.node_choppy choppy = iSoundGroup({"node_dig_choppy"}), --- @sndgroup sounds.node.dig.cracky -- @snd[r3] node_dig_cracky -- @see n...
nilq/small-lua-stack
null
setenv("VERSION","3.0")
nilq/small-lua-stack
null
Ext.Require("Server/Modules/FallDamage.lua") Ext.Require("Server/Modules/GBTalents.lua") Ext.Require("Server/Modules/Corrogic.lua") PersistentVars = {} ------ Real Jumps module ------- function ReplaceAllJumps(toggle) if toggle == "on" then print("RealJump module activated") PersistentVars["DGM_Re...
nilq/small-lua-stack
null
local mod = DBM:NewMod(2172, "DBM-Party-BfA", 3, 1041) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 18085 $"):sub(12, -3)) mod:SetCreatureID(136160) mod:SetEncounterID(2143) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 268403 268932 268586 269369", "...
nilq/small-lua-stack
null
local weaponsGUI = {} local weaponTable = { [1]=69, [2]=70, [3]=71, [4]=72, [5]=73, [6]=74, [7]=75, [8]=76, [9]=78, [10]=77, [11]=79 } local thewepFont = "Tahoma bold" local theFontSize = 2 theFont = "Tahoma bold" function onResStart () local dxStatus = dxGetStatus() if tonumber(dxStatus['VideoMemoryFreeForMTA']) > ...
nilq/small-lua-stack
null
nested = require 'nested' local nested_function = require 'nested.function' local nested_ordered = require 'nested.ordered' a = { 1, { segundo = 2 }, 3, b = 'B' } callable = setmetatable({}, { __call = function(self, ...) print('CALLABLE', ...) end }) local _ENV = _ENV or getfenv() _ENV['function'] = ...
nilq/small-lua-stack
null
local awss3auth = require "resty.s3_auth" local cjson = require "cjson" local xml = require "resty.s3_xml" local util = require "resty.s3_util" local tb = require "resty.iresty_test" local test = tb.new({unit_name="amazon_s3_test"}) local AWSAccessKeyId='THE_ACCESS_KEY_ID' local AWSSecretAccessKey="THE_SECRET_ACCES...
nilq/small-lua-stack
null
local itsOn = false -- chart preview state local stepsdisplayx = SCREEN_WIDTH * 0.56 - 54 local thesteps = nil local rowwidth = 60 local rowheight = 17 local cursorwidth = 6 local cursorheight = 17 local numshown = 7 local currentindex = 1 local displayindexoffset = 0 local sd = Def.ActorFrame { Name = "StepsDispla...
nilq/small-lua-stack
null
SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua')) ObjectPropertyWindow = Editor:extends{} ObjectPropertyWindow:Register({ name = "objectPropertyWindow", tab = "Objects", caption = "Properties", tooltip = "Edit object properties", image = Path.Join(SB.DIRS.IMG, 'anatomy.png'), order = 2, ...
nilq/small-lua-stack
null
object_tangible_content_wod_crafting_alter_4 = object_tangible_content_shared_wod_crafting_alter_4:new { } ObjectTemplates:addTemplate(object_tangible_content_wod_crafting_alter_4, "object/tangible/content/wod_crafting_alter_4.iff")
nilq/small-lua-stack
null
local wibox = require('wibox') local awful = require('awful') local naughty = require('naughty') local find_widget_in_wibox = function(wb, widget) local function find_widget_in_hierarchy(h, widget) if h:get_widget() == widget then return h end local result for _, ch in ipairs(h:get_children()) do res...
nilq/small-lua-stack
null
Notify("Starting mariadb container...") require("podman")({ NAME = "mariadb", URL = "docker://docker.io/library/mariadb", TAG = "10.5", IP = "0.255.128.1", CPUS = "3", MEM = "1g", })
nilq/small-lua-stack
null
function jtorch._saveReshapeNode(node, ofile) local sz = node.size:totable() if #sz <= 0 then error('Bad module') end ofile:writeInt(#sz) for i = 1, #sz do ofile:writeInt(sz[i]) end end
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------------- -- TomTom - A navigational assistant for World of Warcraft -- -- CrazyTaxi: A crazy-taxi style arrow used for waypoint navigation. -- concept taken from MapNotes2 (Thanks to Mery for the idea, along -- with the artwork.) ------------...
nilq/small-lua-stack
null
local core = require "sys.core" local socket = require "sys.socket" local dns = require "sys.dns" local testaux = require "testaux" return function() local ip = dns.resolve("smtp.sina.com.cn") testaux.assertneq(ip, nil, "dns resolve ip") local fd = socket.connect(string.format("%s:%s", ip, 25)) testaux.assertneq(f...
nilq/small-lua-stack
null
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "DC-15 Side Arm" SWEP.Author = "Syntax_Error752" SWEP.ViewModelFOV = 70 SWEP.Slot = 1 SWEP.SlotPos = 5 SWEP.WepSelectIcon = surface.GetTextureID("HUD/killicons/DC15SA") ...
nilq/small-lua-stack
null
local rules = require "scripts.rules" local animations = require "character.animations" local ServantGirl = require "character.servant_girl" local ServantGirlInGranary = ServantGirl:new() function ServantGirlInGranary:new(o, control) o = o or ServantGirl:new(o, control) setmetatable(o, self) self.__index = sel...
nilq/small-lua-stack
null
local function capture(id, opts) -- numbers will coalesce to strings, so we can try and convert back if id ~= nil and tonumber(id) ~= nil then id = tonumber(id) end return {"capture", id, opts} end return function(types) return { handler = capture, args = {types.FACTORY, types.STRING, types.STRING}, name...
nilq/small-lua-stack
null
ngx.header.content_type = 'text/html' local name = ngx.var.arg_name or "Tester" ngx.say("<br>TEST #4<hr>") ngx.say("<br>Hello, ", name, "!<br>") ngx.say("This is a test for the LUA interpreter, run by the gothings NGINX http proxy<br>") ngx.say("<br><hr><br>") ngx.say("If you see this file it means that:<br>") ngx.say...
nilq/small-lua-stack
null
local CorePackages = game:GetService("CorePackages") local UserInputService = game:GetService("UserInputService") local Roact = require(CorePackages.Roact) local RoactRodux = require(CorePackages.RoactRodux) local Components = script.Parent.Parent local PlayerList = Components.Parent local ClosePlayerDropDown = requ...
nilq/small-lua-stack
null
-- -- joiner_client.lua -- -- see joiner.lua for details -- g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) addEvent('onClientPlayerJoining') -- Pre join addEvent('onClientPlayerJoined') -- Post join g_JoinedPlayers = {} -- List of joined players maintained at the clien...
nilq/small-lua-stack
null
-- If you edit template.xml, reflect the change here local nodesPerAF = 50 local templatepath = "../main/actors.xml" -- End of config --[[ geno is a library for creating screens in a similar way to how SM5's Def tables work. Part of the nitg-theme project: https://github.com/ArcticFqx/nitg-theme/ ]] -...
nilq/small-lua-stack
null
local jit_version = monitoring.gauge("jit_version", "luajit version") local jit_enabled = monitoring.gauge("jit_enabled", "luajit enabled") if jit then if jit.version_num then jit_version.set(jit.version_num) else jit_version.set(0) end local enabled = jit.status() if enabled then jit_enabled.set(1) else...
nilq/small-lua-stack
null
object_tangible_veteran_reward_tow_retail_reward = object_tangible_veteran_reward_shared_tow_retail_reward:new { } ObjectTemplates:addTemplate(object_tangible_veteran_reward_tow_retail_reward, "object/tangible/veteran_reward/tow_retail_reward.iff")
nilq/small-lua-stack
null
local Utils = require(script.Parent.Parent.Utils) local function TestIntersectionOfPointAndTriangle2d(point, triA, triB, triC) local u, v, w = Utils.GetBarycentricCoordinates2d(point, triA, triB, triC) return u >= 0 and v >= 0 and w >= 0 end return TestIntersectionOfPointAndTriangle2d
nilq/small-lua-stack
null
unit_circle = {x = 0, y = 0, radius = 1, color = "black"} c = {x = 4, color = "green"} setmetatable(c, {__index = unit_circle}) assert(c.x == 4 and c.radius == 1)
nilq/small-lua-stack
null
PLUGIN.Title = "Helptext" PLUGIN.Description = "Hooks into plugins to send helptext" PLUGIN.Author = "#Domestos" PLUGIN.Version = V(1, 4, 0) PLUGIN.HasConfig = true PLUGIN.ResourceID = 676 function PLUGIN:Init() command.AddChatCommand("help", self.Object, "cmdHelp") self:LoadDefaultConf...
nilq/small-lua-stack
null