content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local RoundRobin = {} RoundRobin.__index = RoundRobin function RoundRobin.new(t) local self = setmetatable({}, RoundRobin) self.items = {} if t then for _, value in pairs(t) do table.insert(self.items, value) end end return self end function RoundRobin:get_position(value) local position = ...
nilq/small-lua-stack
null
-- -- Patch robo chests to have 4 charging points instead of 1 -- for _,name in pairs({ "bob-robochest", "bob-robochest-2", "bob-robochest-3", "bob-robochest-4" }) do local obj = data.raw["roboport"][name] if obj ~= nil then --log("%%% tweaking "..name) obj.charging_offsets = { {-0.5, -0.5}, {0.5, -0.5}, {-...
nilq/small-lua-stack
null
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmFichaACN() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local s...
nilq/small-lua-stack
null
local args = ... local g = args[1] local map_data = args[2][1] -- ----------------------------------- -- variables you might want to configure to your liking -- starting values (these can be manipulated later as needed) local num_particles = 200 -- particle size in pixels local min_size = 12 local max_size...
nilq/small-lua-stack
null
-- https://github.com/phaazon/hop.nvim local vimp = require("vimp") require("hop").setup({ keys = "etovxqpdygfblzhckisuran", term_seq_bias = 0.5 }) vimp.nnoremap("$", "<cmd>lua require('hop').hint_words()<CR>")
nilq/small-lua-stack
null
constants = { }
nilq/small-lua-stack
null
-- Read, parse and dump a torrent into a string; -- Ensure that the string is identical to what was originally read. -- If not, either the file was broken (e.g. unsorted keys) or there is a bug. local b = require 'bencode' local numfail, total = 0,0 for _,v in ipairs(arg) do local fd, t1, t2 fd = io.open(v) t1 =...
nilq/small-lua-stack
null
local floatBallDiskItem = require(ViewPath .. "hall/floatBall/floatBallDiskItem"); local FloatBallDiskItem = class(CommonGameLayer,false); FloatBallDiskItem.Delegate = { onFloatBallDiskItemClick = "onFloatBallDiskItemClick"; } FloatBallDiskItem.ctor = function(self, data,p_privateScoller) super(s...
nilq/small-lua-stack
null
-- armfurie_fire_explosion return { ["armfurie_fire_explosion"] = { usedefaultexplosions = false, groundflash = { circlealpha = 0.25, circlegrowth = 0.001, flashalpha = 0.82, flashsize = 16, ttl = 16, color = { [1]...
nilq/small-lua-stack
null
local shell = require("shell") local transfer = require("tools/transfer") local args, options = shell.parse(...) options.h = options.h or options.help if #args < 2 or options.h then io.write([[Usage: cp [OPTIONS] <from...> <to> -i: prompt before overwrite (overrides -n option). -n: do not overwrite an existing fil...
nilq/small-lua-stack
null
local Util = {} function Util.clipMask(data, mask) assert(type(data) == "table", "Attempt to mask on a non-table!") local clippedData = {} for k, v in pairs(data) do if mask[k] == true then clippedData[k] = v elseif type(mask[k]) == "table" then clippedData[k] = Util.clipMask(data[k], mask[k]) end en...
nilq/small-lua-stack
null
function rev(t) local reversedTable = {} local itemCount = #t for k, v in ipairs(t) do reversedTable[itemCount + 1 - k] = v end return reversedTable end Buffer = {} Buffer.__index = Buffer function Buffer:new(array) local buff = {} if array == nil then buff.data = {} else ...
nilq/small-lua-stack
null
------------------------------------------------------------------------ --[[ Sequential ]]-- -- Model, Adapter, Composite -- Replaces nn.Sequential such that it can be used for both -- optimzation and evaluation. ------------------------------------------------------------------------ local Sequential, parent = torch...
nilq/small-lua-stack
null
-- oUF_Orbs: core/init -- zork, 2018 ----------------------------- -- Variables ----------------------------- local A, L = ... L.addonName = A L.dragFrames = {} L.addonColor = "00FF3300" L.addonShortcut = "ouf_orbs" --get the config L.C = oUF_OrbsConfig --mediapath L.C.mediapath = "interface\\ad...
nilq/small-lua-stack
null
pedestal = class("pedestal") function pedestal:init(x, y, r) self.cox = x self.coy = y self.x = x-12/16 self.y = y-1 self.progress = 0 self.pickedup = false self.blue = false self.orange = false self.r = {unpack(r)} if #r >= 4 then self.blue = r[3] == "true" self.orange = r[4] == "true" end end fun...
nilq/small-lua-stack
null
--[[ Tests for correctness of data writing & reading. ]] require 'hdf5' local dir = require 'pl.dir' local path = require 'pl.path' local stringx = require 'pl.stringx' local totem = require 'totem' local tester = totem.Tester() local myTests = {} local testUtils = hdf5._testUtils local function writeAndReread(data...
nilq/small-lua-stack
null
-- THIS SCRIPT SOMEHOW DISABLES FIRST-PERSON Citizen.CreateThread(function () local context = GetHashKey("MINI_PROSTITUTE_LOW_RESTRICTED_PASSENGER") while true do ped = PlayerPedId() vehicle = GetVehiclePedIsIn(ped, false) -- Ped is in vehicle if DoesEntityExist(vehicle) then local engine = GetIsVehicl...
nilq/small-lua-stack
null
require("lspconfig").terraformls.setup { cmd = { DATA_PATH .. "/lsp_servers/terraform/terraform-ls", "serve" }, on_attach = require("lsp").common_on_attach, filetypes = { "tf", "terraform", "hcl" }, }
nilq/small-lua-stack
null
return {[1]={stats={[1]="attack_speed_+%"},name="attack_speed_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Attack Speed"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Attack Speed",limit={[1]={[1]="#",[2]=-1}}}}}},[2]={stats={[1]=...
nilq/small-lua-stack
null
local clang = require "clang" local ffi = require "ffi" local lib = ffi.C local header = [[ typedef int LLVMBool; typedef struct LLVMOpaqueContext *LLVMContextRef; typedef struct LLVMOpaqueModule *LLVMModuleRef; typedef struct LLVMOpaqueType *LLVMTypeRef; typedef struct LLVMOpaqueTypeHandle *LLVMTypeHandleRef; typedef...
nilq/small-lua-stack
null
local _class={} function class(super) local class_type = { ctor = false, super = super } -- 'ctor' field must be here local vtbl = {} _class[class_type] = vtbl -- class_type is one proxy indeed. (return class type, but operate vtbl) setmetatable(class_type, { __newindex= function(t,k,v) vtbl[k] = v end...
nilq/small-lua-stack
null
--############################################### -- RSERVE - Start in its own terminal on debug mode -- default port 6311 --############################################### -- R -- install.packages("Rserve") -- library(Rserve) -- Rserve(debug=T) --############################################### -- TEST STARTS HERE --##...
nilq/small-lua-stack
null
local DecodeStream = require("restructure.DecodeStream") local NumberT = {} NumberT.__index = NumberT function NumberT.new(type, endian) endian = endian or "BE" local nt = {} setmetatable(nt, NumberT) nt.type = type nt.endian = endian or "BE" nt.fn = type if string.sub(type, #type) ~= '8' then nt.fn =...
nilq/small-lua-stack
null
local mod = yatm_security local fspec = assert(foundation.com.formspec.api) local Rect = assert(foundation.com.Rect) function mod.render_button_bitmap(x, y, cols, rows, data, prefix, w, h) local texture_name local noclip = true local drawborder = false local byte local b local body = "" cols = cols or 8...
nilq/small-lua-stack
null
local vim,api = vim,vim.api local M = {} local wrap = require('lspsaga.wrap') -- 1 thin -- 2 radio -- 3 crude local border_style = { {top_left = "┌",top_mid = "─",top_right = "┐",mid = "│",bottom_left = "└",bottom_right= "┘" }; {top_left = "╭",top_mid = "─",top_right = "╮",mid = "│",bottom_left = "╰",bottom_right=...
nilq/small-lua-stack
null
return {'pampus','pamflet','pamfletschrijver','pamflettisme','pamflettist','pamflettistisch','pampa','pampagras','pamper','pamperen','pamflettenoorlog','pam','pamel','pamela','pamfletje','pamfletjes','pamfletschrijvers','pamfletten','pamflettisten','pampas','pamflettistische','pamperde','pampers','pams','pamelas'}
nilq/small-lua-stack
null
solution "potato" configurations { "Debug", "Release" } project "potato" kind "ConsoleApp" language "C++" includedirs { "libs/glm" } links{ "glfw3", "GL" } --links{ "glfw3", "GL" } files { "./src/**.hpp", "./src/**.cpp" } --defines { "ISPC_USE_OMP" } configuration ...
nilq/small-lua-stack
null
Minimap = {} -- private variables local minimapWidget local minimapButton local minimapWindow local DEFAULT_ZOOM = 45 minimapFirstLoad = true -- private functions function onMinimapMouseRelease(self, mousePosition, mouseButton) local tile = self:getTile(mousePosition) if tile and mouseButton == MouseLeftButton an...
nilq/small-lua-stack
null
local E, C, L = select(2, ...):unpack() if not C.map.worldmap.enable then return end ---------------------------------------------------------------------------------------- -- WorldMapFrame Styles ---------------------------------------------------------------------------------------- local CreateFrame = CreateFram...
nilq/small-lua-stack
null
---@class CS.UnityEngine.Rect : CS.System.ValueType ---@field public zero CS.UnityEngine.Rect ---@field public x number ---@field public y number ---@field public position CS.UnityEngine.Vector2 ---@field public center CS.UnityEngine.Vector2 ---@field public min CS.UnityEngine.Vector2 ---@field public max CS.UnityEngin...
nilq/small-lua-stack
null
local log = require("null-ls.logger") local s = require("null-ls.state") local u = require("null-ls.utils") local function make_builtin(opts) local method, filetypes, disabled_filetypes, factory, condition, generator_opts, generator = opts.method, opts.filetypes, opts.disabled_filetypes, ...
nilq/small-lua-stack
null
-- feeding-timers.lua -- original author: tejón -- rewritten by expwnent -- see repeat.lua for how to run this every so often automatically --[[=begin fix/feeding-timers ================== Reset the GiveWater and GiveFood timers of all units as appropriate. =end]] local args = {...} if args[1] ~= nil then...
nilq/small-lua-stack
null
return { attack_spike = { [1] = "target", [26] = "damage", [116] = "recovery", [35] = "spike", [45] = "spike", [55] = "spike", [65] = "spike", [75] = "spike", }, attack_stab = { [2] = "target", [14] = "damage", [20] = "recovery", [32] = "ready", }, attack_sweep = { [29] ...
nilq/small-lua-stack
null
--========================================================================= -- -- Copyright Insight Software Consortium -- -- 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 -- -- ...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0041-appicon-resumption.md -- User story:TBD -- Use case:TBD -- -- Requirement summary: -- TBD -- -- Description: -- In case: -- 1) SDL,...
nilq/small-lua-stack
null
return {'het','hetaere','heteluchtballon','heteluchtkanon','heteluchtmotor','heteluchtoven','heteluchtverwarming','heten','heterdaad','heterdaadje','hetero','heterodox','heterodoxie','heterofiel','heterofilie','heterogeen','heterogeniteit','heteromorf','heteroniem','heteronomie','heteronoom','heteroseksualiteit','heter...
nilq/small-lua-stack
null
-- ========== Globals ========================================================== local log = hs.logger.new("init", "info") -- ========== Utilities ======================================================== -- Executes a command with the user profile (/etc/profile and ~/.profile) so -- that PATH and other environment v...
nilq/small-lua-stack
null
local constants = require(script.Parent.Parent.Parent.Parent.constants) local hook = require(script.Parent.Parent.Parent.Parent.hook) local Icon = require(script.Parent.Parent.Parent.Icon) local Llama = require(script.Parent.Parent.Parent.Parent.Packages.Llama) local Roact = require(script.Parent.Parent.Parent.Parent.P...
nilq/small-lua-stack
null
TUTORIALS['en'][#TUTORIALS['en'] + 1] = { name = "Catching Pokemon", contents = { {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/backpack_empty_poke_ball.png"}, {type = CONTENT_TYPES.TEXT, value = "One of the most fun activities in the Pokemon world is the ability to catch a Pokemon that...
nilq/small-lua-stack
null
require 'qt' require 'qtcore' if qt and qt.qApp and qt.qApp:runsWithoutGraphics() then print("qlua: not loading module qtgui (running with -nographics)") return end qt.require 'libqtgui'
nilq/small-lua-stack
null
function onSay(cid, words, param, channel) local tmp = getWorldUpTime() local hours = math.ceil(tmp / 3600) - 1 local minutes = math.ceil((tmp - (3600 * hours)) / 60) if(minutes == 60) then minutes = 0 hours = hours + 1 end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Uptime: " .. hours .. " h...
nilq/small-lua-stack
null
-- if you don't know how to change it, don't edit this please RLS.Formula = function(level) return 1000*(1.25^level) end RLS.EnableHUD = true RLS.HUDHeight = 50 RLS.SetLevelCommand = "!setlevel" RLS.AddLevelCommand = "!addlevel" RLS.SetExpCommand = "!setexp" RLS.AddExpCommand = "!addexp" RLS.CommandsAccess = { --...
nilq/small-lua-stack
null
local bit = require("bit") local band = bit.band local rshift = bit.rshift local lshift = bit.lshift local i = 1 local A, B, C, D local num = {} for d in string.gmatch(arg[1], "%x%x") do d = tonumber("0x" .. d) num[#num + 1] = d end local sig = band(3, num[1]) A = sig B = rshift(num[1], 2) for i = 2, 4 do ...
nilq/small-lua-stack
null
--you can make your own custom colors with custom names just change the values of "colors" to Either Color.Premade Or Color(Red,Green,Blue) --change the corresponding colors names to you chosen name Example:"barf_green" (Dont put spaces in you color names!Use underscores instead) --setting up the color values for use...
nilq/small-lua-stack
null
local ibh = require"util.indexedbheap"; local function verify_heap_property(priorities) for k in ipairs(priorities) do local parent = priorities[k]; local childA = priorities[2*k]; local childB = priorities[2*k+1]; -- print("-", parent, childA, childB) assert(childA == nil or childA > parent, "heap property...
nilq/small-lua-stack
null
---@meta ---@diagnostic disable ---@class EventDataPlayerSelectedArea : EventData ---@field item string ---@field player_index uint ---@field entities LuaEntity[] ---@field tiles LuaTile[] ---@field surface LuaSurface ---@class EventDataPlayerCreated : EventData ---@field player_index uint ---@class EventDataGuiChec...
nilq/small-lua-stack
null
print("Bee Swarm Simulator Gui Created by LuckyMMB @ V3rmillion.net") print("Discord https://discord.gg/GKzJnUC") print("V2.0a 08th Oct 2018") print("\nEnabling the Avoid Vicious Bee button when doing an Auto Farm will tp you to a safe\nfield if a vicious bee is detected nearby while farming. When it leaves the field\n...
nilq/small-lua-stack
null
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- -- https://github.com/turbulenz/NvTriStrip local params = { ... } local NVTRISTRIP_ROOT = params[1] local NVTRISTRIP_FILES = { NVTRISTRIP_ROOT .. "NvTriStrip/src/NvTriStrip.cpp", NVTRISTRIP_R...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.PrintName = "Subway Train Base" ENT.Author = "" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" ENT.Category = "Metrostroi" ENT.Spawnable = true ENT.AdminSpawnable = false ------------------------------------------------...
nilq/small-lua-stack
null
local BuildPSD = require(game.ReplicatedStorage:WaitForChild("BuildPSD")) BuildPSD(script.JSON.Value)
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2019 Mitchell Davis <coding.jackalope@gmail.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 us...
nilq/small-lua-stack
null
local this = inherit.NewSubOf() this.Name = "FloorCylinder" this.Radius = 512 this.InnerBound = 64 this.HeightOffset = 256 //if CLIENT then function this:Draw(duration) for yaw = 0, 360, 45 do debugoverlay.Axis( self.Pos, Angle(0, yaw, 0), self.Radius, duration or 0.017, false ) debugoverlay.Axis( self.Pos...
nilq/small-lua-stack
null
local control4 = scene:getObjects("control4_ph")[1]:findPlaceholderComponent(); local control5 = scene:getObjects("control5_ph")[1]:findPlaceholderComponent(); local uselessPanel = false; local keyl = scene:getObjects("keyl")[1]; local keylHack1 = false; -- main makeDoor("door15", false); makeDoorTrigger("door15_cp",...
nilq/small-lua-stack
null
local service = require 'service' local workspace = require 'workspace' local fs = require 'bee.filesystem' local core = require 'core' local uric = require 'uri' rawset(_G, 'TEST', true) local EXISTS = {} local function eq(a, b) if a == EXISTS and b ~= nil then return true end local tp1, tp2 = t...
nilq/small-lua-stack
null
-- Configuration for Neovim's native LSP functions. -- Must source this file after the `nvim-lspconfig` plugin loads. local fs = require("tjdot.fs") local lspconfig = require("lspconfig") local util = require("lspconfig.util") -- nvim-cmp completion capabilities for Neovim's LSP. local capabilities = require("cmp_nvi...
nilq/small-lua-stack
null
local MIXTURE = {} MIXTURE.ID = 50; MIXTURE.Results = "weapon_smoke_grenade"; MIXTURE.Ingredients = {'weapon_molotov', 'item_chunk_metal'}; MIXTURE.Requires = { {GENE_INTELLIGENCE, 1}, {GENE_DEXTERITY, 2}, {SKILL_CRAFTINESS, 2}, }; MIXTURE.Free = true; MIXTURE.RequiresHeatSource = fa...
nilq/small-lua-stack
null
local BulletType = require("app.map.BulletType") local PlayerProperties = {} local defines = {} local player = { maxHp = 1500, -- 最大 HP maxArmor = 40, -- 最大装甲 speed = 200, -- 速度 maxMagic = 200, -- 最大 MP minDamage = 420, -- 火炮的最小伤害 maxDa...
nilq/small-lua-stack
null
local user = {} local val = require "valua" local access = require "sailor.access" -- Attributes and their validation rules user.attributes = { --{<attribute> = < "safe" or validation function, requires valua >} {id = "safe"}, {username = val:new().not_empty() }, {password = val:new().not_empty().len(6,10) } } us...
nilq/small-lua-stack
null
--[[ @author Ilias-Timon Poulakis (FeedTheCat) @license MIT @version 1.0.0 @about A set of scripts for quick razor editing using arrow keys ]] reaper.Undo_BeginBlock() reaper.PreventUIRefresh(1) -- Set edit cursor to razor edit start pos local has_razor_edit = false local GetSetTrackInfo = reaper.GetSetMediaTr...
nilq/small-lua-stack
null
local config = { double_buffer = true, update_interval = 1, alignment = 'bottom_right', gap_x = 00-1920 --[[100 + 320]], gap_y = 00 --[[100 + 200]], own_window = true, own_window_title = 'conky', own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', own_window_argb_visual = true, own_window_t...
nilq/small-lua-stack
null
-- require("project_nvim").setup { -- -- your configuration comes here -- -- or leave it empty to use the default settings -- -- refer to the configuration section below -- } -- require('telescope').load_extension('projects') require'telescope'.load_extension('project')
nilq/small-lua-stack
null
azura_shadowform = class({}) LinkLuaModifier( "modifier_azura_shadowform", "custom_abilities/azura_shadowform/modifier_azura_shadowform", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- Ability Start function azura_shadowform:OnSpellStart() -- get referen...
nilq/small-lua-stack
null
class("SubmitWBAwardCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot5 = nowWorld.GetBossProxy(slot4) pg.ConnectionMgr.GetInstance():Send(34511, { boss_id = slot1:getBody().bossId }, 34512, function (slot0) if slot0.result == 0 then slot0:RemoveSelfBoss() slot0:ClearRank(slot1) slot0.C...
nilq/small-lua-stack
null
local skynet = require "skynet" local debugPort = tonumber(skynet.getenv("debugPort")) skynet.start( function() print("------------------------------------") skynet.newservice("debug_console", debugPort) print(string.format("[DebugConsole] Port : %s", debugPort)) local centerSvc ...
nilq/small-lua-stack
null
--[[ Netherstorm -- Disembodied Exarch.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- Black...
nilq/small-lua-stack
null
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") -- Local Vars ----------------------------------- local ACF = ACF local Weapons = ACF.Classes.Weapons local AmmoTypes = ACF.Classes.AmmoTypes local TimerCreate = timer.Create local HookRun = hook.Run local EMPTY = { Ty...
nilq/small-lua-stack
null
object_mobile_dressed_dark_jedi_elder_male_rodian_03 = object_mobile_shared_dressed_dark_jedi_elder_male_rodian_03:new { } ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_elder_male_rodian_03, "object/mobile/dressed_dark_jedi_elder_male_rodian_03.iff")
nilq/small-lua-stack
null
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local LayeredClothingEnabled = require(Modules.Config.LayeredClothingEnabled) local AvatarExperienceConstants = require(Modules.AvatarExperience.Common.Constants) local HumanoidDescriptionIdToName = { ["2"] = "GraphicTShirt"...
nilq/small-lua-stack
null
ESX = nil local PlayerData = {} local PlayerLoaded = false local blips = {} Citizen.CreateThread(function() TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.TriggerServerCallback('art_odun:server:getConfig', function(sConfig) Jobs = sConfig end) while...
nilq/small-lua-stack
null
local InventoryContext = require("api.gui.menu.InventoryContext") local InventoryWrapper = require("api.gui.menu.InventoryWrapper") local InstancedMap = require("api.InstancedMap") local ty_quest = types.table -- TODO data:add_type { name = "quest", fields = { { name = "elona_id", indexe...
nilq/small-lua-stack
null
-- Boulder "maze" with wide corridors function t_or_f() return percent(50) and true or false; end des.level_flags("mazelevel", "noflip"); des.level_init({ style = "maze", corrwid = 3 + nh.rn2(3), wallthick = 1, deadends=t_or_f() }); des.region(selection.area(00,00,75,18), "lit"); des.non_diggable(); function replac...
nilq/small-lua-stack
null
ngx.header['Cache-Control'] = 'max-age=10' ngx.print('this is cache data')
nilq/small-lua-stack
null
------------------------------------------------------------------ local time = require 'cherry.libs.time' ------------------------------------------------------------------ -- https://stackoverflow.com/a/12646864 -- Randomize array in-place using Durstenfeld shuffle algorithm ----------------------------------------...
nilq/small-lua-stack
null
-- HardCore Search & Destroy MOD print('You are using') print('HardCore: Search & Destroy') print('by Taokaiser')
nilq/small-lua-stack
null
--相剣大邪-七星龍淵 -- --Script by KillerDJSH function c101107041.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsRace,RACE_WYRM),1) c:EnableReviveLimit() --draw local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101107041,0)) e1:SetCategory(CATEGORY_DRAW) e1:...
nilq/small-lua-stack
null
object_mobile_dressed_valarian_thug_arcona = object_mobile_shared_dressed_valarian_thug_arcona:new { } ObjectTemplates:addTemplate(object_mobile_dressed_valarian_thug_arcona, "object/mobile/dressed_valarian_thug_arcona.iff")
nilq/small-lua-stack
null
RegisterNetEvent("announce") AddEventHandler("announce", function(param) if IsPlayerAceAllowed(source, 'van.announce') then print("^1[Announcement]^5:" .. param) TriggerClientEvent("chat:addMessage", -1, { color = {0,255,0}, multiline = true, args = {'[Announcement]', param} ...
nilq/small-lua-stack
null
--Made by Michael Hales#0001 [WARNING YOU'RE NOT ALLOWED TO RE-RELEASE THIS AGAIN] fuck u its obfuscated btw. Join this for a better PF script https://discord.gg/kE2vVQbNgP return(function(e,...)local I="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local v=e.zpPH0mi;local...
nilq/small-lua-stack
null
function progressDay() fadeAlpha = 1 triggerFade = true player:resetActions() calendar:goToNextDay() -- special events can be handled by looking at curDate -- TODO: probably add bills to emails here -- check if player has enough money to pay hospital if curDate == 7 then --TODO: ...
nilq/small-lua-stack
null
loadstring(game:HttpGet("https://hypernite.xyz/Backup/MagmaHub/script.lua"))()
nilq/small-lua-stack
null
local ffi = require("ffi"); local bit = require("bit"); local bor = bit.bor; local SCManager = require("SCManager"); local test_servicecontrol = function() local mgr, err = SCManager(); if not mgr then print("Error: ", err); return false, err; end local access = bor( ffi.C.SERVICE_INTERROGATE, ...
nilq/small-lua-stack
null
-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" local common = require "core.common" local config = require "core.config" local DocView = require "core.docview" local Doc = require "core.doc" local tokenizer = require "core.tokenizer" local cache = setmetatable({}, { ...
nilq/small-lua-stack
null
-- FOOT profile for city walkers - preference for paved underground -- -- require("tags") require("barrier") require("highway") require("transport") -- -- Global variables required by extractor -- ignore_areas = true -- future feature traffic_signal_penalty = 2 u_turn_penalty = 2 use_turn_restrictions = f...
nilq/small-lua-stack
null
--[[-- zq UIImage控件 -- @classmod UIImage ]] local UIImage = class("UIImage", function() return cc.Sprite:create() end) -------------------------------- -- UIImage构建函数 -- @function ctor function UIImage:ctor() self:setCascadeOpacityEnabled(true) self:setNodeEventEnabled(true) end function UIImage:setCont...
nilq/small-lua-stack
null
local pretty = require 'pl.pretty' local utils = require 'pl.utils' local test = require 'pl.test' local asserteq, assertmatch = test.asserteq, test.assertmatch t1 = { 'one','two','three',{1,2,3}, alpha=1,beta=2,gamma=3,['&']=true,[0]=false, _fred = {true,true}, s = [[ hello dolly you're so ...
nilq/small-lua-stack
null
net = require('net.box') -- -- gh-2978: field names for tuples received from netbox. -- _ = box.schema.create_space("named", {format = {{name = "id"}, {name="abc"}}}) _ = box.space.named:create_index('id', {parts = {{1, 'unsigned'}}}) box.space.named:insert({1, 1}) box.schema.user.grant('guest', 'read, write, execute'...
nilq/small-lua-stack
null
local Behavior = CreateAIBehavior("EnteringVehicle", "Dumb", { Alertness = -1, Exclusive = 1, -- SYSTEM EVENTS ----- Constructor = function(self, entity) -- assuming that the refpoint is near the seat's place -- entity:SelectPipe(0,"approach_refpoint"); -- entity:InsertSubpipe(0,"do_it_running"); -...
nilq/small-lua-stack
null
local FASTJUMP_DIR = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] .. "..\\FastJump" local FASTJUMP_BIN_DIR = FASTJUMP_DIR .. "\\bin" local FASTJUMP_BIN = (FASTJUMP_BIN_DIR or clink.get_env("LOCALAPPDATA") .. "\\fastjump\\bin") .. "\\fastjump" function fastjump_add_to_database() os.execute("\"" .. FASTJUM...
nilq/small-lua-stack
null
--!strict local root = script.Parent.Parent local t = require(root.t) --- -- Equations: https://doi.org/10.1145/965139.807361 local HSB = {} HSB.fromRGB = function(r: number, g: number, b: number): (number, number, number) local br: number = math.max(r, g, b) local x: number = math.min(r, g, b) local s...
nilq/small-lua-stack
null
--[[ LuaU - A utility tool for making Lua usable within FFXI. Loads several libraries and makes them available within the global namespace. ]] require 'logger' require 'stringhelper' require 'tablehelper' require 'lists' require 'sets' require 'mathhelper' require 'functools' require 'actionhelper' chat = require 'cha...
nilq/small-lua-stack
null
-- possibly split this up into separate files for each map element (eg: tasks.lua, objectives.lua, etc) -- and call the specific loading functions from here -- compcheck addEvent( "onGamemodeMapStart", false ) function ptpmMapStart( map ) options = {} data = {} currentClass = {} currentPM = false classes = {...
nilq/small-lua-stack
null
-------------------------------- -- @module Scheduler -- @extend Ref -- @parent_module cc -------------------------------- -- @function [parent=#Scheduler] setTimeScale -- @param self -- @param #float float -------------------------------- -- @function [parent=#Scheduler] getTimeScale -- @param self -- @re...
nilq/small-lua-stack
null
describe("table", function() setup(function() TOML = require "toml" end) it("empty", function() local obj = TOML.parse "[a]" local sol = { a = {} } assert.same(sol, obj) end) it("sub empty", function() local obj = TOML.parse[=[ [a] [a.b]]=] local sol = { a = { b = {} } } assert.sam...
nilq/small-lua-stack
null
module(..., package.seeall) local installer = require("sputnik.installer") function execute(args, sputnik) installer.reset_salts() installer.make_wsapi_script(dir, "sputnik.ws") installer.make_cgi_file(dir, "sputnik.cgi") end
nilq/small-lua-stack
null
-- FONT vim.o.guifont = "Iosevka Nerd Font:h11" -- COMMON SETTINGS vim.o.hlsearch = false vim.o.mouse = 'a' vim.o.breakindent = true vim.o.ignorecase = true vim.o.termguicolors = true vim.o.completeopt = 'menuone,noselect' vim.o.smartcase = true vim.o.updatetime = 250 vim.g.onedark_terminal_italics = 2 vim.wo.signc...
nilq/small-lua-stack
null
AddCSLuaFile(); SWEP.Base = "weapon_cc_base"; SWEP.PrintName = "Combine Standard Issue Sidearm"; SWEP.Slot = 2; SWEP.SlotPos = 2; SWEP.UseHands = true; SWEP.ViewModel = "models/weapons/c_pistol.mdl"; SWEP.WorldModel = "models/weapons/w_pistol.mdl"; SWEP.Firearm = true; SWEP.Primary.ClipSize = 18;...
nilq/small-lua-stack
null
local _, core = ...; local function random_key(tab) local keys = {} for k in pairs(tab) do table.insert(keys, k) end return tab[keys[math.random(#keys)]] end local function getTableSize(t) local count = 0 for _, _ in pairs(t) do count = count + 1 end return count end local function getOtherPlaye...
nilq/small-lua-stack
null
#!/usr/bin/env luajit local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath'.setup{env=env, MathJax={title='Finite Volume', usePartialLHSForDerivative=true}} local class = require 'ext.class' local table = require 'ext.table' local range = require 'ext.range' lo...
nilq/small-lua-stack
null
slot0 = class("LevelGrid", import("..base.BasePanel")) slot1 = require("Mgr/Pool/PoolPlural") slot2 = require("Mgr/Pool/PoolUtil") slot0.MapDefaultPos = Vector3(420, -1000, -1000) slot3 = Vector2(-60, 84.8) slot4 = Vector2(-50, 20) slot0.init = function (slot0) slot0.super.init(slot0) slot0.levelCam = GameObject.Fi...
nilq/small-lua-stack
null
object_ship_eow_stardestroyer = object_ship_shared_eow_stardestroyer:new { } ObjectTemplates:addTemplate(object_ship_eow_stardestroyer, "object/ship/eow_stardestroyer.iff")
nilq/small-lua-stack
null