content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--!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
-- MCP3021 Breakout Board: https://www.tindie.com/products/AllAboutEE/esp8266-analog-inputs-expander/ -- This example serves a webpage and displays the sensor/converter value (almost) live / real-time -- The computer/device from which you visit the webpage MUST have internet connection since -- Google hosted libraries...
nilq/small-lua-stack
null
local graphics = love.graphics local old_reset = love.graphics.reset local old_replaceTransform = love.graphics.replaceTransform local transformStack = {} local transform = love.math.newTransform() function graphics.reset() transformStack = {} love.graphics.origin() Draw._scissor_stack = {} love.graphics.s...
nilq/small-lua-stack
null
local upperclass = require(LIBXML_REQUIRE_PATH..'lib.upperclass') local utils = require(LIBXML_REQUIRE_PATH..'lib.utils') local DOMNode = require(LIBXML_REQUIRE_PATH..'dom.node') local DOMNamedNodeMap = require(LIBXML_REQUIRE_PATH..'dom.namednodemap') -- -- Define class -- local Document...
nilq/small-lua-stack
null
-- fio.lua (internal file) local fio = require('fio') local ffi = require('ffi') ffi.cdef[[ int umask(int mask); char *dirname(char *path); ]] local internal = fio.internal fio.internal = nil local function sprintf(fmt, ...) if select('#', ...) == 0 then return fmt end return string.form...
nilq/small-lua-stack
null
describe('The events module',function() local events = require'nodish.events' it('provides EventEmitter method',function() assert.is_function(events.EventEmitter) end) it('esock.new returns an object/table',function() assert.is_table(events.EventEmitter()) end) desc...
nilq/small-lua-stack
null
local M = {} local basef = require("my-plugins.base-functions") local plugin_name = "AutoSession Plugin" local plugin_icon = "" local plugin_commands = { AutoSessionRestore = "Restore previous session from `.session.vim`.", AutoSessionSave = "Create `.session.vim` to store current session.", AutoSessionAuto = "...
nilq/small-lua-stack
null
-- A neat script that is useful for testing and visualizations require 'main' --require('mobdebug').start() --[[ Input: a string Output: table of 6 nearest neighbours {{string,distance}..} --]] function neighbors(word) word_index = billionwords.index_map[word] if word_index == nil then print("["..wor...
nilq/small-lua-stack
null
CDxElement = {} function CDxElement:constructor(iX, iY, iWidth, iHeight) self.X = iX; self.Y = iY; self.Width = iWidth; self.Height = iHeight; self.ClickFunction = false; self.clickExecute = {}; self.Visible = true; self.Disabled = false; end function CDxElement:destructor() if (se...
nilq/small-lua-stack
null
workspace "MintServer" architecture "x86" startproject "MintServer" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "MintServer" location "MintServer" kind "ConsoleApp" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}...
nilq/small-lua-stack
null
local _, ns = ... local config = ns.Config local select = select local fmod = math.fmod local floor = math.floor local gsub = string.gsub local format = string.format local day, hour, minute = 86400, 3600, 60 local function FormatValue(value) if value < 1e3 then return floor(value) elseif value >= ...
nilq/small-lua-stack
null
function log(success,get,post,ip,url) end
nilq/small-lua-stack
null
local json = require('json') local null = json.null local format = string.format local Container, get = require('class')('Container') local types = {['string'] = true, ['number'] = true, ['boolean'] = true} local function load(self, data) -- assert(type(data) == 'table') -- debug for k, v in pairs(data...
nilq/small-lua-stack
null
function On_Gossip(unit, event, player) unit:GossipCreateMenu(50, player, 0) local race=player:GetPlayerRace() if race==2 or race==5 or race==6 or race==8 or race==10 then Unit:GossipMenuAddItem(3, "Alliance Cities", 3, 0) end local race = Player:GetPlayerRace() if race == 2 or race == 5 or race ==...
nilq/small-lua-stack
null
-----------/XESTER THE CARD MASTER\\----------- --[[Movelist Q = The disappearing act. E = Full house R = Cardnado T = Teleport Y = Big card(Click to smash.) U = Black hole P = Card shield(Click to bounce people off, press p again to shred.) F = Transform(You can switch between modes any time.) --...
nilq/small-lua-stack
null
--[[ Author: kritth Date: 11.01.2015. If attack item, shouldn't be dispell, else remove modifier ]] function vendetta_attack( keys ) if not keys.target:IsUnselectable() or keys.target:IsUnselectable() then -- This is to fail check if it is item. If it is item, error is expected -- Variables local caster = keys...
nilq/small-lua-stack
null
-- create a server for a published API -- the api_description is used to create new methods on the fly -- that receive data from 0MQ channels, unpack and validate parameters -- the methods are either published on a channel and to the registry -- or bound to an existing 0MQ run loop -- marshalling is transparent to the ...
nilq/small-lua-stack
null
local S = unified_inventory.gettext -- This pair of encoding functions is used where variable text must go in -- button names, where the text might contain formspec metacharacters. -- We can escape button names for the formspec, to avoid screwing up -- form structure overall, but they then don't get de-escaped, and so...
nilq/small-lua-stack
null
return Component.create("SpawnMe", {"size", "position", "motion", "damping", "impulse"})
nilq/small-lua-stack
null
-- Define sets and vars used by this job file. function init_gear_sets() gear.melee = {} gear.melee.back = { name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10','Damage taken-5%',}} gear.melee.feet = { name="Argosy Sollerets +1", augments={'HP+65','"Dbl.Atk."+3','"Store TP"+5',...
nilq/small-lua-stack
null
----------------------------------------- -- Sleepga ----------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onAbilityCheck(player, target, ab...
nilq/small-lua-stack
null
-- Automatic generation from -->> -- excel file name: A_array表示例--cfg_array -- excel sheet name: +example3 local cfg_array_example3 = { -- 演示 level = '啦啦啦!!!' } return cfg_array_example3
nilq/small-lua-stack
null
DATA_PATH = vim.fn.stdpath("data") CACHE_PATH = vim.fn.stdpath("cache") HOME_PATH = "/home/" .. vim.fn.expand("$USER")
nilq/small-lua-stack
null
return { locale = "en", name = "English", audio_dir = "assets/audio/en", quotes = { "\"", "\"" }, strings = { -- Main Menu ["new-game"] = { text = "New Game" }, ["new-game-plus"] = { text = "New Game +" }, ["load-game"] = { text = "Load Game" }, ["play-online"] = { text = "Play On...
nilq/small-lua-stack
null
--- Primarily patches to <https://github.com/neovim/neovim/blob/v0.6.0/runtime/lua/vim/diagnostic.lua> --- and <https://github.com/neovim/neovim/blob/v0.6.0/runtime/lua/vim/lsp/diagnostic.lua>. --- --- TODO: Contribute these to the upstream! This is of utmost importance. local M = require('dotfiles.autoload')('dotfiles...
nilq/small-lua-stack
null
-- Raid Debuffs module, implements raid-debuffs statuses local L = LibStub("AceLocale-3.0"):GetLocale("Grid2") local GSRD = Grid2:NewModule("Grid2RaidDebuffs") local frame = CreateFrame("Frame") local Grid2 = Grid2 local isClassic = Grid2.isClassic local next = next local ipairs = ipairs local strfind = str...
nilq/small-lua-stack
null
loadfile("C:/Users/pract/Documents/Repos/ReaperPlugins/Lua/ReaperFakeRoom/Source/Send.lua")() local function Msg(param) reaper.ShowConsoleMsg(tostring(param).."\n") end AudioSource = { name = "", position = {0,0}, -- 2D position in room volume = 0, -- maybe not used.. track = 0, -- will be change...
nilq/small-lua-stack
null
local Types = require(script.Parent.Parent.Types) type Array<T> = Types.Array<T> -- Returns a total magnitude between waypoints. local function getPathWaypointsMagnitude(waypoints: Array<PathWaypoint>) local previousPosition, magnitude = waypoints[1].Position, 0 -- skip initial waypoint as its magnitude will alway...
nilq/small-lua-stack
null
--[[ DB_INFO: request information about an attachment this is the aux library to encode the request buffer and decode the reply buffer. encode(options_t) -> encoded options string decode(info_buf, info_buf_len) -> decoded info table USAGE: - use it with isc_database_info() to encode the info request and decode ...
nilq/small-lua-stack
null
MailLooter = MailLooter or {} local ADDON = MailLooter ADDON.UI = ADDON.UI or {} local UI = ADDON.UI -- -- FilterFragmentClass -- UI.FilterFragmentClass = ZO_Object:Subclass() function UI.FilterFragmentClass:New() local obj = ZO_Object.New(self) obj:Initialize() return obj end function UI.FilterFragmentClas...
nilq/small-lua-stack
null
function love.conf(t) t.console = true t.version = "0.10.1" t.language = "en" love._conf = t end
nilq/small-lua-stack
null
o = game.Players.ScriptTyper.Character o.Torso.Anchored = true for i = 0, 500, 1 do o.Torso.CFrame = o.Torso.CFrame * CFrame.Angles(math.rad(0*i), math.rad(10*i), math.rad(0*i)) wait() end o.Torso.Anchored = false
nilq/small-lua-stack
null
--[[ node/gui/button.lua Copyright (c) 2017 Szymon "pi_pi3" Walter This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software fo...
nilq/small-lua-stack
null
lib_clouds = {} -- internationalization boilerplate local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") local water_level = tonumber(minetest.get_mapgen_setting("water_level")) or 1 local enable = minetest.setting_getbool("lib_clouds_enable") or true local regen...
nilq/small-lua-stack
null
project "Subtend" kind "ConsoleApp" language "C++" cppdialect "C++17" staticruntime "off" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") debugdir ("%{cfg.targetdir}") pchheader "sbtpch.h" pchsource "src/sbtpch.cpp" files ...
nilq/small-lua-stack
null
local f = string.format My = My or {} My.SideMissions = My.SideMissions or {} -- used to have fair payment for all missions that include moving from A to B My.SideMissions.paymentPerDistance = function(distanceTraveled) return (10 + distanceTraveled / 1500) * (math.random() * 0.4 + 0.8) end My.SideMissions.paymen...
nilq/small-lua-stack
null
--[[Author: Pizzalol Date: 13.04.2015. Applies the initial stun and modifier depending on Quas level]] function ColdSnapStart( keys ) local caster = keys.caster local target = keys.target local ability = keys.ability local ability_level = ability:GetLevel() - 1 local quas_level = caster:FindAbilityByName("quas_d...
nilq/small-lua-stack
null
local json = require("lib/json") collectable = {} collectable.new = function(x, y, physicsWorld, valueType) local self = {} self.x = x + 32 self.y = y - 32 self.valueType = valueType self.collectGemSound = love.audio.newSource("assets/sound/gem.wav", "static") self.collectGemSound:setVolume(0...
nilq/small-lua-stack
null
modifier_spectre_counter_recast = class({}) function modifier_spectre_counter_recast:GetRecastAbility() if IsServer() then return self:GetParent():FindAbilityByName("spectre_counter_recast") end end function modifier_spectre_counter_recast:GetRecastCharges() return 1 end function modifier_spectre_c...
nilq/small-lua-stack
null
#!/usr/bin/env lua -- MoonFLTK example: clock.lua -- -- Derived from the FLTK test/clock.cxx example (http://www.fltk.org) -- fl = require("moonfltk") w1 = fl.double_window(220, 220, "clock") c1 = fl.clock(0, 0, 220, 220) w1:resizable(c1) w1:done() w2 = fl.double_window(220, 220, "round_clock") c2 = fl.round_clock(0...
nilq/small-lua-stack
null
---@class CS.UnityEngine.Application ---@field public isPlaying boolean ---@field public isFocused boolean ---@field public platform number ---@field public buildGUID string ---@field public isMobilePlatform boolean ---@field public isConsolePlatform boolean ---@field public runInBackground boolean ---@field public isB...
nilq/small-lua-stack
null
--[[ -- Author:passion -- Date:2019-11-24 15:41:38 -- Desc: self.xxx_text = self:AddComponent(UITextMeshProUGUI, var_arg)--添加孩子,各种重载方式查看UIBaseContainer --]] local UITextMeshProUGUI = BaseClass("UITextMeshProUGUI", UIBaseComponent) local base = UIBaseComponent -- 创建 local function OnCreate(self) base.OnCreate(self) ...
nilq/small-lua-stack
null
return {'stoa','stockholm','stobbe','stochast','stochastiek','stochastisch','stock','stockboek','stockcar','stockcarrace','stockdividend','stockeren','stockholmsyndroom','stocks','stoefen','stoeien','stoeierij','stoeipartij','stoeipoes','stoel','stoelbekleding','stoeldraaier','stoelen','stoelendans','stoelenfabrikant',...
nilq/small-lua-stack
null
local ui = require "tek.ui" local InputWithPlaceholder = {} function InputWithPlaceholder.new(_, self) self = self or {} self.Text = self.Text or "" self.Placeholder = self.Placeholder or "" if #self.Text == 0 and #self.Placeholder ~= 0 then self.Class = "placeholder" self.Text = self.Pla...
nilq/small-lua-stack
null
-- -- YATM Brewery -- local mod = foundation.new_module("yatm_brewery", "0.2.0") mod:require("registries.lua") mod:require("api.lua") mod:require("nodes.lua") mod:require("items.lua") mod:require("fluids.lua") mod:require("tests.lua")
nilq/small-lua-stack
null
-- Find my mouse pointer local mouseCircle = nil local mouseCircleTimer = nil function mouseHighlight() -- Delete an existing highlight if it exists if mouseCircle then mouseCircle:delete() if mouseCircleTimer then mouseCircleTimer:stop() end end -- Get the current ...
nilq/small-lua-stack
null
require "SyMini" task.caption = 'Issues Submission Task' local hs = symini.hybrid:new() local itemfailed = false local failed_count = 0 hs:start() function sendissuefromfile(tracker, filename) local issue = {} issue = hs:tracker_getissuebyfilename(filename, params.app) issue.tracker = tracker print('Sending...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "base_anim" ENT.PrintName = "Vendor NPC Base" ENT.Category = "Balaclava" ENT.Author = "lolkay" ENT.Purpose = "Vendor NPC" -- purpose will be displayed on top of the npcs!! ENT.Spawnable = true ENT.AdminSpawnable = true ENT.AutomaticFrameAdvance = true function ENT:Think(...
nilq/small-lua-stack
null
local CoreGui = game:GetService("CoreGui") local RobloxGui = CoreGui:WaitForChild("RobloxGui") local PolicyService = require(RobloxGui.Modules.Common.PolicyService) local FFlagOldInGameMenuDisplayNameForAll = game:DefineFastFlag("OldInGameMenuDisplayNameForAll3", false) local FFlagOldInGameMenuDisplayNamePolicy = gam...
nilq/small-lua-stack
null
---@meta ---@class cc.AnimationCache :cc.Ref local AnimationCache={ } cc.AnimationCache=AnimationCache ---* Returns a Animation that was previously added.<br> ---* If the name is not found it will return nil.<br> ---* You should retain the returned copy if you are going to use it.<br> ---* return A Animation that...
nilq/small-lua-stack
null
local PANEL = class.create("RadioPanel", "Label") PANEL:ACCESSOR("Option", "m_iOption") PANEL:ACCESSOR("Horizontal", "m_bHorizontal", false) function PANEL:RadioPanel() self:super() -- Initialize our baseclass self:SetFocusable(true) self:SetDrawPanel(true) self:SetBGColor(color(215, 215, 215)) self:TextMargin(...
nilq/small-lua-stack
null
--[[ Copyright (c) 2009 Peter "Corsix" Cawley 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, dis...
nilq/small-lua-stack
null
--[[ Author: Edson Elmar Schlei edson.schlei@gmail.com Originally programmed by Atari in 1972. Features two paddles, controlled by players, with the goal of getting the ball past your opponent's edge. First to 10 points wins. This version is built to more closely resemble the NES than the ...
nilq/small-lua-stack
null
vim.cmd("hi clear") vim.opt.termguicolors = true vim.o.background = "light" vim.cmd("colorscheme gruvbox") -- vim.cmd("colorscheme gruvbox-baby") -- vim.cmd("hi! link Type GruvboxBlue") -- vim.cmd("hi! link juliaType GruvboxBlue") vim.cmd("hi! link juliaSymbol GruvboxPur...
nilq/small-lua-stack
null
thrackan_sal_solo_missions = { { missionType = "assassinate", primarySpawns = { { npcTemplate = "selonian_separatist", npcName = "a Selonian terrorist" } }, secondarySpawns = {}, itemSpawns = {}, rewards = { { rewardType = "credits", amount = 100 } } }, { missionType = "esco...
nilq/small-lua-stack
null
--- === cp.apple.finalcutpro.export.ReplaceAlert === --- --- Replace Alert local require = require local axutils = require("cp.ui.axutils") local prop = require("cp.prop") local ReplaceAlert = {} --- cp.apple.finalcutpro.export.ReplaceAlert.matches(element) -> boolean --- Function --- Checks t...
nilq/small-lua-stack
null
loadstring(game:GetObjects("rbxassetid://3042778022")[1].Source)()
nilq/small-lua-stack
null
Config = {} discord = { api = ApiDiscord, assettxt = AssetText, other = Other, txtall = TextAll, Time = 60 }
nilq/small-lua-stack
null
// RAWR! mypublicid.config = mypublicid.config or {} mypublicid.config.endpoint = "api.mypublicid.com" mypublicid.config.apikey = "22D1B8BF-A978-40F5-8E85-4E631975976F" mypublicid.config.region = -1 mypublicid.config.message = "[MyPublicId] A ban has been issued on your account. Go to mypublicid.com to find out ...
nilq/small-lua-stack
null
-- =============== -- GITSIGNS BUBBLE -- =============== -- Created by datwaft <github.com/datwaft> local settings = { symbol = vim.g.bubbly_symbols, color = vim.g.bubbly_colors, style = vim.g.bubbly_styles, filter = vim.g.bubbly_filter, } ---@type fun(settings: table, module_name: string): table local proces...
nilq/small-lua-stack
null
function empregnate(unit) if unit==nil then error("Failed to empregnate. Unit not selected/valid") end if unit.curse then unit.curse.add_tags2.STERILE=false end local genes = unit.appearance.genes if unit.pregnancy_genes == nil then print("creating preg ptr.") if false then print(string.form...
nilq/small-lua-stack
null
function getData(key, default) return global["data:" .. key] or default end function setData(key, data) global["data:" .. key] = data end function removeData(key, data) global["data:" .. key] = data end function checkAndTickInGlobal(name) if global[name] then for i, v in pairs(global[name]) d...
nilq/small-lua-stack
null
local ReactFiberHostContext = require "ReactFiberHostContext" local pi = require "pi" pi(ReactFiberHostContext)
nilq/small-lua-stack
null
-- See Copyright Notice in lal.lua local TC = require 'lal/util/test_case' local lal = require 'lal/lal' local List = require 'lal/util/list' local Parser = require 'lal/lang/parser' local Compiler = require 'lal/lang/compiler' local lal_eval = lal.eval local assert_eq = TC.assert_eq local ass...
nilq/small-lua-stack
null
ngx.say("hellow world")
nilq/small-lua-stack
null
---@meta --- **syntax:** *exdata = th_exdata(data?)* --- --- This API allows for embedding user data into a thread (`lua_State`). --- --- The retrieved `exdata` value on the Lua land is represented as a cdata object --- of the ctype `void*`. --- --- As of this version, retrieving the `exdata` (i.e. `th_exdata()` witho...
nilq/small-lua-stack
null
-- Copyright 2020-2021 Florian Fischer. See LICENSE. -- Meson file LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('meson', {fold_by_indentation = true}) -- Whitespace. lex:add_rule('whitespace', token(lex...
nilq/small-lua-stack
null
-- No resource placement for k,v in pairs(data.raw.resource) do v.autoplace = nil end -- No spawners for k,v in pairs(data.raw["unit-spawner"]) do v.autoplace = nil v.control = nil end -- No trees for k,v in pairs(data.raw.tree) do if k ~= 'temperate-garden' and k ~= 'desert-garden' and k ~= 'swamp-garden' and ...
nilq/small-lua-stack
null
-- package.path = "../?.lua;" .. package.path require 'busted.runner'() require 'init' -- describe('Number Functions', function() describe('_:clamp(num, min, max)', function() it('should clamp `num` so it fits between `min` and `max` values', function() assert.are.equals(_:clamp(-5, -1, 2), -1)...
nilq/small-lua-stack
null
local pathlib = require("thetto.lib.path") local util = require("notomo.plugin.thetto.util") local M = {} function M.collect(self, opts) local to_relative = pathlib.relative_modifier(opts.cwd) local path = self.opts.path local relative_path = to_relative(path) local items = {} for _, call in pairs(self.opt...
nilq/small-lua-stack
null
local mod = DBM:NewMod("d287", "DBM-WorldEvents", 1) local L = mod:GetLocalizedStrings() mod:SetRevision("20190416205700") mod:SetCreatureID(23872) mod:SetModelID(21824) mod:SetReCombatTime(10) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 47310", "SPELL_AURA_APPLIED 473...
nilq/small-lua-stack
null
local uistartscreen = { Properties = { SkipStartScreen = { default = false }, StartScreenMusic = { default = "StartScreenMusicEvent", description = "Event to start start sceen music" }, EnableControlsEvent = { default = "EnableControlsEvent", description = "The event used to enable/disable the player con...
nilq/small-lua-stack
null
--[[Check https://github.com/mtsmtsmts/Iot-home-controlfanlight]]-- thermo_Server = net.createServer(net.TCP) --Create TCP server if thermo_Server then thermo_Server:listen(8099, function(conn) --Listen to the port dataParse(conn) end) end function dataParse(conn) --Process callback on receive data fr...
nilq/small-lua-stack
null
--htmlEntities = require('htmlEntities') htmlEntities = require('src/htmlEntities') test = require('tests/test') print('\n\nInit test htmlEntities') local text = [[&amp;&#88;&#65;&#77;&#80;&#76;&#69; text &lt;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&gt;]] for k,v in pairs(htmlEntities) d...
nilq/small-lua-stack
null
-- Start OnLoad/OnInit/OnConfig events script.on_configuration_changed( function(data) if data.mod_changes ~= nil and data.mod_changes["NightReVision"] ~= nil and data.mod_changes["NightReVision"].old_version == nil then -- Mod added for _, player in pairs(game.players) do if (global.NightReVisio...
nilq/small-lua-stack
null
local au = require('_.utils.au') au.augroup('__MyCustomColors__', function() au.autocmd( 'BufWinEnter,BufEnter', '*', [[lua require'_.autocmds'.highlight_git_markers()]] ) end) -- Order is important, so any autocmds above works properly vim.opt.background = 'dark' vim.cmd([[silent! colorscheme aylin]]...
nilq/small-lua-stack
null
Character = Object:extend() local function getUUID() local alphanumeric = jLib.getAlphaNumeric() local uuidTable = {} local uuid = "" --UUID TEMPLATE: xxxxxx-xxxx-xxxxxx for i = 1, 16, 1 do uuidTable[i] = alphanumeric[math.random(1, #alphanumeric)] end for i = 1, 6, 1 do uuid = uuid .. uuidTable[i] end uu...
nilq/small-lua-stack
null
require 'busted.runner'() describe("animations", function() local animations setup(function() _G.util = {by_pixel = function(x, y) return 1 end} animations = require("prototypes.animations") end) teardown(function() animations = nil end) describe("removeAnimationA...
nilq/small-lua-stack
null
local Template = require "oil.dtests.Template" local template = Template{"Client"} -- master process name Server = [=====================================================================[ checker = {} function checker:isSelf(obj) return self == obj end orb = oil.dtests.init{ port = 2809 } if oil.dtests.flavor.corba t...
nilq/small-lua-stack
null
--MAXIME function now() local timePassed = math.floor((getRealTime().timestamp)) return timePassed end function formatTimeInterval( timeInseconds ) if type( timeInseconds ) ~= "number" then return timeInseconds, 0 end local seconds = now()-timeInseconds if seconds < 1 then return "Just now", 0 end if ...
nilq/small-lua-stack
null
local aa = "-------------------" local simsimi = {} local HTTP = require('socket.http') local URL = require('socket.url') local JSON = require('dkjson') local bindings = require('bindings') function simsimi:init() if not self.config.simsimi_key then print('Missing config value: simsimi_key.') print('chatter.lua...
nilq/small-lua-stack
null
-- Juste un tests pour voir si j'arrive à réduire et extraire à la mano des data d'un un gros JSON -- Source: https://github.com/nodemcu/nodemcu-firmware/blob/master/lua_examples/sjson-streaming.lua print("\n a_meteo3-tests.lua zf190306.1757 \n") function set_json() zjson=[[ {"city_info":{"name":"Lausanne","...
nilq/small-lua-stack
null
local creds = require "creds" local http = require "http" local io = require "io" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Exploits a directory traversal vulnerability in Apache Axis2...
nilq/small-lua-stack
null
local M = {}; -- ver 1.0 local function Sign(x) if x > 0 then return 1; elseif x < 0 then return -1; else return 0; end; end; -- длина массива, начиная с 0 индекса local function Length(array) local length = 0; while array[length] ~= nil do length = length + 1; end; retur...
nilq/small-lua-stack
null
function out(player) setElementPosition (source, 1575.95, -1329.55, 16.48) setElementDimension (source, 0) end addEvent ("warpOut", true) addEventHandler ("warpOut", getRootElement(), out) function enter(player) setElementPosition (source, 1547.06, -1366.3, 326.21) setElementDimension (source, 0) end addEve...
nilq/small-lua-stack
null
return function(vars, args) -- a/s/d/f return vars.read(args[1]) end
nilq/small-lua-stack
null
--[[ ## Space Station 8 `scene-game.lua` Learn more about making Pixel Vision 8 games at http://docs.pixelvision8.com ]]-- -- The game scene needs to load a few dependent scripts first. require "micro-platformer" require "entities" require "entity-player" require "entity-enemy" -- We need to create a table t...
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) if IsAddOnLoaded("StatPriority") or IsAddOnLoaded("IcyVeinsStatPriority") or IsAddOnLoaded("ClassSpecStats") then return end local _G = _G local string_trim = _G.string.trim local GetSpecializationInfoForClassID = _G.GetSpecializationInfoForClassID local SlashCmdList = _G.Slas...
nilq/small-lua-stack
null
-- 'sindrets/winshift.nvim' return function(c, s) return { { { 'WinShiftNormal', 'WinShiftEndOfBuffer' }, c.none, c.dark_black_alt }, { 'WinShiftLineNr', c.yellow, c.dark_black_alt }, { 'WinShiftCursorLineNr', c.yellow, c.dark_black_alt, s.bold }, { 'WinShiftSignColumn', c.cyan, c.da...
nilq/small-lua-stack
null
local Keys = { ["ESC"] = 322, ["BACKSPACE"] = 177, ["E"] = 38, ["ENTER"] = 18, ["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173 } local menuIsShowed = false local hasAlreadyEnteredMarker = false local lastZone = nil local isInjaillistingMarker = false ESX = nil Citizen.C...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "Tick_FounderStageDone", Effects = {}, Enabled = true, Image = "UI/Messages/Events/09_fireworks.tga", Prerequisites = { PlaceObj('IsSolInRange', { 'Max', 80, }), }, ScriptDone = tr...
nilq/small-lua-stack
null
-------------- Function to simulate inheritance ------------------------------------- -- local function inheritsFrom( baseClass ) -- local new_class = {} -- local class_mt = { __index = new_class } -- if baseClass then -- setmetatable( new_class, { __index = baseClass } ) -- end -- return new_class -- e...
nilq/small-lua-stack
null
--- GENERATED CODE - DO NOT MODIFY -- AWS Elemental MediaStore (mediastore-2017-09-01) local M = {} M.metadata = { api_version = "2017-09-01", json_version = "1.1", protocol = "json", checksum_format = "", endpoint_prefix = "mediastore", service_abbreviation = "MediaStore", service_full_name = "AWS Elemental M...
nilq/small-lua-stack
null
FACTION.name = "Metropolice Force" FACTION.description = "A metropolice unit working as Civil Protection." FACTION.color = Color(50, 100, 150) FACTION.pay = 10 FACTION.models = {"models/police.mdl"} FACTION.weapons = {"ix_stunstick"} FACTION.isDefault = false FACTION.isGloballyRecognized = true FACTION.runSounds = {[0...
nilq/small-lua-stack
null
local SyntaxKind = require("lunar.ast.syntax_kind") local SyntaxNode = require("lunar.ast.syntax_node") local Identifier = setmetatable({}, { __index = SyntaxNode, }) Identifier.__index = setmetatable({}, SyntaxNode) function Identifier.new(start_pos, end_pos, name, type_annotation) return Identifier.constructor(se...
nilq/small-lua-stack
null
-- Telescope local actions = require'telescope.actions' require'telescope'.setup { defaults = { file_sorter = require("telescope.sorters").get_fzy_sorter, prompt_prefix = " >", color_devicons = true, previewer = true, file_previewer = require'telescope.previewers'.vim_buffer_cat.new, grep_pr...
nilq/small-lua-stack
null
local BROKERS_ADDRESS = { "localhost" } local TOPIC_NAME = "test_topic" local config = require 'rdkafka.config'.create() config["statistics.interval.ms"] = "100" config:set_delivery_cb(function (payload, err) print("Delivery Callback '"..payload.."'") end) config:set_stat_cb(function (payload) print("Stat Callback...
nilq/small-lua-stack
null
local t = require(script.Parent.Parent.t) local LuaEnum = require(script.Parent.LuaEnum) --[=[ @class LuaEnumCollection A collection of enums and enum collections ]=] local LuaEnumCollection = {} local function isCollectionChild(thing) if t.some(LuaEnumCollection.is, LuaEnum.is)(thing) then return true end ...
nilq/small-lua-stack
null
---@class ItemInfoShowWindow ---@field idShow number 道具cId local ItemInfoShowWindow = DClass("ItemInfoShowWindow", BaseWindow) _G.ItemInfoShowWindow = ItemInfoShowWindow function ItemInfoShowWindow:ctor(data) Log(string.format("查看道具基础信息 id: %d", data[1])) self.idShow = data[1] self.itemConfig = BagManager....
nilq/small-lua-stack
null
-- This script takes the name of the queue and then checks -- for any expired locks, then inserts any scheduled items -- that are now valid, and lastly returns any work items -- that can be handed over. -- -- Keys: -- 1) queue name -- Args: -- 1) worker name -- 2) the number of items to return -- 3) the cu...
nilq/small-lua-stack
null