content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local widgetType, widgetVersion = 'Slider', 1 local Wasabi = LibStub and LibStub('Wasabi', true) if(not Wasabi or (Wasabi:GetWidgetVersion(widgetType) or 0) >= widgetVersion) then return end local methods = {} function methods:SetRange(min, max) self:SetMinMaxValues(min, max) self.Min:SetText(min) self.Max:SetText...
nilq/small-lua-stack
null
-- ---------------------------------- -- -- Rolling Cubes vs Spinning Hexagons -- -- --------- by: Tasty Kiwi --------- -- -- ---------------------------------- -- -- Import helpers local angle_helpers = require("/dynamic/helpers/angle_helpers.lua") local player_helpers = require("/dynamic/helpers/player_helpers.lua")...
nilq/small-lua-stack
null
ITEM.name = "Cat Meat" ITEM.description = "Uncooked meat from a Cat." ITEM.longdesc = "The texture of the flesh is very smooth compared to other types of mutant meat. This type of meat is not very popular within the zone, as it is said to make you feel nauseous for a few hours while digesting it." ITEM.model = "models/...
nilq/small-lua-stack
null
local calc_util = require("scripts.calc.util") --- @param entity LuaEntity return function(rates, entity, emissions_per_second, prototypes) local entity_prototype = entity.prototype local fluidbox = entity.fluidbox for i, fluidbox_prototype in ipairs(entity_prototype.fluidbox_prototypes) do local fluid i...
nilq/small-lua-stack
null
ENT.Base = "base_nextbot" ENT.Author = "MetaMan" ENT.PrintName = "Ghost" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.AutomaticFrameAdvance = true ENT.PhysgunDisabled = true ENT.m_tblToolsAllowed = {} local boo = "vo/halloween_boo%i.mp3" -- 1 to 7 local haunted = "vo/halloween_haunted%i.mp3" -- 1 to 5 local...
nilq/small-lua-stack
null
#!/usr/bin/env lua Spore = require 'Spore' require 'Test.More' plan(6) error_like( [[Spore.new_from_lua(true)]], "bad argument #1 to new_from_lua %(table expected, got boolean%)" ) error_like( [[Spore.new_from_lua({}, true)]], "bad argument #2 to new_from_lua %(table expected, got boolean%)...
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2019-2021 Love2D Community <love2d.org> 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, ...
nilq/small-lua-stack
null
local Promise = require(script.Parent.Promise) -- constants local TYPE_NIL = "nil" local TYPE_STRING = "string" local TYPE_TABLE = "table" local TYPE_USERDATA = "userdata" local TYPE_FUNCTION = "function" local TYPE_INSTANCE = "Instance" local TS = {} -- runtime classes TS.Promise = Promise local Symbol do Symbol ...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Analyze the initial Hamiltonian. -------------------------------------------------------------------------------- Temperature = Temperature * EnergyUnits.Kelvin.value Sk = DotProduct(WaveVector, {Sx, Sy, Sz}) Lk = DotProduct(WaveVector...
nilq/small-lua-stack
null
local api = vim.api local Path = require("plenary.path") local M = {} -- Checks to see if an executable is present for single or list of executables -- Note that give a list, if any is not found, this will return false Also, this -- is stolen from the nvim/nvim-lspconfig utils. M.has_bins = function(...) for i = 1...
nilq/small-lua-stack
null
slot0 = class("ChallengeFleet", import(".ChapterFleet")) slot0.Ctor = function (slot0) slot0.id = 1 slot0[TeamType.Vanguard] = {} slot0[TeamType.Main] = {} slot0.ships = {} slot0.stgPicked = {} slot0.stgId = 0 slot0.mirrors = nil end slot0.fetchShipVO = function (slot0, slot1) if slot0.mirrors then return C...
nilq/small-lua-stack
null
------------------------------------------------------------------------------ -- IMPORTANT: DO NOT EDIT THIS FILE!!! -- ------------------------------------------------------------------------------ -- This file relies on other versions of itself being the same. -- -- I...
nilq/small-lua-stack
null
--[[ ####################################### ####################################### ###########Erstellt von Dawi########### ##########github.com/yourdawi########## ##############yourdawi.de############## ####################################### ####################################### ]] --functions.lua Beinhalten Funkt...
nilq/small-lua-stack
null
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\TechTreeConstants\post.lua -- - Dragon Script.Load("lua/CompMod/Utilities/Elixer/shared.lua") Elixer.UseVersion( 1.8 ) -- Load the file with our new tech names Script.Load("lua/CompMod/TechTreeConstants/NewT...
nilq/small-lua-stack
null
if not luasocket then luasocket = require('socket') end function sleep(ms) luasocket.select(nil, nil, ms / 1000) end return sleep
nilq/small-lua-stack
null
-- LUALOCALS < --------------------------------------------------------- local minetest, nodecore = minetest, nodecore -- LUALOCALS > --------------------------------------------------------- local modname = minetest.get_current_modname() local checkdirs = nodecore.dirs() local breathable = { airlike = t...
nilq/small-lua-stack
null
local version = { major = 0, minor = 0, patch = 0 } function love.conf(t) t.title = "TCG-Player v"..version.major..'.'..version.minor..'.'..version.patch t.author = "USPGameDev" t.url = "uspgamedev.org" t.identity = "tcg-player" t.version = "0.8.0" t.console = false t.release = false t.scree...
nilq/small-lua-stack
null
object_static_particle_pt_sparks_small_no_wind = object_static_particle_shared_pt_sparks_small_no_wind:new { } ObjectTemplates:addTemplate(object_static_particle_pt_sparks_small_no_wind, "object/static/particle/pt_sparks_small_no_wind.iff")
nilq/small-lua-stack
null
require('hw.i386.luaqemu.core') json = require('hw.i386.luaqemu.json') machine_cpu = 'qemu32' firmware_path = '../firmware/test.bin' memory_regions = { region_rom = { name = 'mem_rom', start = 0x08000000, size = 0x1000 }, region_ram = { name = 'mem_ram', start = 0x...
nilq/small-lua-stack
null
package.path = package.path .. ";../?.lua;?.lua;lib/?.lua" local Object = require( "lib.object" ) local Event = Object:extend{ className = "Event", eventType = nil, mouseDown = false, mouseX = 0, mouseY = 0, mouseButton = 0, keyEntered = 0, keyChar = 0, keyMod = false } return Event
nilq/small-lua-stack
null
print('testing tables, next, and for') local a = {} -- make sure table has lots of space in hash part for i=1,100 do a[i.."+"] = true end for i=1,100 do a[i.."+"] = nil end -- fill hash part with numeric indices testing size operator for i=1,100 do a[i] = true assert(#a == i) end -- test size operation on empty...
nilq/small-lua-stack
null
-- V12 engines -- Petrol ACF_DefineEngine( "4.6-V12", { name = "4.6L V12 Petrol", desc = "An elderly racecar engine; low on torque, but plenty of power", model = "models/engines/v12s.mdl", sound = "acf_base/engines/v12_petrolsmall.wav", category = "V12", fuel = "Petrol", enginetype = "GenericPetrol", weight ...
nilq/small-lua-stack
null
local K, C = unpack(select(2, ...)) if C["DataText"].System ~= true then return end local _G = _G local math_floor = math.floor local select = select local PlayerColorStr = _G.RAID_CLASS_COLORS[K.Class].colorStr local FPS_ABBR = "|c" .. PlayerColorStr .. _G.FPS_ABBR .. "|r" local MILLISECONDS_ABBR = "|c" .. PlayerC...
nilq/small-lua-stack
null
--[[ A library to make the manipulation of the action packet easier. The primary functionality provided here are iterators which allow for easy traversal of the sub-tables within the packet. Example: ======================================================================================= require 'actions' function ev...
nilq/small-lua-stack
null
ITEM.name = "Old Ceramic Plate" ITEM.description = "An old ceramic plate, could absorb some impacts against a body armor." ITEM.model = "models/lostsignalproject/items/outfit_parts/ballistic8.mdl" ITEM.category = "Attachments" ITEM.width = 1 ITEM.height = 1 ITEM.upgradeIcon = Material("materials/vgui/ui/stalker/weaponu...
nilq/small-lua-stack
null
--[[ Project: SA Memory (Available from https://blast.hk/) Developers: LUCHARE, FYP Special thanks: plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses. Copyright (c) 2018 BlastHack. ]] local shared = require 'SAMemory.shared' shared.require 'RenderWare' shared.req...
nilq/small-lua-stack
null
local t = Def.ActorFrame { InitCommand=function(self) state = 1; end }; --HAS THIS GUY EVER HEARD OF METRICS??? -- Chart info helpers local infy = 160 --Chart info Y axis position (both players, includes black quad alt) local infx = 0 --Chart info X DIFFERENCE FROM DISC --quad stuff local inff...
nilq/small-lua-stack
null
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --Permission is hereby granted, free of charge, to any person obtaining a copy --of this software and associated documentation files (the "Software"), to deal --in the Software without restriction, including without limitation the ...
nilq/small-lua-stack
null
surveytrigger = { Properties = { }, } function surveytrigger:OnActivate() -- For handling tick events. self.tickBusHandler = TickBus.Connect(self,self.entityId); self.activeSurveysList = {} self.currentSurvey = {} self.currentQuestionIndex = 0 self.displayTimer = 0.0 self.currentQuestionEntityI...
nilq/small-lua-stack
null
require "lunit" local testcase = lunit.TestCase("Test library loading doesn't affect globals") function testcase:test_no_global_clobbering () local globals = {} for key in pairs(_G) do globals[key] = true end -- Load all the modules for the different types of URIs, in case any one -- of those treads o...
nilq/small-lua-stack
null
-- -- Copyright (c) 2016, 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. -- -- The training...
nilq/small-lua-stack
null
local templates = require('custom.MWS-Templates.main') local sine = templates.mimics.sine local cosine = templates.mimics.cosine local decoratorConfig = { showMessages = false, localization = { EnableMessage = color.Green .. "Decorator enabled, activate again for options.", DisableMessage = col...
nilq/small-lua-stack
null
local energy_10kw = 166.666666666666 local energy_cooldown = 0.98 local current_cranks = {} script.on_event(defines.events.on_tick, function() local new_cranks = {} for _, crank in pairs(current_cranks) do if crank.valid then crank.power_production = crank.power_production * energy_cooldown - (1 - energy_cooldo...
nilq/small-lua-stack
null
----------------------------------------------------- PLUGIN.name = "Papers, Please" PLUGIN.author = "RobertLP" PLUGIN.desc = "Let's players give their papers" --Includes nut.util.include("cl_openpapers.lua", "client") if (SERVER) then hook.Add("PlayerSpawn", "papers_init_spawn", function(ply) local...
nilq/small-lua-stack
null
local kAddonName, addon = ... addon.guiutils = {} local L = LibStub('AceLocale-3.0'):GetLocale(kAddonName) _G.StaticPopupDialogs[kAddonName .. '_CONFIRM_DELETE'] = { text = L['Really delete this?'], button1 = _G.ACCEPT, button2 = _G.CANCEL, timeout = 0, showAlert = true, exclusive = true, hideOnEscape = true, }...
nilq/small-lua-stack
null
--==================================================================================== -- #Author: Jonathan D @ Gannon -- -- Développée pour la communauté n3mtv -- https://www.twitch.tv/n3mtv -- https://twitter.com/n3m_tv -- https://www.facebook.com/lan3mtv --============================================...
nilq/small-lua-stack
null
--ZFUNC-asciichunks-v1 local function asciichunks( str, length ) --> chunks length = length or 1 local chunks = {} local i = 1 local last = string.len( str ) while i <= last do local j = i + length - 1 table.insert( chunks, str:sub( i, j ) ) i = i + length end return chunks end ...
nilq/small-lua-stack
null
local function parse_diff(output) local header = {} local hunks = {} local is_header = true for i=1,#output do if is_header and output[i]:match('^@@.*@@') then is_header = false end if is_header then table.insert(header, output[i]) else table.insert(hunks, output[i]) end ...
nilq/small-lua-stack
null
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
nilq/small-lua-stack
null
local vim = vim or {} local api = vim.api local lsp = vim.lsp local uv = vim.loop local callbacks = require'lsp_ext/callbacks' local util = require'lsp_ext/util' local putil = require'lsp_ext/private/util' local M = { signature_help_debounce_timer = nil; diagnostics_debounce_timer = nil; diagnostics = vim.empty_...
nilq/small-lua-stack
null
function Shadikith_Charge(Unit, event, miscUnit, misc) Unit:FullCastSpellOnTarget(38461, Unit:GetRandomPlayer()) end function Shadikith_Sonic_Burst(Unit, event, miscUnit, misc) Unit:FullCastSpellOnTarget(39052, Unit:GetClosestPlayer()) end function Shadikith_Wing_Buffet(Unit, event, miscUnit, misc) Unit:FullCastSp...
nilq/small-lua-stack
null
local Maths = CLRPackage("OpenNefia.Core", "OpenNefia.Core.Maths") local Rendering = CLRPackage("OpenNefia.Core", "OpenNefia.Core.Rendering") local Drawing = CLRPackage("OpenNefia.Core", "OpenNefia.Core.UI.Wisp.Drawing") local Styling = CLRPackage("OpenNefia.Core", "OpenNefia.Core.UI.Wisp.Styling") local Color = Maths....
nilq/small-lua-stack
null
--[[ LICENSE: BSD Author: CandyMi[https://github.com/candymi] ]] local tcp = require "internal.TCP" local crypt = require "crypt" local hexencode = crypt.hexencode local sys = require "sys" local now = sys.now local new_tab = sys.new_tab local hostname = sys.hostname local null = null local type...
nilq/small-lua-stack
null
-- ZUI - Zethirium User Interface Library local zui = { manager = require( "lib.zethirium.zui.manager" ), -- container = require( "lib.zethirium.zui.container" ), -- panel = require( "lib.zethirium.zui.panel" ), -- text = require( "lib.zethirium.zui.text" ), -- button = require( "lib.zethirium.zui.button" ), -- text...
nilq/small-lua-stack
null
_ENV=namespace "game" using_namespace "luaClass" using_namespace "container" ---@class Time ---@field public day number ---@field public hour number class("Time"){ CLASS_DEBUG(false) } function Time:Time(day,hour) self.day=day self.hour=hour end local tiangan={ ["甲"]=1, ["乙"]=2, ["丙"]=3, ["丁"]=4, ["戊"]...
nilq/small-lua-stack
null
-- -- https://github.com/olback/computercraft/blob/master/utils/cat.lua -- local args = { ... } if args[1] == nil then error("No input file specified.") return end if fs.exists(args[1]) then if not fs.isDir(args[1]) then local f = fs.open(args[1], "r") print(f.readAll()) f.close() ...
nilq/small-lua-stack
null
--[[ Copyright 2019 Manticore Games, Inc. 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, merge, publish, distri...
nilq/small-lua-stack
null
_G._savedEnv = getfenv() module( "debugging", package.seeall ) local utils = require(GetScriptDirectory() .. "/logic") local gHeroVar = require( GetScriptDirectory().."/global_hero_data" ) local retreatMode = dofile( GetScriptDirectory().."/modes/retreat" ) local last_draw_time = -500 local bot_states = {} local team_s...
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2019 nasso <nassomails ~ at ~ gmail {dot} com> 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, ...
nilq/small-lua-stack
null
local _={} _[38]={x=27,id=2,y=9,arrangement=0,type=3} _[37]={x=23,id=1,y=7,arrangement=0,type=3} _[36]={x=27,id=0,y=6,arrangement=0,type=3} _[35]={y=7,x=15,id=0} _[34]={y=8,x=0,dest=9,id=3} _[33]={y=7,x=0,dest=9,id=2} _[32]={y=8,x=31,dest=10,id=1} _[31]={y=7,x=31,dest=10,id=0} _[30]={y=0,x=31,target=0,id=3} _[29]={y=0,...
nilq/small-lua-stack
null
-- load all otui files, order doesn't matter local configName = modules.game_bot.contentsPanel.config:getCurrentOption().text local configFiles = g_resources.listDirectoryFiles("/bot/" .. configName .."/vBot/", true, false) for i, file in ipairs(configFiles) do local ext = file:split(".") if ext[#ext]:lower() ==...
nilq/small-lua-stack
null
function __TS__NumberIsNaN(value) return value ~= value end
nilq/small-lua-stack
null
local skynet = require "local_skynet" local netpack = require "netpack" local socketdriver = require "socketdriver" local Utils = require "lualib.utils" local Debug = require "lualib.debug" local handlecon = import "lualib/connection" local socket -- listen socket local queue -- message queue local CMD = setmeta...
nilq/small-lua-stack
null
local utils = {} local memory = require "util.memory" function utils.dist(x1, y1, x2, y2) return math.sqrt(math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2)) end function utils.ingame() return memory.raw(0x020E) > 0 end function utils.each(table, func) for key,val in pairs(table) do func(key.." = "..tostring(val).."...
nilq/small-lua-stack
null
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/blues-bar/glass.mdl") self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_NONE ) self:SetSolid( SOLID_VPHYSICS ) self:SetUseType(SIMPLE_USE) self.isRunning ...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Depth of Field", desc = "f8 toggles on/off, ctrl+] or [ to change intensity, /dofQua...
nilq/small-lua-stack
null
-- require 'struct' local yrk = { scheme = "http", host = "localhost", port = nil, method = "GET", path = "/", headers = {}, body = nil, thread = nil, } struct = {} function struct.pack(format, ...) local stream = {} local vars = {...} local endianness = true for i = 1...
nilq/small-lua-stack
null
--[[ Copyright 2019-2020 Manticore Games, Inc. 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, merge, publi...
nilq/small-lua-stack
null
DefineClass.SpawnsAnomalyOnGameInit = { __parents = { "Object" }, properties = { { template = true, category = "Anomaly", name = T(1000037, "Name"), id = "anomaly_name", editor = "text", default = "", translate = true}, { template = true, category = "Anomaly", name = T(1000017, "Description"), id = "anomaly_desc...
nilq/small-lua-stack
null
-- Instance -- author: @roblox/0a_oq, @github/0aoq local Players = game:GetService("Players") return { name = script.Name, constructor = function(type: string, parent: Instance, next) local self = Instance.new(type, parent); next(self) -- object functions local properties = {} do function properties:Dest...
nilq/small-lua-stack
null
----------------------------------------------- -- cherrypopper.lua -- Represents a cherrypopper that a player can wield or pick up -- Created by NimbusBP1729 ----------------------------------------------- -- -- Creates a new cherrypopper object -- @return the cherrypopper object created return { hand_x = 9, hand...
nilq/small-lua-stack
null
-- L3M0N Designed local credits="L3M0N" -- DO NOT CHANGE THIS AT ALL -- Chat Command local chat_enabled = true local chat_commands = {"!thirdperson","/thirdperson"} if CLIENT then local enabled=false local speed = 5 local lrp_right = 40 local lrp_forward = 100 local cr = { ["CHudCrosshair"]=true, } hook.A...
nilq/small-lua-stack
null
object_intangible_beast_bm_uller = object_intangible_beast_shared_bm_uller:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_uller, "object/intangible/beast/bm_uller.iff")
nilq/small-lua-stack
null
require 'p4' p4 = P4.P4() p4:connect() clientspec = p4:fetch_client() clientspec.Description = "Build client 2" p4:save_client( clientspec ) p4:disconnect()
nilq/small-lua-stack
null
local string = require"luv.string" local table = require"luv.table" local pairs, io, require, os, type, unpack, tostring = pairs, io, require, os, type, unpack, tostring local exceptions = require"luv.exceptions" local Object, Exception, try = require"luv.oop".Object, exceptions.Exception, exceptions.try module(...) ...
nilq/small-lua-stack
null
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Library -- -- See LICENSE.md in the project directory for license information. -- Core functions require("prototypes.functions.functions") require("prototypes.functions.tints") require("prototypes.functions.entity-rescaling") require("prototypes.functions.icon...
nilq/small-lua-stack
null
return function ( material ) function _material_inputs_radio (x, y, ripple, selected, inactive, hover, focused) local _radius = material.inputs.getPixelSize() / 2 -- Background colors local _unselectedBackgroundColor = material.theme.getActiveOnSurface() local _selectedBackgroundColor = m...
nilq/small-lua-stack
null
data:define_type("portrait") data:add_multi( "core.portrait", { { id = "man1", source = { x = 0, y = 0, width = 48, height = 72, } }, { id = "man2", source = { x = 48, y = 0, ...
nilq/small-lua-stack
null
local ttl = function (keys, min, max) local s = 0 for i = 1, table.getn(keys), 1 do s = s + redis.call("ZREMRANGEBYSCORE", keys[i], min, max) end return s end return ttl(redis.call("KEYS", KEYS[1]), ARGV[1], ARGV[2])
nilq/small-lua-stack
null
-- This table is used by the client to show items in the equipment menu, and by -- the server to check if a certain role is allowed to buy a certain item. -- If you have custom items you want to add, consider using a separate lua -- script that uses table.insert to add an entry to this table. This method -- m...
nilq/small-lua-stack
null
return {'kiyu'}
nilq/small-lua-stack
null
ModifyEvent(-2, -2, -2, -2, -1, -1, -1, 2468, 2468, 2468, -2, -2, -2); AddItem(140, 1); AddItem(102, 5); do return end;
nilq/small-lua-stack
null
function OnPlayerDied() Events.Broadcast("UIUpdateSected",1) Game.GetLocalPlayer().clientUserData.CurrentlySelected = 1 end Events.Connect("LivingStateChange",function(state) OnPlayerDied() end)
nilq/small-lua-stack
null
local PlayTestSequence = { Properties = { SequenceEntity = {default = EntityId()}, }, } function PlayTestSequence:OnActivate() -- If no sequence entity assigned, use our entity if (not self.Properties.SequenceEntity:IsValid()) then self.Properties.SequenceEntity = self.entityId; ...
nilq/small-lua-stack
null
-- open terminal on ctrl+n vim.api.nvim_exec( [[ function! OpenTerminal() split term://bash resize 10 endfunction ]], true) -- clear all registers vim.api.nvim_exec( [[ fun! EmptyRegisters() let regs=split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-"', '\zs') for r in regs cal...
nilq/small-lua-stack
null
#!/usr/bin/env lua -- MIT License -- -- Copyright (c) 2021 Ferhat Geçdoğan All Rights Reserved. -- Distributed under the terms of the MIT License. -- if (#arg < 1) then print('Colocalua - Lua implementation of ColoCat\n'..arg[0]..' {file}') os.exit(1); end local open = io.open local BOLD_RED_COLOR ...
nilq/small-lua-stack
null
-- Copyright (C) Yichun Zhang (agentzh) local ffi = require 'ffi' local ffi_string = ffi.string local C = ffi.C local ngx = ngx local type = type local tostring = tostring local base = require "resty.core.base" local get_string_buf = base.get_string_buf ffi.cdef[[ size_t ngx_http_lua_ffi_uri_escaped_length(cons...
nilq/small-lua-stack
null
----------------------------------------- -- ID: 11290 -- Item: tidal talisman -- ----------------------------------------- function onItemCheck(target) local result = 56 local zone = target:getZoneID() if (zone == 238 or zone == 239 or zone == 240 or zone == 241 or zone == 242 or -- Windurst zone ...
nilq/small-lua-stack
null
math.randomseed(os.time()) local rand = math.random local tasks = {} local function ghost(t, ...) local g = {} local exc = {...} local check = {} for i = 1, #exc do check[exc[i]] = true end for i = 1, #t do if not check[i] then g[#g + 1] = t[i] end end return g end local printf do local format = s...
nilq/small-lua-stack
null
local minos = {} -- constants for directions minos.up_ = 0 minos.dwn = 1 minos.rgt = 2 minos.lft = 3 function minos:create_mino(_x,_y,_type,_image) mino={} mino.x=_x mino.y=_y mino.type=_type mino.image=_image end function mino:update(map) --update the mino in the map index ...
nilq/small-lua-stack
null
bc.util = bc.util or {} -- Can a player run a command on a person (via ULX) function bc.util.canRunULX( cmd, target, ply ) if not ULib then return false end local ply = ply or LocalPlayer() if ply:SteamID() == "STEAM_0:0:0" or ply:SteamID() == "STEAM_0:0:00000000" then return true end local canRun, t...
nilq/small-lua-stack
null
----------------------------------------------------------------------------- -- Tab completion for the Cloud Foundry CLI (cf) on Windows -- for use with clink (https://github.com/mridgers/clink) -- -- Copyright (c) 2017 Dies Koper -- -- License: MIT, see https://opensource.org/licenses/MIT ----------------------------...
nilq/small-lua-stack
null
local utils = require 'utils' local Dialog = require 'dialog' local app = require 'app' return { width = 32, height = 48, run_speed = 50, run_offsets = {{x=5, y=0}, {x=-1000, y=0}, {x=-990, y=0}}, animations = { default = { 'loop',{'1,1','11,1'},.5, }, walking = { 'loop',{'1,1','2,1...
nilq/small-lua-stack
null
--ロード・ウォリアー function c2322421.initial_effect(c) aux.AddMaterialCodeList(c,71971554) --synchro summon aux.AddSynchroProcedure(c,c2322421.tfilter,aux.NonTuner(nil),2) c:EnableReviveLimit() --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(2322421,0)) e1:SetCategory(CATEGORY_SPECIA...
nilq/small-lua-stack
null
local config = { cmd = { "DiffviewOpen", "DiffviewFocusFiles", "DiffviewToggleFiles", "DiffviewClose", "DiffviewRefresh", }, config = function() require "plug-config.diffview.settings" end, } return config
nilq/small-lua-stack
null
local Promise = require(script.Parent.Promise) -- constants local TYPE_STRING = "string" local TS = {} -- runtime classes TS.Promise = Promise local Symbol do Symbol = {} Symbol.__index = Symbol setmetatable(Symbol, { __call = function(_, description) local self = setmetatable({}, Symbol) self.descriptio...
nilq/small-lua-stack
null
local utf8 = require "utf8" local Timer = require "hump.timer" local class = require "class" local Word = class() --- Create a new Word instance. -- @param font the font used to display the word -- @param text the rendered text function Word:initialize(font, text) self.font = font self.chars = {utf8.codepoint(tex...
nilq/small-lua-stack
null
pcl = require 'pcl' v = pcl.CloudViewer() s = pcl.OpenNI2Stream() s:start() while true do local c = s:read() v:showCloud(c) collectgarbage() end
nilq/small-lua-stack
null
local client = getLocalPlayer() local trucks = {[515]=true, [514]=true, [403]=true} local assignmentSet = false function enterTruck(thePlayer, Xdel, Ydel, Zdel) if (assignmentSet) then return end if (Xdel and Ydel and Zdel) then truckerMarker = createMarker(Xdel, Ydel, Zdel, "cylinder", 5, 200, 200, 100, 15...
nilq/small-lua-stack
null
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] CW_ENGLISH = Clockwork.lang:GetTable("English"); CW_ENGLISH["ObserverReset"] = "O...
nilq/small-lua-stack
null
-- This file is subject to copyright - contact swampservers@gmail.com for more information. local Entity = FindMetaTable("Entity")
nilq/small-lua-stack
null
modifier_creature_techies_land_mine = class({}) -------------------------------------------------------------------------------- function modifier_creature_techies_land_mine:OnCreated( kv ) if IsServer() then self.radius = self:GetAbility():GetSpecialValueFor( "radius" ) self.activation_delay = self:GetAbility()...
nilq/small-lua-stack
null
defaultProfile = { ["sound_alert"] = false, ["show_player_messages"] = true, ["show_player_mentions"] = true, ["channels"] = {"world","LookingForGroup"}, ["banned"] = {}, ["dungeons"] = {}, ["dungeons_roles"] = {}, ["dungeons_types"] = {}, ["raids"] = {}, ["raids_roles"] = {}, ["other"] = {}, } exampleProfi...
nilq/small-lua-stack
null
DefineClass.FuelFactory = { __parents = { "ResourceProducer", "ElectricityConsumer", "LifeSupportConsumer", "OutsideBuildingWithShifts" }, properties = { --{ template = true, category = "Spaceport", name = T{"Food per colonist"}, id = "food_per_colonist", editor = "number", default = 4*const.ResourceScale, min = ...
nilq/small-lua-stack
null
aliveai.registered_rndcheck_nodes={} aliveai.register_rndcheck_on_generated=function(def) if not def then return end def.miny=def.miny or -500 def.maxy=def.maxy or 500 def.chance=def.chance or 1 def.mindistance=def.mindistance or 0 if def.node and type(def.node)~="string" then print("failed to add to ...
nilq/small-lua-stack
null
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' name 'CO-extended' author 'COKLUK - https://github.com/cokluk' version 'v1.1.0' client_scripts { '@es_extended/locale.lua', 'main.lua', } server_scripts { '@es_extended/locale.lua', '@mysql-async/lib/MySQL.lua', 'server.lua', } exports { 'C...
nilq/small-lua-stack
null
require('packer').use { 'nvim-ts-context-commentstring', after = 'nvim-treesitter' }
nilq/small-lua-stack
null
yatm_packs:require("items/ammo_pack_pouch.lua") yatm_packs:require("items/health_pack_pouch.lua") yatm_packs:require("items/mana_pack_pouch.lua")
nilq/small-lua-stack
null
--[[----------------------------------------------------------------------------------------------------------------------- Enable speedmode for a player -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "Speed"...
nilq/small-lua-stack
null
-- leader 键设置为空格 vim.g.mapleader = " " -- 默认的键位设置函数太长了,所以这里将它们重新引用一下 vim.keybinds = { gmap = vim.api.nvim_set_keymap, bmap = vim.api.nvim_buf_set_keymap, dgmap = vim.api.nvim_del_keymap, dbmap = vim.api.nvim_buf_del_keymap, opts = {nor...
nilq/small-lua-stack
null