content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
TOOL.Category = "C_GM13B_GUI_DEV" TOOL.Name = "#Tool.spawn_curse_detector_upgrade.name" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Information = { { name = "left" }, } if CLIENT then language.Add("Tool.spawn_curse_detector_upgrade.name", "Curse Detector Upgrade") language.Add("Tool.spawn_curse_detector_upgrade...
nilq/small-lua-stack
null
-- DarkShadow6's TARDIS -- It's a telephone booth... Or is it? -- Variable initialization. ExteriorOffset = Vector3.new(math.random(-5000, 5000), math.random(5000, 10000), math.random(-5000, 5000)) ExteriorVelocityTarget = Vector3.new() ExteriorVelocityTargetSpeed = 0 DoorDebounce = true DoorLocked = false DoorOpen...
nilq/small-lua-stack
null
local source = remodel.readModelFile("test-models/folder-and-value.rbxmx")[1] remodel.writeExistingModelAsset(source, "3762610069")
nilq/small-lua-stack
null
--## -- allow for require to search relative to this plugin file -- open for improvements! if not _G.__plugin_initialized then _G.__plugin_initialized = true ---@type table local config = require("config") ---@type table local fs = require("bee.filesystem") ---@type table local workspace = require("work...
nilq/small-lua-stack
null
local _F = {} _cache = {} _url_cache = {} _count = 0 _max_count = 1000 function _F.setCache(url,matchUrl) local _v = _cache[url] if _v == nil then if _max_count < _count then _cache[_url_cache[1]] = nil _count = 0 end _count = _count + 1 table.insert(_url_cache,_co...
nilq/small-lua-stack
null
function PLUGIN:InitializedPlugins() -- There is no Customization Keys. CustomizableWeaponry.customizationMenuKey = "" -- the key we need to press to toggle the customization menu CustomizableWeaponry.canDropWeapon = false CustomizableWeaponry.enableWeaponDrops = false CustomizableWeaponry.quickGrenade.enable...
nilq/small-lua-stack
null
-- this example renders a pseudo-3D cube using some basic matrix math. animation { width = 400, height = 400, length = 6, framerate = 25 } Palette = { hex"#081944", hex"#28286A", hex"#4E3690", hex"#7B40B6", hex"#AE46D9", hex"#E745F8", } Background = solid(Palette[1]) CubeSidePaints = { solid(Palette[4...
nilq/small-lua-stack
null
-- NoIndex: true --[[ GUI Builder for Lokasenna_GUI v2.9 Ultraschall-Mod ]]-- dofile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua") ultraschall.Lokasenna_LoadGuiLib_v2() --[[ local lib_path = reaper.GetExtState("Lokasenna_GUI", "lib_path_v2") if not lib_path or lib_path == "" then reaper.MB...
nilq/small-lua-stack
null
-- define a global pi, every digit I can remember pi=3.1415926535897923846262643383279502 -- lcm of any number of integers function lcm(...) local function lcm_(x,y) local lcm_num=0 local greater=0 local multiplier=1 while math.floor(x)~=x or math.floor(y)~=y do x=x*10 y=y*10 multip...
nilq/small-lua-stack
null
local gs = require "gitsigns" return gs.setup { yadm = { enable = true } }
nilq/small-lua-stack
null
local screenWidth, screenHeight = guiGetScreenSize() local screenWidth, screenHeight = guiGetScreenSize() rectangleAlpha = 170 rectangleAlpha2 = 170 textAlpha = 255 textAlpha2 = 255 local screenW, screenH = guiGetScreenSize() local kill = false local resX, resY = guiGetScreenSize() function drawTitle() for k, v in pa...
nilq/small-lua-stack
null
local path = require 'lib.path' local Fonts = { path = path.prjoin('res', 'composer', 'fonts'), fonts = { card_name = {file = 'card-name.ttf', family = 'MatrixSmallCaps'}, edition = {file = 'edition.ttf', family = 'StoneSerif-Semibold'}, effect = {file = 'effect.ttf', family = 'MatrixBook'}, flavor...
nilq/small-lua-stack
null
SILE.registerCommand("color", function(options, content) local color = options.color or "black" color = SILE.colorparser(color) SILE.typesetter:pushHbox({ outputYourself= function (self, typesetter, line) SILE.outputter:setColor(color) end }); SILE.process(content) SILE.typesetter:pushHbox({...
nilq/small-lua-stack
null
project "BulletInverseDynamics" kind "StaticLib" includedirs { "..", } files { "IDMath.cpp", "MultiBodyTree.cpp", "details/MultiBodyTreeInitCache.cpp", "details/MultiBodyTreeImpl.cpp", }
nilq/small-lua-stack
null
return function() local InspectAndBuyFolder = script.Parent.Parent local SetEquippedAssets = require(InspectAndBuyFolder.Actions.SetEquippedAssets) local EquippedAssets = require(script.Parent.EquippedAssets) local MOCK_ASSET = { assetId = "123" } local MOCK_ASSET2 = { assetId = "456" } local function cou...
nilq/small-lua-stack
null
local ServerScriptService = game:GetService("ServerScriptService") local domainsFolder = ServerScriptService:WaitForChild("FunctionalDomains", 1) local module = { CarAndDriver = require(domainsFolder:WaitForChild("CarAndDriver", 2)), exNihilo = require(domainsFolder:WaitForChild("ExNihilo")), LightManager ...
nilq/small-lua-stack
null
DOTA2_AI_FUN_SPEW = false LinkLuaModifier("modifier_heros_bow_always_allow_attack", "fun_item_modifiers_lua.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_fun_heros_bow_debuff", "fun_item_modifiers_lua.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_angelic_alliance_spell_lifesteal", "fun_item...
nilq/small-lua-stack
null
-- Simple MV shell command. -- local args = {...} if #args < 2 then error("usage: mv SOURCE DESTINATION") return false end fs.move(shell.resolvePath(args[1]), shell.resolvePath(args[2]))
nilq/small-lua-stack
null
require 'nn' require 'image' require 'csvigo' require 'hdf5' require 'cudnn' require 'cunn' require 'cutorch' local function _read_data_handle( _filename ) -- the file is a csv file local csv_file_handle = csvigo.load({path = _filename, mode = 'large'}) local _n_lines = #csv_file_handle; ...
nilq/small-lua-stack
null
local events = {} local commands = {} local timers = {} local binds = {} local xmlFiles = {} local loadedDff = {} local loadedCol = {} local checkArguments_ = checkArguments SandboxHooks = {} function _unloadEverything() -- unload all events for _, eventInfo in ipairs(events) do removeEventHandler(unp...
nilq/small-lua-stack
null
Abilities = { HyperspaceInhibitor = { colour = {1,0,.7,1}, }, Hyperspace = { colour = {1,0,1,1}, }, Cloak = { colour = {0.4,0.5,1,0.9,}, }, DefenseField = { colour = {0,1,1,1}, }, } Multipliers = { SensorDistortion = { colour = {1,1,1,1}, }, WeaponAccuracy = ...
nilq/small-lua-stack
null
local function register_mappings(mappings, default_options) for mode, mode_mappings in pairs(mappings) do for _, mapping in pairs(mode_mappings) do local options = #mapping == 3 and table.remove(mapping) or default_options local prefix, cmd = unpack(mapping) pcall(vim.api.nvim_set_keymap, mode, ...
nilq/small-lua-stack
null
local stageselectstate = states.state:extend() function stageselectstate:begin() loader.load("assets/misc/select.png", "mugshots", "texture") loader.load("assets/sfx/cursor_move.ogg", "cursor_move", "sound") loader.load("assets/sfx/selected.ogg", "selected", "sound") megautils.loadStage(self, "assets/map...
nilq/small-lua-stack
null
if debug.setcstacklimit then -- to work with Lua 5.4 debug.setcstacklimit(30000) end local function ack(m, n) if m == 0 then return n + 1 end if n == 0 then return ack(m - 1, 1) end return ack(m - 1, ack(m, n - 1)) end local res = ack(3,10) print(res) assert(res == 8189)
nilq/small-lua-stack
null
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Determine the machine's location and useful information about that location -- -- This module provides functions for getting current location information and tracking location changes. It expands on the earlier version of the module by adding t...
nilq/small-lua-stack
null
object_tangible_furniture_all_wod_seed_jar = object_tangible_furniture_all_shared_wod_seed_jar:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_wod_seed_jar, "object/tangible/furniture/all/wod_seed_jar.iff")
nilq/small-lua-stack
null
slot0 = class("ShipHuntingRangeView", import("...base.BaseSubView")) slot0.getUIName = function (slot0) return "ShipHuntingRangeView" end slot0.OnInit = function (slot0) slot0.huntingRange = slot0._tf setActive(slot0.huntingRange, false) slot0.curLevel = slot0.huntingRange:Find("frame/current_level") slot0.sho...
nilq/small-lua-stack
null
RENDER_ENTS = RENDER_ENTS or {} for i,v in pairs(RENDER_ENTS) do if v:IsValid() then v:Remove() end end table.Empty(RENDER_ENTS) for k, v in pairs(hook.GetTable()) do for k2,v2 in pairs(v) do if k2 == "render_ents" then hook.Remove(k, k2) end end end local function is_entity_visible(self) if self.last_visib...
nilq/small-lua-stack
null
fx_version "adamant" game "gta5" author "Wolf" description "Emprego de Pedreiro inspirado no BGO do MTA" version "1.0.0" client_scripts { "@vrp/lib/utils.lua", "config.lua", "kclient.lua" } server_script { "@vrp/lib/utils.lua", "kserver.lua" }
nilq/small-lua-stack
null
DoReady.Shaman.Enhancement.MythicPlus.Tyrannical.Legendarys = { [1] = 335895, [2] = 354647, [3] = 356218, [4] = 335897, [5] = 356250, [6] = 336734, [7] = 335902, [8] = 336738, [9] = 336735, } DoReady.Shaman.Enhancement.MythicPlus.Tyrannical.Talents = { [1] = 334046, [2] = 201900, [3] = 260878, [4] = 333974, [5] = 30884...
nilq/small-lua-stack
null
require "core.utils.prequire" require "core.impatient" require "core.options" require "core.keymaps" require "core.plugins" require "core.colorscheme" require "core.autocommands" require "core.commands"
nilq/small-lua-stack
null
local status_ok, _ = pcall(require, "nvim-treesitter.configs") if not status_ok then return end require("nvim-treesitter.configs").setup({ highlight = { enable = true, custom_captures = { -- Highlight the @foo.bar capture group with the "Identifier" highlight group. ["foo.bar"] = "Identifier", }, -- Se...
nilq/small-lua-stack
null
EditorEnableSoundEnvironment = EditorEnableSoundEnvironment or class(MissionScriptEditor) function EditorEnableSoundEnvironment:create_element(...) EditorEnableSoundEnvironment.super.create_element(self, ...) self._element.class = "ElementEnableSoundEnvironment" self._element.values.enable = true self._element.valu...
nilq/small-lua-stack
null
--[[ Copyright (c) 2011-2012 qeeplay.com http://dualface.github.com/quick-cocos2d-x/ 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 ...
nilq/small-lua-stack
null
registerNpc(393, { walk_speed = 275, run_speed = 640, scale = 200, r_weapon = 1092, l_weapon = 0, level = 109, hp = 138, attack = 624, hit = 361, def = 768, res = 238, avo...
nilq/small-lua-stack
null
-- coding: UTF-8 local M = require "modules.string_rc" -- settings -- local DELAY = 0.15e6 -- 0.15 sec (in microseconds); to avoid flickering local PROGRESS_WIDTH = 30 -- /settings -- local CHAR_SOLID = ("").char(9608) --> █ local CHAR_DOTTED = ("").char(9617) --> ░ local progress = {} local mt_progress = { __in...
nilq/small-lua-stack
null
return {'elroy','elroys'}
nilq/small-lua-stack
null
local settings = UT.getSettings() if not settings.skillPoints then do return end end _G.CloneClass(SkillTreeManager) function SkillTreeManager:_verify_loaded_data(...) SkillTreeManager.orig._verify_loaded_data(self, settings.skillPoints - managers.experience:current_level()) end
nilq/small-lua-stack
null
-- incredible-gmod.ru local menu local pages = {} local itemsPerPage = 5 for page_id = 1, 3 do -- generate empty pages for debug (you should get real pages from the server or from somewhere else) pages[page_id] = {} for item_id = 1, itemsPerPage do pages[page_id][item_id] = { somePageData = "just a test", ...
nilq/small-lua-stack
null
local Coin = require 'entity/Coin' return function() return Coin('res/gold_coin.png', 50) end
nilq/small-lua-stack
null
dofile("test_setup.lua") LuaReload.SetHandleGlobalModules(true) local file1 = [=[ GlobalModule = {} local iter = 0 function GlobalModule.Func() log("> Hello, I'm the original version of the function, and I return 1000 + iter", iter, debug.getinfo(1).func) iter = iter + 1 return 100...
nilq/small-lua-stack
null
---------------------------------------------------------- PIPE FUNCTIONS ------------------------------------------------------------ local function tintPipeCovers(pipe_covers, tint) --SHOULD NOT HAVE TO DO THIS - hr_version IS ONLY MISSING WHEN A MOD EDITS THE PIPE IN DATA REEEEEEEEEEEE --like Industrial Revolution...
nilq/small-lua-stack
null
require("Navigator") StateMachine = require("StateMachine") print("CTEST_FULL_OUTPUT") -- Define application-wide data -- function myinit() print("Setting up scenegraph") navtransform = osg.PositionAttitudeTransform() --navtransform:addChild(osgLua.loadObjectFile('cessna.osg')) print("Attaching to scene") State...
nilq/small-lua-stack
null
--[[-------- A simple module with examples. Even without markdown formatting, blank lines are respected. @module usage ]] local usage = {} local helper --- a local helper function. -- @local function helper () end ---------- -- A simple vector class. -- -- Supports arithmetic operations. -- @usage -- v = Vector.n...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Ящик с реле (ЯР-27) -------------------------------------------------------------------------------- Metrostroi.DefineSystem("YAR_27") function TRAIN_SYSTEM:Initialize() -- Реле дверей (РД) self.Train:LoadSystem("RD","Relay","...
nilq/small-lua-stack
null
-- This key table is taken from my lua-getch library -- a default key table, that resolves most common terminal key press escape codes. local key_table = { [10] = "enter", [9] = "tab", [127] = "backspace", [27] = { [27] = "escape", [91] = { [65] = "up", [66] = "down", [67] = "right", [68] = "left", ...
nilq/small-lua-stack
null
local varm_util = require("modules/varm_util") local node_reqs = {} -- ('Read RTC Time' Node) function node_reqs.ensure_support_methods(node, proj_state) -- Import the 'misc', 'rtc', and 'pwr' standard periph libs, -- and make sure that a global 'RTC_TimeTypeDef' exists. if not varm_util.import_std_periph_lib('...
nilq/small-lua-stack
null
local const = {} const.HTTP_METHODS = {} const.HTTP_METHODS.GET = "GET" const.HTTP_METHODS.HEAD = "HEAD" const.HTTP_METHODS.POST = "POST" const.HTTP_METHODS.PUT = "PUT" const.HTTP_METHODS.DELETE = "DELETE" const.HTTP_METHODS.OPTIONS = "OPTIONS" -- subset of total content-type -- reference:https://stackoverflow.com/qu...
nilq/small-lua-stack
null
-- don't use require; that will pick up luarocks-installed module, not checkout local fennel = dofile("fennel.lua") table.insert(package.loaders or package.searchers, fennel.searcher) local generate = fennel.dofile("generate.fnl") local view = fennel.dofile("fennelview.fnl") -- Allow deterministic re-runs of generated...
nilq/small-lua-stack
null
-- Load setting local suffocation_damage = tonumber(minetest.settings:get("real_suffocation_damage")) or 10 local function is_truthy(val) return val ~= nil and val ~= false and val ~= 0 and val ~= "" end local function should_suffocate(def) --[[ Here comes the HUGE conditional deciding whether we use suffocation. We...
nilq/small-lua-stack
null
local listMgr = require 'vm.list' local sourceMgr = require 'vm.source' local newClass = require 'emmy.class' local newType = require 'emmy.type' local newTypeUnit = require 'emmy.typeUnit' local newAlias = require 'emmy.alias' local newParam = require 'emmy.param' local newReturn = ...
nilq/small-lua-stack
null
local llthreads = require "llthreads" local chan = require "chan" local ch1 = chan.new("ch1", 4) assert(ch1:send(1, 0)) assert(ch1:send(2, 0)) assert(ch1:send(3, 0)) assert(ch1:send(4, 0)) assert(not ch1:send(5, 0)) for i = 1, 4 do local v = ch1:recv(0) assert(v - i == 0) end assert(ch1:recv(0) == nil) loca...
nilq/small-lua-stack
null
--[[ GUI FRAMEWORK by RedPolygon --]] -- VARIABLES local GUI = {} GUI.modules = {} GUI.version = "0.2" -- FUNCTIONS -- Create new main object function GUI.new() local main = { calc = {} } main.objects = {} main.x, main.y = 0, 0 main.w, main.h = love.graphics.getWidth(), love.graphics.getHeight() main...
nilq/small-lua-stack
null
max_dist = 1000000 function func_calculate_overlapping(mask1, mask2) -- mask2 is ground truth local beg_i = 0 local last_i = 0 if mask1[1] > mask2[1] then beg_i = mask1[1] else beg_i = mask2[1] end if mask1[2] > mask2[2] then last_i = mask2[2] else last_i = mask1[2] end if beg_i > last_i then ...
nilq/small-lua-stack
null
-- Gets data on the PPM/PGM/PBM family. -- Contributed by Carsten Dominik <dominik@strw.LeidenUniv.nl> local function size (stream, options) local header = stream:read(1024) if not header or header:len() < 9 then return nil, nil, "PNM file header missing" end local without_comments = header:gsu...
nilq/small-lua-stack
null
local util = require 'lspconfig.util' return { default_config = { cmd = { 'salt_lsp_server' }, filetypes = { 'sls' }, root_dir = util.find_git_ancestor, single_file_support = true, }, docs = { description = [[ Language server for Salt configuration files. https://github.com/dcermak/salt-lsp ...
nilq/small-lua-stack
null
local class = require "class" local type = type local assert = assert local ipairs = ipairs local fmt = string.format local tconcat = table.concat local Set = class("Set") function Set:ctor(opt) self.type = "set" self.comment = opt.comment -- 注释 self.primary = opt.primary -- 主键...
nilq/small-lua-stack
null
local draw = function (self, screen, color) love.graphics.draw( self.sprite, self.x, self.y, 0, screen.scale, screen.scale ) local w = self.sprite:getWidth() local h = self.sprite:getHeight() love.graphics.printf( self.text, self.x + 32, self.y + 32, w * screen.scale - ...
nilq/small-lua-stack
null
local BODY_TEXTURE_NAME = "body" local shaders = {} local isVisible = false local function replaceTexture(vehicle, textureName, texture) if not isElement(vehicle) or type(textureName) ~= "string" or not isElement(texture) then return false end local shader = shaders[vehicle] if isElement(shader) then destroyEl...
nilq/small-lua-stack
null
local utils = require("utils") local drawing = require("utils.drawing") local atlases = require("atlases") local drawableSprite = require("structs.drawable_sprite") local matrixLib = require("utils.matrix") local drawableNinePatch = {} local drawableNinePatchMt = {} drawableNinePatchMt.__index = {} function drawable...
nilq/small-lua-stack
null
td = GetTileAtPosition(25, 25) td2 = GetTileAtPosition(25, 27) td3 = GetTileAtPosition(25, 29) ts = TileSet() lazyBasicAssert(0, GetTileSetCount(ts), "TileSet count 1") ts = AddTileToSet(ts, td) lazyBasicAssert(1, GetTileSetCount(ts), "TileSet count 2") ts = AddTileToSet(ts, td2) lazyBasicAssert(2, GetTileSetCount(t...
nilq/small-lua-stack
null
local utils = require "go-tools.utils" local M = {} local gotests = "gotests" local function run_gotests(cmd) require("go-tools.runner").run(gotests, function() vim.fn.jobstart(cmd, { on_stdout = function(_, _, _) utils.log "Unit tests was generated" end, on_stderr = function(_, _, _)...
nilq/small-lua-stack
null
-- Docs: https://docs.zenbot.gg/#/class?id=spellslotobj local Menu = module.load('IntKatarina', 'menu'); local e = { slot = player:spellSlot(2), last = 0, range = 725, Dagger = { } }; e.is_ready = function() return e.slot.state == 0 end e.GetBestDagger = function() lo...
nilq/small-lua-stack
null
workspace "Basics of ray tracing" configurations { "Debug", "Release" } language "C++" architecture "x64" systemversion "latest" toolset "v142" optimize "Speed" buildoptions { "/openmp" } filter "configurations:Debug" defines { "DEBUG" } symbols "On" filter "configurations:Releas...
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
alpha_wolf_invisibility_oaa = class(AbilityBaseClass) LinkLuaModifier("modifier_alpha_invisibility_oaa_buff", "abilities/neutrals/oaa_alpha_wolf_invisibility.lua", LUA_MODIFIER_MOTION_NONE) function alpha_wolf_invisibility_oaa:OnSpellStart() local caster = self:GetCaster() local duration = self:GetSpecialValueFor...
nilq/small-lua-stack
null
--- -- Overrides and extensions to Lua's `string` library. --- --- -- Converts first letter of string to uppercase if it isn't already. --- function string.capitalize(self) return (string.gsub(self, '^%l', string.upper)) end --- -- Returns a new string with any Premake pattern tokens (i.e. `*`) expanded to Lua pat...
nilq/small-lua-stack
null
local assert_error = require("lapis.application").assert_error local assert_valid = require("lapis.validate").assert_valid local csrf = require "lapis.csrf" local format = require "utils.text_formatter" local generate = require "utils.generate" local process = require "utils.request_process...
nilq/small-lua-stack
null
--[[ Streamline by Alleris Streamlines the RoM UI by removing unnecessary clicks and generally tries to make things easier on you. Use /sl, /streamline, or the AddonManager addon to access the config screen. Currently supported options --------------------------- Mail: * Open mailbox automatically when talking to a ...
nilq/small-lua-stack
null
object_tangible_furniture_decorative_wod_pro_sm_tree_04 = object_tangible_furniture_decorative_shared_wod_pro_sm_tree_04:new { } ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_pro_sm_tree_04, "object/tangible/furniture/decorative/wod_pro_sm_tree_04.iff")
nilq/small-lua-stack
null
local size = 16 local border = 4 local distance = size + border local PLUGIN = PLUGIN or {}; local PANEL = {} function PANEL:Init() self:SetPos(ScrW() * 0.375, ScrH() * 0.125); self:SetSize(ScrW() * nut.config.menuWidth, ScrH() * nut.config.menuHeight); self:MakePopup(); self.activeEntity = nil; end function PA...
nilq/small-lua-stack
null
-- Shaman Raven.classConditions.SHAMAN = { ["Lightning Shield Missing"] = { -- valid for Enhancement specialization only tests = { ["Player Status"] = { enable = true, inCombat = true }, ["Spell Ready"] = { enable = true, spell = 192106, }, -- "Lightning Shield" ["Any Buffs"] = { enable = true, toggle = tr...
nilq/small-lua-stack
null
nightsisterreturnScreenPlay = ScreenPlay:new { numberOfActs = 1, } registerScreenPlay("nightsisterreturnScreenPlay", true) function nightsisterreturnScreenPlay:start() if (isZoneEnabled("dungeon2")) then self:spawnMobiles() self:spawnSceneObjects() end end function nightsisterreturnScreenPlay:spawnSceneObj...
nilq/small-lua-stack
null
----------------------------------------------- -- key.lua -- Represents a key when it is in the world ----------------------------------------------- local Item = require 'items/item' local Prompt = require 'prompt' local utils = require 'utils' local Gamestate = require 'vendor/gamestate' local Key = {} Key.__index...
nilq/small-lua-stack
null
function Weld(x,y) local W = Instance.new("Weld") W.Part0 = x W.Part1 = y local CJ = CFrame.new(x.Position) local C0 = x.CFrame:inverse()*CJ local C1 = y.CFrame:inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = x end function Get(A) if A.className == "Part" then Weld(script.Parent.Handle, A) A.Anchored = false...
nilq/small-lua-stack
null
local json = require("cjson") -- local http = require "resty.http" local _M = {} -- 将字符串转换为table,如果转换失败,则返回nil _M.json_decode = function(str) local ok, t = pcall(json.decode, str) if not ok then return nil end return t end -- 将字符串转换为json,如果转换失败,则返回nil _M.json_encode = function(str) local...
nilq/small-lua-stack
null
includes("core_test")
nilq/small-lua-stack
null
AddCSLuaFile("crosshair/cl_init.lua")
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 --]] local Clockwork = Clockwork; local CloseDermaMenus = CloseDermaMenus; local IsVali...
nilq/small-lua-stack
null
--newTile: called to initalise and return a new tile function new_tile(colour,type,type2) local t = {} -- states: -- "vertical" = vertical powerup -- "horizontal" = horizontal powerup -- "explosion" = explosion powerup -- "remover" = hypercube powerup thing t.type = type or nil ...
nilq/small-lua-stack
null
-- vim: set foldmethod=marker foldlevel=0: local status_ok, ls = pcall(require, "luasnip") if not status_ok then return end local s = ls.snippet local sn = ls.snippet_node local isn = ls.indent_snippet_node local t = ls.text_node local i = ls.insert_node local f = ls.function_node local c = ls.choice_node local d =...
nilq/small-lua-stack
null
local user, id = unpack(ARGV); user = cjson.decode(user); local apikey = redis.call('GET', 'USER:'..user.id..':APIKEY'); -- Get the deaddrop -- local dd = redis.call('HGETALL', 'dd:' .. id); local ddId = redis.call('HGET', 'dd:' .. id, 'user'); local ddLocation = redis.call('HGET', 'dd:' .. id, 'location'); local ddL...
nilq/small-lua-stack
null
function do_beep(duration, frequency) beeper.beep(duration, frequency) end print("functions loaded")
nilq/small-lua-stack
null
local profile_util = require("profile_util") local arg_parser = require("lib.LuaArgParser.arg_parser") local api_util = require("api_util") local util = require("util") ---@class PhobosProfilesInternal : PhobosProfiles local phobos_profiles = { internal = { all_profiles = {}, profiles_by_name = {}, main...
nilq/small-lua-stack
null
local enums = require("consts.celeste_enums") local bonfire = {} bonfire.name = "bonfire" bonfire.depth = -5 bonfire.justification = {0.5, 1.0} bonfire.fieldInformation = { mode = { options = enums.bonfire_modes, editable = false } } bonfire.placements = { name = "bonfire", data = { ...
nilq/small-lua-stack
null
dcPin = 1 currentStatus = "off" -- set pin to output and set it to low to start with for safety gpio.mode(dcPin, gpio.OUTPUT) gpio.write(dcPin, gpio.LOW) wifi.setmode(wifi.STATION) wifi.sta.config("hive13int", "hive13int") print(wifi.sta.getip()) srv = net.createServer(net.TCP) srv:listen(80, function(conn) conn:o...
nilq/small-lua-stack
null
grondorn_muse_missions = { { missionType = "escort", primarySpawns = { { npcTemplate = "bandmember_quest_grondorn", npcName = "Vincol Dunker" } }, secondarySpawns = { }, itemSpawns = { }, rewards = { { rewardType = "credits", amount = 150 } } }, { missionType = "deliver", primar...
nilq/small-lua-stack
null
fanned_rawl = Creature:new { objectName = "@mob/creature_names:fanned_rawl", socialGroup = "rawl", faction = "", level = 10, chanceHit = 0.28, damageMin = 90, damageMax = 110, baseXp = 356, baseHAM = 810, baseHAMmax = 990, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "meat_reptilian", meatAmount...
nilq/small-lua-stack
null
-- notify highlights local lush = require "lush" local base = require "nano.base" local M = {} M = lush(function() return { NotifyERRORBorder { base.CriticalI }, NotifyWARNBorder { base.Popout }, NotifyINFOBorder { base.Salient }, NotifyDEBUGBorder { base.Faded }, NotifyTRACEBorder { base.Faded }, Notif...
nilq/small-lua-stack
null
-- mapget, map downloader implemented in Lua -- Copyright (C) 2015 Pavel Dolgov -- See the LICENSE file for terms of use. describe("mapget", function() it("requires main module", function() local mapget = assert(require 'mapget') end) it("downloads tile", function() local mapget = assert(...
nilq/small-lua-stack
null
local Quadrangle = require "quadrangle" local class = require "class" local Rectangle = class.extends(Quadrangle,"Rectangle") function Rectangle.new(x,y,width,height) return Rectangle.newObject(x,y,width,height,0,math.pi/2)--Rectangle:superClass().new(x,y,width,height) end function Rectangle:print() print(self:n...
nilq/small-lua-stack
null
local socket = require("socket") local party = { users = 1, max = 1, lastAlive = os.time(), lastReceive = 0, lastMouse = 0, lastBlocksUpdate = 0, mousePositions = {}, lastMousePositions = {}, name = "borsuczyna" } party.joinParty = function(host, port) party.server, err = socke...
nilq/small-lua-stack
null
--[=[ Doubly-linked lists of Lua values. Written by Cosmin Apreutesei. Public Domain. In this implementation items must be Lua tables for which fields `_prev` and `_next` are reserved for linking. list() -> list create a new list list:clear() clear the list ...
nilq/small-lua-stack
null
pair = "name = Anna" key, value = string.match(pair, "(%a+)%s*=%s*(%a+)") print(key, value)
nilq/small-lua-stack
null
minetest.register_alias("dye:light_red", "dye:pink") minetest.register_alias("dye:medium_orange", "dye:brown") minetest.register_alias("unifieddyes:black", "dye:black") minetest.register_alias("unifieddyes:dark_grey", "dye:dark_grey") minetest.register_alias("unifieddyes:grey", "dye:grey") minetest.register_...
nilq/small-lua-stack
null
local event = require("__flib__.event") local gui = require("__flib__.gui") local migration = require("__flib__.migration") local translation = require("__flib__.translation") local constants = require("scripts.constants") local global_data = require("scripts.global-data") local migrations = require("scripts.migration...
nilq/small-lua-stack
null
return { id = "ingotAdurite", name = "Adurite Ingot", desc = "Warm to the touch; Emanates raw power. Makes great melee equipment.", tier = 7, spriteSheet = "materials", spriteCoords = Vector2.new(8,2), recipe = { oreAdurite = 15, }, craftQuantity = 5, tags = { "...
nilq/small-lua-stack
null
--- === BonjourLauncher.recipes === --- --- Sample recipes for various service types that you can use with the BonjourLauncher spoon. --- --- This submodule includes sample templates for a variety of advertised services which may be of interest when used with the BonjourLauncher spoon. Each template can be displayed in...
nilq/small-lua-stack
null
function startRappel(x, y, z, gz) local r = getPedRotation(source) local seat = getPedOccupiedVehicleSeat(source) if (seat==0 or seat==2) then -- left hand side r = r + 90 else r = r - 90 end setPedRotation(source, r) local slot = getPedWeaponSlot(source) local invisible = createObject...
nilq/small-lua-stack
null
local f f = function(...) return #{ ... } end local dont_bubble dont_bubble = function() local _accum_0 = { } local _len_0 = 1 for x in (function(...) return print(...) end)("hello") do _accum_0[_len_0] = x _len_0 = _len_0 + 1 end return _accum_0 end local k do local _accum_0 = { } local _len_0 = 1 f...
nilq/small-lua-stack
null