content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 68201, emitter = "BattleBulletEmitter" } } } }, { effect_list = { { type = "BattleSkillFire", casterAniEffe...
nilq/small-lua-stack
null
local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local rules = require "kong.plugins.bot-detection.rules" local bot_cache = require "kong.plugins.bot-detection.cache" local strip = require("kong.tools.utils").strip local ipairs = ipairs local get_headers = ngx.req....
nilq/small-lua-stack
null
--[[ Lua@Client 0.4 Lua Pages Template Preprocessor Extension Copyright (c) 2014-2015 Felipe Daragon License: MIT ]] local conf = require "latclient.conf" local M = { conf = conf } function M.translate(src) local vm = require("latclient."..conf.lua_at_client.vm) vm.js_url = conf.lua_at_client.vm_url or "./pub...
nilq/small-lua-stack
null
-- -- Avian Waves NK2 Toolkit for Script-Based MIDI Control Surface (AWNKT) -- -- Author: Avian Waves, LLC -- Website: https://www.avianwaves.com -- Project Repository: https://github.com/AvianWaves/AWNKT -- License: Apache License, 2.0 - https://opensource.org/licenses/Apache-2.0 -- function AWNKT_SetTrackV...
nilq/small-lua-stack
null
function add(a, b) print("1st parameter", a) print("2nd parameter", b) return compute(a, b) end
nilq/small-lua-stack
null
require('strict').on() return xp():read_datalog_file(501, "LG200921.CSV")
nilq/small-lua-stack
null
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" fx_version 'adamant' game 'gta5' ui_page { 'nui/index.html', } files { 'nui/index.html', 'nui/main.js', 'nui/main.css', 'nui/logo.png', 'nui/gtafont.woff', 'nui/gtafont.woff2', } shared_scripts { 'config.lua' } client...
nilq/small-lua-stack
null
local ffi = require("ffi") ffi.cdef[[ static const int EI_NIDENT = 16; static const int EI_MAG0 = 0; static const int ELFMAG0 = 127; static const int EI_MAG1 = 1; static const int ELFMAG1 = 69; static const int EI_MAG2 = 2; static const int ELFMAG2 = 76; static const int EI_MAG3 = 3; static const int ELFMAG3 = 70; sta...
nilq/small-lua-stack
null
-- Copyright (C) idevz (idevz.org) package.path = "/Users/idevz/code/z/git/weibo-or/motan-openresty/lib/?.lua;/Users/idevz/code/breeze/lua-resty-breeze/lib/?.lua;" .. package.path local utils = require "motan.utils" local consts = require "motan.consts" local brz_w = require "resty.breeze.writer" local brz_r = require...
nilq/small-lua-stack
null
dofile("chem_notepad.lua"); cheapRecipes = nil; allRecipes = nil; local types = {"Ra", "Thoth", "Osiris", "Set", "Maat", "Geb"}; local typePlus = {"+++++", "++++", "++++", "+++", "+++", "++"}; local typeMinus = {"-----", "----", "----", "---", "---", "--"}; local typeEnabled = {true, true, true, true, true, true}; l...
nilq/small-lua-stack
null
local lint = { lint = require("lint") } local pylint = require("lint.linters.pylint") local bufdir = require("utils").get_dir() if bufdir:find("apicbase") or bufdir:find("dango") then pylint.cmd = "poetry" pylint.args = { "run", "pylint", unpack(pylint.args), } end local linters = { "pylint" } if string.fi...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Module declaration -- local mod, CL = BigWigs:NewBoss("Volkhan", 602, 598) if not mod then return end mod:RegisterEnableMob(28587) -------------------------------------------------------------------------------- -- Initialization -- ...
nilq/small-lua-stack
null
---addon namespace local _, ns = ... local L = ns.locales ---basic button mixin InscribedSmallHighlightButtonMixin = {} function InscribedSmallHighlightButtonMixin:OnLoad() if self.iconFileId then self.icon:SetTexture(self.iconFileId) elseif self.atlas then self.icon:SetAtlas(self.atlas) ...
nilq/small-lua-stack
null
SILE.registerCommand("inlinefootnote", function(options, content) SILE.call("footnotemark") local opts = SILE.scratch.insertions.classes.footnote local f = SILE.getFrame(opts["insertInto"].frame) local oldT = SILE.typesetter SILE.typesetter = SILE.typesetter {} SILE.typesetter:init(f) local box = thisPag...
nilq/small-lua-stack
null
local method = require("lib.method") local render = function (entities) local function getRealPosition(pos) local w, h = game.map.width, game.map.height local grid, start = game.map.grid, game.map.start local x = pos.x * grid + start + grid/2 + w/2 local y = pos.y * grid + start +...
nilq/small-lua-stack
null
-- @docclass Creature -- @docconsts @{ SkullNone = 0 SkullYellow = 1 SkullGreen = 2 SkullWhite = 3 SkullRed = 4 SkullBlack = 5 SkullOrange = 6 ShieldNone = 0 ShieldWhiteYellow = 1 ShieldWhiteBlue = 2 ShieldBlue = 3 ShieldYellow = 4 ShieldBlueSharedExp = 5 ShieldYellowSharedExp = 6 ShieldBlueNoSharedExpBlink = 7 Shie...
nilq/small-lua-stack
null
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. rarevehicle7 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "swamp speeder deed", directObjectTemplate = "object/tangible/tcg/series3/vehicle_deed_swamp_speeder.iff", craftingValues = { }, customizationStringNames = {}, customizatio...
nilq/small-lua-stack
null
local M = {} M.comment_in_range_single_content = { { config = { "#", nil, nil, nil, true, false }, input = [[ | import antigravity | | def hello(): | print('hello') | | print('world') ]], output = [[ | # import antigravity | # | # def hell...
nilq/small-lua-stack
null
local log = require("null-ls.logger") local s = require("null-ls.state") local u = require("null-ls.utils") local fmt = string.format local M = {} -- Search for a local install of an executable by searching relative to -- startpath, then walking up directories until endpath is reached. local function search_ancestors...
nilq/small-lua-stack
null
AbstractTerrainModifyCommand = Command:extends{} AbstractTerrainModifyCommand.className = "AbstractTerrainModifyCommand" Math = Math or {} function Math.RoundInt(x, step) x = math.round(x) return x - x % step end local function rotate(x, y, rotation) return x * math.cos(rotation) - y * math.sin(rotation)...
nilq/small-lua-stack
null
-- Copyright (c) 2012-2013, Scott Vokes <vokes.s@gmail.com> -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: -- * Redistributions of source code must retain the above copyright -- ...
nilq/small-lua-stack
null
local assert = require("assert") local function_was_run = false local asyncPromise = async.run(function() function_was_run = true return "SyncReturn" end) assert.isTrue(function_was_run) assert.isTrue(asyncPromise:isResolved()) assert.equals("SyncReturn", asyncPromise:getValue())
nilq/small-lua-stack
null
local Assert = require('util.assert') local LinkedBeltTransport = {} function LinkedBeltTransport.init(portal) Assert.Portal(portal) portal.from_entity.linked_belt_type = "input" portal.to_entity.linked_belt_type = "output" portal.to_entity.rotate() -- Rotate the other entity 180 degrees, as it makes ...
nilq/small-lua-stack
null
--Ground local Entity = OBJECTS.entity local Gate = Entity:extend() function Gate:new(world,x,y) self.img=IMG.gate self.x=x self.y=y Gate.super.new(self,world,x,y,self.img:getWidth(),self.img:getHeight()) self.type = "Gate" self.proceed=false self.active=true self.world:add(self,self:getRect())...
nilq/small-lua-stack
null
local GameManager = Ballance2.Services.GameManager local GameUIManager = GameManager.GetSystemService('GameUIManager') ---@type GameUIManager local GamePackage = Ballance2.Package.GamePackage local GameSoundType = Ballance2.Services.GameSoundType local I18N = Ballance2.Services.I18N.I18N local SystemPackage = GamePacka...
nilq/small-lua-stack
null
ITEM.name = "Morphine Syringe" ITEM.description = "A small plastic syringe." ITEM.longdesc = "A single-use syringe with a morphine solution inside.\nMorphine was first obtained from poppy seeds in 1805, and is routinely used in medical situations for powerful pain relief.\nUsed by STALKERs to reduce the strain on their...
nilq/small-lua-stack
null
require("common/commonState"); require("hall/privateRoom/privateRoomScene"); require("hall/privateRoom/privateRoomController"); local privateRoomLayout = require(ViewPath .. "hall/privateRoom/privateRoomLayout"); -- 注释 -- 作者:JasonWang PrivateRoomState = class(CommonState); PrivateRoomState.ctor = function(...
nilq/small-lua-stack
null
-- -- Copyright (c) 2015, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- Author: Marc...
nilq/small-lua-stack
null
function isBearer(s) return s:find("Bearer ") == 1 end function isBasic(s) return s:find("Basic ") == 1 end function isEmpty(s) return s == nil or s == '' end function getUserFromBasic(str) local splitted = string.gmatch(str, '([^:]+)') return splitted() end function string.startsWith(String, St...
nilq/small-lua-stack
null
package("snappy") set_homepage("https://github.com/google/snappy") set_description("A fast compressor/decompressor") set_urls("https://github.com/google/snappy/archive/$(version).tar.gz", "https://github.com/google/snappy.git") add_versions("1.1.8", "16b677f07832a612b0836178db7f374e414f9...
nilq/small-lua-stack
null
C_QuestSession = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_QuestSession.CanStart) ---@return boolean allowed function C_QuestSession.CanStart() end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_QuestSession.CanStop) ---@return boolean allowed function C_QuestSession.CanStop() end ---[D...
nilq/small-lua-stack
null
RegisterClientScript() RegisterClientAssets("placeholder/potato.png") ENTITY.IsNetworked = true ENTITY.Properties = {} ENTITY.ExplosionSounds = { "placeholder/explosion1.wav", "placeholder/explosion2.wav", "placeholder/explosion3.wav", "placeholder/explosion4.wav", } RegisterClientAssets(ENTITY.Explo...
nilq/small-lua-stack
null
require("indent_blankline").setup({ -- char list for different indentation level char_list = { "|", "¦", "┆", "┊" }, -- Ignore indent lines on these filetypes/buftype filetype_exclude = { "NvimTree", "help", "lsp-installer", "markdown", "packer", "startif...
nilq/small-lua-stack
null
local nls = require('null-ls') local function on_attach(client) if client.resolved_capabilities.document_formatting then vim.cmd("autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()") end end local function prettier_condition(utils) -- See https://prettier.io/docs/en/configuration.html local fi...
nilq/small-lua-stack
null
mauler = Creature:new { objectName = "@mob/creature_names:mauler", socialGroup = "mauler", faction = "", level = 300, chanceHit = 15.00, damageMin = 1400, damageMax = 1800, baseXp = 25000, baseHAM = 95000, baseHAMmax = 125000, armor = 0, resists = {115,115,115,115,115,115,115,115,115}, meatType = "", meat...
nilq/small-lua-stack
null
Locales['en'] = { ['mechanic'] = 'Автосервиз', ['drive_to_indicated'] = '~y~Отивайте~s~ към показаната локация.', ['mission_canceled'] = 'Мисията е ~r~отказана~s~', ['vehicle_list'] = 'Служебни автомобили', ['work_wear'] = 'Работно облекло', ['ci...
nilq/small-lua-stack
null
local function focusOnEnterWindow(editor) editor:Connect(wx.wxEVT_ENTER_WINDOW, function() editor:SetFocus() end) end return { name = "Editor auto-focus by mouse", description = "Moves focus to an editor tab the mouse is over.", author = "Paul Kulchenko", version = 0.1, onEditorLoad = function(self, editor...
nilq/small-lua-stack
null
-- Test coroutine measures. -- params: [n] package.path = "src/?.lua" local Profiler = require("ELProfiler") local n = ... n = tonumber(n) or 1e7 local function a(n) return n+n end local function b(n) return n+n end local function c(n) return n+n end local function d(n) return n+n end do print("[test 4 funcs balan...
nilq/small-lua-stack
null
function reloadConfig(files) local doReload = false for _, file in pairs(files) do if file:sub(-4) == ".lua" then doReload = true end end if doReload then hs.reload() hs.alert.show("Config Reloaded") end end hs.pathwatcher.new(os.getenv("HOME") .. "/.hamm...
nilq/small-lua-stack
null
--- === Globals === --- --- Various hotkey-bound automations that are not app-specific. local application = require("hs.application") local ax = require("hs.axuielement") local UI = require("rb.ui") local Keycodes = require("hs.keycodes") local hs = hs local obj = {} obj.__index = obj obj.name = "Globals" obj.versio...
nilq/small-lua-stack
null
require 'cunn' require 'cudnn' image = require 'image' function dumptensor(t, layer) if t:nDimension()==4 then t = t[1] end b = 2 n = 12 ww = t:size(2) hh = t:size(3) w = math.ceil((n+1)*(ww+b)) h = math.ceil((n+1)*(hh+b)) print(w,h) res = torch.Tensor(w,h):zero() for i=1, n d...
nilq/small-lua-stack
null
local mysql = require "resty.mysql" local db, err = mysql:new() if not db then ngx.say("failed to instantiate mysql: ", err) return end db:set_timeout(1000) -- 1 sec local ok, err, errno, sqlstate = db:connect { host = "127.0.0.1", port = 3306, database = "capital", user = "root", password...
nilq/small-lua-stack
null
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by lhq. --- DateTime: 2021/7/18 17:38 --- local v = redis.call('get', KEYS[1]) if v == false then return 1 if v ~= KEYS[2] then return 0 end return redis.call('del', KEYS[1])
nilq/small-lua-stack
null
--=info=-- -- Page 1: Game Stats -- Init Menu Menu.Spacing() Menu.Separator() Menu.Spacing() Menu.Text("--=General Settings=--") Menu.Checkbox("Enable UI", "cEnable", false) Menu.Checkbox("Disable Default UI", "cDisableDefault", true) Menu.Text("UI Type") Menu.Combo( "", "cMenuType", { "Menu", "Simple" },...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { __is_kind_of = "XWindow", group = "PreGame", id = "DialogTitle", PlaceObj('XTemplateWindow', { 'Id', "idTitle", 'IdNode', true, 'Dock', "top", 'HAlign', "right", }, { PlaceObj('XTemplateWindow', { '__class', "XF...
nilq/small-lua-stack
null
local aes = require('lib.block_ciphers.aes') local ecb = require('lib.modes.ecb') local bytes = require('lib.bytes') --- TEST end to end --- print("Testing end to end:") key = bytes.string2bytearray('YELLOW SUBMARINE') plaintext = bytes.string2bytearray('TOGETHER BECAUSETOGETHER BECAUSE') ciphertext = bytes.bytearray2...
nilq/small-lua-stack
null
--[[ slider.lua A options slider --]] local _, Addon = ... local Slider = Addon.Classy:New('Slider') Addon.Slider = Slider function Slider:New(name, parent, low, high, step) local f = self:Bind(CreateFrame('Slider', parent:GetName() .. '_' .. name, parent, 'OptionsSliderTemplate')) f:SetMinMaxValues(low, hi...
nilq/small-lua-stack
null
--- Get the current network name of this turtle. -- @treturn string The turtle's name local function get_name() local this_turtle for _, side in ipairs(redstone.getSides()) do if peripheral.getType(side) == "modem" then local wrapped = peripheral.wrap(side) local name = wrapped.getNameLocal and wra...
nilq/small-lua-stack
null
local opt = vim.opt -- These come in from the global vim object. local a = vim.api local g = vim.g local exists = vim.fn.exists local isdirectory = vim.fn.isdirectory local nvim_command = vim.api.nvim_command local HOME_DIR = vim.fn.expand('$HOME') a.nvim_command('set nocompatible') g.mapleader = ' ' g.maplocallead...
nilq/small-lua-stack
null
ChefEnd = Story:extend() function ChefEnd:new() ChefEnd.super.new(self) self.lines = { "#bg gfx/bg1.png", "#music bgm/Lazy Marine - 91 T2.wav", "EPILOGUE", "1 week later.", "*BEEP*", "*BEEP*", "An email.", "SUBJECT: !!!!! A.C.P.P. RESULTS !!!!!", "BODY:", "CONGRATULATIONS TAK...
nilq/small-lua-stack
null
-- Copyright (C) Dejiang Zhu (doujiang24) local utf8 = require "system.helper.utf8" local find = string.find local sub = string.sub local insert = table.insert local concat = table.concat local type = type local re_gsub = ngx.re.gsub local random = math.random local time = ngx.time local gsub = string.gsub local gmat...
nilq/small-lua-stack
null
Inherit = 'SnapWindow' ContentViewName = 'brushwindow' Title = 'Brush' OnContentLoad = function(self) self:GetObject('SquareImageView').OnClick = function(_self, event, side, x, y) local artboard = self.Bedrock:GetObject('Artboard') if artboard then artboard.BrushShape = 'Square' end end self:GetObject('...
nilq/small-lua-stack
null
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
nilq/small-lua-stack
null
-- Rank System [Create Command File] (v1.0) -- Copyright (c) 2022, Jericho Crosby <jericho.crosby227@gmail.com> local Command = { command_name = 'c', admin_level = -1, help = 'Syntax: /c [user] [password]', description = 'Create a new rank account', no_perm = 'You need to be level -1 or higher to u...
nilq/small-lua-stack
null
function GM:Intro_Start() timer.Simple(1,function() Sound_GlobalMusic = CreateSound(LocalPlayer(),"/ocrp/intro/IntroTheme.mp3") Sound_GlobalMusic:Play() end) end local client = LocalPlayer() local SW,SH = ScrW(),ScrH() function GM:Intro_Think() surface.SetDrawColor(0,0,0,255) surface.DrawRect(0,0,ScrW(),Sc...
nilq/small-lua-stack
null
ITEM.name = "Scoped Tihar" ITEM.desc = "A makeshift Air Rifle fitted with a Scope that that fires Ball Bearings" ITEM.model = "models/arxweapon/tihar.mdl" ITEM.class = "m9k_mrp_tihar_scope" ITEM.weaponCategory = "primary" ITEM.width = 4 ITEM.height = 2 ITEM.price = 300
nilq/small-lua-stack
null
--Script Name : Receive from Spat Revolution --Author : Jean Loup Pecquais --Description : Receive signal from Spat Revolution. --v1.0.0 local libPath = reaper.GetExtState("Reaper Evolution", "libPath") if not libPath or libPath == "" then reaper.MB("Reaper Evolution library is not found. Please refer to user guid...
nilq/small-lua-stack
null
--Warps-- change_gm_when_changing_world = true --Jails-- IsChatEnabled = false AreCommandsEnabled = false IsDiggingEnabled = true IsPlaceEnabled = true
nilq/small-lua-stack
null
--- placeholder print('Hello World!')
nilq/small-lua-stack
null
-- https://hellogithub.com/
nilq/small-lua-stack
null
include("shared.lua") function SWEP:Initialize() end function SWEP:IsShiftPressed() return input.IsKeyDown(KEY_LSHIFT) or input.IsKeyDown(KEY_RSHIFT) end function SWEP:IsControlPressed() return input.IsKeyDown(KEY_LCONTROL) or input.IsKeyDown(KEY_RCONTROL) end function SWEP:PrimaryAttack() if not IsFir...
nilq/small-lua-stack
null
Path_Name = "Random" Symbolic_Name = "Random" Display_Name = "$3226" Prefix = "RAND" ExtFilter = "races_fx_random_defense" Tags = "race_fx_random_defense"
nilq/small-lua-stack
null
-- -- Repeatedly click a single location, avoid shift-click, stop if pixel changes -- dofile("common.inc"); askText = singleLine([[ Clicker -- Move mouse to a spot you want clicked and press shift. ]]); function doit() local mousePos = askForWindow(askText); local clickCount = 0; local shif...
nilq/small-lua-stack
null
--------------------------------------------------------------------- -- Desarrollador/Developer: -Rex- -- Proyecto/Proyect: N/A -- Contacto/Contact: https://www.facebook.com/rexscripting/ -- -- Libre uso y modificacion, No borrar los creditos, Gracias -------------------------------------------------...
nilq/small-lua-stack
null
require("prototypes.scripts.util") local HOUSING_1 = "colonial-housing-1" local HOUSING_2 = "colonial-housing-2" local HOUSING_3 = "colonial-housing-3" local housing = { [HOUSING_1] = { name = HOUSING_1, colonists = 4 }, [HOUSING_2] = { name = HOUSING_2, colonists = 8 }, [HOUSING_3] = { name = HOUSING_3, ...
nilq/small-lua-stack
null
MECATOL_GUID = "04df02" TILE_CUTOFF_X = 5.25 RESOURCE_TILES = { { guid = "4216fd", key = "19", planets = {"Wellon"}, resources = 1, influence = 2, skips = {yellows = 1}, cultural = 0, industrial = 0, hazardous = 0 }, { guid = "bc4bcc", key = "20", planets = {"Vefu...
nilq/small-lua-stack
null
local t = LoadFallbackB(); return t;
nilq/small-lua-stack
null
--Need to write in threads into runtime for promises local PromiseClass = class('Promise'); PromiseClass.init = function(self, process) assert(process, 'Missing process'); local PromiseManager = Kumikaeru.Core.Threads.PromiseManager; self:updateStatus('pending'); PromiseManager:Hook(self); local resolve, reject...
nilq/small-lua-stack
null
project "pantryman_test" kind "ConsoleApp" includedirs { "../include", } files { "../test/**.cpp", } links { "pantryman", } configuration {"macosx"} linkoptions { "-framework AppKit", "-framework IOKit", } configura...
nilq/small-lua-stack
null
-- ------------------------------------------------------------------------------------------------------------------------------------------------------------- -- RAILUALIB TRANSLATION LIBRARY -- Requests and organizes translations for localised strings -- DOCUMENTATION: https://github.com/raiguard/Factorio-SmallMods...
nilq/small-lua-stack
null
-- graphical mark of existing task request local RequestMark = {} function RequestMark:new(action,request) local newRequestMark = {}; -- set meta tables so lookups will work setmetatable(newRequestMark, self); self.__index = self; newRequestMark.action = action; newRequestMark....
nilq/small-lua-stack
null
local colors = { black = '#06080A', bg0 = '#24283B', bg1 = '#483858', bg2 = '#2F344D', bg3 = '#434964', bg4 = '#3A405E', bg5 = '#5A506E', bg_red = '#FF7A93', bg_green = '#B9F27C', bg_blue = '#7DA6FF', fg = '#C9C1...
nilq/small-lua-stack
null
local uv, api = vim.loop, vim.api local stdin = uv.new_pipe(true) local stdout = uv.new_pipe(false) local stderr = uv.new_pipe(false) local check_same = function(tbl1, tbl2) if #tbl1 ~= #tbl2 then return end for k, v in ipairs(tbl1) do if v ~= tbl2[k] then return true end end return false end local goim...
nilq/small-lua-stack
null
local path = "games/common/match/match_wait_pin.png" local match_wait_pin_map = { ["icon_reward_1.png"] = { file=path, x=2,y=2, width=196,height=168, rotated=false }, ["icon_reward_2.png"] = { file=path, x=200,y=2, width=196,height=168, rotated=false }, ["icon_reward_3.png"] = { file=path, ...
nilq/small-lua-stack
null
-- Info.lua -- Declares the plugin metadata, commands, permissions etc. g_PluginInfo = { Name = "Aliases", Date = "2015-05-13", Description = [[ This is a plugin for {%a http://mc-server.org}MCServer{%/a} that allows players to define aliases for in-game commands and even chat messages. Server admins can...
nilq/small-lua-stack
null
local K, C = unpack(select(2, ...)) local Module = K:NewModule("Unitframes", "AceEvent-3.0", "AceTimer-3.0") local oUF = oUF or K.oUF assert(oUF, "KkthnxUI was unable to locate oUF.") local _G = _G local math_ceil = math.ceil local pairs = pairs local select = select local string_find = string.find local string_match...
nilq/small-lua-stack
null
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[4.0]glsl version --- ---@class OF_GLSL_VERSION --- ---[4.0]GLSL 1.0 --- ---@field GLSL_VERSION_1_0 --- ---[4.0]GLSL 3.0 --- ---@field GLSL_VERSION_3_0 --- ---[4.0]GLSL 3.1 --- ---@field GLSL_VERSION_3_1 --- ---[4.0]GLSL 3.2 --- ---...
nilq/small-lua-stack
null
-- local path="/usr/local/share/lua/5.1/kong/constants.lua" -- sed -i 's/http = "http"/amqp = "http",\n http = "http"/g' $CONST_LOCATE local constants = require("kong.constants") local function has_amqp_module() for _, v in pairs(constants.PROTOCOLS) do if v == "amqp" then return true ...
nilq/small-lua-stack
null
object_building_kashyyyk_eqp_static_kash_hunting_license = object_building_kashyyyk_shared_eqp_static_kash_hunting_license:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_eqp_static_kash_hunting_license, "object/building/kashyyyk/eqp_static_kash_hunting_license.iff")
nilq/small-lua-stack
null
return {'dhaka','dharaan'}
nilq/small-lua-stack
null
script = require 'gui.script' persistTable = require 'persist-table' function center(pos) return end function printplus(text) print(text) io.write(text..'\n') end function writeall(tbl) if not tbl then return end if type(tbl) == 'table' then for _,text in pairs(tbl) do io.write(text..'\n') ...
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local SYSOPENTIME_PB = require("SysOpenTime_pb") module('RoleSystem_pb') ROLESYSTEM = protobuf.Descriptor(); local ROLESYSTEM_SYSTEM_FIELD = protobuf.FieldDescriptor(); local ROLESYSTEM_FIRSTTIME_FIELD = protobuf.FieldDescriptor()...
nilq/small-lua-stack
null
local lu = require('luaunit') local loop = require('jls.lang.loopWithTimeout') local http = require('jls.net.http') local ws = require('jls.net.http.ws') local TEST_PORT = 3002 function Test_send_receive() local server = http.Server:new() local reply server:createContext('/ws/', ws.upgradeHandler, {...
nilq/small-lua-stack
null
AH_TAB_CONTROL_LOCALES.enUS = function() local L = {} L["CURRENTLY_HIDDEN"] = "Currently hidden tabs: %s" L["RESTORE"] = "Tab restored %s" L["HIDDEN"] = "Tab hidden %s" return L end
nilq/small-lua-stack
null
#!/usr/bin/env lua local writer = print -- This line changes default output from printing to the file we typically generate. local fn = "default_lua_globals.lua" if arg[1] then fn = arg[1] end if fn then local f = assert(io.open(fn, 'w')) writer = function(s) f:write(s, '\n') end end writer "--[[" writer "Ge...
nilq/small-lua-stack
null
return { LONG_LINE = '--------------------------------------------', BREAK_LINE = '\n', BREAK_LINES = '\n\n', EMPTY = '' }
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "cw_ammo_ent_base" ENT.PrintName = "Ammo kit" ENT.Author = "Spy" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "CW 2.0 Ammo" ENT.ResupplyMultiplier = 12 -- max amount of mags the player can take from the ammo entity before it considers him as 'full' ENT.AmmoCapacity = 10 -...
nilq/small-lua-stack
null
function createWindow(x, y) local group = uare.newGroup() local top = uare.new({ x = x, y = y, width = 250, height = 30, drag = { enabled = true }, color = {160/COLOR_SCALE, 160/COLOR_SCALE, 160/COLOR_SCALE}, hoverColor = {140/COLOR_SCALE, 140/COLOR_SCALE, 140/COLOR_...
nilq/small-lua-stack
null
local status_ok, dial_config = pcall(require, "dial.config") if not status_ok then return end local augend = require "dial.augend" dial_config.augends:register_group { default = { augend.integer.alias.decimal, augend.integer.alias.hex, augend.date.alias["%Y/%m/%d"], }, typescript = { augend.int...
nilq/small-lua-stack
null
local MageShield = {} function MageShield:onCollision(phase, fixa, fixb, arbiter) if fixb.class == "Enemy" then local ent = fixb.entity if phase == MOAIBox2DArbiter.BEGIN then elseif phase == MOAIBox2DArbiter.END then end end if fixb.class == "DynamicTrap" and phase == MOAIBox2DArbiter.BEGIN th...
nilq/small-lua-stack
null
ITEM.name = "Deployable Hopper Mine" ITEM.model = Model("models/props_combine/combine_mine01.mdl") ITEM.entityName = "combine_mine" ITEM.description = "A deactivated hopper mine ready to be switched on." ITEM.functions.Deploy = { OnRun = function(item) if item.entityName then local pos = item.enti...
nilq/small-lua-stack
null
-- require "ngxlogex" local tspec = arg[1] local modname, fname = string.match(tspec, "([^:]+):?([^:]+)") local m = require(modname) for k, func in pairs(m) do if not fname and k:match("test_") or fname and k:match(fname) then ngx.say("\n>>== runing ", k, "\n") ngx.flush() func() ngx.say("\n") ngx.flush() ...
nilq/small-lua-stack
null
--[[ This is a simple chat command that allows you to add your own vehicle to Automod's seat support. To use, spawn in airboat seats from the vehicles tab and place them where you want your Automod seats to be. Then, type in the chat command and coords for each seat will print out in chat. (Going by the order of wh...
nilq/small-lua-stack
null
local jl = Var "JudgmentLine"; return Def.ActorFrame { LoadFont("_fishfingers Bold") .. { Text=string.upper(JudgmentLineToLocalizedString(jl)), InitCommand=cmd(diffuse,JudgmentLineToColor(jl);shadowlength,1;maxwidth,180); }; };
nilq/small-lua-stack
null
local Platform = require('main.platforms.platform') local Shortcuts do local _class_0 local _parent_0 = Platform local _base_0 = { validate = function(self) end, parseShortcuts = function(self) if io.fileExists(self.outputPath) then io.writeFile(self.outputPath, '') end SKIN:Bang...
nilq/small-lua-stack
null
--黄金の邪教神 --Golden Idol --LUA by Kohana Sonogami function c100272005.initial_effect(c) --Change the Name local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100272005,0)) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_MZONE) e1:SetCo...
nilq/small-lua-stack
null
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Standard-Grade Supplement Packet" ITEM.model = Model("models/foodnhouseholdaaaaa/combirationb.mdl") ITEM.width = 1 ITEM.height = 1 ITEM.description = "This supplement packet contains some pills for necessar...
nilq/small-lua-stack
null
generic_unit_target = {} generic_unit_target.data = { spell = nil, caster = nil, target = nil, projectile = nil, } function generic_unit_target:Init( spell ) self.data.spell = spell, self.data.caster = spell:GetCaster(), self.data.target = spell:GetCursorTarget(), end function generic_unit_target:SetProject...
nilq/small-lua-stack
null
#!/usr/local/bin/lua local totable = require "lxp.totable" local tests = { { [[<abc a1="A1" a2="A2">inside tag `abc'</abc>]], { [0] = "abc", a1 = "A1", a2 = "A2", "inside tag `abc'", }, }, { [[<qwerty q1="q1" q2="q2"> <asdf>some text</asdf> </qwerty>]], { [0] = "qwerty", q1 = "q1", ...
nilq/small-lua-stack
null
local sButton = Var "Button" local sEffect = Var "Effect" local sPlayer = Var "Player" return Def.ActorFrame { Def.Model { --mine color InitCommand=function(self) self:rotationx(90):diffuse(color(PalladiumFocusColorTable[sButton])) end, Meshes=string.find(sButton, "Strum") and "...
nilq/small-lua-stack
null