content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
-- -- TARGET_FX FUNCTIONS -- function tr3b_rain_RainGrid512(origin, dir) -- spawn particles in a 512x512 grid tr3b_rain_RainGrid(origin, dir, 512, 16) end function tr3b_rain_RainGrid256(origin, dir) -- spawn particles in a 256x256 grid tr3b_rain_RainGrid(origin, dir, 256, 16) end function tr3b_rain...
nilq/small-lua-stack
null
-- Functions.lua -- Contains all the global functions used in this plugin -- Loads all the catastrophes into g_Catastrophes function LoadCatastrophes() local CurrentPath = cPluginManager:GetCurrentPlugin():GetLocalFolder() .. "/Catastrophes" local Catastrophes = cFile:GetFolderContents(CurrentPath) for Idx,...
nilq/small-lua-stack
null
compareKey = function(key, path, file) local results = {} local fs = require("hs.fs") local plist = require("hs.plist") for entry in fs.dir(path) do if entry:match(".lproj") then local targetFile = path .. "/" .. entry .. "/" .. file if fs.attributes(targetFile) then ...
nilq/small-lua-stack
null
AUTH_TOKEN='LICENSE_ID'
nilq/small-lua-stack
null
local Flavour = {} function Flavour:init(id, name, image) self.id = id self.name = name self.image = 'images/coffee_' .. image .. '.jpg' --TODO: png end function Flavour:show(control_index) local control = 'flavours_layer.flavour_' .. control_index local fields = {} fields[control .. '.flavour'] = se...
nilq/small-lua-stack
null
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras of Aerie ...
nilq/small-lua-stack
null
local LocalPlayer = game.Players.LocalPlayer local Backpack = LocalPlayer.Backpack local Mouse = LocalPlayer:GetMouse() local api = {} if not getgenv().APIranbefore then getgenv().APIranbefore = true; warn("\n This API might not work anymore and has limited features.\n You can update the repo yourself at https:...
nilq/small-lua-stack
null
return { { effect_list = { { type = "BattleBuffCastSkill", trigger = { "onAttach" }, arg_list = { rant = 3500, target = "TargetSelf", skill_id = 12608 } } } }, { effect_list = { { type = "BattleBuffCastSkill", trigger = { "onAttach" }, arg_l...
nilq/small-lua-stack
null
-- Services local repl = game:GetService('ReplicatedStorage') -- Locals local remotes = repl.Remotes -- Remotes local ar = remotes.AbilityRequest -- Variables local whitelisted = { Enum.KeyCode.G } -- Module local util = {} function util.HookInput(input, gpe) if (gpe) then return end if (table.find(whitelisted,...
nilq/small-lua-stack
null
local main = setmetatable({}, {}); -- arrays, variables and others main.space = {}; main.robloxSpace = {}; main.workspace = setmetatable({}, {}); -- methods function main.getMetaData(this) local metaData = {}; function metaData:__index(index) local ro; pcall(function() local i = index:sub(1,1);...
nilq/small-lua-stack
null
--New includeFile("custom_content/building/mustafar/dungeon/mining_tunnel_01/must_mining_tunnel_01.lua")
nilq/small-lua-stack
null
---------------------------------------------------------------- -- Copyright (c) 2012 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- local simdefs = include( "sim/simdefs" ) local simquery = include( "sim/simquery" ) local mazegen = inc...
nilq/small-lua-stack
null
print('Iniciando servidor...') local sck = Socket(2, 1, 6) sck:bind('127.0.0.1', 5000) sck:listen(128) local client = sck:accept() print('Conexao aceita!') while true do local av = client:avaliable() if av > 0 then print(av .. ' bytes disponiveis...') print('Recebeu: ' .. client:receive(av)) break end...
nilq/small-lua-stack
null
local S = homedecor_i18n.gettext minetest.register_node("lrfurn:endtable", { description = S("End Table"), drawtype = "nodebox", tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetabl...
nilq/small-lua-stack
null
CodexDB["professions"]["enUS"]={ [6]="Frost", [8]="Fire", [26]="Arms", [38]="Combat", [39]="Subtlety", [40]="Poisons", [43]="Swords", [44]="Axes", [45]="Bows", [46]="Guns", [50]="Beast Mastery", [51]="Survival", [54]="Maces", [55]="Two-Handed Swords", [56]="Holy", [78]="Shadow Magic", [95]="Defense", [98]="Language: Co...
nilq/small-lua-stack
null
local widget, version = "DropDown", 3 local LBO = LibStub("LibLimeOption-1.0") if not LBO:NewWidget(widget, version) then return end local _G = _G local type = _G.type local max = _G.math.max local CreateFrame = _G.CreateFrame local menu = LibLimeOption10DropDownMenu or nil local function update(self) if self then ...
nilq/small-lua-stack
null
BBBankingCore = {} BBBankingCore['config'] = { ['enableHud'] = false, -- Enables HUD - /cash command, notifications etc.. ['enableATMs'] = true, -- Enables /atm Command. ['enableWallet'] = true, -- Enables wallet - ATTENTION: Without it, players will not be able to transfer cards ...
nilq/small-lua-stack
null
---@meta ---@class cc.EventListenerFocus :cc.EventListener local EventListenerFocus={ } cc.EventListenerFocus=EventListenerFocus ---* ---@return boolean function EventListenerFocus:init () end ---* / Overrides ---@return self function EventListenerFocus:clone () end ---* ---@return boolean function EventListener...
nilq/small-lua-stack
null
--- ioloop module -- @module mqtt.ioloop -- @alias ioloop --[[ ioloop module In short: allowing you to work with several MQTT clients in one script, and allowing them to maintain a long-term connection to broker, using PINGs. NOTE: this module will work only with MQTT clients using standard luasocket/luasocket_s...
nilq/small-lua-stack
null
--https://github.com/Mokiros/roblox-FE-compatibility if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end local Player,game,owner = owner,game local RealPlayer = Player do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;scr...
nilq/small-lua-stack
null
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KS = KUI:GetModule("KuiSkins") local S = E:GetModule("Skins") --Cache global variables --Lua functions local _G = _G local select, unpack = select, unpack --WoW API / Variables local IsAddOnLoaded = IsAddOnLoaded --Global variables that we don't cache, list them...
nilq/small-lua-stack
null
--[=[ WindShake- High performance wind effect for leaves and foliage by: boatbomber, CloneTrooper1019 Docs: https://devforum.roblox.com/t/wind-shake-high-performance-wind-effect-for-leaves-and-foliage/1039806/1 --]=] local CollectionService = game:GetService("CollectionService") local RunService = game:GetService("...
nilq/small-lua-stack
null
local sunkencity = {} sunkencity.creatures={'electriceel','merfolkhunter','squid','sharkman','hydromancer'} sunkencity.genericName = "The Sunken City" sunkencity.boss="seamonster" sunkencity.tileset="sunkencity" sunkencity.depth=4 sunkencity.description="Long ago, a magnificent city sank beneath the waves. It has now b...
nilq/small-lua-stack
null
-- [Rule] or [Rule]History to [Rule]Super converter, -- intended to be mapped to a keyboard shortcut, e.g., Alt+G local g = golly() local rule = g.getrule() local algo = g.getalgo() -- deal with bounded-universe syntax appropriately suffix = "" baserule = rule ind = string.find(rule, ":") if (ind) then suffix ...
nilq/small-lua-stack
null
Test = require('connecttest') require('cardinalities') local events = require('events') local mobile_session = require('mobile_session') local mobile = require('mobile_connection') local tcp = require('tcp_connection') local file_connection = require('file_connection') local commonSteps = require('user_modules/share...
nilq/small-lua-stack
null
-- extlib.lua -- a useful set of SciTE Lua functions scite_require 'class.lua' local sub = string.sub local append = table.insert local find = string.find local colours = {red = "#FF0000", blue = '#0000FF', green = '#00FF00',pink ="#FFAAAA" , black = '#000000', lightblue = '#AAAAFF',lightgreen = '#AAFFAA'} local ...
nilq/small-lua-stack
null
local ChaserEnemy, super = Class(Character) function ChaserEnemy:init(actor, x, y, properties) super:init(self, actor, x, y) properties = properties or {} self.encounter = properties["encounter"] self.path = properties["path"] self.speed = properties["speed"] or 6 self.progress = (properties...
nilq/small-lua-stack
null
--proc/system/registry: Registry API --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi')
nilq/small-lua-stack
null
local scheduler = CCDirector:sharedDirector():getScheduler() local kTagLabel = 1 local kTagSprite1 = 2 local kTagSprite2 = 3 local originCreateLayer = createTestLayer local function createTestLayer(title, subtitle) local ret = originCreateLayer(title, subtitle) Helper.titleLabel:setTag(kTagLabel) ...
nilq/small-lua-stack
null
-- package.path = package.path .. ";../external/?.lua" -- inspect = require("inspect") --[[ The Porter Stemming Algorithm * This code is ported to Lua using the Python implementation on Martin Porter's website: https://tartarus.org/martin/PorterStemmer/python.txt * Porter algorithm paper: https://tartarus.org/martin/...
nilq/small-lua-stack
null
-- =========================================================================== -- Base File -- =========================================================================== include("GovernmentScreen"); include("governmentscreen_CQUI.lua");
nilq/small-lua-stack
null
--New object_building_military_shared_eow_imperial_endor_base = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/military/shared_eow_imperial_endor_base.iff" } ObjectTemplates:addClientTemplate(object_building_military_shared_eow_imperial_endor_base, "object/building/military/shared_eow_imp...
nilq/small-lua-stack
null
Mission = Mission or {} --- mark a mission as relevant for a player --- @param self --- @param mission Mission --- @param initPlayer PlayerSpaceship Mission.forPlayer = function(self, mission, initPlayer) if not Mission:isMission(mission) then error("Expected mission to be a Mission, but " .. typeInspect(mission) ...
nilq/small-lua-stack
null
TianxiangeFbCfg = TianxiangeFbCfg or BaseClass(BaseHotUpdate) function TianxiangeFbCfg:__init(path) if TianxiangeFbCfg.Instance then ErrorLog("[TianxiangeFbCfg] Attemp to create a singleton twice !") end TianxiangeFbCfg.Instance = self self.path = path self.level_cfg = {} self.refresh_cfg = {} end function ...
nilq/small-lua-stack
null
local _ = function(k, ...) return ImportPackage("i18n").t(GetPackageName(), k, ...) end local taxiTableCached = {} local taxiTable = { { location = { 176352, 159675, 4820, 20}, spawn = { 175725, 159235, 4818, 20} } } AddEvent("OnPackageStart", function(player) for k,v in pairs(taxiTable) do ...
nilq/small-lua-stack
null
#!/usr/local/bin/lua require "groove" --For output. Machine controller runs on windows, so carriage returns included. newline = "\r\n" --reads a hardcoded subprogram to call at each bolthole for now local f = io.open("sub.eia", "r") local subname = f:read("*line") --check for a comment in the title string (looks l...
nilq/small-lua-stack
null
local util = require 'util' local M = {} M = util.merge_tables( require 'db.session', require 'db.node', require 'db.message', require 'db.task' ) return M
nilq/small-lua-stack
null
local util = require(script.Parent.Util) local pluginError = util.pluginError local escapeString = util.escapeString local powers_of_10 = {} for i = 0, 10 do powers_of_10[i] = 10 ^ i end local function round(n, prec) local pow = powers_of_10[prec] return math.floor(n * pow + 0.5) / pow end local function genEnum...
nilq/small-lua-stack
null
class 'para_goomba' local AI_WALKING = 0 local AI_JUMPING = 1 function para_goomba:initProps() -- Animation properties self.cur_anim = self.def_animWalking -- Currents self.cur_mode = AI_WALKING -- FOR AI_WALKING self.cur_walkingTicks = 0 self.cur_normalJumpsLeft = ...
nilq/small-lua-stack
null
-- Created by LuaView. -- Copyright (c) 2017, Alibaba Group. All rights reserved. -- -- This source code is licensed under the MIT. -- For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. w, h = System.screenSize(); local vibrator = Vibrator(); butto...
nilq/small-lua-stack
null
local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' configs.nickel_ls = { default_config = { cmd = { 'nls' }, filetypes = { 'ncl', 'nickel' }, root_dir = util.find_git_ancestor, }, docs = { description = [[ Nickel Language Server https://github.com/tweag/nickel `n...
nilq/small-lua-stack
null
local tools = {} local function conf(config_name) return require(string.format("modules.tools.%s", config_name)) end tools['tpope/vim-fugitive'] = {} tools["akinsho/toggleterm.nvim"] = { config = conf("toggleterm") } return tools
nilq/small-lua-stack
null
---------------------------------------------------------------- -- Copyright (c) 2012 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- local util = include( "modules/util" ) local binops = include( "modules/binary_ops" ) local mathutil = ...
nilq/small-lua-stack
null
---@class RaidLocks C_RaidLocks = {} ---@param mapID number ---@param encounterID number ---@param difficultyID number @ [OPTIONAL] ---@overload fun(mapID:number, encounterID:number) ---@return bool encounterIsComplete function C_RaidLocks.IsEncounterComplete(mapID, encounterID, difficultyID) end
nilq/small-lua-stack
null
-- This list is obsoleted and its content was moved to base installation
nilq/small-lua-stack
null
---@class BuildingDef : zombie.iso.BuildingDef ---@field squareChoices ArrayList|Unknown ---@field public emptyoutside ArrayList|Unknown ---@field public _table KahluaTable ---@field public seen boolean ---@field public hasBeenVisited boolean ---@field public stash String ---@field public lootRespawnHour int ---@field ...
nilq/small-lua-stack
null
-- This file contains implementation for the old inventory library functions. -- But, these really should not be used. -- Alias to new inventory instance list. nut.item.inventories = nut.inventory.instances local function DEPRECATED() if !SHOW_DEPRECATED_WARNINGS then return end local warning = debug.getinfo(2, "n...
nilq/small-lua-stack
null
--- -- @author wesen -- @copyright 2017-2021 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local MapScoreModel = require "ORM.Models.MapRecord" local MapScore = require "GemaScoreManager.MapScore.MapScore" local MapModel = require "ORM.Models.Map" local Object = require "classic" local Player = require "P...
nilq/small-lua-stack
null
local M = {} local RequireHook = {} RequireHook.__index = RequireHook M.RequireHook = RequireHook function RequireHook.create(plugin_name, module_name, post_hook_file) local root = vim.split(module_name:gsub("/", "."), ".", true)[1] local tbl = { _plugin_name = plugin_name, _root_module_name = root, _...
nilq/small-lua-stack
null
return { control_schemes = { left_control_scheme = 0, right_control_scheme = 1, controller = 2 } }
nilq/small-lua-stack
null
local Flags = {} Flags.RIMFIRE = 1 -- rimfire cartridge Flags.PISTOL = 2 -- 'pistol' calibers Flags.RIFLE = 4 -- 'rifle' calibers Flags.SHOTGUN = 8 -- shotgun shells -- variant specific Flags.HOLLOWPOINT = 16 -- hollow point Flags.JACKETED = 32 -- jacketed, partial or full Flags.SOFTPOINT = 64 -- lead tipped bullet Fl...
nilq/small-lua-stack
null
-- Copyright 2022 SmartThings -- -- 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
-- per-player upper half of ScreenEvaluation local player = ... return Def.ActorFrame{ Name=ToEnumShortString(player).."_AF_Upper", OnCommand=function(self) if player == PLAYER_1 then self:x(_screen.cx - 155) elseif player == PLAYER_2 then self:x(_screen.cx + 155) end end, -- letter grade LoadActor(...
nilq/small-lua-stack
null
DAMAGE_TEXT_FONT = "Fonts\\DAMAGE.ttf"
nilq/small-lua-stack
null
------------------------------ local function f() end local a,b,c = f(1,2,3,4) ------------------------------ success compiling learn.lua ; source chunk: learn.lua ; x86 standard (32-bit, little endian, doubles) ; function [0] definition (level 1) 0 ; 0 upvalues, 0 params, is_vararg = 2, 6 stacks .function 0 0 2 6 .l...
nilq/small-lua-stack
null
object_mobile_dressed_bh_female_human_02 = object_mobile_shared_dressed_bh_female_human_02:new { } ObjectTemplates:addTemplate(object_mobile_dressed_bh_female_human_02, "object/mobile/dressed_bh_female_human_02.iff")
nilq/small-lua-stack
null
local headerHeight = 25 local rowHeight = 16 -- we'll figure out how many rows (that is, how many mappable buttons) there are -- after the screen has initialized and we can get the scroller via SCREENMAN local num_buttons -- same with scroller_y; define to be 0 for now local scroller_y = 0 -- First row y from ...
nilq/small-lua-stack
null
local lapis = require "lapis" local r2 = require("lapis.application").respond_to local app = lapis.Application() app:enable("etlua") app.layout = require "views.layout" app:match("index", "/", r2(require "actions.index")) return app
nilq/small-lua-stack
null
require 'bit' local SDL = require "LuaSDL2" local function init() SDL.init() local formats = bit.bor(SDL.IMG_INIT_JPG, SDL.IMG_INIT_PNG, SDL.IMG_INIT_TIF, SDL.IMG_INIT_WEBP) local i = SDL.imageInit(formats) if bit.bxor(i, formats) ~= 0 then print(i, formats, bit.bxor(i, formats)) end end local T = 0 local ru...
nilq/small-lua-stack
null
require('zhuw31')
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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
module(..., package.seeall) -------------------------------------------------------------------------------- -- Event Handler -------------------------------------------------------------------------------- function onCreate(e) layer = flower.Layer() layer:setScene(scene) layer:setSortMode(MOAILayer.SORT_...
nilq/small-lua-stack
null
--- -- @class PANEL -- @section DTooltipTTT2 local PANEL = {} --- -- @ignore function PANEL:Init() self:SetText("") self:SetDrawOnTop(true) self.deleteContentsOnClose = false end --- -- @param table skin -- @return Color -- @realm client function PANEL:UpdateColours(skin) return self:SetTextStyleColor(skin.Colo...
nilq/small-lua-stack
null
local _M = {} local utils = require("core.utils.utils") local cjson = require("cjson") local user_log = require("core.log.user_log") function _M.query_info_by_id(store,id) local flag, info= store:query({ sql = "select * from c_co_parameter where id = ?", params ={ id } }) ...
nilq/small-lua-stack
null
object_tangible_storyteller_prop_pr_at_at = object_tangible_storyteller_prop_shared_pr_at_at:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_at_at, "object/tangible/storyteller/prop/pr_at_at.iff")
nilq/small-lua-stack
null
-- -- phylip-suite 3.697 modulefile -- -- "URL: https://www.psc.edu/resources/software" -- "Category: Biological Sciences" -- "Description: PHYLIP is a free package of programs for inferring phylogenies." -- "Keywords: singularity bioinformatics" whatis("Name: phylip-suite") whatis("Version: 3.697") whatis("Category: ...
nilq/small-lua-stack
null
---------------------------------------- -- -- VerticallyScalingListFrame -- -- Creates a frame that organizes children into a list layout. -- Will scale dynamically as children grow. -- Modified from ROBLOX's to use a ScrollingFrame instead to support horizontal shifts -- ---------------------------------------- Verti...
nilq/small-lua-stack
null
function onCreate() makeLuaSprite('hill', 'hill', -600, -300); addLuaSprite('stageback', false) setScrollFactor('stageback', 0.9, 0.9); close(true); end
nilq/small-lua-stack
null
--[[local range = 30 addEventHandler ( "onClientPlayerVoiceStart", root, function() if (source and isElement(source) and getElementType(source) == "player") and localPlayer ~= source then local sX, sY, sZ = getElementPosition(localPlayer) local rX, rY, rZ = getElementPosition(source) l...
nilq/small-lua-stack
null
-- Simple event dispatcher class local EventDispatcher = class("EventDispatcher") function EventDispatcher:__construct() self.event_listeners = {} end -- listen event for a specific callback function EventDispatcher:listen(name, callback) local listeners = self.event_listeners[name] if not listeners then -- cr...
nilq/small-lua-stack
null
workspace "Kanto" architecture "x86_64" configurations { "Debug", "Release", "Dist" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- needs to be before includedir crap startproject "Sandbox" -- Include directories relative to root folder (sol...
nilq/small-lua-stack
null
fx_version 'cerulean' games { 'gta5' } author 'MOXHA' server_only 'yes' shared_scripts { '@qb-core/import.lua', } server_scripts { 'server.lua', 'bot.js' }
nilq/small-lua-stack
null
local conjure_eval, conjure_promise = unpack({require("conjure.eval"), require("conjure.promise")}) local conjure_source = {["promise-id"] = nil, timer = nil} local function uid(m) local key = nil while (not key or m[key]) do key = (math.random() * 1000) end return key end local function map(f, ls) local ...
nilq/small-lua-stack
null
require 'version' local file = fs.ydwe_path() / "bin" / "EverConfig.cfg" local tbl_index = { MapSave = { Option = "0" }, HostTest = { Option = "0" }, War3Patch = { Option = "0" }, MapTest = { EnableHost = "0", EnableMapSlk = "0", LaunchRenderingEngine = "Direct3D 8", ...
nilq/small-lua-stack
null
--[[ A symbol for representing nil values in contexts where nil is not usable. ]] return { type = "Symbol", name = "None" }
nilq/small-lua-stack
null
----------------------------------- -- Blade Metsu -- Katana weapon skill -- Skill Level: N/A -- Additional effect: Paralysis -- Hidden effect: temporarily enhances Subtle Blow tpz.effect. -- One hit weapon skill, despite non single-hit animation. -- This weapon skill is only available with the stage 5 relic Katana Kik...
nilq/small-lua-stack
null
return { PlaceObj("ModItemOptionToggle", { "name", "HideCheatsMenu", "DisplayName", T(302535920001640, "Hide Cheats Menu"), "Help", T(302535920001639, "Hide a menu entry to reduce horizontal space."), "DefaultValue", false, }), PlaceObj("ModItemOptionToggle", { "name", "HideECMMenu", "DisplayNam...
nilq/small-lua-stack
null
local colors = _G.colors local _rep = string.rep local _sub = string.sub local Blit = { } Blit.colorPalette = { } Blit.grayscalePalette = { } for n = 1, 16 do Blit.colorPalette[2 ^ (n - 1)] = _sub("0123456789abcdef", n, n) Blit.grayscalePalette[2 ^ (n - 1)] = _sub("088888878877787f", n, n) end -- default ...
nilq/small-lua-stack
null
local packer = require('packer') local plugins = require('jonz94.plugins') local is_windows = vim.fn.has('win32') == 1 -- initialize packer settings packer.init({ maxjobs = is_windows and 10 or nil, display = { working_sym = ' ', error_sym = ' ', done_sym = ' ', removed_sym = ' ', moved_sy...
nilq/small-lua-stack
null
imageUrl = "http://ico.ooopic.com/ajax/iconpng/?id=96776.png"; imageRander0 = Image(); imageRander0:frame(0,100,100,100); imageRander1 = Image(); imageRander1:frame(0,100,90,90); imageRander0:image(imageUrl,function() imageRander1:render(imageRander0,0); imageRander1:alpha(0.98) end); w,h = System:screenSiz...
nilq/small-lua-stack
null
-- The queue for the rendered icons. renderdIcons = renderdIcons or {} -- To make making inventory variant, This must be followed up. function renderNewIcon(panel, itemTable) -- re-render icons if ((itemTable.iconCam and !renderdIcons[string.lower(itemTable.model)]) or itemTable.forceRender) then local iconCam = i...
nilq/small-lua-stack
null
local s = [[ local dbcontext = require "dbcontext" local cls = class("%s", dbcontext) function cls:ctor(env, rdb, wdb, ... ) -- body assert(env and rdb and wdb) cls.super.ctor(self, env, rdb, wdb) self._dbset = {} return self end %s return cls ]] return s
nilq/small-lua-stack
null
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] local vehicles = {} vehiclesData = {} function vehicles.load() local count = 0 local query = exports.sarp_my...
nilq/small-lua-stack
null
local fontName = "BaseWars.MoneyPrinter" ENT.Base = "bw_base_electronics" ENT.Model = "models/props_lab/reciever01a.mdl" ENT.Skin = 0 ENT.Capacity = 10000 ENT.Money = 0 ENT.MaxPaper = 2500 ENT.PrintInterval = 1 ENT.PrintAmount = 8 ENT.MaxLevel = 25 ENT.UpgradeCost = 1000 ENT.PrintName = "Basic Printer"...
nilq/small-lua-stack
null
local status_ok, null_ls = pcall(require, "null-ls") if status_ok then -- Check supported formatters -- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting local formatting = null_ls.builtins.formatting -- Check supported linters -- https://github.com/jose-elias-alvarez/nu...
nilq/small-lua-stack
null
-- queue containing the updates that need to be applied to the minecraft world UpdateQueue = nil -- array of container objects Containers = {} -- SignsToUpdate = {} -- as a lua array cannot contain nil values, we store references to this object -- in the "Containers" array to indicate that there is no container at a...
nilq/small-lua-stack
null
JxlwModel = class(slot1) JxlwModel.ctor = function (slot0) slot10 = true ClassUtil.extends(slot2, slot0, BaseGameModel, true, GameKind_JXLW, nil, nil, nil) slot0._loadingDuration = 1 slot6 = true createSetterGetter(slot2, slot0, "isShowingBtnBack", false) slot6 = true createSetterGetter(slot2, slot0, "isSh...
nilq/small-lua-stack
null
mageDispelRange="Remove Lesser Curse" mageDecurse={Curse=true} function MageDispel(lTargetList) mageDispel(lTargetList) end -- /script MageDispel(azs.targetList.all) function mageDispel(lTargetList) lTargetList=lTargetList or azs.targetList.all if SpellCastReady(mageDispelRange,false) then local tar...
nilq/small-lua-stack
null
function foo() return 1 end
nilq/small-lua-stack
null
----------------------------------------- -- ID: 4726 -- Scroll of Enthunder II -- Teaches the white magic Enthunder II ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(316) end function onItemUse(target) target:addSpell(316) end
nilq/small-lua-stack
null
local mod = get_mod("GiveWeapon") mod:hook(BackendUtils, "get_item_units", function(func, item_data, ...) if not mod:get(mod.SETTING_NAMES.FORCE_WOODEN_HAMMER) then return func(item_data, ...) end local units = func(item_data, ...) if item_data.item_type == "es_2h_war_hammer" and units and units.right_hand_un...
nilq/small-lua-stack
null
return {'fylogenese','fylogenetisch','fylum','fylogenetische'}
nilq/small-lua-stack
null
local TestEZ = require(script.Parent.Parent.TestEZ) return { function() assert(typeof(TestEZ) == "table") assert(typeof(TestEZ.run) == "function") end, }
nilq/small-lua-stack
null
require 'image' require 'cutorch' require 'cunn' require 'cudnn' -- Custom files require 'model-rgb' require 'sys' -- require 'qtwidget' -- for visualizing images dofile('util-rgb.lua') opt_string = [[ -h,--help print help -b,--batchSize (default 32) batch size -g,--gpu_index (default 0) GPU ...
nilq/small-lua-stack
null
C_ItemSocketInfo = {} ---[Documentation](https://wow.gamepedia.com/API_C_ItemSocketInfo.CompleteSocketing) function C_ItemSocketInfo.CompleteSocketing() end
nilq/small-lua-stack
null
local sprite = BaseSprite:extend({ type = 'wall' }) function sprite:constructor (x, y) self.destroyed = false self.visible = true self.x = x self.y = y self.behavior = Behavior { default = { { duration = 1, quad = Quads.tiles[1][2] }, }, } end function sprite:update (dt) self.behavior:upda...
nilq/small-lua-stack
null
local has_telescope, telescope = pcall(require, 'telescope') if not has_telescope then error 'This plugin requires telescope.nvim (https://github.com/nvim-telescope/telescope.nvim)' end local pickers = require 'telescope.pickers' local finders = require 'telescope.finders' local make_entry = require 'telescope.make...
nilq/small-lua-stack
null
--MoveCurve --B_30101/curve_RushL_1 curve_RushL_1 return { filePath = "B_30101/curve_RushL_1", startTime = Fixed64(0) --[[0]], startRealTime = Fixed64(0) --[[0]], endTime = Fixed64(104857600) --[[100]], endRealTime = Fixed64(629146) --[[0.6]], isZoom = false, isCompensate = false, curve = { [1] = { time =...
nilq/small-lua-stack
null
-- -- PktgenGUI.lua -- -- SPDX-License-Identifier: BSD-3-Clause gui = {} function gui.msg(...) str = strfmt("msg=%s\n",strfmt(...)); io.write(str); io.flush(); end function gui.dumpStats(func, name, portlist) stats = func(portlist); printf("%s={ ", name); st = stats[0]; for k,v in pairs(st) do printf("%s "...
nilq/small-lua-stack
null
local cmd = vim.cmd local g = vim.g local tree = require('nvim-tree') local wk = require('which-key') wk.register( { t = { '<Cmd>NvimTreeToggle<Cr>', 'Toggle File Tree' }, T = { '<Cmd>NvimTreeFindFile<Cr>', 'Show Current File in Tree' }, }, { prefix = '<Leader>', } ) local tree_cb = require('nvim-...
nilq/small-lua-stack
null