content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
mq = require('mq')
require 'ImGui'
local FailSafe = function()
--mq.delay(1)
end
local openGUI = true
local shouldDrawGUI = true
local dotGUI = function()
openGUI, shouldDrawGUI = ImGui.Begin('DoTs', openGUI)
local checkDebuff = function (buffName)
if (mq.TLO.Target.Buff(buffName).ID()) then
loc... | nilq/small-lua-stack | null |
--- LÖVE file release.
-- @module scripts.love
-- @usage love(project)
local Script = require "love-release.script"
local s = {}
function s.script(project)
local script = Script:new(project)
script:createLoveFile()
end
setmetatable(s, { __call = function(_, project) return s.script(project) end })
return s
| nilq/small-lua-stack | null |
--- midi devices
-- @module midi
-- @alias Midi
require 'norns'
local Midi = {}
Midi.devices = {}
Midi.list = {}
Midi.vport = {}
for i=1,4 do
Midi.vport[i] = {
name = "none",
callbacks = {},
index = 0,
send = function() end,
attached = false
}
end
Midi.__index = Midi
--- constructor
-- @tpara... | nilq/small-lua-stack | null |
local vector_meta = global_metatable("vector")
local quat_meta = global_metatable("quaternion")
function IsVector(v)
return type(v) == "table" and type(v[1]) == "number" and type(v[2]) == "number" and type(v[3]) == "number" and not v[4]
end
function MakeVector(v)
return setmetatable(v, vector_meta)
end
func... | nilq/small-lua-stack | null |
TOOL.Category = "Stools"
TOOL.Name = "#Set NPC RagMorph"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "RagMorph"
TOOL.ClientConVar = {
Pelvis = "1",
Chest = "1",
RightUpperArm = "1",
LeftUpperArm = "1",
LeftForearm = "1",
LeftHand = "1",
RightForearm = "1",
RightHand = "1",
RightThigh =... | nilq/small-lua-stack | null |
-- Engine requires
local vec2 = require 'Math.vec2'
local Window = require 'GUI.Window'
local TextColor = require 'GUI.Text.Color'
local MenuOrientation = require 'GUI.Menu.Orientation'
local MenuSettings = require 'GUI.Menu.Settings'
local Rect = require 'Shape.Rectangle'
local ... | nilq/small-lua-stack | null |
---@type Ellyb
local Ellyb = Ellyb(...)
if Ellyb.Texture then
return
end
--{{{ Class declaration
--- @class EllybTexture : Object
local Texture = Ellyb.Class("Texture")
--- This class in an abstraction to help handle World of Warcraft textures, especially when dealing with both texture IDs and file path.
---@param ... | nilq/small-lua-stack | null |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Lua functions
local _G = _G
local pairs = pairs
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or ... | nilq/small-lua-stack | null |
local chilled = false
local buffed = false
local staffEquipped = false
local manaTotal = 0
--setHudValue("manaShow", true)
--setHudValue("mana", 100)
--exports["caue-ui"]:sendAppEvent("hud", {
-- true | false = currentValues["manaShow"], -- lmao
-- 0 | 100 = currentValues["mana"],
--})
-- TriggerServerEvent("Interac... | nilq/small-lua-stack | null |
--[[
____ _ _ _
| __ ) __ _ ___ | |__ __ _ ___ (_) |_
| _ \ / _` |/ _ \| '_ \ / _` |/ _ \| | __|
| |_) | (_| | (_) | |_) | (_| | (_) | | |
|____/ \__,_|\___/|_.__/ \__,_|\___/|_|\__|
--]]
--[[
╔═══════════╗
║ Bootstrap ║
╚═══════════╝
--]]
require "bootstrap"
--[[
╔═══════... | nilq/small-lua-stack | null |
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
return onUseScythe(player, item, fromPosition, target, toPosition, isHotkey)
end | nilq/small-lua-stack | null |
-- ########################################################
-- ECHONET Lite Wireshark dissector
-- ########################################################
--
-- Author : Yuki MIZUNO
-- Version: 1.2.1
-- License: MIT
--
-- ########################################################
--
-- Copyright (c) 201... | nilq/small-lua-stack | null |
include("shared.lua")
function ENT:Draw()
self:DrawModel()
if not self:GetParent():IsValid() then
local pos = self:GetPos()
local ang = self:GetAngles()
surface.SetFont("Trebuchet24")
local txt = self:GetClass()
local w, h = surface.GetTextSize(txt)
cam.Start3D2D(pos +ang:U... | nilq/small-lua-stack | null |
require 'task'
TEST = {}
function TEST.ts()
local tl = task.list()
io.stdout:write( '\nID SCRIPT COUNT REG/ID\n' )
io.stdout:write( '---- ---------------- --------- ----------------\n' )
if tl then
for i, t in pairs( tl ) do
io.stdout:write( string.format(... | nilq/small-lua-stack | null |
#@
-- Path of Building
--
-- Module: Update Apply
-- Applies updates.
--
local opFileName = ...
print("Applying update...")
local opFile = io.open(opFileName, "r")
if not opFile then
print("No operations list present.\n")
return
end
local lines = { }
for line in opFile:lines() do
table.insert(lines, line)
end
opFil... | nilq/small-lua-stack | null |
-- pattern for finding figure references
-- Example: {#f:fig1ref:i}
local patt = "{%#%l:.+:%a}"
local id_patt = ":(.+):"
local part_of_text_patt = ":(%a)}"
-- Variables
local img_filetype = ".png"
local img_caption_filetype = ".md"
local fig_dir = ""
local caption_dir = ""
local function file_exists(file)
-- Check ... | nilq/small-lua-stack | null |
aaa
abc
academia
academic
access
ada
admin
administrator
adrian
adrianna
aerobics
airplane
albany
albatross
albert
alex
alexander
alf
algebra
alias
aliases
alice
alicia
alisa
alison
allison
alpha
alphabet
ama
amadeus
amanda
amber
amorphous
amy
analog
anchor
andrea
andromache
andy
angela
angerine
angie
animals
anita
an... | nilq/small-lua-stack | null |
print "Starting up AP..."
local ap_config = {}
local ip_config = {}
ap_config.ssid = "ESP-"..node.chipid()
ap_config.pwd = "ESP-"..node.chipid()
ip_config.ip = "192.168.1.1"
ip_config.netmask = "255.255.255.0"
ip_config.gateway = "192.168.1.1"
wifi.setmode(wifi.SOFTAP)
print('SSID:', ap_config.ssid)
wifi.ap.config(... | nilq/small-lua-stack | null |
wAchievement, imgAchievement, lTitle, lDesc = nil
function displayAchievement(id)
local name, description, points = unpack(getAchievementInfo(id))
local width, height = 600, 100
local scrWidth, scrHeight = guiGetScreenSize()
local x = scrWidth/2 - (width/2)
local y = scrHeight - (scrHeight/6 - (height/6... | nilq/small-lua-stack | null |
local TestLayer = require("graphic.test.TestLayer")
local TestMaskLayer = class("TestMaskLayer", TestLayer)
function TestMaskLayer:ctor()
TestLayer.ctor(self)
end
function TestMaskLayer:init()
TestLayer.init(self)
self:customLayout()
end
function TestMaskLayer:guideMask()
local rect = self._imageGo:GetComp... | nilq/small-lua-stack | null |
--[[
this system manages the health for entities. if an
entity runs out of health, it's marked for removal.
]]
local health = {}
function health:collide(e, other)
--[[
make sure both entities have health. otherwise, this
system shouldn't operate on them.
]]
if not self.pool.groups.health.hasEntity[e] then re... | nilq/small-lua-stack | null |
local awful = require("awful")
local OrderedClientStartup = {}
-- Structure per app:
-- { cmd="command" , tag = t , screen = s, geo={x=x0, y=y0, w=w0, h=h0} }
OrderedClientStartup.my_apps = {}
-- Nested callbacks to ensure the applications' respective clients spawn
-- in the correct order and are then moved to ... | nilq/small-lua-stack | null |
--トリシューラの鼓動
--
--Script by 龙骑
function c100340055.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100340055)
e1:SetTarget(c100340055.target)
e1:SetOperation(c100340055.activat... | nilq/small-lua-stack | null |
object_static_item_item_component_configuration_module = object_static_item_shared_item_component_configuration_module:new {
}
ObjectTemplates:addTemplate(object_static_item_item_component_configuration_module, "object/static/item/item_component_configuration_module.iff")
| nilq/small-lua-stack | null |
--imports--
local api = require"novus.api"
local util = require"novus.snowflakes.helpers"
local snowflake = require"novus.snowflakes"
local const = require"novus.const"
local cqueues = require"cqueues"
local null = require"cjson".null
local setmetatable = setmetatable
local gettime = cqueues.monotime
local running = cq... | nilq/small-lua-stack | null |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
local PANEL = {}
function PANEL:Init()
self.stagePanels = {}
end
function PANEL:AddStagePanel(name, dType)
local id = #self.stagePanels + 1;
local panel = self:Add(dType or "DPanel");
panel:Dock(FILL);
pa... | nilq/small-lua-stack | null |
local init = require("test_setup")()
local ffi = require("ffi")
local int = ffi.typeof("int")
local int_a = ffi.typeof("int[?]")
--local a = ffi.new("int[1]");
local a = int_a(1);
printf("Enter integer\n");
scanf("%d", a);
printf("Integer that you have entered is %d\n", int(a[0]));
| nilq/small-lua-stack | null |
-- lua-MessagePack 0.5.1
-- Copyright (c) 2012-2018 Francois Perrad"
-- licensed under the terms of the MIT/X11 license
-- thanks :)
local floor = require'math'.floor
local huge = require'math'.huge
local ldexp = require'math'.ldexp or require'mathx'.ldexp
return function (s)
if #s < 4 then
error "missing b... | nilq/small-lua-stack | null |
assert(truc == 5);
local l = require("some.thing");
assert(l.truc == 10);
| nilq/small-lua-stack | null |
--[[
Autoinstall plugin
Licensed by Creative Commons Attribution-ShareAlike 4.0
http://creativecommons.org/licenses/by-sa/4.0/
Dev: TheHeroeGAC
Designed By Gdljjrod & DevDavisNunez.
Collaborators: BaltazaR4 & Wzjk.
]]
dofile("lang/Langdatabase.lua")--Official
function update_database(database,tb)
local fi... | nilq/small-lua-stack | null |
local oo = require "oil.oo"
Collector = oo.class{}
function Collector:__init()
return oo.rawnew(self, { emails = {} })
end
local MailSent = {}
function Collector:send_to(email)
assert(type(email) == "string", "attempt to send message to address "..tostring(email))
assert(string.find(email, ".+@.+"), "attempt to s... | nilq/small-lua-stack | null |
--[[
EmuDevs <http://emudevs.com/forum.php>
Eluna Lua Engine <https://github.com/ElunaLuaEngine/Eluna>
Eluna Scripts <https://github.com/ElunaLuaEngine/Scripts>
Eluna Wiki <http://wiki.emudevs.com/doku.php?id=eluna>
-= Script Information =-
* Zone: Stormwind
* Script Type: Creature
* Cr... | nilq/small-lua-stack | null |
local _, G = ...
local cvars = {
alwaysShowActionBars = 0,
autoClearAFK = 1,
autointeract = 0,
autoLootDefault = 1,
autoQuestWatch = 1,
autoSelfCast = 1,
blockChannelInvites = 0,
blockTrades = 0,
cameraDistanceMaxZoomFactor = 2.6,
chatBubbles = 1,
chatBubblesParty = 0,
chatStyle = 'classic',
... | nilq/small-lua-stack | null |
-- from Original keyboard mod by bas080
-- Cracked by jogag -> cracked by juli from digilines to rc
-- Added features: useable with rc mod
local RC_RADIUS = 5
minetest.register_node("rc_keyboard:rc_keyboard", {
description = "rc_keyboard",
tiles = {"rc_keyboard_top.png", "rc_keyboard_bottom.png", "rc_keyboard_s... | nilq/small-lua-stack | null |
-- a quick access status screen
-- originally written by enjia2000@gmail.com (stolencatkarma)
--[====[
gui/dfstatus
============
Show a quick overview of critical stock quantities, including food, drinks, wood, and various bars.
Sections can be enabled/disabled/configured by editing :file:`dfhack-config/dfstatus.lua`.... | nilq/small-lua-stack | null |
UIBase = {}
UIBase.__index = UIBase
function UIBase:GetControl(typeName, uri)
return self.Controller:GetControl(typeName, uri)
end
function UIBase:GetUIText(uri)
local text = self:GetControl("UnityEngine.UI.Text", uri)
return text
end
function UIBase:GetUIButton(uri)
local btn = self:GetControl("Unit... | nilq/small-lua-stack | null |
SIM2D.TYPE.HEXBTN = "hexbtn";
local tSim2D = Sim2D.__properties;
class "HexBtn" : extends(Btn) {
__construct = function(this, sState, sName, nX, nY, nWidth, nHeight, nStratum, nLayer, bDoNotPoll, bDoNotAutoDraw)
--create the hex size and center point based on the rectangle
local nSize = nHeight / 2;
local... | nilq/small-lua-stack | null |
function onCreate()
-- background
makeLuaSprite('sky', 'midnight/midnightBG', -120, -50)
setLuaSpriteScrollFactor('sky', 0.1, 0.1);
addLuaSprite('sky', false);
--bg limos
makeAnimatedLuaSprite('midnightbgLimo', 'midnight/midnightbgLimo', -150, 480)
setLuaSpriteScrollFactor('midnightbgLimo', 0.4, 0.4);
addAni... | nilq/small-lua-stack | null |
-- Convert HSL (hue saturation lightness) to RGB (red green blue)
-- Original code by John Chin-Jew/Wavalab:
-- https://github.com/Wavalab/rgb-hsl-rgb
local base = require('modules.libraries.backend.base')
local colors = {}
function colors.hsl2hex(h, s, l, a)
a = a or 100
local r, g, b
h = (h / 360)
s = (s / 100... | nilq/small-lua-stack | null |
ArtNumLayout = class("ArtNumLayout", function ()
return ccui.Layout:create()
end)
ArtNumLayout.ctor = function (slot0)
slot0._numArr = nil
slot0._prefix = ""
slot0._layout = ccui.Layout:create()
slot0._isVisible = true
slot0:addChild(slot0._layout)
slot0:retain()
end
ArtNumLayout.setText = function (slot0, sl... | nilq/small-lua-stack | null |
#!tools/lua
-- dumps contents of a tap file
local args = {...}
local filename = args[1]
if filename == nil then
print("Usage: dump_tap.lua <filename>")
return
end
local file = assert(io.open(filename, "rb"))
function printf(...)
print(string.format(...))
end
function fread_byte()
return string.byte(file:read(... | nilq/small-lua-stack | null |
local Entity = {}
function Entity:new(x, y, width, height, drawable, debugColor)
local entity = {}
setmetatable(entity, self)
self.__index = self
entity.x = x or 0
entity.y = y or 0
entity.width = width or 1
entity.height = height or 1
entity.drawable = drawable or Drawable:new()
en... | nilq/small-lua-stack | null |
--
-- Mixpanel Example project
--
-- Sample code is MIT licensed
-- Copyright (C) 2017 Yoger Games AB. All Rights Reserved.
--
------------------------------------------------------------
-- Require plugin
local mixpanel = require "plugin.mixpanel"
local idMap = {}
local t = os.date( '*t' )
--------------------------... | nilq/small-lua-stack | null |
local ThreatLib = LibStub and LibStub("ThreatClassic-1.0", true)
if not ThreatLib then return en
local SUPREMUS_ID = 22898
ThreatLib:GetModule("NPCCore"):RegisterModule(SUPREMUS_ID, function(Supremus)
Supremus:RegisterTranslation("enUS", function() return {
["Supremus punches the ground in anger!"] = "Supremus punc... | nilq/small-lua-stack | null |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
local area = createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4)
combat:setArea(area)
function onGetFormulaValues(player, level, maglevel)
min = -((level / 5) + (maglevel * 1.2)... | nilq/small-lua-stack | null |
--===========================================================================--
-- --
-- System.Web.StaticFileLoader --
-- --
... | nilq/small-lua-stack | null |
return {'geysels','geyeld','geyahtzeed'} | nilq/small-lua-stack | null |
WebBanking {
description = "Service Description"
}
| nilq/small-lua-stack | null |
--- Parser for LittleFighterForever syntax v2. Inherited from @{l2df.class.parser|l2df.class.parser.BaseParser} class.
-- @classmod l2df.class.parser.lffs2
-- @author Kasai
-- @author Abelidze
-- @copyright Atom-TM 2020
local core = l2df or require(((...):match('(.-)class.+$') or '') .. 'core')
assert(type(core) == 't... | nilq/small-lua-stack | null |
local containerPrototype = {}
function containerPrototype:AddChild(child)
if type(child) == "table" then
ToshUnitFrames.regions:Add(child)
elseif type(child) == "number" then
child = ToshUnitFrames.regions[child]
end
assert(type(child) == "table")
self.children = self.children or {... | nilq/small-lua-stack | null |
-- VARIABLES ===================================================================
-- [Settings]
enableSelfDestroy = true
local bulletParticles = "bulletHitParticle"
local bulletDamage = 0.2
local BossBulletDmg = 0.1
local speed = 5000
local lifespan = 1
local lifespanTi... | nilq/small-lua-stack | null |
-- Configuration for the Org mode clone for Neovim.
require("orgmode").setup {
org_agenda_files = {"~/.emacs.d/org/agenda/*"},
org_default_notes_file = "~/.emacs.d/org/refile.org"
}
-- Keymappings {{{
-- Org agenda
vim.api.nvim_set_keymap("n", "<leader>oa", "<cmd>org_agenda<cr>", {silent = true, noremap = true})
... | nilq/small-lua-stack | null |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
-- #######################################
-- ## Project: MTA i... | nilq/small-lua-stack | null |
local module = {}
local replicated = game:GetService('ReplicatedStorage')
local common = replicated.Common
local loadSave = replicated.Remotes.Play
local manage = require(common.Manager).Manage
local effects = require(common.Gui.Effects)
local playerData = require(common.PlayerData)
local maker = require(common.Appe... | nilq/small-lua-stack | null |
--***********************************************************
--** THE INDIE STONE **
--** Author: turbotutone **
--***********************************************************
require "ISUI/ISPanel"
---@class RWMPanel : ISPanelJoypad
RWMPanel = ISPanelJoypad:derive("RWM... | nilq/small-lua-stack | null |
--[[ ==========================================================================
Keystone.lua
========================================================================== ]]--
local _G = _G
local AddOnName, _ = ...
local AddOn = _G[AddOnName]
-- Libs
--local L = LibStub("AceLocale-3.0"):GetLocale(AddOnName)
local Ge... | nilq/small-lua-stack | null |
PLUGIN.Title = "Airdrop"
PLUGIN.Description = "Performs timed airdrops"
function PLUGIN:Init()
--change 3600 to any number of seconds
timer.Repeat(3600, self.drop)
end
function PLUGIN:drop()
rust.RunServerCommand( "airdrop.drop" )
end
| nilq/small-lua-stack | null |
-- Dropdown with an editable TextBox to type option
local TextService = game:GetService("TextService")
local TextEditor = script:FindFirstAncestor("TextEditor")
local Roact = require(TextEditor.Packages.Roact)
local StudioThemeContext = require(script.Parent.StudioThemeContext)
local TextDropdown = Roact.Component:ext... | nilq/small-lua-stack | null |
function start (song) -- do nothing
end
function update (elapsed)
if curStep >= 1088 and curStep < 4000 then
local currentBeat = (songPos / 1000)*(bpm/60)
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'] + 50 * math.sin((currentBeat + i*100) * math.pi), i)
setActorY(_G['defaultStrum'..i..'Y'] + 100 * math.co... | nilq/small-lua-stack | null |
local K, C = unpack(select(2, ...))
if C["DataText"].Time ~= true then
return
end
-- Lua API
local _G = _G
local date = _G.date
local ipairs = ipairs
local math_floor = math.floor
local mod = mod
local next = _G.next
local select = _G.select
local string_format = string.format
local string_join = string.join
local st... | nilq/small-lua-stack | null |
require "rock"
| nilq/small-lua-stack | null |
-- imported modules
local Game = require 'Game'
local MainMenu = require 'MainMenu'
local S = require 'settings'
local gamestate = require 'hump.gamestate'
local game = nil
local mainMenu = nil
function love.load()
love.keyboard.setKeyRepeat(true)
love.window.setIcon(love.image.newImageData('bio.png'))
love.windo... | nilq/small-lua-stack | null |
local audiotriggersound =
{
Properties =
{
TriggerOnEnter = { default = true },
TriggerOnExit = { default = false },
Delay = { default = 0.0, description = "Delay before the sound is played" },
Sound = { default = "", description = "Name of the Wwise Sound Event" },
},
}
function audiotriggersound:OnA... | nilq/small-lua-stack | null |
AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire FX Emitter"
ENT.WireDebugName = "FX Emitter"
function ENT:SetupDataTables()
self:NetworkVar( "Bool", 0, "On" )
self:NetworkVar( "Int", 0, "Effect" )
self:NetworkVar( "Float", 0, "Delay" )
self:NetworkVar( "Vector", 0, "FXDir" )
end
... | nilq/small-lua-stack | null |
local bu = require "spec.fixtures.balancer_utils"
local helpers = require "spec.helpers"
local https_server = helpers.https_server
local stress_generator = helpers.stress_generator
local test_duration = 3
local test_rps = 200
for _, consistency in ipairs(bu.consistencies) do
for _, strategy in helpers.each_strate... | nilq/small-lua-stack | null |
--!strict
--[[
Description: Makes a virtual environment to replace the legacy function environment for running code
Author: github@ccuser44
Date: 15.2.2022
--]]
type dictionary = { [string]: any }
type func = (...any?) -> (...any?)
local globalEnv: dictionary = {
-- // Libraries
coroutine = coroutine,
debug = d... | nilq/small-lua-stack | null |
food_effects.register_callback = function(foodname, seconds, enable_hud, callback)
food_effects.items_with_effects[foodname] = true
-- playername -> timeout
local data = {}
-- playername -> {}
local hud = {}
local hud_image = ""
if enable_hud then
local itemdef = minetest.registered_items[foodname]
hud... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------
--
-- This file is part of the Corona game engine.
-- For overview and more information on licensing please refer to README.md
-- Home page: https://github.com/coronalabs/corona
-- Contact: support@coronalabs.com
--
------------------------... | nilq/small-lua-stack | null |
local json = require('json')
local WebSocket = require('coro-websocket')
local constants = require('../constants')
local base = require('./base')
local class = require('../classes/new')
local voice = require('../voice')
local VoiceConnection = class(base)
function VoiceConnection:__constructor () -- .parent = serve... | nilq/small-lua-stack | null |
object_tangible_quest_rebel_rtp_ackbar_wave_sympathizer_signal = object_tangible_quest_rebel_shared_rtp_ackbar_wave_sympathizer_signal:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_rebel_rtp_ackbar_wave_sympathizer_signal, "object/tangible/quest/rebel/rtp_ackbar_wave_sympathizer_signal.iff")
| nilq/small-lua-stack | null |
u_execScript("common.lua")
u_execScript("commonpatterns.lua")
u_execScript("utils.lua")
u_execScript("alternativepatterns.lua")
function wallSAdj(mSide, mAdj) w_wallAdj(mSide, THICKNESS, mAdj) end
function wallSAcc(mSide, mAdj, mAcc, mMinSpd, mMaxSpd) w_wallAcc(mSide, THICKNESS, mAdj, mAcc * (u_getDifficultyMult()), m... | nilq/small-lua-stack | null |
local M = {}
function M.get(cp)
return {
FernBranchText = { fg = cp.blue },
}
end
return M
| nilq/small-lua-stack | null |
--[[
* author : kaishiqi
* descpt : create on 2016-03-18
]]
local Entry = require 'i18n.Entry'
local MoParser = {}
MoParser.__index = MoParser
MoParser.ErrMsg = {
NotFind = 'file load fail.',
NoValid = 'no valid mo-file',
Version = 'unsupported version',
}
local MoDefine = {
MAGIC_BIG = '\2... | nilq/small-lua-stack | null |
-- yx_proto.lua
----------------------------------------------------------------------------------------
local M = {}
-- 相关的协议
M.C2S = {
-- 访问S的协议
CONNECT = 0x0001,
CHALLENGE_RESPONSE = 0x0002,
JOIN_SERVER = 0x0003,
REQ_CONN_GATEWAY = 0x0004,
}
M.S2C = {
-- 访问C的协议
CONNECT = 0x1001,
CHALL... | nilq/small-lua-stack | null |
local msg = require "toy.logger"
local bug = require "toy.debug"
local function create_window()
local config =
{
title = "Sample window;範例視窗",
width = 800,
height = 600,
}
return require("toy.window").create_window(config)
end
msg.print("Starting")
local function main()
local window = create_window... | nilq/small-lua-stack | null |
local AddonName, Addon = ...
local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
local L = AceLocale:NewLocale(AddonName, "enUS", true, true)
if not L then return end
Addon.AliasPrefix = "cb_"
-- TODO: Figure out how to make this available in other files.
local function S(text)
text = text:gsub("|B",... | nilq/small-lua-stack | null |
minetest.register_craftitem("elepower_machines:compressor_piston", {
description = "Compressor Piston",
inventory_image = "elepower_compressor_piston.png"
})
minetest.register_craftitem("elepower_machines:turbine_blades", {
description = "Turbine Blades",
inventory_image = "elepower_turbine.png"
})
-- Pump Tube ... | nilq/small-lua-stack | null |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
AddCSLuaFile("sh_soundscript.lua")
include("sh_sounds.lua")
include("sh_soundscript.lua")
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.PrintName = "M1928A1"
SWEP.CSMuzzleFlashes = true
SWEP.UseHands = false
SWEP.MuzzleEffect = "muzzleflash_ak74"
SWEP.PosBasedMuz =... | nilq/small-lua-stack | null |
-- credit to atom0s for help with decompiling
-- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec
return {
BaseStationCfg = {
[101] = {
ActCond = {
{ CondName = "Σ╗╗σèí", CondValue = 1030 },
},
ActShowLv = 2,
... | nilq/small-lua-stack | null |
-- https://httpd.apache.org/docs/trunk/mod/mod_lua.html#writinghandlers
-- example handler
require 'apache2'
require 'string'
--[[
This is the default method name for Lua handlers, see the optional
function-name in the LuaMapHandler directive to choose a different
entry point.
--]]
function handle(r)
... | nilq/small-lua-stack | null |
-- package.loaded["renderModule"] = nil -- error
renderSystem = require "renderModule"
render = { x=480, y=320 }
function render:init(x, y)
render.x = x
render.y = y
print("init")
return true
end
function render:update()
print("update")
end
local r = render.init()
print(r)
renderSystem.init()
renderSys... | nilq/small-lua-stack | null |
local parent, ns = ...
ns.addon = CreateFrame("Frame", nil, UIParent)
ns.spells = {}
| nilq/small-lua-stack | null |
local log = ngx.log
local timer_at = ngx.timer.at
local ERR = ngx.ERR
local tbl_concat = table.concat
local function trace(...)
local line = {}
for i = 1, select("#", ...) do
line[i] = tostring(select(i, ...))
end
log(ERR, tbl_concat(line, " "))
end
trace("main.lua started")
local start_timer
local function o... | nilq/small-lua-stack | null |
local utils = require'jet.utils'
describe(
'The jet.utils module',
function()
it('is_empty_table works',function()
assert.is_true(utils.is_empty_table({}))
assert.is_false(utils.is_empty_table({'asd'}))
assert.is_false(utils.is_empty_table({a=123}))
end)
it('access_f... | nilq/small-lua-stack | null |
local lsp_status = require 'lsp-status'
local lspconfig = require 'lspconfig'
local efm_config = os.getenv('HOME') .. '/.config/efm-langserver/config.yaml'
local log_dir = "/tmp/"
local black = require "config.plugins.lsp.efm.black"
local isort = require "config.plugins.lsp.efm.isort"
local mypy = require "config.plug... | nilq/small-lua-stack | null |
--Print its own name
print("The name of this script is: "..arg[0])
| nilq/small-lua-stack | null |
require("tests/testsuite")
-- Test the low level function that's actually got the bug in it.
local object, result = LoggingCallback()
wg.parseword("\16", 0, object)
AssertTableAndPropertiesEquals(
{},
result)
-- And now do an end-to-end test of the exporter framework which was
-- provoking it.
Cmd.InsertStringIn... | nilq/small-lua-stack | null |
---------------------------------------------------
-- Scintillant Lance
-- Deals light damage to targets in a fan-shaped area of effect.
---------------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/status")
---------------------------------------------------
f... | nilq/small-lua-stack | null |
local json = require 'json'
local function pushError(...)
local t = table.pack(...)
for i = 1, t.n do
t[i] = tostring(t[i])
end
local buf = table.concat(t, '\t')
ERR:push(buf)
end
local function readProtoHeader()
local header = io.read 'l'
if header:sub(1, #'Content-Length') == '... | nilq/small-lua-stack | null |
--- Notification helper functions
-- @module ix.notice
if (SERVER) then
util.AddNetworkString("ixNotify")
util.AddNetworkString("ixNotifyLocalized")
--- Sends a notification to a specified recipient.
-- @realm server
-- @string message Message to notify
-- @player[opt=nil] recipient Player to be notified
func... | nilq/small-lua-stack | null |
if #arg == 0 then
os.exit(0)
end
--os.exit(0)
function scriptPath()
local str = debug.getinfo(2, "S").source:sub(2)
return str:match("(.*/)")
end
--
-- Stuff to ensure alphabetic order
-- Taken from http://lua-users.org/wiki/SortedIteration
--
--[[
Ordered table iterator, allow to iterate on the natural or... | nilq/small-lua-stack | null |
local common = require "unbox/common"
local Cell = require "unbox/Cell"
local Contact = require "unbox/Contact"
local World = {}
World.__index = World
function World.new(args)
local world = setmetatable({}, World)
world:init(args or {})
return world
end
function World:init(args)
self.gravityX, self.g... | nilq/small-lua-stack | null |
-- require'lspconfig'.clangd.setup{}
| nilq/small-lua-stack | null |
koth {53.0,-87.0,65.0,35.0} -- koth area, x,y,z,r
teams {
{"red", {255,0,0,1}},
{"green", {0,255,0,2}},
{"blue", {0,0,255,3}}
}
zoneconfig {
zoneBlip = 9,
zoneAlpha = 100,
zoneColor = 4,
blip = 305,
blipcolor = 4,
blipalpha = 255
}
shops {
{10.0,10.0,10.0},
{-10.0,-10.0,-10.0}
}
spawns {
{223.3,-28.7,7... | nilq/small-lua-stack | null |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* client/admin_wrapper.lua
*
* Original File by lil_Toady
*
**************************************]]
local _getVehicleNameFromModel = getVehicleNameFromModel
function getVehicleNameFromModel(id)
local avehspecial = {
[59... | nilq/small-lua-stack | null |
local module = require("ethel.module")
local config = module.load("util.config")
local sprite = module.load("sprite")
local tile = module.load("tile")
local tilemap = module.load("tilemap")
local function loadLevel(path)
local cfg = config.loadFile(path)
local level = {
width = tonumber(cfg.width),
height ... | nilq/small-lua-stack | null |
-- this is pretty tricky
local oldInitTechTree = MarineTeam.InitTechTree
function MarineTeam:InitTechTree()
-- super tricksy
local medpack = kTechId.MedPack
kTechId.MedPack = kTechId.HealingField
oldInitTechTree(self)
kTechId.MedPack = medpack
end | nilq/small-lua-stack | null |
local Packages = script.Parent.Parent.Parent.Parent.Parent
local Roact = require(Packages.Roact)
local UIBlox = Packages.UIBlox
local ModalBottomSheet = require(UIBlox.ModalBottomSheet.ModalBottomSheet)
local doSomething = function(a)
print(a, "was pressed!")
end
local Story = Roact.Component:extend("Story")
funct... | nilq/small-lua-stack | null |
require('common')
local MainMenu = State:derive()
local PlayerSelect = require('states.player_select')
local loop = love.audio.newSource("music/crappyloop.ogg", "stream")
loop:setVolume(0.5)
loop:setLooping(true)
function MainMenu:_init()
State._init(self, 'MainMenu')
self.playersAvailable = {}
end
function Mai... | nilq/small-lua-stack | null |
-- Trigger_* detector
local MOD = {
LoadName = "Triggers",
LastQuery = 0.0,
--UseOffline = true,
}
MijHUD.LoadModule(MOD)
local function genBeams(mins, maxs)
return {
Vector(mins.x, mins.y, mins.z),
Vector(mins.x, mins.y, maxs.z),
Vector(mins.x, mins.y, mins.z),
Vector(mins.x, maxs.y, mins.z),
Vector(m... | nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.