content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
data:extend{ { type = "item", name = "cement-shoes-equipment", icon = "__Cement Shoes__/graphics/icons/cement-shoes-equipment.png", icon_size = 64, placed_as_equipment_result = "cement-shoes-equipment", flags = {}, subgroup = "equipment", stack_size = 50, default_request_amount = 10 ...
nilq/small-lua-stack
null
isolated = false local app = dofile(docroot .. "/hello.lua") local wsx = require "wsapi.xavante" rules = { { match = { "^/app$", "^/app/" }, with = wsx.makeHandler(app, "/app", docroot, docroot) }, }
nilq/small-lua-stack
null
local migrations_utils = require "kong.cmd.utils.migrations" local prefix_handler = require "kong.cmd.utils.prefix_handler" local nginx_signals = require "kong.cmd.utils.nginx_signals" local conf_loader = require "kong.conf_loader" local kong_global = require "kong.global" local kill = require "kong.cmd.utils.kill" loc...
nilq/small-lua-stack
null
local constants = require("bufferline/constants") local M = {} local superscript_numbers = { ["0"] = "⁰", ["1"] = "¹", ["2"] = "²", ["3"] = "³", ["4"] = "⁴", ["5"] = "⁵", ["6"] = "⁶", ["7"] = "⁷", ["8"] = "⁸", ["9"] = "⁹", } local subscript_numbers = { ["0"] = "₀", ["1"] = "₁", ["2"] = "₂",...
nilq/small-lua-stack
null
-- this gets called starts when the level loads. function start(song) -- arguments, the song name print("Succesfully loaded (suit up)... have fun ;)") if curStep == 16 then showOnlyStrums = true -- remove all hud elements besides notes and strums for i=0,3 do tweenFadeIn(i,0...
nilq/small-lua-stack
null
#!/usr/bin/lua5.3 local json = require("cjson") local lustache = require("lustache") local yaml = require("lyaml") local utils = require("utils") local conf = require("config") function get_branches(indexes) local res = {} for k,v in ipairs(indexes.master.branch) do table.insert(res, v.name) end return res en...
nilq/small-lua-stack
null
-- Sound Table local soundDataSlap = love.sound.newSoundData('gfx/slap.wav') local soundDataGameOver = love.sound.newSoundData('gfx/game-over.wav') local sounds = {} sounds.slap = function() local slapSound = love.audio.newSource(soundDataSlap, 'static') love.audio.setVolume(0.4) love.audio.stop() love.audio.play...
nilq/small-lua-stack
null
local ffi = require "ffi" local C = ffi.C local ffi_new = ffi.new local ffi_str = ffi.string local provider_macro = require "resty.openssl.include.provider" local crypto_macro = require("resty.openssl.include.crypto") local OPENSSL_30 = require("resty.openssl.version").OPENSSL_30 local format_error = require("resty.op...
nilq/small-lua-stack
null
solution("faux_engine") configurations { "Debug", "Release" } language "C++" flags { "Cpp17" } platforms "x64" location "./build" objdir "./build/obj" defines { "_CRT_SECURE_NO_WARNINGS" } libdirs { "$(VULKAN_SDK)/Lib"} project("demo") kind "ConsoleApp" files { "./examples/...
nilq/small-lua-stack
null
--ZFUNC-repeatedly-v1 local function repeatedly( n, f, ... ) --> tab local res = {} for i = 1,n do table.insert( res, f( ... ) ) end return res end return repeatedly
nilq/small-lua-stack
null
local skynet = require "skynet" local kvdb = require "kvdb" skynet.start(function() kvdb.set("A", 1) print(kvdb.get "A") end)
nilq/small-lua-stack
null
local MainUITaskView = BaseClass(UINode) function MainUITaskView:Constructor( parentTrans ) self.viewCfg = { prefabPath = "Assets/AssetBundleRes/ui/mainui/MainUITaskView.prefab", parentTrans = parentTrans, } self.model = TaskModel:GetInstance() self:Load() end function MainUITaskView:OnLoad( ) local names ...
nilq/small-lua-stack
null
local class = require('opus.class') local UI = require('opus.ui') UI.ActiveLayer = class(UI.Window) UI.ActiveLayer.defaults = { UIElement = 'ActiveLayer', } function UI.ActiveLayer:layout() UI.Window.layout(self) if not self.canvas then self.canvas = self:addLayer() else self.canvas:resize(self.width, self....
nilq/small-lua-stack
null
local awful = require "awful" local hotkeys_popup = require "awful.hotkeys_popup" _G.Menu = {} Menu.awesome = { { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end, }, { "edit config", editor_cmd .. " " .. awesome.conffile }, { "restart", awesome.restart }, { ...
nilq/small-lua-stack
null
function model.removeFromPluginRepresentation() -- Destroy/remove the plugin's counterpart to the simulation model local data={} data.id=model.handle simBWF.query('object_delete',data) model._previousPackedPluginData=nil model._previousPackedPluginData_dynParams=nil end function model.upda...
nilq/small-lua-stack
null
require 'TicTacToeUtil' function TicTacToeQLearningAgent(numActions, model, stone) local agent = {} local util = TicTacToeUtil() -- Choose actoin based on epsilon-greedy strategy -- @param state -- @param epsilon -- @return function agent.chooseAction(state, epsilon) local action if (util.rand...
nilq/small-lua-stack
null
local m = require 'lpeg' return m.P '\0'
nilq/small-lua-stack
null
local M = {} local function log(level, ...) local d = debug.getinfo(3) api_log_out(level, d.short_src, d.currentline, string.format(...)) end function M.err(...) log(API_LOG_ERROR, ...) end function M.info(...) log(API_LOG_INFO, ...) end return M
nilq/small-lua-stack
null
ownit = {} ownit.modname = core.get_current_modname() ownit.modpath = core.get_modpath(ownit.modname) dofile(ownit.modpath .. "/wand.lua")
nilq/small-lua-stack
null
local skynet = require "skynet" local socket = require "skynet.socket" -- 简单echo服务 function echo(c_id, addr) socket.start(c_id) local str = socket.readall(c_id) if str then skynet.error("recv "..str) else skynet.error(addr .. " close") socket.close(c_id) return end end function accept(c_id, addr) skynet...
nilq/small-lua-stack
null
local function removeArrayValues(t, v) local n = 0 for i, v2 in ipairs(t) do if v2 ~= v then n = n + 1 t[n] = v2 end end while #t > n do t[#t] = nil end end local function clear(t, v) if v == nil then for k in pairs(t) do t[k] = nil end else for k, v2 in pairs(...
nilq/small-lua-stack
null
--[[ PLAYER SPAWN POINT LIST revive_point(<map_id>, <x_pos>, <y_pos>); start_point(<map_id>, <x_pos>, <y_pos>); respawn_point(<map_id>, <x_pos>, <y_pos>); --]] start_point(25, 5379.492, 5184.521); respawn_point(25, 5156.294, 5086.163); respawn_point(25, 5515.459, 4899.346); respawn_point(25, 5490.361, 5359.512); respaw...
nilq/small-lua-stack
null
local cjson = require("cjson.safe") return { serialize = cjson.encode, deserialize = cjson.decode }
nilq/small-lua-stack
null
redis = require('redis') sjson = require('sjson') bit = require('bit') function processData(data) print("Processing switch state " .. data) data = tonumber(data) for i=0,7,1 do if bit.isset(data, i) then print("Switch " .. i .. " is on") gpio.write(i+1, gpio.LOW) else print("Switch " .. i .. ...
nilq/small-lua-stack
null
return { aes = { key = 'change_me', -- salt can be either nil or exactly 8 characters long salt = 'changeme', size = 256, mode = 'cbc', hash = 'sha512', hash_rounds = 5, }, tg = { bot_username = 'tinystash_bot', -- bot authorization token token = 'bot_token', -- tg se...
nilq/small-lua-stack
null
local Hack = { nId = YYYYMMDD, strName = "Name_of_the_Hack", strDescription = "Description_of_the_Hack", strXmlDocName = nil, tSave = nil, } function Hack:Initialize() return true end function Hack:Load() end function Hack:Unload() end function Hack:new(o) o = o or {} setmetatable(o, self) self.__...
nilq/small-lua-stack
null
local COMMAND = {} COMMAND.title = "Imitate" COMMAND.description = "Makes a player say something in chat." COMMAND.author = "Nub" COMMAND.timeCreated = "Saturday, April 25, 2020 @ 12:22 AM CST" COMMAND.category = "Fun" COMMAND.call = "im" COMMAND.usage = "<player> {action}" COMMAND.server = function(caller, arg...
nilq/small-lua-stack
null
Description="Cold Plasma Dispersion" -- description or other text things. Context="ExplicitEM" -- SI Unit System c = 299792458 -- m/s qe=1.60217656e-19 -- C me=9.10938291e-31 --kg mp=1.672621777e-27 --kg mp_me=1836.15267245 -- KeV = 1.1604e7 -- K Tesla = 1.0 -- Tesla PI=3.141592653589793 TWOPI=PI*2 ...
nilq/small-lua-stack
null
local util = require("spec.util") describe("-q --quiet flag", function() setup(util.chdir_setup) teardown(util.chdir_teardown) it("silences warnings from tlconfig.lua", function() util.run_mock_project(finally, { dir_structure = { ["tlconfig.lua"] = [[return { foo = "hello" }]], ...
nilq/small-lua-stack
null
--TODO: Passive Health Regen: check percentages, substract berserker reduction, calculate frenzy reduction if not (WolfHUD and WolfHUD:getSetting({"HUDList", "ENABLED"}, true)) then return end if string.lower(RequiredScript) == "lib/managers/hudmanagerpd2" then local format_time_string = function(value) local time_...
nilq/small-lua-stack
null
pg = pg or {} pg.enemy_data_statistics_140 = { [10070394] = { cannon = 220, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 30003, air = 0, rarity = 5, dodge = 19, torpedo = 180, durability_growth = 0, antiaircraft = 240, reload_growth = 0, dodge_growth = 270, hit_...
nilq/small-lua-stack
null
local getPath = function (from, to) if from == to then return nil end local visitedNode = {} -- First step, we backtrack to the first ancestor that has -- more than one parent to reduce the overhead. local path = {} while true do if visitedNode[to] then return redis.error_reply("ERR infin...
nilq/small-lua-stack
null
local Bot = {} -- high score = 23,650 local currentAltitude local currentIsOnBase predictedx = 0 -- this is the lookahead ability predictedy = 0 -- this is the lookahead ability perfecty = 0 -- the y value that is just right local currentDistanceToBase local predictedYgroundValue -- the ground y va...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Mephistroth", 1677, 1878) if not mod then return end mod:RegisterEnableMob(116944) mod.engageId = 2039 ---------------------------------------------------------------------------...
nilq/small-lua-stack
null
-- import local candy = require 'candy' local RenderContext = candy.RenderContext local Viewport = candy.Viewport local RenderTarget = candy.RenderTarget local TextureRenderTarget = candy.TextureRenderTarget local RenderManagerModule = require 'candy.RenderManager' local getRenderManager = RenderManagerModule.getRender...
nilq/small-lua-stack
null
local deleteCount = 0 local destroyNode destroyNode = function (id) local parents = redis.call('smembers', prefix .. id .. '::P') for _, parent in ipairs(parents) do deleteReference(parent, id, 0) end local value = redis.call('get', prefix .. id) if #parents > 0 or value then deleteCount = deleteCo...
nilq/small-lua-stack
null
counter = 0 function test() print("Depth:", counter) counter = counter + 1 test() end test()
nilq/small-lua-stack
null
local me = microexpansion me.networks = {} local networks = me.networks local path = microexpansion.get_module_path("network") -- get a node, if nessecary load it function me.get_node(pos) local node = minetest.get_node_or_nil(pos) if node then return node end local vm = VoxelManip() local MinEdge, Ma...
nilq/small-lua-stack
null
-- gearman client... -- protocol_util = require('protocol_util') require('protocol_gearman/protocol_gearman') local pru = protocol_util local pgm = protocol_gearman local network_bytes = pru.network_bytes local network_bytes_string_to_number = pru.network_bytes_string_to_number --------------------...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Interface representing a view frame. --]] local NexusGit = require(script.Parent.Parent.Parent.Parent):GetContext(script) local NexusInterface = NexusGit:GetResource("NexusPluginFramework.NexusInstance.NexusInterface") local IViewFrame = NexusInterface:Extend() IViewFrame:SetClassName("IViewFram...
nilq/small-lua-stack
null
addEvent('onRaceStateChanging') addEventHandler('onRaceStateChanging', root, function (new) if (new ~= 'GridCountdown') then return end for i, blip in ipairs(getElementsByType('blip')) do setBlipColor(blip, 0, 0, 0, 0) end for j, player in ipairs(getElementsByType('player')) do if (player.vehicle.model =...
nilq/small-lua-stack
null
return { level = 57, need_exp = 110000, clothes_attrs = { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, }, }
nilq/small-lua-stack
null
local helper = require 'arken.Helper' local test = {} test.return_self = function() assert( helper:dateFormat("mydate") == "mydate" ) end return test
nilq/small-lua-stack
null
-- Anytranslate hs.hotkey.bind({"cmd", "alt", "ctrl"}, "T", function() -- Basic api URL's local DETECT = "https://translate.yandex.net/api/v1.5/tr.json/detect?" local DICT = "https://dictionary.yandex.net/api/v1/dicservice.json/lookup?" -- Insert your keys here local TRANS_KEY = "<...
nilq/small-lua-stack
null
return { author = "Alpin 3D Design & SRTD", version = "1.1.6", title = "A3D SNOW.Control", description = "Alpin 3D design and SRTD present the original SNOW.Control mod with many original manufacturers for the winter resort simulator. Experience the highest level of detail in the field of snowmaking and groo...
nilq/small-lua-stack
null
return { code = 'ROLE_CREATE_INVALID_PROFESSION', key = "ROLE_CREATE_INVALID_PROFESSION", }
nilq/small-lua-stack
null
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KS = KUI:GetModule("KuiSkins") local S = E:GetModule("Skins") --Cache global variables local _G = _G local unpack = unpack --WoW API / Variables --Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS: local r, g, b =...
nilq/small-lua-stack
null
local M = {} function M.tstring(t) local strings = {} for k, v in pairs(t) do strings[#strings + 1] = tostring(k) .. ': ' .. tostring(v) .. '\n' end return table.concat(strings, ' ') end function M.copy(t) local copy = {} for k, v in pairs(t) do copy[k] = v end local mt = getmetatable(t) if ...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- PATH ------------------------------------------------------------------------------- package.path = package.path .. ";app/models/?.lua" package.path = package.path .. ";app/controllers/?.lua" package.path = package.path .. ";app/help...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: damian -- Date: 13/01/2017 -- Time: 23:51 -- To change this template use File | Settings | File Templates. -- require "FallBehaviour" require "FadeBehaviour" SectionA = {} function SectionA:new() o = {activeBassBlocks = {}} setmetatable(o, self) self.__index = sel...
nilq/small-lua-stack
null
--- -- Test ZMQ_REQ_RELAXED mode and reconnect socket -- This test requires [lua-llthreads2](https://github.com/moteus/lua-llthreads2) library local zmq = require "lzmq" local ztimer = require "lzmq.timer" local zthreads = require "lzmq.threads" local zassert = zmq.assert local ENDPOINT = "tcp://127.0.0.1:55...
nilq/small-lua-stack
null
local parser = clink.arg.new_parser local addon_parser = parser({ "--dry-run", "-d", "--verbose", "-v", "--blueprint", "-b", "--skip-npm", "-sn", "--skip-bower", "-sb", "--skip-git", "-sg", "--directory", "-dir" }) local asset_sizes_parser = parser({ "--output-path", "-o" }) local bui...
nilq/small-lua-stack
null
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:Initialize() self:SetModel( "models/thedoctor/crackmachine_on.mdl") self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self:SetUseType( SIMPLE_USE ) self.phy...
nilq/small-lua-stack
null
-- -- Upcoming uniques will live here until their mods/rolls are finalised -- data.uniques.new = { [[ Speaker's Wreath Prophet Crown Unreleased: true Requires Level 63 +23 to Dexterity 14% increased Skill Effect Duration 2% increased Minion Attack Speed per 50 Dexterity 2% increased Minion Movement Speed per 50 Dexte...
nilq/small-lua-stack
null
-- global DB = nil if not Config.database then log.error("Database config file not found.") ServerExit() return end mariadb_log(Config.database['log_level']) local port = 3306 if Config.database['port'] ~= nil then port = tonumber(Config.database['port']) end DB = mariadb_connect(Config.database['ho...
nilq/small-lua-stack
null
require("bufferline").setup({ options = { separator_syle = "thin", numbers = "none", offsets = { { filetype = "NvimTree", text = "Files", text_align = "center", }, }, diagnostics = "nvim_lsp", }, })
nilq/small-lua-stack
null
while true do f = Instance.new("ForceField") f.Parent = Game.Workspace.acb227 wait(0.01) end
nilq/small-lua-stack
null
function LoadUDM(property) local udm = require("UdmLoader")() udm:Load(property.filepath) local udminst = { Tetra = function() return udm:TetraData() end, Mesh = function () return udm:MeshData() end, ExtraP = function () return udm:ExtraData('P') end, ExtraT = function () return udm:Extr...
nilq/small-lua-stack
null
-- Day15 with actual closure-based generators (iterators) in Lua... function genGenerator(factor, START, mod2) local DIVISOR = 2147483647 local value = START mod2 = mod2 or 1 return function () repeat value = value * factor % DIVISOR until (value % mod2) == 0 return value end end functio...
nilq/small-lua-stack
null
-- Initialization function for this job file. function get_sets() mote_include_version = 2 include('Mote-Include.lua') end -- //gs debugmode -- //gs showswaps function user_setup() -- Options: Override default values state.OffenseMode:options('Normal', 'Acc') state.WeaponskillMode:options('Norma...
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 --]] function cwCloudSixteenForums:MenuItemsAdd(menuItems) menuItems:Add(L("MenuNameCo...
nilq/small-lua-stack
null
Rain = require 'rain' function love.load() -- Window love.window.setTitle("rain") windowWidth = 800 windowHeight = 600 love.window.setMode(windowWidth, windowHeight) --[[ Rain variables deltaX: distance in pixels from the x1 value of a rain line to the x2 deltaY: distance in pixels from th...
nilq/small-lua-stack
null
local sum = 0 local maxJ = 1000 for j = 1,maxJ do for i = 1,10000 do sum = sum + 1 end end print (sum)
nilq/small-lua-stack
null
snet.Callback('qsystem_sync_npcs', function(_, ent, npcs) ent.npcs = npcs QuestSystem:Debug('SyncNPCs (' .. table.Count(npcs) .. ') - ' .. table.ToString(npcs)) end).Validator(SNET_ENTITY_VALIDATOR).Register()
nilq/small-lua-stack
null
return { { file = "example-article", title = "An example article", date = "2020-06-25", }, }
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
local status_ok, impatient = pcall(require, 'impatient') if not status_ok then vim.notify('The `lewis6991/impatient.nvim` was not found.') return end impatient.enable_profile()
nilq/small-lua-stack
null
SafeAddString("SI_IMPROVED_DEATH_RECAP_LANG", "en") SafeAddString("SI_IMPROVED_DEATH_RECAP_FONT", "$(MEDIUM_FONT)") -- EsoUi/Common/Fonts/Univers57.otf SafeAddString("SI_IMPROVED_DEATH_TITLE_FONT", "$(ANTIQUE_FONT)|24") -- Options Menu SafeAddString("SI_IMPROVED_DEATH_RECAP_MENU_HEADER", "Allgemeine Einstellungen") S...
nilq/small-lua-stack
null
-- _.isNumber.lua -- -- Checks if value is classified as a number primitive. -- @usage _.print(_.isNumber(1)) -- --> true -- _.print(_.isNumber('1')) -- --> false -- -- @param value the value to check -- @return Returns true if value is correctly classified, else false. _.isNumber = function(value) return type(valu...
nilq/small-lua-stack
null
if not _G.CTH then dofile(ModPath .. 'setup.lua') end -- remove display of cableties from HUD, since you have infinite anyways. if CTH.settings.cth_hidehud then function HUDManager:set_cable_ties_amount(i, amount) if i == HUDManager.PLAYER_PANEL then amount = 0 ...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0240-sdl-js-pwa.md -- -- Description: -- Verify that the SDL does not establish WebSocket-Secure connection in case of WS Client Certifi...
nilq/small-lua-stack
null
package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/?.lua" include ("stringutility") include ("callable") include ("galaxy") include("randomext") local AsyncPirateGenerator = include ("asyncpirategenerator") local AsyncShipGenerator = include ("asyncshipgenerator") l...
nilq/small-lua-stack
null
local missions = { { name = "Black Export", resource = "mtatr_blackexport", start = "startBlackExport", stop = "stopBlackExport", timeout = 6, args = {} }, }; local missions_info = {}; local missions_index = 1; local missions_timeout = 60; local function mission_st...
nilq/small-lua-stack
null
-- -- Generated from stack.lt -- local stack, s = {}, 0 local top = function() return stack[s] end local push = function(input) s = s + 1 stack[s] = input end local pop = function() local output = stack[s] s = s - 1 return output end return {top = top, push = push, pop = pop}
nilq/small-lua-stack
null
function onCreate() -- background shit makeLuaSprite('studio-background', 'studio-background', -620, -880); setScrollFactor('studio-background', 0.95, 0.95); scaleObject('studio-background', 0.8, 0.8); makeLuaSprite('studio-desk', 'studio-desk', 320, -230); setScrollFactor('studio-desk', 1, 1); sc...
nilq/small-lua-stack
null
local auxlib = require 'cqueues.auxlib' local condition = require 'cqueues.condition' local lu = require 'luaunit' local socket = require 'cqueues.socket' local App = require 'tulip.App' local M = {} function M.test_metrics() local app = App{ metrics = { allowed_metrics = {'a', 'b', 'c'}, host = '12...
nilq/small-lua-stack
null
--[[ We're inlining lone children into parents trying to get "saturated" record with following structure: --+---------+--+---------+--+----------+-- +-| opt |-+ `-| rep |-' `-| name |-' `-| neg |-' ]] local to_str = request('!.formats.lua_table_code.save') local assembly_order = request('!.mec...
nilq/small-lua-stack
null
-- -- -- require 'globals' require 'python' -- require 'csharp' globals.init() -- -- osg - Python -- project.name = "osgBindings" project.configs = { "Debug", "Release" } if (target == "vs2003") then project.path = "../VisualStudio/VS2003" elseif (target == "vs2005") then project.path = "../VisualStudio/V...
nilq/small-lua-stack
null
local metric = monitoring.gauge("forceload_blocks_count", "number of forceload blocks") -- stolen from https://github.com/minetest/minetest/blob/master/builtin/game/forceloading.lua local wpath = minetest.get_worldpath() local function read_file(filename) local f = io.open(filename, "r") if f==nil then return {} en...
nilq/small-lua-stack
null
--shameless copy-pasta of SkyLight's micro_item_salainen_puulle which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu7 which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu6 which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu5 which was a copy-pasta of Sk...
nilq/small-lua-stack
null
-------------------------------- -- markdown specific settings -- -------------------------------- -- vim.bo.conceallevel = 2
nilq/small-lua-stack
null
-- made by xFunnieuss -- Script (do not modify) local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local TextLabel = Instance.new("TextLabel") local Off = Instance.new("TextButton") local On = Instance.new("TextButton") ScreenGui.Parent = game:GetService('CoreGui') ScreenGui.Name = "blinkgu...
nilq/small-lua-stack
null
-- Forces an event (wrapper for modtools/force) --[====[ force ===== A simpler wrapper around the `modtools/force` script. Usage: - ``force event_type`` - ``force event_type civ_id`` - civ ID required for ``Diplomat`` and ``Caravan`` events See `modtools/force` for a complete list of event types. ...
nilq/small-lua-stack
null
-- Copyright (C) YuanSheng Wang (membphis) local setmetatable = setmetatable local ngx = ngx local table = table local str_fmt= string.format local unpack = unpack local type = type local pairs = pairs local pcall = pcall local _M = { _VERSION = '0.02', } local mt = { __index = _M } function _M.new(o...
nilq/small-lua-stack
null
-- THIS FILE IS SAFE TO EDIT. It will not be overwritten when rerunning go-raml. local schema = require("handlers.schemas.schema") function get_user_address_by_id_handler(request) -- handler for GET /users/:userId/address/:addressId -- response body for 200 should match schema.Address local resp = { ...
nilq/small-lua-stack
null
local defaultSound = "tsctra00.wav" local radioOptions = { dropSmoke = false, } local function setGroupAltitude(groupData, newAlt) if ( groupData.route and groupData.units and newAlt ) then for i,u in pairs(groupData.units) do groupData.units[i].alt = newAlt end for i...
nilq/small-lua-stack
null
AAPClassic["itemsNames"]={ [25]="Worn Shortsword", [35]="Bent Staff", [36]="Worn Mace", [37]="Worn Axe", [38]="Recruit\'s Shirt", [39]="Recruit\'s Pants", [40]="Recruit\'s Boots", [43]="Squire\'s Boots", [44]="Squire\'s Pants", [45]="Squire\'s Shirt", [47]="Footpad\'s Shoes", [48]="Footpad\'s Pants", [49]=...
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) local Module = K:GetModule("Tooltip") local _G = _G local select = _G.select local string_format = _G.string.format local string_match = _G.string.match local tonumber = _G.tonumber local BAGSLOT = _G.BAGSLOT local BANK = _G.BANK local CURRENCY = _G.CURRENCY local C_CurrencyInfo...
nilq/small-lua-stack
null
local fn = {} fn.table = {} fn.__index = fn fn.table.__index = fn function tabulate(depth) return string.rep('\t', depth) end function fn.to_string(table, tabbing_depth, visited_list, recurse_depth, recurse_depth_max) local visited_tables = visited_list or {} local tabdepth = tabbing_depth or 0 local result = '' ...
nilq/small-lua-stack
null
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the 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. -- --[[ -- -- Main training s...
nilq/small-lua-stack
null
-- print to the log tab browser.setactivepage('log') tab:clearlog() tab:log('Testing log...')
nilq/small-lua-stack
null
function execute( keys ) local target = keys.target local caster = keys.caster local ability = keys.ability local target_hp_percent = target:GetHealth() / (target:GetMaxHealth() / 100) local health_threshold = ability:GetLevelSpecialValueFor( "health_threshold", ( ability:GetLevel() - 1 ) ) local ability3 = ke...
nilq/small-lua-stack
null
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. foraged_schule_nef = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/food/foraged/foraged_vegetable_s2.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } a...
nilq/small-lua-stack
null
g_gunvals_raw="|!plus/@1/-2,!plus/@2/-2,!plus/@3/2,!plus/@4/2,13;!plus/@1/-1,!plus/@2/-1,!plus/@3/1,!plus/@4/1,1;|@1,@2,!plus/@3/1,@5;@1,@2,@3,@4;|0x8000,0x8000,0x7fff,0x7fff,@1|0,0,0,0,0,0,0;1,1,1,0,0,0,0;2,2,2,1,0,0,0;3,3,3,1,0,0,0;4,2,2,2,1,0,0;5,5,1,1,1,0,0;6,13,13,5,5,1,0;7,6,13,13,5,1,0;8,8,2,2,2,0,0;9,4,4,4,5,0,...
nilq/small-lua-stack
null
require('github-theme').setup({ -- theme_style = "dark", theme_style = "dark_default", dark_sidebar = true, transparent = true, -- Change the "hint" color to the "orange" color, and make the "error" color bright red -- colors = { hint = "orange", error = "#ff0000" }, -- comment_style = ...
nilq/small-lua-stack
null
return function (s, session) if session['pos'] > 0 then file.open(session['file']) file.seek('set', session['pos']) end local contents = file.read(1000) file.close() if session['pos'] > 0 then s:send(contents) else s:send(header(200, session['gz']) .. contents) end if string.len(conte...
nilq/small-lua-stack
null
object_mobile_target_dummy_blacksun = object_mobile_shared_target_dummy_blacksun:new { } ObjectTemplates:addTemplate(object_mobile_target_dummy_blacksun, "object/mobile/target_dummy_blacksun.iff")
nilq/small-lua-stack
null
os.loadAPI("build/build.lua"); --API Aliases function fif(cond, a, b) return build.fif(cond, a, b); end function stairs(dir, inv) return build.getStairs(dir, inv); end function dirMap(turns) return build.dirMap(turns); end --c = build.coord(0, 71, 0); centerPos = build.coord(-96, 210, -9); --l = build.coord(c.x + 0,...
nilq/small-lua-stack
null
--> Settings local NUM = "28"; --> The number used to "protect" remotes. local PATH = game:GetService("ReplicatedStorage").D4.D4; local STRINGED_PATH = "game:GetService(\"ReplicatedStorage\").D4.D4"; local console = loadstring(game:HttpGet("https://raw.githubusercontent.com/RobloxArchiver/Console/main/src/main.lua"))(...
nilq/small-lua-stack
null
local component = require("component") local event = require("event") local function onComponentAvailable(_, componentType) if (componentType == "screen" and component.isAvailable("gpu")) or (componentType == "gpu" and component.isAvailable("screen")) then component.gpu.bind(component.screen.addres...
nilq/small-lua-stack
null