content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
netstream.Hook("ixTokenDistributorRequestPnl", function(class, entity) local panel = vgui.Create("ixTokenDistrMngPnl") panel:SetEntity(entity) if class == "cwu" then panel:InitCWU() elseif class == "admin" then panel:InitAdmin() else panel:Close() end end)
nilq/small-lua-stack
null
require("stategraphs/commonstates") local actionhandlers= { } local events= { } local states= { State{ name = "idle", tags = {"idle"}, onenter = function(inst) inst.AnimState:PlayAnimation("idle_loop", true) inst.sg:SetTimeout(math.random()*6 + 2) end, ontimeout = function(inst) inst.sg:GoToS...
nilq/small-lua-stack
null
-- Beatmap probe -- Part of Live Simulator: 2 -- See copyright notice in main.lua local JSON = require("libs.JSON") return function(f) local firstdata = f:read(30) -- Skip UTF-8 BOM uh if firstdata:find("\239\187\191", 1, true) then firstdata = firstdata:sub(4) end -- Check if it's JSON if firs...
nilq/small-lua-stack
null
--test_priority.lua local LuaBT = require "example.luaoop" local Flee = require "example.flee" local Attack = require "example.attack" local HpCheck = require "example.hp_check" local Priority = require "script.priority" local Sequence = require "script.sequence" local robot = {id = 1, hp = 100} lo...
nilq/small-lua-stack
null
package.path = package.path .. ";data/scripts/lib/?.lua" include("randomext") include ("stringutility") local SectorTurretGenerator = include("sectorturretgenerator") local UpgradeGenerator = include ("upgradegenerator") --namespace LOTWFreighterMission3 LOTWFreighterMission3 = {} local deleteTime = 30 local running...
nilq/small-lua-stack
null
local component = require("component") local classes = require("src/classes") local event = require("event") local gpu = component.gpu local AddressField = classes.class() function AddressField:init(x, y, w, h, text, bg, fg, textBg) self.x = x self.y = y self.w = w self.h = h self.text = text self.bg = b...
nilq/small-lua-stack
null
gungan_common = { description = "", minimumLevel = 0, maximumLevel = -1, lootItems = { {itemTemplate = "gungan_signet", weight = 3333333}, {itemTemplate = "gungan_lance", weight = 3333333}, {groupTemplate = "wearables_common", weight = 3333334}, } } addLootGroupTemplate("gungan_common", gungan_common)
nilq/small-lua-stack
null
module( "GPM", package.seeall ) /* local logger = GPM.Logger( title ) logger:fatal( message, args ) logger:error( message, args ) logger:warn( message, args ) logger:info( message, args ) logger:debug( message, args ) */ Logger = Logger or {} -- For colorable server console check Billy's Github -- https://g...
nilq/small-lua-stack
null
--- -- @author wesen -- @copyright 2017-2021 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local EventEmitter = require "AC-LuaServer.Core.Event.EventEmitter" local EventCallback = require "AC-LuaServer.Core.Event.EventCallback" local MapScoreList = require "GemaScoreManager.MapScore.MapScoreList" local M...
nilq/small-lua-stack
null
class("DelayedFunction") function DelayedFunction:__init(func , delay , ...) self.func = func self.delay = delay self.args = table.pack(...) self.timer = Timer() self.event = Events:Subscribe("PreTick" , self , self.Update) end function DelayedFunction:Update() if self.timer:GetSeconds() >= self.d...
nilq/small-lua-stack
null
local M = {} local redis = require "resty/redis" local REDIS_ADDR = "192.168.15.111" function M.RedisGet(key) local red = redis:new() if not red then ngx.log(ngx.ERR, "REDIS| Failed to load Redis client") return nil end red:set_timeout(1000) local ok, err = red:connect(REDIS_ADDR, 6379) if not ok...
nilq/small-lua-stack
null
--require 'SyHybrid' function vdbmatch(url,links) local r = ctk.string.list:new() tab:loadx([['<html> <link rel="stylesheet" type="text/css" href="Resources.pak#Sandcat.css"> <body> Loading, please wait... </body> </html>']]) local search = osvdb_search(links,url) r:add('<link rel="stylesheet" type="text/css"...
nilq/small-lua-stack
null
return { lazy_load = function(load) load "vim-projectionist" load "vim-dispatch" load "vim-rfc" end, plugins = function(use) use { "mhinz/vim-rfc", opt = true } use { "tpope/vim-projectionist", opt = true } use { "tpope/vim-dispatch", opt = true } end, setup = function() local cl...
nilq/small-lua-stack
null
-- reflective bump test 2_5 -- Original By ren712 -- Modified ccw local scx, scy = guiGetScreenSize() local enabled = false ----------------------------------------------------------------------------------- -- Le settings ----------------------------------------------------------------------------------- Settings = {...
nilq/small-lua-stack
null
local match_record_pin_map = require("qnFiles/qnPlist/hall/match_record_pin"); local match_hall_record_reward_item_layout= { name="match_hall_record_reward_item_layout",type=0,typeName="View",time=0,x=0,y=0,width=142,height=134,visible=1,nodeAlign=kAlignCenter,fillParentWidth=0,fillParentHeight=0, { name="line",typ...
nilq/small-lua-stack
null
local M = {} function M.config() local status_ok, telescope = pcall(require, "telescope") if not status_ok then return end telescope.setup{ defaults = { prompt_prefix = " ", selection_caret = "❯ ", path_display = { "truncate" }, }, pickers = { find_files = { th...
nilq/small-lua-stack
null
--[[ Author: LearningDave Date: October, 30th 2015 Destroys the targeted tree ]] function cutTree( keys ) GridNav:DestroyTreesAroundPoint(keys.target:GetAbsOrigin(), 20, false) end --[[ Author: LearningDave Date: October, 30th 2015 Does apply extra damage to the target and pops it up, the damage value depe...
nilq/small-lua-stack
null
local DataStoreService = nil local Bans = nil pcall(function() DataStoreService = game:GetService("DataStoreService") Bans = DataStoreService:GetDataStore("Bans") end) return function(cmdContext, player, reason) if DataStoreService ~= nil and Bans ~= nil then local uid = player.UserId Bans:...
nilq/small-lua-stack
null
local ffi = require ( "ffi" ) local utf = require ( "utf8" ) local Multitouch = require ( "multitouch" ) local mt = Multitouch ( ) local demomt = Multitouch ( ) local w, h = love.window.getMode ( ) local l = 3 local g = 2 local selectionpos = 2 local selectionobj = nil local selectionlayer = nil local selectionflas...
nilq/small-lua-stack
null
local function doScale(um) local ply = um:ReadEntity() local scale = um:ReadFloat() if not IsValid(ply) then return end ply:SetModelScale(scale, 1) ply:SetHull(Vector(-16, -16, 0), Vector(16, 16, 64 * scale)) end usermessage.Hook("darkrp_playerscale", doScale)
nilq/small-lua-stack
null
local _2afile_2a = "fnl/snap/consumer/fzy/init.fnl" local all = require("snap.consumer.fzy.all") local cache = require("snap.consumer.cache") local function _1_(producer) return all(cache(producer)) end return _1_
nilq/small-lua-stack
null
----------------------------------------- -- ID: 5613 -- Item: Prized Angler's Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% (cap 200) -- MP +20 -- Dexterity 4 -- Agility 2 -- Mind 2 -- HP Recovered while healing 9 -- MP Recovered while healing 3 -- ...
nilq/small-lua-stack
null
-- A simple special-purpose class, this is used for building up sets of three-dimensional points for fast reference Pointset = {} Pointset.__index = Pointset -- from builtin\game\misc.lua, modified to take values directly to avoid creating an intermediate vector local hash_node_position_values = function(x, y, z) re...
nilq/small-lua-stack
null
require("prototypes.entity.sl_pl") --Tier 1 require("prototypes.entity.sl_synthesizer1") --Tier 2 require("prototypes.entity.sl_synthesizer2") --Tier 3 require("prototypes.entity.sl_synthesizer3") --Tier 4 require("prototypes.entity.sl_synthesizer4") --Tier 5 require("prototypes.entity.sl_synthesize...
nilq/small-lua-stack
null
--[[---------------------------------------------------------------------------- This file is part of Friday Night Funkin' Rewritten by HTV04 ------------------------------------------------------------------------------]] return Sprite ( love.graphics.newImage("images/spooky_kids_assets.png"), -- Automaticall...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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
--[[ -- Information about the world topology. --]] local Lambda = wickerrequire "paradigms.functional" local GameCommon = wickerrequire "game.common" local rooms = require "map/rooms" local levels = require "map/levels" --[[ -- Keys in the return value of "map/levels" corresponding to arrays of levels. --]] local...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Class for a Rocks Vs Bazookas round. --]] local TEAM_TOOLS = { ["Bright blue"] = { "RocketLauncher", }, ["Bright red"] = { "DualRocks", }, } local ReplicatedStorage = game:GetService("ReplicatedStorage") local NexusReplication = require(ReplicatedStorage:WaitFo...
nilq/small-lua-stack
null
--- The abstract layout classes. -- @module wonderful.layout local class = require("lua-objects") local Margin = require("wonderful.geometry").Margin local Layout = class(nil, {name = "wonderful.layout.Layout"}) function Layout:recompose(el) error("unimplemented abstract method Layout:recompose") end function La...
nilq/small-lua-stack
null
--[[ ****************************************************************** Explosion v1.1 by @supermamon (github.com/supermamon/cylinder-scripts/) request by: /u/gertab v1.1 2014-03-04: Icons father from the center move away faster. v1.0 2014-03-04: First release. ******************************************************...
nilq/small-lua-stack
null
-- east path room = { short = "east002", name = "The Hub", description = [[Welcome to The Hub. From here, you can wander off into any number of realms for exploration and adventure. Please pick a direction to go, and have fun! ]], } exits = { { name="West", alias="W", lua="east002", description = "The...
nilq/small-lua-stack
null
-- This base class handles some basic elements shared by all RNN types. -- -- Yujia Li, 10/2015 -- require 'nn' local BaseRNN = torch.class('rnn.BaseRNN') function BaseRNN:__init(module_dict) self.module_dict = module_dict or {} end function BaseRNN:parameters() local w = {} local gw = {} -- sort t...
nilq/small-lua-stack
null
----------------------------------------------------- --name : lib/crunch/00_reader.lua --description: crunch module, reading a file and outputting tokens --author : mpmxyz --github page: https://github.com/mpmxyz/ocprograms --forum page : none ----------------------------------------------------- local parse...
nilq/small-lua-stack
null
--- @module Maid.test -- Tests for Maid class local ReplicatedStorage = game:GetService("ReplicatedStorage") local Modules = ReplicatedStorage:WaitForChild("Modules") local Maid = require(Modules:WaitForChild("Maid")) local MaidTests = {} MaidTests["test_Maid:addTask(function)"] = function () -- Setup local myFunc...
nilq/small-lua-stack
null
--[[ Copyright 2021 Total RP 3 Development Team 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 or agreed to in ...
nilq/small-lua-stack
null
-- Function to set a player stat function getPlayerAccountData(plr, data) if (not plr) or (not data) then return false end if (not isElement(plr)) or (not exports.server:isPlayerLoggedIn(plr)) then return false end local userID = exports.server:getPlayerAccountID(plr) local theData = exports.DENmysql:querySingl...
nilq/small-lua-stack
null
local assets = { Asset("ANIM", "anim/sch_portal.zip"), } local function OnAnimOver(inst) inst:DoTaskInTime(2 * FRAMES, inst.Remove) end local function MakeFX(name, anim) local function fn() local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimSta...
nilq/small-lua-stack
null
-- lua/rs/EnergizeMixin.lua EnergizeMixin = CreateMixin(EnergizeMixin) EnergizeMixin.type = "Energize" EnergizeMixin.expectedMixins = { GameEffects = "Required to track energize state", } EnergizeMixin.networkVars = { energized = "private boolean" } local function UpdateEnergizedState(self) local energ...
nilq/small-lua-stack
null
-------------------------------- -- @module ControlButton -- @extend Control -- @parent_module cc ---@class cc.ControlButton:cc.Control local ControlButton = {} cc.ControlButton = ControlButton -------------------------------- --- ---@return boolean function ControlButton:isPushed() end ---------------------------...
nilq/small-lua-stack
null
local Action = require(script.Parent.Action) return Action( "CollapsibleSectionToggle", function(collasibleId) return { id = collasibleId } end )
nilq/small-lua-stack
null
-- CONFIG local BetterFlashlight = true -- Set this to true when BetterFlashlight is installed (https://miraf.tebex.io/package/4941283) -- VAR local Constants = { SEMI_AUTO = 1, BURST_FIRE = 2, FULL_AUTO = 3, } local AllowedAuto = { [GetHashKey('GROUP_RIFLE')] = true, [GetHashKey('GROUP_SMG')] = true,...
nilq/small-lua-stack
null
local assets= { Asset("ANIM", "anim/eyeball_turret_attack.zip"), --Asset("SOUND", "sound/eyeballturret.fsb"), } local function OnHit(inst, owner, target) inst:Remove() inst.SoundEmitter:PlaySound("dontstarve/creatures/eyeballturret/shotexplo") end local function fn() local inst = CreateEntity() local t...
nilq/small-lua-stack
null
--[[ UCI Validation Layer - Datatype Tests (c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> 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 htt...
nilq/small-lua-stack
null
require "game" g = {} g.entities = {} g.State = require "states/state" g.statePlay = require "states/statePlay" g.stateMenu = require "states/stateMenu" require "load" function love.update(dt) game.tick = game.tick + 1 game.state:update(dt) if game.matching then if game.matching + 40 < game.tick then ga...
nilq/small-lua-stack
null
local unpack = table.unpack or unpack _G.log = _G.log or function(stuff, ...) local args = {...} local prefix = '' if (App and App.name) then prefix = '[' .. App.name .. ']' end if (type(stuff) == 'table') then local inspect = require 'cherry.libs.inspect' print(prefix, inspect(s...
nilq/small-lua-stack
null
TEST [[ a. ]] TEST [[ a: ]] TEST [[ end ]] TEST [[ table.02X ]]
nilq/small-lua-stack
null
-- EDU Bot NodeMCU Lua firmware, 2016 sw@kaltpost.de -- MIT License (MIT) -- See LICENSE file for details require("gear") robot = {} function robot.init() gear.init() rf.init() end function robot.drive(speed_a, speed_b) local dir_a = 0 local dir_b = 0 -- limit values to what makes sense (0..100%) if speed_...
nilq/small-lua-stack
null
&^#.enc_V[ 9* 4* 23* 14*_\O 23* 21*_j 6* 29* 11* 24* 22*f 19* 25* 24*H 14*X 4*^XIBZ 26* 23*p\U] 32* 13*X\M 24*> 5*7 8* 4* 2*TE 22*? 22* 29* 22* 24* 0* 13*X\M 24*<N 24*_ 29* 6*B 28* 24*XWN] 10*TU 5* 27* 20*HJZ 9*IV 9*[^ 15* 23* 26* 29*K 20*g 17*9UW 11* 9*[H\XZ 22* 18*HPi 12* 22* 5*M 23*9 25* 24*HHQ 7*VY^ 16*G 7* 21* 20*...
nilq/small-lua-stack
null
local a = require "nvim-lsp-installer.core.async" local Result = require "nvim-lsp-installer.core.result" local process = require "nvim-lsp-installer.process" local pip3 = require "nvim-lsp-installer.installers.pip3" local gem = require "nvim-lsp-installer.installers.gem" local cargo_check = require "nvim-lsp-installer...
nilq/small-lua-stack
null
class("TaskOneStepSubmitOPCommand", pm.SimpleCommand).execute = function (slot0, slot1) if #slot1:getBody().resultList > 0 then slot4 = {} slot5 = {} for slot9, slot10 in ipairs(slot3) do if slot10.isWeekTask then table.insert(slot5, slot10.id) else table.insert(slot4, slot10) end end slot...
nilq/small-lua-stack
null
local proxy_cache_schema = require "kong.plugins.caesar-proxy-cache.schema" local v = require("spec.helpers").validate_plugin_config_schema describe("proxy-cache schema", function() it("accepts a minimal config", function() local entity, err = v({ strategy = "memory", }, proxy_cache_schema) assert...
nilq/small-lua-stack
null
cc = cc or {} ---GridBase object ---@class GridBase : Ref local GridBase = {} cc.GridBase = GridBase -------------------------------- ---Set the size of the grid. ---@param gridSize size_table ---@return GridBase function GridBase:setGridSize(gridSize) end -------------------------------- ---brief Set the effect grid...
nilq/small-lua-stack
null
local M = { pid = nil } local spaces = require("hs._asm.undocumented.spaces") function M.getKittyApp() if M.pid then local app = hs.application.get(M.pid) if app and app:isRunning() then return app end end local f = io.popen("pgrep -af scratchpad") local ret = f:read("*a") f:close() M.pid...
nilq/small-lua-stack
null
q1 = {"Lincoln", "Shakespeare", "Newton", "da Vinci", "Mirzahani", "Chaplin"} msg_birth_a = "birth (arab)" msg_birth_r = "birth (Roman numerals)" msg_year_a = "age (arab)" msg_year_r = "age (Roman numerals)"
nilq/small-lua-stack
null
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KS = KUI:GetModule("KuiSkins") local LSM = LibStub('LibSharedMedia-3.0') local M = E:GetModule('Minimap') local MM = KUI:NewModule("KuiMinimap", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0") MM.modName = L["MiniMap"] --Cache global variables --Lua functions loca...
nilq/small-lua-stack
null
local cwtest = require "cwtest" local T = cwtest.new() local C = cwtest.new() -- tested instance C.printf = function(...) end C.eprintf = function(...) end local short_src = debug.getinfo(1).short_src local exp_got_tpl = "\n expected: %s\n got: %s" local pw = assert(cwtest.pretty_write) local _line = functio...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0105-remote-control-seat.md -- User story: -- Use case: -- Item: -- -- Description: TRS: GetInteriorVehicleData, #12 -- In case: -- 1) R...
nilq/small-lua-stack
null
--- A 2 component bounding box. -- @module bound2 local modules = (...):gsub('%.[^%.]+$', '') .. "." local vec2 = require(modules .. "vec2") local bound2 = {} local bound2_mt = {} -- Private constructor. local function new(min, max) return setmetatable({ min=min, -- min: vec2, minimum value for ...
nilq/small-lua-stack
null
---@meta function table_clear() end return table_clear
nilq/small-lua-stack
null
--[[ --------------------------------------------------------- RCT Randomizer RCT Randomizer is a lua-app playing a random voicefile from /Apps/StartVoices when model is selected or transmitter is powered on. Includes a test-switch possibility. Works in DC/DS-14/16/24 with...
nilq/small-lua-stack
null
local OVALE, Ovale = ... local OvaleScripts = Ovale.OvaleScripts do local name = "ovale_deathknight_spells" local desc = "[7.0] Ovale: Death Knight spells" local code = [[ # Death Knight spells and functions. # Learned spells. Define(antimagic_shell 48707) SpellInfo(antimagic_shell cd=45 gcd=0 offgcd=1...
nilq/small-lua-stack
null
local Rendering = {} local table = require('__stdlib__/stdlib/utils/table') local Is = require('__stdlib__/stdlib/utils/is') function Rendering.clear(ids) if ids then for _, id in pairs(ids) do if rendering.is_valid(id) then rendering.destroy(id) end end ...
nilq/small-lua-stack
null
--[[ Logic Gates ]] GateActions("Logic") GateActions["not"] = { name = "Not (Invert)", inputs = { "A" }, output = function(gate, A) if (A > 0) then return 0 end return 1 end, label = function(Out, A) return "not "..A.." = "..Out end } GateActions["and"] = { name = "And (All)", inputs = { "A", "B", "C...
nilq/small-lua-stack
null
require('mjlaufer.dap.config') require('mjlaufer.dap.dap_virtual_text') require('mjlaufer.dap.dap_ui')
nilq/small-lua-stack
null
local language = "korean"; local PLUGIN = PLUGIN; PLUGIN:AddPluginLanguage("sp_default", "기본", language); PLUGIN:AddPluginLanguage("sp_add_class", "성공적으로 %s 팩션, %s 클래스의 스폰 지점을 추가하였습니다.", language); PLUGIN:AddPluginLanguage("sp_add_faction", "성공적으로 %s 팩션의 스폰 지점을 추가하였습니다.", language); PLUGIN:AddPluginLanguage("sp_remove...
nilq/small-lua-stack
null
--- -- curl -X POST http://kong:8001/services/<service-name-or-id>/plugins \ -- -d "name=my-custom-plugin" \ -- -d "config.environment=development" \ -- -d "config.server.host=http://localhost" --- local require = require local kong = kong local ngx = ngx local BasePlugin = require "kong.p...
nilq/small-lua-stack
null
local colors = require("onenord.colors").load() local onenord = {} onenord.normal = { a = { fg = colors.bg, bg = colors.cyan, gui = "bold" }, b = { fg = colors.cyan, bg = colors.highlight }, c = { fg = colors.fg, bg = colors.active }, } onenord.insert = { a = { fg = colors.bg, bg = colors.green, gui = "bold"...
nilq/small-lua-stack
null
--[[ - ltk.lua - - bind tk gui toolkit to lua - - Gunnar Zötl <gz@tset.de>, 2010. - Released under MIT/X11 license. See file LICENSE for details. --]] local _G=_G --module("ltk") ltk = {} local _M = ltk _M._VERSION = 0.8 _M._REVISION = 8 -- references to global functions local _ local t_insert = _G.table.inser...
nilq/small-lua-stack
null
QuestieComms = {}; QC_WRITE_ALLGUILD = 1 QC_WRITE_ALLGROUP = 2 QC_WRITE_ALLRAID = 3 QC_WRITE_WHISPER = 4 QC_WRITE_CHANNEL = 5 QC_ID_BROADCAST_QUEST_UPDATE = 1 -- send quest_log_update status to party/raid members QC_ID_BROADCAST_QUESTIE_GETVERSION = 2 -- ask anyone for the newest questie version QC_ID_BROADCAST_QUEST...
nilq/small-lua-stack
null
--GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select = _G.select; --BLIZZARD API local GameTooltip = _G.GameTooltip; local MAX_TOTEMS = _G.MAX_TOTEMS; local TotemFrame = _G.TotemFrame; local class = select(2, UnitClass('player')) if(class ~= 'SHAMAN') then return end local ...
nilq/small-lua-stack
null
--[[ The MIT License (MIT) Copyright (c) 2015 Matthias Richter 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 rights to use, copy, modify, m...
nilq/small-lua-stack
null
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local model = require "game.model.role_model" local config = require "game.template.shop" local timetool = require "include.timetool" local bconfig = require "game.config" local task_config = requir...
nilq/small-lua-stack
null
Config = {} Config.DrawDistance = 100.0 Config.NPCJobEarnings = {min = 15, max = 40} Config.MaxInService = -1 Config.EnablePlayerManagement = true Config.EnableSocietyOwnedVehicles = false Config.Locale = 'fr' Config.Zones = { ...
nilq/small-lua-stack
null
-------------------------------- -- @module TiledGrid3DAction -- @extend GridAction -- @parent_module cc ---@class cc.TiledGrid3DAction:cc.GridAction local TiledGrid3DAction = {} cc.TiledGrid3DAction = TiledGrid3DAction -------------------------------- --- ---@return cc.TiledGrid3DAction function TiledGrid3DAction:...
nilq/small-lua-stack
null
local assets = { Asset("ANIM", "anim/tallbird_egg.zip"), } local prefabs = { "smallbird", "tallbird", "tallbirdegg", } local NEST_TIME = 35*TUNING.SEG_TIME local TALLBIRD_LAY_DIST = 16 local function StopNesting(inst) if inst.nesttask then inst.nesttask:Cancel() inst.nesttask = n...
nilq/small-lua-stack
null
-- A simple Lua module for HAProxy that sends signals to the marathon-lb process function run(cmd) local file = io.popen(cmd) local output = file:read('*a') local success, _, code = file:close() return output, success, code end function send_response(applet, code, response) applet:set_status(code) applet:...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- Module Declaration local mod, CL = BigWigs:NewBoss("Keli'dan the Breaker", 542, 557) if not mod then return end mod:RegisterEnableMob(17377) -- mod.engageId = 1923 -- no boss frames, no ENCOUNTER_END on a wipe -- mod.respawnTime = 0 --...
nilq/small-lua-stack
null
-- +---------------------------+ -- | Neovim lua config | -- +---------------------------+ -- | Author: Étienne Marais | -- | Version: | -- +---------------------------+ -- General aliases local fn = vim.fn local execute = vim.api.nvim_command -- Load important settings require('settings') -- ...
nilq/small-lua-stack
null
return { ["comment"]="% generated by mtxrun --script pattern --convert", ["exceptions"]={ ["characters"]="abdenrt", ["data"]="att-en-de bet-re", ["length"]=16, ["n"]=2, }, ["metadata"]={ ["mnemonic"]="nn", ["source"]="hyph-nn", ["texcomment"]="% Adapted to the new pattern-loading scheme.\ % Original f...
nilq/small-lua-stack
null
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
nilq/small-lua-stack
null
function Logistic_container_placed(entity, game) if entity and entity.type and entity.type == "logistic-container" then if entity.prototype and entity.prototype.logistic_mode then local maximal_inserter_range = settings.global["automatic-logistic-chests-maximal-inserter-range"].value ...
nilq/small-lua-stack
null
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. --- -- Performs lexing of Scintilla documents. module('lexer', package.seeall) -- Markdown: -- ## Overview -- -- Dynamic lexers are more flexible than Scintilla's static ones. They are often -- more readable as well. This document provides all t...
nilq/small-lua-stack
null
AIAttackComponent - Members ----------------------------- use_probability 100 [0, 100] "The probability for using this attack if it's otherwise possible" min_distance 10 [0, 10000] ...
nilq/small-lua-stack
null
--[[ # Element: ArtifactPower Handles updating and visibility of a status bar that displays the player's artifact power. ## Widget ArtifactPower - a `StatusBar` used to display the player's artifact power ## Options .color - the RGB values for the widget. Defaults to `ARTIFACT_POWER_BAR:GetRGB()` (table) ...
nilq/small-lua-stack
null
local matrix = require("utils.matrix") local tilesStruct = require("structs.tiles") local objectTilesStruct = {} function objectTilesStruct.resize(tiles, width, height, default) return tilesStruct.resize(tiles, width, height, default or "-1") end function objectTilesStruct.fromMatrix(m, raw) local tiles = { ...
nilq/small-lua-stack
null
return { {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, desc_get = "", name = "", init_effect = "", time = 0, color = "red", picture = "", desc = "", stack = 1, id = 19341, icon = 19340, last_effect = "", effect_list = { { type = "BattleBuffCastSkill", trigger = { "onAttach" }, arg_list...
nilq/small-lua-stack
null
local a = require "nvim-lsp-installer.core.async" local _ = require "nvim-lsp-installer.core.functional" local server = require "nvim-lsp-installer.server" local pip3 = require "nvim-lsp-installer.core.managers.pip3" local process = require "nvim-lsp-installer.core.process" local notify = require "nvim-lsp-installer.no...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------- -- HTTP flow -- Requirement summary: -- [PolicyTableUpdate] Cycleing through the URLs during retry sequence -- -- Description: -- The policies manager shall cycle through the list of URLs, using the next one in the list -- for...
nilq/small-lua-stack
null
Config = { Weapons = { [GetHashKey('WEAPON_PISTOL')] = true, [GetHashKey('WEAPON_COMBATPISTOL')] = true, }, Peds = { [GetHashKey('mp_m_freemode_01')] = { [7] = { [1] = 3, [6] = 5, [8] = 2, [42] = 43, [110] = 111, [119] = 120, }, [8] = {...
nilq/small-lua-stack
null
-- -- An adaptation of the linn library by... -- -- ////\\\\ -- ////\\\\ linn -- ////\\\\ BY NEAUOIRE -- \\\\//// -- \\\\//// linn LAYOUT -- \\\\//// -- -- sky.use('io/grid') local keys = { 'C','C#','D','D#','E','F','F#','G','G#','A','A#','B' } local notes = { 'F4', 'F4#', 'G4', 'G4#', 'A4', 'A4#', '...
nilq/small-lua-stack
null
local lgi = require("lgi") local Gtk = lgi.require("Gtk", "3.0") --[[ GtkApplication: Provides an application interface. I recommend you to read the info in the links below. ]] local App = Gtk.Application({ application_id = "com.github.moonsteal.Lua-GTK3-Examples.GtkApplication" }) -- For more info about thes...
nilq/small-lua-stack
null
--[[ Pixel Vision 8 - NewPoint Example Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com) Created by Jesse Freeman (@jessefreeman) This project was designed to display some basic instructions when you create a new game. Simply delete the following code and implement your own Init(), Update() and...
nilq/small-lua-stack
null
game:GetService("ReplicatedStorage").Remotes.ClientToServerRemoteEvent:FireServer({ ["packetId"]= 5, ["mobInstanceId"]= v.InstanceId.Value, ["damage"]= 15, ["itemInstanceId"]= "574B9EC9-9B0E-4431-B883-8EA1E59CA7CF", ["itemId"]= 1001 }) -- SlingShot game:GetService("ReplicatedStorage").Remotes.ClientToServerRemoteEvent...
nilq/small-lua-stack
null
m = memory.create(2) memory.pack(m, "I2", 1, 0x0001) if memory.unpack(m, "B") == 0 then print("big-endian platform") else print("little-endian platform") end
nilq/small-lua-stack
null
local chatOpen = false local Suggestions = {} hook.Add("HUDPaint", "HUDPaint", function() if chatOpen then local x, y = chat.GetChatBoxPos() x = x + ScrW() * 0.03875 y = y + ScrH() / 4 + 5 surface.SetFont("ChatFont") for i, v in ipairs( Suggestions ) do local sx, sy = surface.GetTextSize(v.name) ...
nilq/small-lua-stack
null
timer.Create('bgCitizensCreator', 1, 0, function() local max_npc_count = GetConVar('bg_citizens_max_npc'):GetInt() local npcs_count = #bgCitizens.npcs local fnpcs_count = #bgCitizens.fnpcs if npcs_count > 0 then for i = npcs_count, 1, -1 do if not IsValid(bgCitizens.npcs[i]) then ...
nilq/small-lua-stack
null
-- ngx.shared级限速 -- Created by IntelliJ IDEA. -- User: jianghaiqiang -- Date: 2019/9/27 -- Time: 18:26 -- To change this template use File | Settings | File Templates. -- local ext = require "lion.extension" local _M = { _VERSION = '1.0.0' } --- 实例化 ---@param instance table|nil ---@param config table --- functi...
nilq/small-lua-stack
null
local helpers = require "spec.helpers" local bu = require "spec.fixtures.balancer_utils" local PLUGIN_NAME = "header-router" local REQUEST_COUNT = 1 local KEY = "kong" local LOCAL_ROUTE_PATH = "/local" local ALTERNATE_ROUTE_PATH = "/alternate" local ANOTHER_ROUTE_PATH = "/another" local CONSUMER_ROUTE_PATH = "/usersp...
nilq/small-lua-stack
null
local fn = vim.fn local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then packer_bootstrap = fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }) end local packer = require("packer") packer.start...
nilq/small-lua-stack
null
--- -- Timer utils module -- Added in API_VER:6 -- local skynet = require 'skynet' local class = require 'middleclass' local timer = class('FreeIOE_Lib_Utils_Timer') --- -- span --- Time span in seconds -- function timer:initialize(cb, span, integral_time) self._cb = cb self._span = span self._integral_time = int...
nilq/small-lua-stack
null