content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
badges = {
[0] = { -- Halloween2019
png = '16de63ec86f.png',
},
[1] = { -- meet Fofinhoppp
png = '171e0f4e290.png',
},
[2] = { -- fish 500 times
png = '171dba5770c.png',
},
[3] = { -- mine 1000 gold nuggets
png = '171e1010745.png',
},
[4] = { -- harvested 500 plants
png = '171e0f9de0e.png',
},
[5] ... | nilq/small-lua-stack | null |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmSelColor()
local obj = GUI.fromHandle(_obj_newObject("... | nilq/small-lua-stack | null |
local Pipeline = require("refactoring.pipeline")
local Point = require("refactoring.point")
local refactor_setup = require("refactoring.tasks.refactor_setup")
local debug_utils = require("refactoring.debug.debug_utils")
local function get_path(bufnr, config)
local out = nil
Pipeline
:from_task(refactor... | nilq/small-lua-stack | null |
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
-- ───────────────────────────────────────────────── --
-- Plugin: LuaSnip
-- Github: github.com/L3MON4D3/LuaSnip
-- ───────────────────────────────────────────────── --
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
local ls = require("luasnip"... | nilq/small-lua-stack | null |
local M = {}
M.config = function()
O.lang.java = {
java_tools = {
active = false,
},
formatter = {
exe = "prettier",
args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" },
},
}
end
M.format = function()
local root_dir = require("project_nvim.project").find_lsp_root() or ""
... | nilq/small-lua-stack | null |
local isCustomizationScript=sim.getScriptAttribute(sim.getScriptHandle(sim.handle_self),sim.scriptattribute_scripttype)==sim.scripttype_customizationscript
if not sim.isPluginLoaded('Bwf') then
function sysCall_init()
end
else
function sysCall_init()
model={}
model.dlg={}
model.hand... | nilq/small-lua-stack | null |
if not MergingChests then MergingChests = {} end
local HardMaxSize = 42
require("config")
if MergingChests.MaxSize < 2 then
MergingChests.MaxSize = 2
elseif MergingChests.MaxSize > HardMaxSize then
MergingChests.MaxSize = HardMaxSize
end
require("prototypes.entity")
require("prototypes.item")
requir... | nilq/small-lua-stack | null |
Script.ReloadScript("Scripts/Entities/Vehicles/VehicleBase.lua");
Script.ReloadScript("Scripts/Entities/Vehicles/VehicleBaseAI.lua");
Log("Executing Vehiclepool..");
VEHICLE_SCRIPT_TIMER = 100;
--define constant timer id
AISOUND_TIMER = VEHICLE_SCRIPT_TIMER + 2
--define timeout for ai sound
AISOUND_TIMEOUT = 250
-... | nilq/small-lua-stack | null |
name = "Stacks Reborn"
description = "Configurable item stacks compatible with Vanilla / Tropical Experience mod"
author = "fl01"
version = "0.1"
forumthread = ""
api_version = 10
dont_starve_compatible = false
reign_of_giants_compatible = false
dst_compatible = true
all_clients_require_mod = true
ico... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
cfg = require('config')
require('storage_template')
| nilq/small-lua-stack | null |
--!strict
--[[
Constructs and returns a new instance, with options for setting properties,
event handlers and other attributes on the instance right away.
]]
local Package = script.Parent.Parent
local PubTypes = require(Package.PubTypes)
local defaultProps = require(Package.Instances.defaultProps)
local semiWeakRef... | nilq/small-lua-stack | null |
local M = {}
local json = require "json"
local data
local getLocale
, getLanguageData
, getFilename
, isFileExists
function M.setLang(locale)
local lang = getLocale(locale)
data = getLanguageData(lang)
if not data then
error( "Localization file is corrupted" )
end
end
function M.get(key)
return data[key] ... | nilq/small-lua-stack | null |
-- leaderboard module by berezaa
local module = {}
local player = game.Players.localPlayer
local playerGui = player.PlayerGui
local ui = playerGui.gameUI.leaderboard
function module.init(Modules)
local network = Modules.network
local httpService = game:GetService("HttpService")
-- server browser hookup
spawn(fu... | nilq/small-lua-stack | null |
local metadata =
{
plugin =
{
format = 'jar',
manifest =
{
permissions = {},
usesPermissions =
{
"android.permission.INTERNET",
"android.permission.WRITE_EXTERNAL_STORAGE",
"android.permission.ACCESS_NET... | nilq/small-lua-stack | null |
-- See LICENSE for terms
local properties = {}
local c = 0
local PhotoFilterPresetMap = PhotoFilterPresetMap
for id, item in pairs(PhotoFilterPresetMap) do
if id ~= "None" then
c = c + 1
properties[c] = PlaceObj("ModItemOptionToggle", {
"name", id,
"DisplayName", T(item.displayName),
"Help", T(item.desc... | nilq/small-lua-stack | null |
-- Copyright (C) Miracle
-- Copyright (C) OpenWAF
local _M = {
_VERSION = "1.1.1"
}
local twaf_func = require "lib.twaf.inc.twaf_func"
local twaf_action = require "lib.twaf.inc.action"
local cidr = require "lib.twaf.inc.cidr"
local ssl = require "ngx.ssl"
loc... | nilq/small-lua-stack | null |
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/psychedelics/lsd/phosphorus_oxychloride.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:GetPhysicsObject():Wake()
self:Activate... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2016 Technicolor Delivery Technologies, SAS
The source code form of this Transformer component is subject
to the terms of the Clear BSD license.
You can redistribute it and/or modify it under the terms of the
Clear BSD License (http://directory.fsf.org/wiki/License:ClearBSD)
See LICENSE file for m... | nilq/small-lua-stack | null |
local names = setmetatable(
{
__index = setmetatable(
{
raw = function (self, key)
return rawget(self, key)
end,
len = function (self)
local maxlen = 0
for _, name in pairs(self) do
if #name > maxlen then
maxlen = #name
end
end
return maxlen
end,
},
... | nilq/small-lua-stack | null |
--「A」細胞組み換え装置
function c91231901.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c91231901.target)
e1:SetOperation(c91231901.activate)... | nilq/small-lua-stack | null |
checkPlayer = function(xPlayer)
if xPlayer.get('linventory') ~= true then Citizen.Wait(1500) count = 0 while true do if count > 3 then return false end Citizen.Wait(1000) end count = count + 1 else return true end
end
getInventoryItem = function(xPlayer, name, metadata)
if checkPlayer(xPlayer) ~= true then return en... | nilq/small-lua-stack | null |
math.randomseed(os.time())
math.random(); math.random(); math.random()
firstNames = {'Aachen', 'Aaliyah', 'Aaron', 'Abbas', 'Abbott', 'Abby', 'Abdul', 'Abe', 'Abidjan', 'Abigail', 'Abilene', 'Abner', 'Abraham', 'Abram', 'Absalom', 'Abuja', 'Abyssinia', 'Ac', 'Acevedo', 'Achaean', 'Achebe', 'Achernar', 'Acheson', 'Achi... | nilq/small-lua-stack | null |
-- Requirements summary:
-- [PolicyTableUpdate] "timeout" countdown start
--
-- Description:
-- SDL must forward OnSystemRequest(request_type=PROPRIETARY, url, appID) with encrypted PTS
-- snapshot as a hybrid data to mobile application with <appID> value. "fileType" must be
-- assigned as "JSON" in mobile app notifica... | nilq/small-lua-stack | null |
local ores =
{
["omnite"] =
{
guft_tier = 1,
guft_rarity = 1,
},
["infinite-omnite"] =
{
guft_tier = 1,
guft_rarity = 5,
}
}
if not settings.startup["guft-enableores-omni"].value then
ores["omnite"] = false
ores["infinite-omnite"] = false
end
if settings.startup["guft-enableores-base"].value then
ore... | nilq/small-lua-stack | null |
---@class ShipMake_RecievePopup 显示产物 弹框
---@field listProducts table<ShipMgr_Products>
local M = DClass("ShipMake_RecievePopup", BaseWindow)
_G.ShipMake_RecievePopup = M
function M:ctor(...)
local data = ...
self.listProducts = data[1]
end
function M:onInit()
self.coverCallBack = self.close
self:onIn... | nilq/small-lua-stack | null |
return Device {
strManufacturer = "TeenyUSB",
strProduct = "TeenyUSB CMSIS-DAP V2",
strSerial = "TUSB123456HS",
idVendor = 0x0d28,
idProduct = 0x0204,
bcdUSB = 0x200,
prefix = "DAPV2",
Config {
Interface{
strInterface = "CMSIS-DAP v2",
-- DAP link GUID
... | nilq/small-lua-stack | null |
local A
while 1 do
local a,b=read("*w","*w")
if a==nil then break end
if a~=A then A=a write("\n",a,":\n") end
write(b," ")
end
| nilq/small-lua-stack | null |
SKILL.name = "Firestorm"
SKILL.LevelReq = 10
SKILL.SkillPointCost = 3
SKILL.Incompatible = {
}
SKILL.RequiredSkills = {
}
SKILL.icon = "vgui/skills/Dow2_sm_explosive_cannon_barrage.png"
SKILL.category = "Primaris"-- Common Passives, Warrior, Stealth, Lore of Light, Dark Magic
SKILL.slot = "MELEE" -- ULT, RANGED, ME... | nilq/small-lua-stack | null |
local composer = require( "composer" )
local fx = require( "com.ponywolf.ponyfx" )
local tiled = require( "com.ponywolf.ponytiled" )
local physics = require( "physics" )
local json = require( "json" )
local scene = composer.newScene()
local heartBar = require( "scenes.game.lib.health" )
local inventory = require( "sce... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Windurst Walls
-- NPC: Koru-Moru
-- Starts & Ends Quest: Star Struck
-- Involved in Quest: Making the Grade, Riding on the Clouds
-- !pos -120 -6 124 239
-----------------------------------
local ID = require("scripts/zones/Windurst_Walls/IDs")
require("scripts/globals/keyi... | nilq/small-lua-stack | null |
--!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | nilq/small-lua-stack | null |
local null_ls = require 'null-ls'
local function has_executable(name)
return function()
return vim.fn.executable(name) > 0
end
end
local function has_file(name)
return function(utils)
return utils.root_has_file(name)
end
end
local function has_any_file(names)
return function(utils)
f... | nilq/small-lua-stack | null |
-- Decompiled using luadec 2.2 rev: for Lua 5.2 from https://github.com/viruscamp/luadec
-- Command line: A:\Steam\twd-definitive\scripteditor-10-31-20\definitive_lighting_improvements\WDC_pc_WalkingDead201_data\BackwoodsStream_temp.lua
-- params : ...
-- function num : 0 , upvalues : _ENV
local kScript = "Backwoods... | nilq/small-lua-stack | null |
local v1 = { }
local v2
v2 = function(v3)
local v4 = { }
_ENV["setmetatable"](v4, v3)
v3[ "__index" ] = v3
return v4
end
v1[ "InitWithTop" ] = function(v5)
local v6 = v2(v5)
v6[ "tag" ] = "Top"
return v6
end
v1[ "InitWithNil" ] = function(v7)
local v8 = v2(v7)
v8[ "tag" ] = "Nil"
return v8
end
v1[ "InitWith... | nilq/small-lua-stack | null |
local M = {}
function M.report_start(msg)
vim.fn['health#report_start'](msg)
end
function M.report_info(msg)
vim.fn['health#report_info'](msg)
end
function M.report_ok(msg)
vim.fn['health#report_ok'](msg)
end
function M.report_warn(msg, ...)
vim.fn['health#report_warn'](msg, ...)
end
function M.report_erro... | nilq/small-lua-stack | null |
LinkLuaModifier("modifier_kahmeka_fly", "heroes/kahmeka/kahmeka_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_kahmeka_ignite", "heroes/kahmeka/kahmeka_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_kahmeka_wounding_spear", "heroes/kahmeka/kahmeka_modifiers.lua", LUA_MODIFIER_M... | nilq/small-lua-stack | null |
local _, private = ...
-- Lua Globals --
-- luacheck: globals select tonumber ipairs tinsert
-- Libs --
local Aurora = _G.Aurora
local Color = Aurora.Color
-- Shamelessly copied from PTRFeedback_Tooltips
local TooltipTypes = {
spell = "Spell",
item = "Item",
unit = "Creature",
quest = "Quest",
ac... | nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local RollTheBones = IceCore_CreateClass(IceUnitBar)
local IceHUD = _G.IceHUD
local baseTime = 12
local gapPerComboPoint = 6
local maxComboPoints = 5
local rtbEndTime = 0
local rtbDuration = 0
local rtbCount = 0
local sixComboPointsTalentID = 19240
local b... | nilq/small-lua-stack | null |
class("GridNumbersLeft").extends(gfx.sprite)
function GridNumbersLeft:init()
GridNumbersLeft.super.init(self, gfx.image.new(CELL * 8, CELL * 10 + 1))
self:setCenter(0, 0)
self:setZIndex(Z_INDEX_GRID_NUMBERS)
end
function GridNumbersLeft:enter(puzzle, gridNumbers, doneNumbers, x, y, hintStyle)
self.puzzle = puzzl... | nilq/small-lua-stack | null |
local hungerTimer = false
local thirstTimer = false
function OnPlayerSpawn(player)
-- Hunger
if not hungerTimer then
CallRemoteEvent("removePlayerHunger", 0)
hungerTimer = true
CreateTimer(function()
CallRemoteEvent("removePlayerHunger", 1)
end, 120000)
end
... | nilq/small-lua-stack | null |
-- Game of life
-- Now with graphics!!
function switchlevel(level)
-- Load new level
l = require(level)
if l.load then l.load() end
-- Update callbacks
love.update = l.update
love.draw = l.draw
love.keypressed = l.keypressed
love.keyreleased = l.keyreleased
love.mousepressed = l.mousepressed
love.mousemoved ... | nilq/small-lua-stack | null |
local Utils = require "Utils"
local Persist = require "Persist"
local function createGate(unit, id, t)
local bdata = t.branches[id]
local cb = unit:addControlBranch("Gate", id, bdata)
unit:placeControl(id, "expanded")
local cdata = t.controls and t.controls[id]
if cdata then cb.control:deserialize(cdata) end... | nilq/small-lua-stack | null |
local diagnostics_format = "[#{c}] #{m} (#{s})]"
local lspconfig = require("lspconfig")
local null_ls = require("null-ls")
local b = null_ls.builtins
local sources = {
b.formatting.prettierd.with({
filetypes = { "html", "json", "yaml", "markdown", "typescript", "typescriptreact", "svelte" },
}),
b.formatting.sty... | nilq/small-lua-stack | null |
local types=require("moonscript.types")local ntype,mtype,is_value,NOOP ntype,mtype,is_value,NOOP=types.ntype,types.mtype,types.is_value,types.NOOP local comprehension_has_value comprehension_has_value=require("moonscript.transform.comprehension").comprehension_has_value local Run do local _class_0 local _base_0={call=f... | nilq/small-lua-stack | null |
local ERROR_CHECKED_SPECIFIC_GAME_WRAPPER = require "error_checked_specific_game_wrapper"
-- NOTE: Other games might simply have a "Sword"-element.
return ERROR_CHECKED_SPECIFIC_GAME_WRAPPER.get_module("buff_effects", GAME_ID, "sword_chip_damage_increase") | nilq/small-lua-stack | null |
StatLinks = {
Version = "0.4",
Author = "Zhur",
Original_ChatEdit_AddItemLink = nil,
ManaStoneTier1ID = 202840,
ManaStoneTier20ID = 202859,
ManaStoneTier4ID = 202843,
NameAndStat = {
-- Balanced accessories
[229698] = true,
[229699] = true,
[229700] = true,
-- Blue crap from KBN... | nilq/small-lua-stack | null |
--双天将 金剛
--
--Script by JustFish
function c101102034.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,101102014,aux.FilterBoolFunction(Card.IsFusionSetCard,0x24d),2,true,false)
--actlimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_... | nilq/small-lua-stack | null |
function start_game_event(frame)
end | nilq/small-lua-stack | null |
local mimetypes = require 'mimetypes'
local File = require 'pegasus.file'
-- solution by @cwarden - https://gist.github.com/cwarden/1207556
local function catch(what)
return what[1]
end
local function try(what)
local status, result = pcall(what[1])
if not status then
what[2](result)
end
return resul... | nilq/small-lua-stack | null |
---@alias WowEvent
---| '"ACHIEVEMENT_EARNED"' # `achievementID, alreadyEarned`
---| '"ACHIEVEMENT_PLAYER_NAME"' # `achievementID`
---| '"ACHIEVEMENT_SEARCH_UPDATED"'
---| '"ACTIONBAR_HIDEGRID"'
---| '"ACTIONBAR_PAGE_CHANGED"'
---| '"ACTIONBAR_SHOWGRID"'
---| '"ACTIONBAR_SHOW_BOTTOMLEFT"'
---| '"ACTIONBAR_SLOT_CHANGED"... | nilq/small-lua-stack | null |
-- beds/beds.lua
-- support for MT game translation.
local S = beds.get_translator
-- Fancy shaped bed
beds.register_bed("beds:fancy_bed", {
description = S("Fancy Bed"),
inventory_image = "beds_bed_fancy.png",
wield_image = "beds_bed_fancy.png",
tiles = {
bottom = {
"beds_bed_top1.png",
"beds_bed_under.... | nilq/small-lua-stack | null |
local sX, sY = guiGetScreenSize()
local dxMessages = {}
local dxMessagesY = {-25, -25, -25, -25}
local dxMessagesTick = {}
local isMoving = false
function drawMessages()
for index, messageData in pairs(dxMessages) do
dxDrawText(messageData[1], sX / 4 + 1, (sY / 900) * (dxMessagesY[index] * 2) + 1, (sX / 4) * 3 + 1,... | nilq/small-lua-stack | null |
data:extend(
{
{
type = 'bool-setting',
name = 'mi-easy-mode',
setting_type = 'startup',
default_value = false,
order = 'aa'
},
{
type = 'bool-setting',
name = 'mi-iron-gear-wheel',
setting_type = 'startup',
default_value = true,
order = 'aa'
... | nilq/small-lua-stack | null |
require("neogit").setup({})
| nilq/small-lua-stack | null |
#!/usr/bin/env lua
require 'Test.More'
plan(6)
if not require_ok 'Spore.Middleware.Logging' then
skip_rest "no Spore.Middleware.Logging"
os.exit()
end
local mw = require 'Spore.Middleware.Logging'
local req = require 'Spore.Request'.new({ sporex = {} })
type_ok( req, 'table', "Spore.Request.new" )
local r ... | nilq/small-lua-stack | null |
-- Conexão
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
kinG = {}
Tunnel.bindInterface("emp_construcao",kinG)
-------------------------------------------------------------------------------------
-- CREDITS zKinG#8563 --
--------------------... | nilq/small-lua-stack | null |
local local0 = 0.35
local local1 = 0.35 - local0
local local2 = 0.35 - local0
local local3 = 0.35 - local0
local local4 = 0.35 - local0
local local5 = 0.35 - local0
function OnIf_102061(arg0, arg1, arg2)
if arg2 == 0 then
CrowdA_HandAxe_and_Shield_abura102061_ActAfter_RealTime(arg0, arg1)
end
return... | nilq/small-lua-stack | null |
return {'brit','brits','britse','bricoleren','bridge','bridgeavond','bridgeclub','bridgedrive','bridgen','bridgepartij','bridger','bridgeseizoen','bridgespel','bridgespeler','bridgetafel','bridgeteam','bridgevereniging','bridgewedstrijd','brie','brief','briefaanhef','briefadres','briefbom','briefdrager','briefen','brie... | nilq/small-lua-stack | null |
local Range = {};
function Range.create(from, to)
if from > to then
from, to = to, from;
end
local t = {};
t.from = from;
t.to = to;
return t;
end
function Range.contains(range, i)
return i >= range.from and i <= range.to;
end
return Range; | nilq/small-lua-stack | null |
newRandomEmotes("townperson", {
"Hello.",
"Howdy.",
"Good sir!",
"Hey!",
"Hrmph.",
"...",
"... tell ME to go ...",
"Let him! Let him!",
"A stranger...?",
"You there!",
"Can you spare any change?",
"Help a man down on his luck?",
"Did you see that?",
"Did you hear?",
"That's incredible!",
"Some people...",
"They'll le... | nilq/small-lua-stack | null |
object_building_general_bunker_imperial_kashyyyk_01 = object_building_general_shared_bunker_imperial_kashyyyk_01:new {
}
ObjectTemplates:addTemplate(object_building_general_bunker_imperial_kashyyyk_01, "object/building/general/bunker_imperial_kashyyyk_01.iff")
| nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/977
---------------------------------------------------------------------------------------------------
-- Description:
-- SDL has to process required language... | nilq/small-lua-stack | null |
--壱世壊を劈く弦声
--
--Script by Trishula9
function c101110058.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--to grave
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DECKDES)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT... | nilq/small-lua-stack | null |
--
-- Autogenerated by Thrift
--
-- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-- @generated
--
local Thrift = require 'Thrift'
local ttype = Thrift.ttype
local terror = Thrift.terror
local ttable_size = Thrift.ttable_size
local TType = Thrift.TType
local TMessageType = Thrift.TMessageTy... | nilq/small-lua-stack | null |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(creature, type,... | nilq/small-lua-stack | null |
function(allstates, event, unit)
if event == "GROUP_ROSTER_UPDATE" then
for _, state in pairs(allstates) do
state.show = false
state.changed = true
end
for unit in WA_IterateGroupMembers() do
if UnitGroupRolesAssigned(unit) == "HEALER" then
... | nilq/small-lua-stack | null |
local map_class = require('map')
local object_count = 100000
local step_count = 20
local results = {}
collectgarbage('stop')
local function start_world(classes_name)
local start_memory = collectgarbage('count')
local classes = require('classes.' .. classes_name)
local map = map_class.new(1000, 1000)
math.rando... | nilq/small-lua-stack | null |
local social_key = ARGV[1]..":s:u:"..KEYS[1]..":u"
if redis.call("EXISTS", social_key) == 0 then
local repos = redis.call("ZREVRANGE", ARGV[1]..":u:"..KEYS[1]..":r", 0, 5,"withscores")
for i,repo_or_score in ipairs(repos) do
if i%2 == 1 then
local repo = repo_or_score
local repo_... | nilq/small-lua-stack | null |
require("rrpg.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
function newfrmSkills()
__o_rrpgObjs.beginObjectsLoading();
local obj = gui.fromHandle(_obj_newObject("form"));
local self = obj;
local she... | nilq/small-lua-stack | null |
solution 'profi_all'
configurations { "Debug", "Release", "Debug Dynamic", "Release Dynamic" }
platforms { 'x32', 'x64' }
include './src'
include './samples/simple'
include './samples/mt'
include './tests/profi_tests'
| nilq/small-lua-stack | null |
local tbTable = GameMain:GetMod("_ModifierScript")
local tbModifier = tbTable:GetModifier("DJTG_DD")
local RADIUS = 10
function tbModifier:Enter(modifier, npc)
self.targetIDs = self.targetIDs or {}
self.targetIDs[npc.ID] = self.targetIDs[npc.ID] or {}
self.indices = self.indices or {}
self.ind... | nilq/small-lua-stack | null |
if CONFIG["WeaponControls"]["Enable"] then
local taserSight_Enabled = false
local taserSight_TaskDelay = 1000
if CONFIG["WeaponControls"]["DisableAutoReload"] then SetWeaponsNoAutoreload(true) else SetWeaponsNoAutoreload(false) end
if CONFIG["WeaponControls"]["DisableAutoSwap"] then SetWeapon... | nilq/small-lua-stack | null |
local common_local = common
if not (type(common) == 'table' and common.class and common.instance) then
assert(common_class ~= false, 'No class commons specification available.')
require('HC.class')
common_local = common
end
local Object = require 'game.object'
local Flares = require 'game.flares'
local Light =... | nilq/small-lua-stack | null |
--[[.
]]
Player = game:GetService("Players")["SergeantSmokey"]
Character = Player.Character
PlayerGui = Player.PlayerGui
Backpack = Player.Backpack
Torso = Character.Torso
Head = Character.Head
Humanoid = Character.Humanoid
LeftArm = Character["Left Arm"]
LeftLeg = Character["Left Leg"]
RightArm = Character["R... | nilq/small-lua-stack | null |
local System = {}
tolua.class(System)
function System:initialize()
-- Liste aller Entities, die die RequiredComponents dieses Systems haben
self.targets = {}
self.active = true
self.hasGroups = nil
for group, req in pairs(self:requires()) do
local requirementIsGroup = type(req) == "table"
... | nilq/small-lua-stack | null |
-- Helpful commands:
-- :h highlight groups -> highlight docs
-- :syntax -> show syntax groups in buffer
local colors = require('glance.colors')
local highlight = function(groups)
for group, args in pairs(groups) do
-- Group = fg, bg, attr, sp
local fg = args[1]
local bg = args[2]
local attr = args[3]... | nilq/small-lua-stack | null |
local Individual = require("lima.Individual")
local abs = assert(math.abs)
local band = assert(bit.band)
local bor = assert(bit.bor)
local bnot = assert(bit.bnot)
local bxor = assert(bit.bxor)
local cos = assert(math.cos)
local floor = assert(math.floor)
local insert = assert(table.insert)
local lshift = assert(bit.ls... | nilq/small-lua-stack | null |
--[[
Round Tree Trunks - Turns cubic tree trunks into cylindrical.
Copyright (C) 2018 Hamlet
Thanks to Astrobe for his tuning tips.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Founda... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0173-Read-Generic-Network-Signal-data.md
--
-- Description: Applying of the minsize and maxsize for array of VD, minlength and maxlength... | nilq/small-lua-stack | null |
-- CreateWebProofs.lua
require 'PluginInit'
require 'ExportSettings'
local LrFunctionContext = import 'LrFunctionContext'
local LrBinding = import 'LrBinding'
local LrDialogs = import 'LrDialogs'
local LrView = import 'LrView'
local LrApplication = import 'LrApplication'
local LrTasks = import 'LrTasks'
local catalog ... | nilq/small-lua-stack | null |
local editor = {}
-- welcome to disaster town
local Tilemap = require "lib.tilemap"
local csv = require "lib.csv"
local actions = require "lib.actions"
local g = require "global"
local gui = gooi.newPanel({
x = 0,
y = 0,
w = love.graphics.getWidth(),
h = love.graphics.getHeight()/2.5,
layout = "g... | nilq/small-lua-stack | null |
RoleManager = RoleManager or {}
RoleManager.listen_handler = nil
RoleManager.roles = {}
function RoleManager.start(listen_port)
RoleManager.listen_handler = TcpListen:new()
RoleManager.listen_handler:set_gen_cnn_cb(RoleManager.listen_gen_cnn)
RoleManager.listen_handler:set_open_cb(RoleManager.on_listen_o... | nilq/small-lua-stack | null |
require("iuplua")
function read_file(filename)
local ifile = io.open(filename, "r")
if (not ifile) then
iup.Message("Error", "Can't open file: " .. filename)
return nil
end
local str = ifile:read("*a")
if (not str) then
iup.Message("Error", "Fail when reading from file: " .. filename)
retu... | nilq/small-lua-stack | null |
dofile("script/include/inc_all.lua")
dofile("script/include/inc_event.lua")
dofile("script/include/inc_charchoice.lua")
local sunny = 0
local calm = 0
local flexible = 0
local serious = 0
local cooperate = 0
local chartype = ""
local basecharname = ""
local charname = ""
local persontype = ""
local pertnername = ""
lo... | nilq/small-lua-stack | null |
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.system({ 'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path })
vim.api.nvim_command('packadd packer.nvim')
end
local use = require('packer').use
re... | nilq/small-lua-stack | null |
---@class TooltipSide
local TooltipSide = {
Left = 0,
Right = 1,
Top = 2,
Bottom = 3,
}
---@class TooltipTextureAnchor
local TooltipTextureAnchor = {
LeftTop = 0,
LeftCenter = 1,
LeftBottom = 2,
RightTop = 3,
RightCenter = 4,
RightBottom = 5,
All = 6,
}
---@class TooltipTextureRelativeRegion
local TooltipT... | nilq/small-lua-stack | null |
monitoring.wrap_global({"minetest", "add_node"}, "add_node")
| nilq/small-lua-stack | null |
local KantoMapSpawn = {}
-- [zone] = {Morning, Day, Night}
-- Morning, Day, Night -> 0 = false, 1 = true, 2 = ms
KantoMapSpawn["Celadon City"] = {
["Water"] = {
["Grimer"] = {1,1,1},
["Koffing"] = {1,1,1},
["Muk"] = {1,1,1}
},
["Fishing"] = {
["Goldeen"] = {1,1,1},
["Magikarp"] = {1,1,1},
["Poliwag"]... | nilq/small-lua-stack | null |
--[[
Informations :
DO NOT EDIT OR DELETE THIS FILE WITH YOUR MESSAGES, THEY WILL BE DELETED FOR EACH UPDATE !!!
This file is only for demonstration prupose.
If you want to create your own file, copy this file and name it "messages.lua" and keep the same structure.
Message structure is like this :
{ M... | nilq/small-lua-stack | null |
--==================================================================================================
-- Copyright (C) 2015 by Robert Machmer =
-- =
-- Permission is ... | nilq/small-lua-stack | null |
--[[
LuCI - Lua Configuration Interface
Copyright 2019 lisaac <https://github.com/lisaac/luci-app-dockerman>
]]--
local http = require "luci.http"
local docker = require "luci.model.docker"
local m, s, o
local images, networks, containers, res
local dk = docker.new()
res = dk.images:list()
if res.code <300 then
ima... | nilq/small-lua-stack | null |
FRAME_SIZE = 600 --equivalent ms position at 1x SV
FRAME_RATE = 60 --fps
BPM = 1
INCREMENT = .015625 --ms
DISPLACE_INCREMENT = .5 --ms
LINE_TIME_INCREMENT = -2 --ms
LINE_TIME_START = -10000 --ms
action_queue = {}
sv_queue = {}
position_cache = {}
debug = 0
function draw()
imgui.Begin("Line Ani... | nilq/small-lua-stack | null |
rspamd_config:register_symbol({
name = 'TBL_OPTION_ORDER',
score = 1.0,
callback = function()
return true, {'one', 'two', 'three', '4', '5', 'a'}
end
})
rspamd_config:register_symbol({
name = 'OPTION_ORDER',
score = 1.0,
callback = function()
return true, 'one', 'two', 'three', '4', '5', 'a'
en... | nilq/small-lua-stack | null |
local cjson = require 'cjson'
local net = require 'netstat'
local info = net.net_dev('lo')
print(cjson.encode(info))
if #info == 16 then
print(info[1], info[9])
end
| nilq/small-lua-stack | null |
local GameConstants = require('game/GameConstants')
function love.conf(t)
t.window.width = GameConstants.SCREEN_WIDTH
t.window.height = GameConstants.SCREEN_HEIGHT
t.window.title = 'Bonkyon'
end
| nilq/small-lua-stack | null |
LoginGuestVerifyCharCcsPane = class("LoginGuestVerifyCharCcsPane")
LoginGuestVerifyCharCcsPane.onCreationComplete = function (slot0)
ClassUtil.extends(slot0, ZoomCcsBtn, true, slot0)
createSetterGetter(slot0, "index", nil)
slot0:setIsClickZoom(false)
DisplayUtil.setVisible(slot0.spSelected, false)
slot0.model.sel... | nilq/small-lua-stack | null |
-- AquaShine entry point class base
-- Part of AquaShine loader
-- See copyright notice in AquaShine.lua
local AquaShine = ...
local class = AquaShine.Class
AquaShine.EntryPoint = class("AquaShine.EntryPoint")
function AquaShine.EntryPoint:Update()
error("Pure virtual method AquaShine.EntryPoint:Update")
... | nilq/small-lua-stack | null |
local allowCountdown = false
local startDiag = true
function onStartCountdown()
if not allowCountdown and not startDiag and isStoryMode and not seenCutscene then
startVideo('Quake Cutscene');
startDiag = true;
return Function_Stop;
end
if startDiag and not allowCountdown and isStoryMode then
startDialogue('d... | nilq/small-lua-stack | null |
require("init")
return { pull = function(filter) --emulated after 3s
io.flush()
os.execute("sleep 1s")
return "modem_message", 1, 2, 3, 4, "{a=5,data={}}"
end,pullMultiple = function(filter)
end } | nilq/small-lua-stack | null |
--[[-------------------------------------------------------------------]]--[[
Copyright wiltOS Technologies LLC, 2020
Contact: www.wiltostech.com
----------------------------------------]]--
wOS = wOS or {}
wOS.ALCS = wOS.ALCS or {}
wOS.ALCS.Config = wOS.ALCS.Config or {}
wOS.ALCS.Config.Dueling = wOS.AL... | 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.