content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
----------------------------------- -- Area: Ghelsba_Outpost -- NPC: Armoury Crate -- Ghelsba_Outpost Armoury_Crate ------------------------------------- require("scripts/globals/bcnm") require("scripts/globals/battlefield") ----------------------------------- local loot = { -- BCNM Wings of Fury [34] = {...
nilq/small-lua-stack
null
return function() local Players = game:GetService("Players") local CorePackages = game:GetService("CorePackages") local Roact = require(CorePackages.Roact) local Rodux = require(CorePackages.Rodux) local RoactRodux = require(CorePackages.RoactRodux) local UIBlox = require(CorePackages.UIBlox) local PlayerList =...
nilq/small-lua-stack
null
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") -- -- TCP is one of the core Internet protocols on transport layer (AKA -- OSI layer 4), providing stateful connections...
nilq/small-lua-stack
null
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local CODE_ACTION = methods.internal.CODE_ACTION return h.make_builtin({ method = CODE_ACTION, filetypes = { "lua" }, generator_opts = { command = "bash", args = { "./test/scripts/sleep-and-echo.sh" }, ...
nilq/small-lua-stack
null
-- Copyright 2014-2019, Firaxis Games. -- Hotloading note: The World Tracker button check now positions based on how many hooks are showing. -- You'll need to save "LaunchBar" to see the tracker button appear. include("InstanceManager") include("TechAndCivicSupport") include("SupportFunctions") include("GameCap...
nilq/small-lua-stack
null
--[[ Mana This mod adds mana to players, a special attribute License: WTFPL ]] --[===[ Initialization ]===] local S if (minetest.get_modpath("intllib")) then S = intllib.Getter() else S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end end mana = {} mana.playerlist = {} ...
nilq/small-lua-stack
null
--[[ Copyright 2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
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, distr...
nilq/small-lua-stack
null
require 'uci' local M = {} local cursor = uci.cursor() local modulePath = cursor.get('iot', 'common', 'modules') or '/usr/lib/lua/iot/modules/' cursor:foreach("iot", "module", function(s) local name = s['.name'] M[name] = {} M[name].config = s M[name].handler = loadfile(modulePath .. name .. '.lua')() end) ...
nilq/small-lua-stack
null
--.------------------------------------------------ --. Rules_37_To_36.lua (Version:1.0) -- --. Applies rules from core 37 to core 36 -- --.------------------------------------------------ --.-------------------- --. Prefix functions -- --.-------------------- module("CoreRules", package.seeall) f...
nilq/small-lua-stack
null
local t_man={} moves={} moves.up_=1 moves.dwn=2 moves.lft=3 moves.rgt=4 tetriminos={ {{0,0,1,0},--I {0,0,1,0}, {0,0,1,0}, {0,0,1,0}}, {{0,1,0,0},--L {0,1,0,0}, {0,1,1,0}, {0,0,0,0}}, {{0,0,1,0},--J {0,0,1,0}, {0,1,1,0}, {0,0,...
nilq/small-lua-stack
null
local meta; function Meta (el) -- Copy the metadata and remove it from the document (Deckset -- doesn't support any type of metadata header) meta = el return {} end function Div (el) if el.identifier == 'refs' then local blocks = {} table.insert(blocks, pandoc.HorizontalRule()) tabl...
nilq/small-lua-stack
null
--[[ STRIPS Planner tutorial code for lecture at CEDEC2016 Copyright (c) 2016, Yohei Hase. All rights reserved. This source code is licensed under the MIT license. ]] -------------------------------------------------- -- utility function deepcopy(a) if type(a) == "table" then local copy = {} for key, var...
nilq/small-lua-stack
null
local x = 2
nilq/small-lua-stack
null
local fn = vim.fn local install_path = fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim' local packer_bootstrap if fn.empty(fn.glob(install_path)) > 0 then packer_bootstrap = fn.system { 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path, } en...
nilq/small-lua-stack
null
PNC.Core.ActivePatrol = PNC.Core.ActivePatrol or nil net.Receive("xyz_pnc_patrol_send", function() PNC.Core.ActivePatrol = {} PNC.Core.ActivePatrol.current = 1 PNC.Core.ActivePatrol.pads = net.ReadTable() end) net.Receive("xyz_pnc_patrol_end", function() PNC.Core.ActivePatrol = nil end) net.Receive("xyz_pnc_pat...
nilq/small-lua-stack
null
data:extend({ { type = "item", name = "orbital-power-reciver", icon = "__expanded-rocket-payloads__/graphic/ground-reciver-32.png", icon_size = 32, flags = {"goes-to-quickbar"}, subgroup = "buildings", order = "mS", place_result = "orbital-power-reciver", stack_size = 10 ...
nilq/small-lua-stack
null
local select, tostring, term, type = select, tostring, term, type local queueEvent, pullEvent = os.queueEvent, os.pullEvent local grin = grin local insert, remove = table.insert, table.remove local write, print = write, print local function doWrite(write, ...) local sum = 0 local n = select('#', ...) for ...
nilq/small-lua-stack
null
local modpath = minetest.get_modpath("ks_ores") dofile(modpath.."/minerals.lua") dofile(modpath.."/nodes.lua") dofile(modpath.."/mapgen.lua")
nilq/small-lua-stack
null
-- Author: Mikali -- Last updated: 2017/09/01 -------------------------------------------------------------------------------- -- Random number functions. -- -- Randomly returns either 1 or -1. function randomSign() if (random() > 0.5) then return 1 else return -1 end end -- Randomly returns either 1 or 0. fu...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... AddonTable.arcatraz = { -- Multiple Bosses 28384, 127154, -- Zereketh the Unbound 28415, 28374, 28373, 28396, 28375, -- Dalliah the Doomsayer 28416, 28392, 28386, 28387, 28414, 28390, -- Wrath-Scryer Soccothrates 2...
nilq/small-lua-stack
null
return { init_effect = "", name = "我方苍龙META 剑气领域-仅演出无实际效果", time = 0, color = "yellow", picture = "", desc = "", stack = 1, id = 370, icon = 370, last_effect = "", effect_list = {} }
nilq/small-lua-stack
null
local sound local lastGear = nil local lastRPM = nil local downgrading = false local downgradingRPM = {0,0} local downgradingTime = 2000 local downgradingProgress = 0 local start = 0 local worked = 0 local enabled = true local vehiclesSounds = { -- [ид модели] = {engine = "звук мотора", blowoff = "звук blowoff", gear...
nilq/small-lua-stack
null
---@type string local Name = ... ---@type Addon local Addon = select(2, ...) local Comm, Item, Roll, Session, Unit, Util = Addon.Comm, Addon.Item, Addon.Roll, Addon.Session, Addon.Unit, Addon.Util ---@class PLH : Module local Self = Addon.PLH Self.NAME = "PersonalLootHelper" Self.VERSION = "2.08" Self.PREFIX = "PLH" ...
nilq/small-lua-stack
null
local w,h = term.getSize() local previousDir = currentDir local currentDir = "/" local dirFiles = fs.list(currentDir) local choice = 1 function printCentered(string, y) local x = (w/2)-(string.len(string)/2) term.setCursorPos(x,y) term.write(string) end function clearScr() term.clear() term.setCursorPos(1...
nilq/small-lua-stack
null
--- Helper for converting ReQL extensions into lua types. -- @module rethinkdb.internal.convert_pseudotype -- @author Adam Grandquist -- @license Apache -- @copyright Adam Grandquist 2016 local protect = require'rethinkdb.internal.protect' --- native conversion from reql grouped data to Lua -- @tab obj reql group pse...
nilq/small-lua-stack
null
HouseSystem.plants = { [0] = { -- default name = '???', growingTime = 0, stages = {'16bf63634a0.png'}, quantyOfSeeds = 0, }, [1] = { -- tomato name = 'tomato', growingTime = 60*3, stages = {'16bf63634a0.png', '16bf63b93cf.png', '16bf64806c6.png', '16bf64b8df5.png', '16c2544e15f.png', '16c2546d829.png'}...
nilq/small-lua-stack
null
ENT.Type = "anim" --ENT.Base = "base_gmodentity" ENT.PrintName = "RDx Drawer Drawing Base ENT" ENT.Author = "TAD2020" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" ENT.Spawnable = false ENT.AdminSpawnable = false local Beams_next_index = 1 local BeamStart = 1 local BeamNode = 2 ...
nilq/small-lua-stack
null
--[[-- Chat manipulation and helper functions. Chat messages are a core part of the framework - it's takes up a good chunk of the gameplay, and is also used to interact with the framework. Chat messages can have types or "classes" that describe how the message should be interpreted. All chat messages will have ...
nilq/small-lua-stack
null
pg = pg or {} pg.SimpleConnectionMgr = singletonClass("SimpleConnectionMgr") slot2 = createLog("SimpleConnectionMgr", false) slot3, slot4 = nil slot5 = false slot6 = {} slot7 = nil pg.SimpleConnectionMgr.Connect = function (slot0, slot1, slot2, slot3, slot4) slot0.stopTimer() slot2.UIMgr.GetInstance():LoadingOn() s...
nilq/small-lua-stack
null
figrin_dan_band_outfit = { { {objectTemplate = "object/tangible/wearables/shirt/shirt_s07.iff", customizationVariables = {{"/private/index_color_1", 90}} }, {objectTemplate = "object/tangible/wearables/pants/pants_s12.iff", customizationVariables = {} }, {objectTemplate = "object/tangible/wearables/shoes/shoes_...
nilq/small-lua-stack
null
if (...) == "-?" then printUsage( "shutdown","Shutdowns ZYX-13" ) return end shutdown()
nilq/small-lua-stack
null
--pnzrschrk--------------------------------------------------------------- sound.Add({ name = "pnzrschrk.Single", // <-- Sound Name That gets called for channel = CHAN_USER_BASE +10, volume = 1.0, sound = "weapons/pnzrschrk/fire.wav" // <-- Sound Path }) sound.Add({ name = "pnzrschrk.in", chan...
nilq/small-lua-stack
null
-- -- LEAKED BY S3NTEX -- -- https://discord.gg/aUDWCvM -- -- fivemleak.com -- -- fkn crew -- RegisterServerEvent("esx_uber:pay") AddEventHandler("esx_uber:pay",function(a) local b=source; local c=ESX.GetPlayerFromId(b) c.addMoney(tonumber(a)) end) RegisterServerEvent("uber:esyaSil") AddEventHandl...
nilq/small-lua-stack
null
-- -- ipctrace.lua -- -- Write a trace of instantaneous IPC values for all cores. -- Argument is either a filename, or none to write to standard output. -- ncores = sim.config.ncores if arg then out = io.output(sim.config.output_dir..arg) else out = nil end function update_core_freq(core) freqs...
nilq/small-lua-stack
null
local ecs = dtrequire("ecs") local resource = dtrequire("resource") local _, Component = ecs.common() local cpml = dtrequire("lib.cpml") local vec3, bound3 = cpml.vec3, cpml.bound3 local SpriteComponent = Component:subtype({}, "droptune.components.render.Sprite") do function SpriteComponent:init(res, ox, ...
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
nilq/small-lua-stack
null
LANGUAGE = { cmdItemSpawnerAdd = "Add a new item spawnpoint.", cmdItemSpawnerRemove = "Removes an existant spawnpoint.", cmdItemSpawnerList = "Displays a list of spawnpoints.", cmdNoSpawnPoints = "There are no active spawnpoints.", cmdRemoved = "The spawnpoint has been removed.", cmdNoRemoved = "No spawnpoint wi...
nilq/small-lua-stack
null
-- Copyright 2021 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
nilq/small-lua-stack
null
local function get_platform() if package.config:sub(1, 1) == "\\" then return "windows" end local pipe = assert(io.popen("uname -s")) local out = pipe:read("*l") pipe:close() if out == "Darwin" then return "mac" else return "linux" -- Probably. end end return get_platform
nilq/small-lua-stack
null
local present, nvim_tree = pcall(require, "nvim-tree") if present then nvim_tree.setup({ view = { auto_resize = false }, filters = { dotfiles = true }, git = { ignore = true } }) end
nilq/small-lua-stack
null
SPResearch= { { Name = "ScoutEMPAbility", RequiredResearch = "", RequiredSubSystems = "Research | AdvancedResearch", Cost = 750, Time = 30, DisplayedName = "$7519", DisplayPriority = 2, Description = "$7520", UpgradeType = Ability, TargetType = Ship, TargetName...
nilq/small-lua-stack
null
cc = cc or {} ---Lens3D object ---@class Lens3D : Grid3DAction local Lens3D = {} cc.Lens3D = Lens3D -------------------------------- ---brief Set whether lens is concave.<br> ---param concave Whether lens is concave. ---@param concave bool ---@return Lens3D function Lens3D:setConcave(concave) end --------------------...
nilq/small-lua-stack
null
--[[ Name: "cl_hooks.lua". Product: "nexus". --]] local MOUNT = MOUNT; -- Called when a HUD element should be drawn. function MOUNT:HUDShouldDraw(name) if (name == "CHudWeaponSelection") then return false; elseif (name == "CHudCrosshair") then if (self.displayAlpha > 0) then return false; end; end; end; ...
nilq/small-lua-stack
null
require("turtle") local chartmap = require("chartmap") local colormap = require("colormap") local complex = require("complex") local common = require("common") local signals = require("signals") local W, H = 800, 800 local greyLevel = 200 local minX, maxX = -20, 20 local minY, maxY = -20, 20 local dX, dY, xySiz...
nilq/small-lua-stack
null
require 'depstruct' require 'utils' require 'dict' require 'xlua' require 'dp_spec' p = xlua.Profiler() Depparser = {} Depparser_mt = { __index = Depparser } function Depparser:new(voca_dic, pos_dic, deprel_dic) local parser = { voca_dic = voca_dic, pos_dic = pos_dic, deprel_dic = deprel_dic} parser.punc_list = { ...
nilq/small-lua-stack
null
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
nilq/small-lua-stack
null
-- Reminder to myself -- Probably can make a mapping that finds alternate file -- With alternate file -- can run tests for entire file automatically. -- SeemsGood :) local a = vim.api ---@brief [[ --- Uses colors: --- --- - GoTestSuccess: Used to highlight succesful tests --- - GoTestFail : Used to ...
nilq/small-lua-stack
null
local env = environment() env = add_decl(env, mk_var_decl("A", Type)) env:export("mod3_mod.olean")
nilq/small-lua-stack
null
do local function oscar(msg, matches) return [[ source created by @iq_plus 🕵 channel bot 🔘 @oscarbotv2 🔘 〰〰〰〰〰〰〰〰〰〰〰〰 . 🔵 oscarbot v1 🔴 Oscar ™ Dev @iq_plus ⚜ Dev @JALAL_ALDON 🔱 Dev @CutlassX 🔱 Dev @mgoody_96 🔱 Dev @XxToFexX 🔱 Dev @iDev1 🔱 ]] end return { patterns = { "^[!...
nilq/small-lua-stack
null
local lu = require("luaunit") TestHandler = require("test.unit.mockable_case"):extend() function TestHandler:setUp() TestHandler.super:setUp() package.loaded["resty.openidc"] = nil self.module_resty = { openidc = {} } package.preload["resty.openidc"] = function() return self.module_resty.openidc end ...
nilq/small-lua-stack
null
function onUpdate(elapsed) if curStep >= 0 then songPos = getSongPosition() local currentBeat = (songPos/1000)*(bpm/80) doTweenY(dadTweenY, 'dad', -100-110*math.sin((currentBeat*0.1)*math.pi),0.001) end end
nilq/small-lua-stack
null
function OnInit() Rule_Add("Rule_Start") end function Rule_Start() setMissionComplete(1) Rule_Remove("Rule_Start") end
nilq/small-lua-stack
null
local eventtap = hs.eventtap local eventTypes = hs.eventtap.event.types local l = hs.logger.new('super') local state = {} local resetState = function () state.spaceDown = false state.spaceFn = false state.outputNextSpace = false state.pause = false end resetState() local modifiers = function (event) local...
nilq/small-lua-stack
null
demonic_warrior_rest_modifier = class({}) function demonic_warrior_rest_modifier:OnCreated( kv ) self.duration = self:GetAbility():GetSpecialValueFor("duration") if not IsServer() then return end local caster = self:GetParent() -- Particle -- self.particle = ParticleManager:CreateParticle("...
nilq/small-lua-stack
null
Locales['pl'] = { ['left_instance'] = 'opuszczasz instancję', ['invite_expired'] = 'zaproszenie wygasło', ['press_to_enter'] = 'wciśnij ~INPUT_CONTEXT~ aby wejść do instancji', ['entered_instance'] = 'wchodzisz do instancji', ['entered_into'] = '%s wchodzi do instancji', ['left_out'] = '%s opuszcza instancj...
nilq/small-lua-stack
null
mission_end_sequence_ground = { SEQ_TELOP = { OnEnter = function( manager ) Fox.Log("mission_end_sequence_SEQ_TELOP") missionCommon_functionSet.SetSequenceIdToSkip( manager,"SEQ_END" ) --開始時テロップの再生 missionCommon_functionSet.PlayMissionEndTelop() TppEventSequenceManagerCollector.GoNextSequence( "TppEvent...
nilq/small-lua-stack
null
#!/usr/bin/env luajit local dns = require('dns') local nb = require('dns.nbio') -- Parse parameters local host, port, tcp, tls, xfer, key, cookie = nil, 53, false, false, false, nil local version, dobit, bufsize, short, multi = 0, false, nil, false local qname, qtype, qclass = '.', dns.type.NS, dns.class.IN local flags...
nilq/small-lua-stack
null
local icons = require "nvim-nonicons" require("which-key").setup { plugins = { marks = true, -- shows a list of your marks on ' and ` registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode spelling = { enabled = true, suggestions = 20, }, }, icons = { bre...
nilq/small-lua-stack
null
local uranium_params = { offset = 0, scale = 1, spread = {x = 100, y = 100, z = 100}, seed = 420, octaves = 3, persist = 0.7 } local uranium_threshold = 0.55 local chromium_params = { offset = 0, scale = 1, spread = {x = 100, y = 100, z = 100}, seed = 421, octaves = 3, persist = 0.7 } local chromium_thresh...
nilq/small-lua-stack
null
local dashboard = require"alpha.themes.dashboard" local if_nil = vim.F.if_nil local function button(sc, txt, keybind, keybind_opts) local sc_ = sc:gsub("%s", ""):gsub("LDR", "<leader>") local opts = { position = "center", shortcut = sc, cursor = 5, width = 50, align_sho...
nilq/small-lua-stack
null
local event = { { _id = "on_physical_attack_hit" }, { _id = "on_physical_attack_miss" }, { _id = "after_physical_attack" }, { _id = "on_ai_calm_action" }, { _id = "on_ai_ally_action" }, { _id = "on_item_eat_begin" }, { _id = "on_chara_sleep" }, { _id = "on_sleep_finish" }, { _id = "on_dig_suc...
nilq/small-lua-stack
null
if false then print("Never occurs!") elseif true then print("Always has been.") else print("Never occurs!") end local cont = 0 while cont < 10 do print("Inside while: "..cont) cont = cont + 1 end print("After WHILE ends: "..cont) local last_value = 0 for i=0,10,3 do print("Inside for: "..i) last_value = i ...
nilq/small-lua-stack
null
function nadmin:GetBanReason(id) -- Inspired by ULX. You will notice a huge similarity (basically copied) if not istable(nadmin.bans[id]) then return end local ban = table.Copy(nadmin.bans[id]) local rep = { BANNED_BY = "[Unknown]", STEAMID = "[Unknown]", BAN_DATE = "[U...
nilq/small-lua-stack
null
-- Test clock precision resilience. -- params: [n] package.path = "src/?.lua" local Profiler = require("ELProfiler") local n = ... n = tonumber(n) or 1e7 local function a(n) return n+n end local function b(n) return n+n end local function c(n) return n+n end local function d(n) return n+n end local fs = {a,b,c,d} lo...
nilq/small-lua-stack
null
AddCSLuaFile() if (CLIENT) then SWEP.PrintName = "Fine Notepad" SWEP.Slot = 1 SWEP.SlotPos = 2 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false end SWEP.Category = "Nutscript" SWEP.Author = "AngryBaldMan" SWEP.Instructions = "" SWEP.Purpose = "" SWEP.Drop = false SWEP.HoldType = "melee" SWEP.Spawnable = true S...
nilq/small-lua-stack
null
local M = {} -- table information begin local tableName = 'userBase' -- table information end local Util = require "sora.util" function M.new(o,isSingleton) local ins local SoraModelMysql = require 'sora.model.mysql' if isSingleton then setmetatable(M, { __index = SoraModelMysql:new() }) ins = { tableName = ta...
nilq/small-lua-stack
null
ITEM.name = "TOZ-194" ITEM.description= "A pump-action shotgun. Fires 12 gauge." ITEM.longdesc = "A classic 90's russian civilian shotgun, used in much of Europe as a hunting weapon. It is fairly long and unweildy, as to be legal for the civilian market in its country of origin, Russia, it had to have an overall legnth...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... -- Soulbound Items (Green or higher) AddonTable.loot = { 44360, 55314, 55401, 55403, 55404, 55405, 55421, 55422, 55423, 55567, 55619, 55693, 55702, 55773, 57281, 57283, 57292, 59520, 65655, 65656, 65658...
nilq/small-lua-stack
null
local mod = yatm_data_noteblock local string_hex_unescape = assert(foundation.com.string_hex_unescape) local is_table_empty = assert(foundation.com.is_table_empty) local Cuboid = assert(foundation.com.Cuboid) local ng = Cuboid.new_fast_node_box local data_network = assert(yatm.data_network) -- Just like a mesecon not...
nilq/small-lua-stack
null
local env, func = ... assert(func, 'securecall of nil function') if type(func) == 'string' then assert(env[func], 'securecall of unknown function ' .. func) func = env[func] end return securecall(func, select(3, ...))
nilq/small-lua-stack
null
CC_Config = {} CC = {} CC_Config.Text = { MenuTitle = "Character Creater", NameTitle = "Full Name", SexTitle = "Sex", ModelTitle = "Model", CreateButton = "Create Character", CreationSuccess = "Your Character has been Successfully created!", ErrorName = "ERROR: No Name has been written!", ErrorSex = "ERROR:...
nilq/small-lua-stack
null
set_xmakever("2.5.1") set_languages("cxx11") add_rules("mode.debug", "mode.release") target("DebugUtils") set_kind("static") add_includedirs( "DebugUtils/Include", "Detour/Include", "DetourTileCache/Include", "Recast/Include") add_headerfiles("DebugUtils/Include/*.h") a...
nilq/small-lua-stack
null
--riazzerawifi.lua -- Starts the portal to choose the wi-fi router to which we have -- to associate wifi.sta.disconnect() wifi.setmode(wifi.STATIONAP) --ESP SSID generated wiht its chipid wifi.ap.config({ssid="Mynode-"..node.chipid() , auth=wifi.OPEN}) enduser_setup.manual(true) enduser_setup.start( function() pr...
nilq/small-lua-stack
null
local event = require("event") local component = require("component") local commandBlock = component.command_block local chatBox = component.chat_box local nickname = "PaladinCVM" local commanderNickname = "ECS" local spamDelay = 1 local function execute(command) commandBlock.setCommand(command) commandBlock.exe...
nilq/small-lua-stack
null
return { fitScaleFactor = function(displayObject, fitWidth, fitHeight, enlarge) local scaleFactor = fitHeight / displayObject.height local newWidth = displayObject.width * scaleFactor if newWidth > fitWidth then scaleFactor = fitWidth / displayObject.width end if not enlarge and scaleFactor ...
nilq/small-lua-stack
null
return Def.Sprite { Texture=NOTESKIN:GetPath( '_centerp1', 'tap note' ); Frame0000=3; Delay0000=1; };
nilq/small-lua-stack
null
--[[ Copyright 2012 The lev Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
nilq/small-lua-stack
null
local M = {} function M.get_padding(depth) return string.rep(' ', depth) end local function get_padding_arrows(icon_state) return function(depth, _, _, node) if node.entries then local icon = icon_state.icons.folder_icons[node.open and 'arrow_open' or 'arrow_closed'] return string.rep(' ', depth -...
nilq/small-lua-stack
null
data:extend{ { type = "item", name = "night-vision-mk2-equipment", icon = "__base__/graphics/icons/night-vision-equipment.png", icon_size = 32, placed_as_equipment_result = "night-vision-mk2-equipment", subgroup = "equipment", order = "f[night-vision]-b[night-vision-mk2-equipment...
nilq/small-lua-stack
null
-- MINETEST REGISTRATION FUNCTIONS CALLS. -- ============================================================================ local tex_names_used = { "real_elevators_shaft_back_block.png", "real_elevators_shaft_back_block2.png", "real_elevators_shaft_side_block2.png", "real_elevators_outer_doors.png", "real_elevato...
nilq/small-lua-stack
null
local EM,FB = ... local json,LOG,DEBUG = FB.json,EM.LOG,EM.DEBUG local copy,cfg = EM.utilities.copy,EM.cfg LOG.register("files","Log filesystem events") local CRC16Lookup = { 0x0000,0x1021,0x2042,0x3063,0x4084,0x50a5,0x60c6,0x70e7,0x8108,0x9129,0xa14a,0xb16b,0xc18c,0xd1ad,0xe1ce,0xf1ef, 0x1231,0x0210,0x3273,0x22...
nilq/small-lua-stack
null
--[[ Gangi: Panel zarzadzania @author Jakub 'XJMLN' Starzak <jack@pszmta.pl @package PSZMTA.psz-gangi @copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl> Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie. ]]-- local function getGID() local c=getElementData(localPlayer,"character"...
nilq/small-lua-stack
null
--[=[ @within Member @prop User User @readonly The user that the member object represents. ]=] --[=[ @within Member @prop Group Group @readonly The group that the user is in. ]=] --[=[ @within Member @prop Client Client @readonly A reference back to the client that owns t...
nilq/small-lua-stack
null
---- CONFIG -- You can edit aspects about the script below local showSongBF = true -- Whether the chart's BF should be shown as an option, disabling might be useful if you manually registered them and the chart's BF shows wrong local allowStoryMode = false -- If this script can be used on storymode or not local song ...
nilq/small-lua-stack
null
--region *.lua --Date --此文件由[BabeLua]插件自动生成 require("dxm/common/singleton") require("dxm/data_structures/list") dxm = dxm or {} dxm.CWidgetCache = class("CWidgetCache") local CWidgetCache = dxm.CWidgetCache -- 成员函数 function CWidgetCache:ctor(config) self.config = config -- 配置名称 self.template_widget = nil -...
nilq/small-lua-stack
null
local mod = DBM:NewMod(2355, "DBM-Party-BfA", 11, 1178) local L = mod:GetLocalizedStrings() mod:SetRevision("20190625143048") mod:SetCreatureID(155157) mod:SetEncounterID(2291)--VERIFY mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 296080 302274 303885 303252", "SPELL_A...
nilq/small-lua-stack
null
return (function() return true -- UNIMPLEMENTED end)(...)
nilq/small-lua-stack
null
--- Tests for the @{Deque} interface. return function() local module = game:GetService("ReplicatedStorage").Monolith local Deque = require(module.Deque) describe("Constructor", function() it("should be able to be instantiated", function() local deque = Deque.new() expect(deque).to.be.ok() end) end) de...
nilq/small-lua-stack
null
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Base round class used by the game. --]] local DEFAULT_ROUND_TIME = 5 * 60 local LOAD_TIME = 5 local DEFAULT_RESPAWN_TIME = 3 local MVP_COINS = 20 local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerStorage = game:GetService("Ser...
nilq/small-lua-stack
null
--------------------------------------------------------------------- -- Project: irc -- Author: MCvarial -- Contact: mcvarial@gmail.com -- Version: 1.0.0 -- Date: 31.10.2010 --------------------------------------------------------------------- -- everything is saved here servers = {} -- syntax: [server] = {element so...
nilq/small-lua-stack
null
Locales['en'] = { ['hunger'] = 'hunger: %s', ['givefood'] = 'give food', ['attachpet'] = 'attach or detach your pet', ['getpeddown'] = 'tell your pet to exit the vehicle', ['getpedinside'] = 'tell your pet to get in the vehicle', ['giveorders'] = 'give an order', ['callpet'] = 'call your pet', ['pet_man...
nilq/small-lua-stack
null
local function textures(color, shorn) local s = shorn and "^tigris_mobs_shorn.png" or "" return { "wool_" .. color .. ".png" .. s, "wool_" .. color .. ".png" .. s, "wool_" .. color .. ".png" .. s, "wool_" .. color .. ".png" .. s, "wool_" .. color .. ".png" .. s, "...
nilq/small-lua-stack
null
local Starwalker, super = Class(Encounter) function Starwalker:init() super:init(self) self.text = "* Star walker has changed forms" self.starwalker = self:addEnemy("starwalker", 530, 238) self.background = true self.no_end_message = true self.timer = 0 self.mode = "normal" ...
nilq/small-lua-stack
null
local mod = DBM:NewMod(1830, "DBM-TrialofValor", nil, 861) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17471 $"):sub(12, -3)) mod:SetCreatureID(114323) mod:SetEncounterID(1962) mod:SetZone() mod:SetUsedIcons(1, 2, 3) mod:SetHotfixNoticeRev(15651) mod.respawnTime = 15 mod:SetMinSyncRevis...
nilq/small-lua-stack
null
-- Combuctor.lua -- @Author : Dencer (tdaddon@163.com) -- @Link : https://dengsir.github.io -- @Date : 9/2/2019, 8:43:02 PM if not Combuctor then return end local ns = select(2, ...) local orig_FrameNew = Combuctor.Frame.New local orig_PUI_Toggle = PUI_Toggle local function CreateSortButton(parent, width, he...
nilq/small-lua-stack
null
-- init local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Cloudeveloper/g8guugdjgj4/main/lib.lua"))() local venyx = library.new("SPTS", 5013109572) local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid local VirtualUser=game:service'VirtualUser' game:service'Players...
nilq/small-lua-stack
null
local test_name = "" local function assertEqual(actual, expect, msg) if not msg then msg = "" end if actual ~= expect then msg = test_name.." : expect ="..tostring(expect).." but actual = "..tostring(actual).." : "..msg error(msg) end end function main() test_name = "issue9" for i, enemy in ipa...
nilq/small-lua-stack
null
--- Coroutine library --- Coroutine library -- @shared local coroutine_library = SF.RegisterLibrary("coroutine") local coroutine = coroutine local checktype = SF.CheckType local checkluatype = SF.CheckLuaType local checkpermission = SF.Permissions.check local _, thread_metamethods = SF.RegisterType("thread") local wr...
nilq/small-lua-stack
null