content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
ys = ys or {} ys.Battle.BattleTorpedoUnit = class("BattleTorpedoUnit", ys.Battle.BattleWeaponUnit) ys.Battle.BattleTorpedoUnit.__name = "BattleTorpedoUnit" ys.Battle.BattleTorpedoUnit.Ctor = function (slot0) slot0.Battle.BattleTorpedoUnit.super.Ctor(slot0) end ys.Battle.BattleTorpedoUnit.TriggerBuffOnFire = function...
nilq/small-lua-stack
null
--------------------------------------------- -- Blood Drain -- Steals an enemy's HP. Ineffective against undead. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") --------------------------------------------- f...
nilq/small-lua-stack
null
__g_module_function__ = {} __g_function_name__ = {} __g_all_processer_request__ = {} __g_result_value_to_name__ = {} function require_ex( _mname ) if package.loaded[_mname] then print( string.format("require_ex module[%s] reload", _mname)) end package.loaded[_mname] = nil return require( _mname ) end fu...
nilq/small-lua-stack
null
local classes = require('../classes') local base = require('./base') local Channel = require('./Channel') local constants = require('../constants') local User = classes.new(base) function User:__constructor () self.servers = classes.Cache() end function User:sendMessage (...) if not self.channel then local data...
nilq/small-lua-stack
null
data:extend({ -- Speed { type = "recipe", name = "speed-module-4", enabled = false, ingredients = { {"speed-module-3", 5}, {"advanced-circuit", 10}, {"processing-unit", 10} }, energy_required = 120, result = "speed-modul...
nilq/small-lua-stack
null
local saws = {}; local sawTimer = nil; local saw3SliderJoint = scene:getJoints("saw3_slider_joint")[1]; local saw6SliderJoint = scene:getJoints("saw6_slider_joint")[1]; local spike1Joint = scene:getJoints("spike1_joint")[1]; local spike4Joint = scene:getJoints("spike4_joint")[1]; local spike6Joint = scene:getJoints("sp...
nilq/small-lua-stack
null
match_reward_layout_2= { name="match_reward_layout_2",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=1,fillParentHeight=1, { name="contentBg",type=0,typeName="Image",time=103127199,x=0,y=0,width=497,height=358,nodeAlign=kAlignCenter,visible=1,fillParent...
nilq/small-lua-stack
null
--[[ This script is under MIT license For more details, please read this https://github.com/Bilal2453/Chapter-Genrator/blob/master/LICENSE For instructions about using this plugin https://github.com/Bilal2453/Chapter-Genrator/blob/master/readme TODO: Support chapter merging on MacOS & Linux -- ?B...
nilq/small-lua-stack
null
MODULE.Name = "Network" MODULE.Libraries = { "NazaraCore" } MODULE.OsFiles.Windows = { "../src/Nazara/Network/Win32/**.hpp", "../src/Nazara/Network/Win32/**.cpp" } MODULE.OsFiles.Posix = { "../src/Nazara/Network/Posix/**.hpp", "../src/Nazara/Network/Posix/**.cpp" } MODULE.OsFiles.Linux = { "../src/Nazara/Netw...
nilq/small-lua-stack
null
require "x_functions"; if not x_requires then -- Sanity check. If they require a newer version, let them know. timer = 1; while (true) do timer = timer + 1; for i = 0, 32 do gui.drawbox( 6, 28 + i, 250, 92 - i, "#000000"); end; gui.text( 10, 32, string.format("This Lua script requires the x_functions lib...
nilq/small-lua-stack
null
local PATH = (...):gsub('%.[^%.]+$', '') local Component = require(PATH .. '.component') local StateMachine = Component:extend() function StateMachine:new() StateMachine.super.new(self) self.states = {} end function StateMachine:add(name, state) self.states[name] = state if not self.initial then self.ini...
nilq/small-lua-stack
null
local ControllerAction = require('Action.ControllerAction') local PlayTransitionAction = class('PlayTransitionAction', ControllerAction) function PlayTransitionAction:enter(controller) local trans = controller.parent:getTransition(self.transitionName) if trans ~= nil then if self._currentTransition ~= nil ...
nilq/small-lua-stack
null
--[[ This addon designed to be as lightweight as possible. It will only track, Mine, Herb, Fish, Gas and some Treasure nodes. This mods whole purpose is to be lean, simple and feature complete. ]] -- Mixin AceEvent local GatherMate = LibStub("AceAddon-3.0"):NewAddon("GatherMate2","AceConsole-3.0","AceEvent-3.0") loc...
nilq/small-lua-stack
null
-- RGB API version 1.0 by CrazedProgrammer -- You can find info and documentation on these pages: -- -- You may use this in your ComputerCraft programs and modify it without asking. -- However, you may not publish this API under your name without asking me. -- If you have any suggestions, bug reports or questions then...
nilq/small-lua-stack
null
local async = {} async._error = error local function dummyFunc() end -- Call only once -- local function onlyOnce(fn) local called = false return function(...) if called then error("Callback was already called.") end called = true fn(...) end end async.onlyOnce...
nilq/small-lua-stack
null
test_run = require('test_run').new() fiber = require('fiber') net_box = require('net.box') net_msg_max = box.cfg.net_msg_max box.cfg{net_msg_max = 64} box.schema.user.grant('guest', 'read,write,execute', 'universe') s = box.schema.space.create('test') _ = s:create_index('primary', {unique=true, parts={1, 'unsigned'...
nilq/small-lua-stack
null
local ffi = require("ffi") local exports = {} ffi.cdef[[ /* The ovs_be<N> types indicate that an object is in big-endian, not * native-endian, byte order. They are otherwise equivalent to uint<N>_t. */ typedef uint16_t ovs_be16; typedef uint32_t ovs_be32; typedef uint64_t ovs_be64; ]] exports.OVS_BE16_MAX = f...
nilq/small-lua-stack
null
require 'io' require 'lfs' -- POSTSCRIPT for an image download -- This script runs after an image is downloaded -- to tell the user the size of their cache directory -- arguments are: the image directory, the downloaded file, and the module name local images_dn_abs = arg[1] local target_fn = arg[2] local my_module_na...
nilq/small-lua-stack
null
object_tangible_furniture_decorative_wod_sm_potted_plant_01 = object_tangible_furniture_decorative_shared_wod_sm_potted_plant_01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_sm_potted_plant_01, "object/tangible/furniture/decorative/wod_sm_potted_plant_01.iff")
nilq/small-lua-stack
null
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2018 (All Rights Reserved) -- ============================================================= -- Actions Library - Move Functions -- ============================================================= local move = {} _G.ssk....
nilq/small-lua-stack
null
local Concord = require("lib.concord") return Concord.component()
nilq/small-lua-stack
null
local Screen = require "widgets/screen" local Button = require "widgets/button" local AnimButton = require "widgets/animbutton" local ImageButton = require "widgets/imagebutton" local Text = require "widgets/text" local Image = require "widgets/image" local UIAnim = require "widgets/uianim" local Widget = require "widg...
nilq/small-lua-stack
null
RegisterNetEvent('pma-voice:syncRadioData') AddEventHandler('pma-voice:syncRadioData', function(radioTable) radioData = radioTable for tgt, enabled in pairs(radioTable) do if tgt ~= playerServerId then toggleVoice(tgt, enabled) end end playerTargets(radioData, callData) end) RegisterNetEvent('pma-voice:setT...
nilq/small-lua-stack
null
function start() play_music("music/castle.mid"); process_outline() add_wall_group(3, 10, 6, 2, 3, 0) pig = add_npc("pig_guard", 3, 119, 134) set_character_role(pig, "wander", 48, 0.25, 1.0) going_down = Active_Block:new{x=1, y=10, width=3, height=2} going_out = Active_Block:new{x=5, y=13, width=3, height=2} ...
nilq/small-lua-stack
null
---------------------------------------- -- Group Calendar 5 Copyright (c) 2018 John Stephen -- This software is licensed under the MIT license. -- See the included LICENSE.txt file for more information. ---------------------------------------- ---------------------------------------- GroupCalendar._WhisperLog ...
nilq/small-lua-stack
null
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local require = require local rawset = rawset local rawget = rawget local setmetatable = setmetatable local VMConfig = require("vm_config")[1] ---根据 W...
nilq/small-lua-stack
null
local C = hog.C local HOG, parent = torch.class('hog.HOG', 'nn.Module') function HOG:__init(sbin) parent.__init(self) self.sbin = sbin or 8 self.grad_v = torch.CudaTensor() self.grad_i = torch.CudaTensor() self.hist = torch.CudaTensor() self.norm = torch.CudaTensor() self.output = torch.CudaTen...
nilq/small-lua-stack
null
local highlight = function(group, color) local style = color.style and 'gui=' .. color.style or 'gui=NONE' local fg = color.fg and 'guifg=' .. color.fg or 'guifg=NONE' local bg = color.bg and 'guibg=' .. color.bg or 'guibg=NONE' local sp = color.sp and 'guisp=' .. color.sp or '' local hl = 'highlig...
nilq/small-lua-stack
null
local opts = { noremap = true, silent = true } local term_opts = { silent = true } -- shorten function name local keymap = vim.api.nvim_set_keymap -- Remap space as leader key keymap("", "<Space>", "<Nop>", opts) vim.g.mapleader = " " vim.g.maplocalleader = " " -- Modes -- normal_mode = "n", -- insert_mode = "i"...
nilq/small-lua-stack
null
position = {x = 48.2880554199219, y = 0.947854280471802, z = 15.9168872833252} rotation = {x = 1.17175068226061E-05, y = 269.985107421875, z = 2.19253470277181E-05}
nilq/small-lua-stack
null
function i(n) if n < 12 then return n; end return i(n - 1); end print(i(1)); print(i(100));
nilq/small-lua-stack
null
-- AreaPreview.lua -- Implements the AreaPreview class providing area previews for webadmin --[[ The webadmin handlers use this class to request images of the areas. This class uses a network connection to MCSchematicToPng to generate the images, and stores them in the Storage DB as a cache. Since the webadmin needs ...
nilq/small-lua-stack
null
require "scripts.core.item" require "gamemode.Spark.modifiers.modifier_armor" require "gamemode.Spark.modifiers.modifier_all_stats"; require "gamemode.Spark.modifiers.modifier_attack_speed"; require "gamemode.Spark.modifiers.modifier_aura_movement_speed"; AegisOfTheHound = class(Item) function AegisOfTheHound:OnCreat...
nilq/small-lua-stack
null
local vehicles = {} local particles = {} function IsVehicleLightTrailEnabled(vehicle) return vehicles[vehicle] == true end function SetVehicleLightTrailEnabled(vehicle, enabled) if IsVehicleLightTrailEnabled(vehicle) == enabled then return end if enabled then local ptfxs = {} ...
nilq/small-lua-stack
null
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Structures\Alien\Shift\shared.lua -- - Dragon -- SHIFT local networkVars = { energizing = "boolean" } AddMixinNetworkVars(InfestationMixin, networkVars) local originalShiftOnInitialized originalShiftOnI...
nilq/small-lua-stack
null
require("deepcore/std/class") require("deepcore/std/callable") ---@class SpawnHeroBuilder SpawnHeroBuilder = class() ---@param hero_name string function SpawnHeroBuilder:new(hero_name) self.hero_name = hero_name ---@type PlayerObject self.faction = nil ---@type string self.planet = nil end ---@...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- AdiBags - Korthian Relics By Crackpot (US, Arthas) ------------------------------------------------------------------------------- local addonName, addon = ... local L = setmetatable( {}, { __index = function(self, key) ...
nilq/small-lua-stack
null
-- vim: ft=lua ts=2 sw=2 et: local function obj(self, new) local function order(t) table.sort(t); return t end local function str(t, u,ks) ks={}; for k,v in pairs(t) do ks[1+#ks] = k end u={}; for _,k in pairs(order(ks)) do u[1+#u]= #t>0 and tostring(t[k]) or fmt("%s=%s",k,t[k]) end ...
nilq/small-lua-stack
null
local status_ok, grammar_guard = pcall(require, "grammar_guard") if not status_ok then return end grammar_guard.setup({ settings = { ltex = { enabled = { "latex", "txt", "tex", "bib", "markdown", "text" }, language = "en", diagnosticSeverity = "information", setenceCacheSize = 2000, additionalRules ...
nilq/small-lua-stack
null
#!/usr/bin/env lua -- MoonFLTK example: fonts.lua -- -- Derived from the FLTK test/fonts.cxx example (http://www.fltk.org) -- fl = require("moonfltk") function FontDisplay (B, X, Y, W, H, L) local t = {} t.widget = fl.widget_sub(X, Y, W, H, L) t.font = 0 t.size = 14 t.widget:box(B) t.widget:override...
nilq/small-lua-stack
null
while true do print(io.read("*n")+1) end
nilq/small-lua-stack
null
minetest.register_privilege("lavastone_remove", { description = "Can remove lavastone in an area" }) minetest.register_privilege("lava_remove", { description = "Can remove flowing lava in an area" }) minetest.register_privilege("water_remove", { description = "Can remove flowing water in an area" }) if minetest....
nilq/small-lua-stack
null
-- == File Module == -- Copyright (c) 2018 by Rene K. Mueller <spiritdude@gmail.com> -- -- License: MIT (see LICENSE file) -- -- Description: -- basic file operations, alike io with some slight alterations like file.read() -- -- History: -- 2018/02/27: 0.0.3: fh:*() cleaner setup using file.*(self,[...]) and argumen...
nilq/small-lua-stack
null
local fs = fs or {} -- props to capsadmin for dis -- https://raw.githubusercontent.com/CapsAdmin/goluwa/master/src/lua/modules/fs.lua if WINDOWS then local ffi = require("ffi") ffi.cdef([[ typedef struct hexed_file_time { unsigned long high; unsigned long low; } hexed_file_time; typedef struct hexed_f...
nilq/small-lua-stack
null
-- Tests for avg.lua (Mathematical class library) -- Written by Michiel Fokke <michiel@fokke.org> -- MIT license, http://opensource.org/licenses/MIT -- use with 'shake' (http://shake.luaforge.net) package.path = package.path..';../?.lua' require 'mcl' a = newRingbuffer() assert (type(a) == 'table', "a should be a tab...
nilq/small-lua-stack
null
--[[ Copyright (c) 2019 Void Works See LICENSE in the project directory for license information. Most of the credit for this mod goes to authors below whose code was compiled: Original "Fluid Void" mod by Rseding91 - redesigned by Nibuja05 (control code used for fluid voiding) "High Pressure Pipe" mod by ken...
nilq/small-lua-stack
null
Stat = Object:extend() function Stat:new(base) self.base = base self.additive = 0 self.additives = {} self.value = self.base*(1 + self.additive) end function Stat:update(dt) for _, additive in ipairs(self.additives) do self.additive = self.additive + additive end if self.additive >= 0 then s...
nilq/small-lua-stack
null
local Bar = script:GetCustomProperty("Bar"):WaitForObject() local Cursor = script:GetCustomProperty("Cursor"):WaitForObject() local Root = script:GetCustomProperty("Root"):WaitForObject() local GetAbsoluteUI = require(script:GetCustomProperty("GetAbsoluteUI")) local LOCAL_PLAYER = Game.GetLocalPlayer() local EventSetUp...
nilq/small-lua-stack
null
--[[ 代理服务器 ]] local skynet = require "skynet" local socket = require "skynet.socket" local cjson = require("cjson"); require("LuaKit._load"); local WATCHDOG local host local send_request local Agent = {} local client_fd local function send_package(cmd,data) local struct = string; local body = cjson.encode(data) ...
nilq/small-lua-stack
null
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by norguhtar. --- DateTime: 26.02.19 13:02 --- local lapis = require('data-mapper.db.lapis') local postgres = require('data-mapper.db.postgres') local mysql = require('data-mapper.db.mysql') local pg = require("data-mapper.db.pg") local db = {} loc...
nilq/small-lua-stack
null
#!/usr/bin/env luajit require 'ext' local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath'.setup{env=env, MathJax={title='Platonic Solids'}} printbr[[ $n =$ dimension of manifold which our shape resides in.<br> $\tilde{T}_i \in \mathbb{R}^{n \times n} =$ i'th i...
nilq/small-lua-stack
null
slot0 = class("BattleAirFightResultLayer", import(".BattleResultLayer")) slot0.getUIName = function (slot0) return "BattleAirFightResultUI" end slot0.init = function (slot0) slot0._grade = slot0:findTF("grade") slot0._levelText = slot0:findTF("chapterName/Text22", slot0._grade) slot0._main = slot0:findTF("main") ...
nilq/small-lua-stack
null
return {'joechjachen','joeg','joego','joekel','joelen','joelfeest','joep','joepen','joepie','joetje','joegoslavische','joegoslavisch','joegoslavie','joegoslavier','joep','joes','joel','joe','joeke','joel','joelle','joeri','joerie','joey','joelle','joegoslaven','joegen','joekels','joel','joelde','joelden','joelend','joe...
nilq/small-lua-stack
null
----------------------------------- -- Area: North Gustaberg (S) (F-8) -- NPC: ??? -- Involved in Quests -- !pos -232 41 425 ----------------------------------- require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) if (play...
nilq/small-lua-stack
null
SKILL.name = "Incinerate" SKILL.LevelReq = 5 SKILL.SkillPointCost = 2 SKILL.Incompatible = { } SKILL.RequiredSkills = { } SKILL.icon = "vgui/skills/spell_fire_burnout.png" SKILL.category = "Psychic Powers"-- Common Passives, Warrior, Lore of Light, Dark Magic SKILL.slot = "AOE" -- ULT, RANGED, MELEE, AOE, PASSIVE S...
nilq/small-lua-stack
null
-- On one pin, a button that has 3 (callback) functions for short or 1-sec or 3-sec presses. -- BL Oct 2015 _tstamps={} smartButton = function(pin, k0, k1, k3) _tstamps[pin+1]=0 gpio.mode(pin,gpio.INT) gpio.trig(pin, "both", function(level) local dur = tmr.now() - _tsta...
nilq/small-lua-stack
null
--[[ Author: Jagoba Marcos Date: 01/08/2014 Description: Simple Games ]] function main () -- Guess the number math.randomseed( os.time() ); math.random(); local number = math.random ( 100 ); local count = 0; local guess; io.write( "Guess my number (1-100): " ); guess = io.read( "*n" ); count = count +...
nilq/small-lua-stack
null
-- tostring() functions for Tensor and Storage local function Storage__printformat(self) local intMode = true local type = torch.typename(self) if type == 'torch.FloatStorage' or 'torch.DoubleStorage' then for i=1,self:size() do if self[i] ~= math.ceil(self[i]) then intMode = false ...
nilq/small-lua-stack
null
return (require 'util').requirer(...) { 'Character', 'CharacterClass', 'Chest', 'Item', 'Monster', 'Race', }
nilq/small-lua-stack
null
-- main.lua -- Implements the main plugin entrypoint -- Configuration -- Use prefixes or not. -- If set to true, messages are prefixed, e. g. "[FATAL]". If false, messages are colored. g_UsePrefixes = true -- Called by Cuberite on plugin start to initialize the plugin function Initialize(Plugin) Plugin:SetNam...
nilq/small-lua-stack
null
collectgarbage(); local TimeFiles = {} if Hour() > 20 or Hour() < 8 then --Night TimeFiles[1] = "Cricket.ogg" TimeFiles[2] = color("0,0,0,1") TimeFiles[3] = color("1,1,1,1") else --Day TimeFiles[1] = "Bird.ogg" TimeFiles[2] = color("1,1,1,1") TimeFiles[3] = color("0,0,0,1") end local...
nilq/small-lua-stack
null
PLAYER1 = Core.class() function PLAYER1:init(xworld, xobjpath, xobjname, xparams, xBIT, xCOLBIT) -- the params local params = xparams or {} params.posx = xparams.posx or 0 params.posy = xparams.posy or 0 params.posz = xparams.posz or 0 -- the obj self.obj = loadObj(xobjpath, xobjname) local minx, miny, minz = ...
nilq/small-lua-stack
null
local room_recruitWnd = require("view/kScreen_1280_800/games/common2/room_recruitWnd"); --[[ 招募玩家的确认弹框 ]] local RecruitWnd = class(CommonGameLayer,false); --------------------------------------------------------------------- ----------------- config tables ------------------------------------- -------...
nilq/small-lua-stack
null
local _M = {} _M["1"] = { ["id"] = 1, ["comment"] = "背包模块", ["opentype"] = 1, ["level"] = 1, } _M["2"] = { ["id"] = 2, ["comment"] = "", ["opentype"] = 1, ["level"] = 1, } _M["3"] = { ["id"] = 3, ["comment"] = "", ["opentype"] = 1, ["level"] = 1, } _M["4"] = { ["id"] = 4, ["comment"] = ...
nilq/small-lua-stack
null
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- **WARNING**: EXPERIMENTAL MODULE. DO **NOT** USE IN PRODUCTION. -- This module is *for testing purposes only*. It can undergo breaking API changes or *go away entirely* **at any point and without notice**. -- (Should you encounter any issues, p...
nilq/small-lua-stack
null
return PlaceObj("ModDef", { "title", "Change Rocket Skin", "id", "ChoGGi_ChangeRocketSkin", "steam_id", "1570126808", "pops_any_uuid", "16b2049c-41cb-42de-9c26-6b21c0311967", "lua_revision", 1007000, -- Picard "version", 9, "version_major", 0, "version_minor", 9, "image", "Preview.jpg", "author", "ChoGGi", "...
nilq/small-lua-stack
null
classtools = require 'classtools' tools = require 'tools' Vector = require 'classes/Vector' local MovingThing = {} function MovingThing:constructor(velocity) self.velocity = velocity or Vector() end function MovingThing:new_coords() return self.coords + self.velocity end function MovingThing:update_coords() self...
nilq/small-lua-stack
null
local mt = {} function mt.__newindex() error("attempt to modify a Null value.", 2) end function mt.__index() error("attempt to index a Null value.", 2) end return setmetatable({}, mt)
nilq/small-lua-stack
null
-- add requires add_requires("coroutine", {optional = true}) -- add target target("coroutine_switch_coroutine") -- set kind set_kind("binary") -- add files add_files("*.c") -- add package add_packages("coroutine", "tbox") -- enable to build this target? on_load(function (target) ...
nilq/small-lua-stack
null
QG = require("QGame") ET = require("EasyTool") MIN_SIZE = {width = 627, height = 627} -- 定义窗口最大尺寸 TEXT_COLOR = {R = 185, G = 185, B = 185, A = 255} -- 定义文字颜色 DRAW_COLOR = {R = 34, G = 34, B = 34, A = 255} -- 定义绘图颜色 MARGIN_WIDTH = 40 -- 定义显示图片的面板与窗口边框间的距离 BUTTON_WIDTH = MARGIN_WIDTH -- 定义按钮宽度 BUTTON_HEIGHT = ...
nilq/small-lua-stack
null
--[[ A module allowing accsess to the one instance allowed of any singleton module. The module's themselves do not enforce that only one instance can be instantiated, but rather through accessing the modules through this interface, only one instance of the selected class is needed. The instances are created...
nilq/small-lua-stack
null
local playsession = { {"ronnaldy", {1954}}, {"Menander", {298461}}, {"VincentMonster", {83784}}, {"Asorr", {1278}}, {"naniboi", {6587}}, {"Conan_Doyil", {12687}}, {"rlidwka", {43879}}, {"longda88", {326}}, {"ETK03", {29145}}, {"rocifier", {425831}}, {"Fingerdash", {18847}}, {"Immo", {84891}} } return playse...
nilq/small-lua-stack
null
function start (song) math.randomseed(os.time()) microList = {'warm up!', 'spooky dance', 'help tankman is stuttering', 'stay fresh', 'break hearts'}; curSong = 0; end function update (elapsed) -- example https://twitter.com/KadeDeveloper/status/1382178179184422918 -- do nothing end function beatHit (beat) --if ...
nilq/small-lua-stack
null
--- === plugins.core.tangent.commandpost.functions === --- --- CommandPost Functions for Tangent. local require = require local i18n = require("cp.i18n") local plugin = { id = "core.tangent.commandpost.functions", group = "core", dependencies = { ["core.tangent.commandpost"] = "cpGroup", ...
nilq/small-lua-stack
null
pfUI:RegisterModule("buff", function () -- Hide Blizz BuffFrame:Hide() BuffFrame:UnregisterAllEvents() TemporaryEnchantFrame:Hide() TemporaryEnchantFrame:UnregisterAllEvents() local function RefreshBuffButton(buff) buff.id = buff.gid - (buff.btype == "HELPFUL" and pfUI.buff.buffs.offset or 0) buff....
nilq/small-lua-stack
null
-- This script uses writes to 0x7fd, 0x7fe, and 0x7ff to determine when to store the start of an IRQ, game loop, or NMI respectively. -- If you write the value 2 to the address when you start the area you'd like to time, you then write the value 1 to that same address -- to stop the timer and calculate the cycles elaps...
nilq/small-lua-stack
null
-- Generated by CSharp.lua Compiler local System = System System.namespace("Slipe.Client.Enums", function (namespace) -- <summary> -- Represents a room used in setInteriorFurnitureEnabled -- </summary> namespace.enum("RoomFurniture", function () return { Shop = 0, Office = 1, Lounge = 2, ...
nilq/small-lua-stack
null
require "Window" local TrackLineGroup = {} setmetatable(TrackLineGroup, { __call = function (cls, ...) return cls.new(...) end, }) TrackLineGroup.TrackMode = { Line = 1, Circle = 2 } function TrackLineGroup.new(parent) local self = setmetatable({}, { __index = TrackLineGroup }) self.Enabled = false...
nilq/small-lua-stack
null
--Template for addition of new protocol 'overlay' --[[ Necessary changes to other files: -- - packet.lua: if the header has a length member, adapt packetSetLength; -- if the packet has a checksum, adapt createStack (loop at end of function) and packetCalculateChecksums -- - proto/proto.lua: add PROTO.lua to the ...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
local print = print local tostring = tostring local type = type local pairs = pairs local insert_table = table.insert local concat_table = table.concat local rep_str = string.rep local function is_table(t, name) if "table" ~= type(t) then if name then print(tostring(name) .. " = [" .. tostring(t) .. "...
nilq/small-lua-stack
null
function ulx.spark(calling_ply, target_plys) for _, ply in ipairs(target_plys) do if not ply:Alive() then return ULib.tsay(calling_ply, ply:Nick() .. " is dead", true) elseif ply.jail then return ULib.tsay(calling_ply, ply:Nick() .. " is in jail", true) elseif ply.ragdoll then return ULib.tsay(calling_p...
nilq/small-lua-stack
null
-- ============================================= -- Server PlayerList handler -- ============================================= --Check Environment if GetConvar('txAdminServerMode', 'false') ~= 'true' then return end local oneSyncConvar = GetConvar('onesync', 'off') local onesyncEnabled = oneSyncConvar == 'on' or ...
nilq/small-lua-stack
null
-- Buff Lead 3 seablock.lib.substresult('anode-lead-smelting', 'slag', 'quartz', 1) seablock.lib.substingredient('anode-lead-smelting', 'liquid-hexafluorosilicic-acid', nil, 20) -- Compost void recipe angelsmods.functions.make_void('solid-compost', 'bio', 5) -- Remove recipe Wood pellets > Carbon dioxide -- Move reci...
nilq/small-lua-stack
null
Librw = os.getenv("LIBRW") Librwgta = os.getenv("LIBRWGTA") workspace "rwio" configurations { "Release", "Debug" } platforms { "x86", "amd64" } location "build" system "Windows" filter { "platforms:x86" } architecture "x86" filter { "platforms:amd64" } architecture "x86_64" filter {} files { "src/*.*" } ...
nilq/small-lua-stack
null
require("plugins") require("opts") vim.cmd('colo one') require("setup") require("binds") require("lsp") -- Plugins require("plugins.compe") require("plugins.treesitter") require("plugins.lspsaga") -- LSP require("lsp.servers") require('hardline').setup {}
nilq/small-lua-stack
null
require("src/State") require("src/Util") require("src/Bind") require("src/Scene") require("src/Camera") require("src/AudioManager") require("src/FieldAnimator") require("src/Animator") require("src/AssetLoader") require("src/Asset") local M = def_module("STUBScene", { bind_table = nil, bind_group = nil, -- Single...
nilq/small-lua-stack
null
local RunService = game:GetService("RunService") local MessagingService = game:GetService("MessagingService") local MockMessagingService = {} local topics = {} function MockMessagingService:PublishAsync(topicName, message) local topic = topics[topicName] if topic then topic:Fire( { Sent = tick(), Data ...
nilq/small-lua-stack
null
game 'rdr3' fx_version 'adamant' rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.' author 'szymczakovv#1937' client_script 'client.lua'
nilq/small-lua-stack
null
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Weapons\Marine\Shotgun\shared.lua -- - Dragon -- Recalc this Shotgun.kSpreadVectors = { GetNormalizedVector(Vector(-0.1, 0.1, kShotgunSpreadDistance)), GetNormalizedVector(Vector(0.1, -0.1, kShotgunSp...
nilq/small-lua-stack
null
local S = homedecor_i18n.gettext local longsofa_cbox = { type = "wallmounted", wall_side = {-0.5, -0.5, -0.5, 0.5, 0.5, 2.5}, } minetest.register_node("lrfurn:longsofa", { description = S("Long Sofa"), drawtype = "mesh", mesh = "lrfurn_sofa_long.obj", tiles = { "lrfurn_upholstery.png", { name = "lrfurn_s...
nilq/small-lua-stack
null
fx_version 'bodacious' game 'gta5' shared_scripts{ "config.lua" } client_scripts{ '@PolyZone/client.lua', '@PolyZone/BoxZone.lua', 'client.lua', "jobs/legal.lua", "jobs/zones.lua" }
nilq/small-lua-stack
null
workspace "Dodo" architecture "x64" startproject "Dodeditor" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" configurations { "Debug", "Release" } group "Dependencies" include "Dodo/lib/glad" include "Dodo/lib/imgui" include "Dodo/lib/assimp" group "" -- Go to root level proje...
nilq/small-lua-stack
null
--[[ Copyright (c) 2014, Hardcrawler Games LLC This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details. I haven't actually read the MIT license. I think it's permissive and stuff. Send me a keg of Newcastle beer if this makes you rich. us...
nilq/small-lua-stack
null
local opts = {noremap = true, silent = true} local map = vim.api.nvim_set_keymap -- Files map("n", "<leader>ff", "<cmd>lua require'telescope.builtin'.find_files{}<CR>", opts) map("n", "<leader>fg", "<cmd>lua require'telescope.builtin'.live_grep{}<CR>", opts) map("n", "<leader>fb", "<cmd>lua require'telescope.builtin'....
nilq/small-lua-stack
null
local Ui = require("api.Ui") local IUiLayer = require("api.gui.IUiLayer") local IInput = require("api.gui.IInput") local InputHandler = require("api.gui.InputHandler") local UiTheme = require("api.gui.UiTheme") local UiMousePanel = require("mod.mouse_ui.api.gui.UiMousePanel") local UiMouseButton = require("mod.mouse_u...
nilq/small-lua-stack
null
return { { effect_list = { { type = "BattleBuffAddAttrBloodrage", trigger = { "onAttach", "onHPRatioUpdate" }, arg_list = { threshold = 0.3, value = 2, attr = "damageRatioBullet" } } } }, { effect_list = { { type = "BattleBuffAddAttrBloodrage", trig...
nilq/small-lua-stack
null
module(..., package.seeall) NODE = { title="Templates", category="_special_pages", prototype="@Lua_Config", } NODE.search_form = [===[ ]===] NODE.content=[=====[--- this is the template that generates the outer tags of the page --- TRANSLATIONS = "Translations:Main" ---------------------------------...
nilq/small-lua-stack
null
--アメイズメント・スペシャルショー --Amazement Special Show --Scripted by Kohana Sonogami function c101104057.initial_effect(c) --tohand and spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c101104057.spcon...
nilq/small-lua-stack
null
local Player = { color = {255,255,255} } function Player.new(x,y,width,height) local self = {x=x,y=y,width=width,height=height,_speed=400,speed=400,keys={right='right',left='left'}} self.lastx = x self.lasty = y setmetatable(self, {__index=Player}) return self end function Player:update(dt) self.lastx = self.x...
nilq/small-lua-stack
null