content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local utils = require('libs.utils') local g = {} function g:find_nearby_targets(x, z, is_alien) local targets = {} local distance = 1 for i = 1, #self.units do local u = self.units[i] if u.is_alien == is_alien and math.abs(u.x - x) <= distance and math.abs(u.z - z) <= distance then table.insert(targets, u) ...
nilq/small-lua-stack
null
require("prototypes.item.combat-roboport") require("prototypes.item.area-defense-robot")
nilq/small-lua-stack
null
-- -*- coding: utf-8 -*- ------------------------------------------------------------------------ -- Copyright © 2011-2015, RedJack, LLC. -- All rights reserved. -- -- Please see the COPYING file in this distribution for license details. ------------------------------------------------------------------------ local AC...
nilq/small-lua-stack
null
a = "hejsan" b = "yaah" if a < b then print("Yeah.") end print("-----") qu = { z = 1 } function qu:foo(a) print("yeah: "..a) end function qu_foo(a) qu:foo(a) end functions = { qu_foo } functions[table.getn(functions)]("gargh!antuan") print("-----") LowserView = { currentIndex = 1, status = "Welcome to Lo...
nilq/small-lua-stack
null
-- Automatically generated, do not edit! -- Source: addons:zip:The Earth Strikes Back!/tesb-weather.dfcom.lua -- Asserts a specific weather type in the presence of a creature. --[=[ arguments -creature <CREATURE_TOKEN> The creature type to watch for, mandatory -weather ...
nilq/small-lua-stack
null
-- serialization local serpent = require'serpent' local function serialize(...) return serpent.line({...}, {comment=false}) end local m = {} m.__index = m m.editors = {} m.loaded_fonts = {} m.focused = nil m.plugin_callbacks = {} -- the general channel is used to communicate instance name to its thread m.general_...
nilq/small-lua-stack
null
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] CW_KOREAN = Clockwork.lang:GetTable("Korean"); CW_KOREAN["AreaDisplayRemoved"] = ...
nilq/small-lua-stack
null
-- ---------------------------------------------------- -- tcbn_delete.lua -- -- Sep/14/2010 -- ---------------------------------------------------- print ("*** 開始 ***") file_in=arg[1] id_in=arg[2] print (id_in) require("tokyocabinet") -- create the object bdb = tokyocabinet.bdbnew() -- open the database if not...
nilq/small-lua-stack
null
local hsluv = require("lush").hsluv -- stylua: ignore start ---@class LaserwaveColors local colors = { WHITE = hsluv("#ffffff"), -- Foreground, Variables RAISIN_BLACK = hsluv("#27212e"), -- Background OLD_LAVENDER = hsluv("#91889b"), -- Comments, Hints HOT_PINK = hsluv("#eb64B9"), -- Fun...
nilq/small-lua-stack
null
add_requires("openmp") target("hello") set_kind("binary") add_files("src/*.c") add_packages("openmp")
nilq/small-lua-stack
null
local Plugin = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local ContextGetter = require(Plugin.Core.Util.ContextGetter) local Types = require(Plugin.Core.Util.Types) local getMainManager = ContextGetter.getMainManager local Loop = Roact.PureCom...
nilq/small-lua-stack
null
local PANEL = {} local function TextSize(font, text) surface.SetFont(font) return surface.GetTextSize(text) end function PANEL:Init() local Panel = self self.Font = "ZEDFont40" self.TextColor = Color(210,210,210,255) self.SliderFGColor = Color(210,210,210,255) self.SliderBGColor = Color(100, 100, 100, ...
nilq/small-lua-stack
null
--[[ ############################################################################## S V U I By: Munglunch ############################################################################## credit: Kemayo. original logic from BankStack. Adapted to SVUI # ######################################################...
nilq/small-lua-stack
null
-- The world consists of a tile grid. Every tile has a texture and a type Tile = Class {} function Tile:init(height, tileType) self.textures = {} for i=1,height-1 do table.insert(self.textures, "tileDirt_full") end table.insert(self.textures, tileType) self.building = nil end -- draw the...
nilq/small-lua-stack
null
----------------------------------- -- Area: Ro'Maeve (122) -- Mob: Eldhrimnir -- Note: Popped by qm1 -- Involved in Quest: Orastery Woes -- !pos 200.3 -11 -24.8 122 ----------------------------------- require("scripts/globals/wsquest") ----------------------------------- function onMobInitialize(mob) mob:setMobM...
nilq/small-lua-stack
null
return { OK = '\0'; RES_TERM = '\1'; RES_CMD = '\2'; REQ_CMD = '\3'; }
nilq/small-lua-stack
null
object_tangible_quest_meatlump_mtp_hideout_quest02_droid03 = object_tangible_quest_meatlump_shared_mtp_hideout_quest02_droid03:new { } ObjectTemplates:addTemplate(object_tangible_quest_meatlump_mtp_hideout_quest02_droid03, "object/tangible/quest/meatlump/mtp_hideout_quest02_droid03.iff")
nilq/small-lua-stack
null
-- RQ Tech Fix require('prototypes/rqtechfixed')
nilq/small-lua-stack
null
require 'image' require 'cunn' require 'cudnn' x1 = image.scale(image.lena(), 96):cuda() x2 = image.scale(image.lena(), 96):cuda() input = torch.cat( x1:view(1, 3, 96, 96), x2:view(1, 3, 96, 96) , 1) net = require 'models.resnet-deconv' out = net:forward(input) print(#out)
nilq/small-lua-stack
null
-- See LICENSE for terms local table = table local AsyncRand = AsyncRand local CreateRand = CreateRand local mod_MinimumSurfaceDeposits local mod_MinimumSubsurfaceDeposits -- fired when settings are changed/init local function ModOptions(id) -- id is from ApplyModOptions if id and id ~= CurrentModId then return ...
nilq/small-lua-stack
null
-- `groups` -- [groupName] = {"info", count, "created", "colour"} -- [string] = {text, nt, timestamp, bigint, varchar [json], } -- We have groups_members query to basically queue the loading in of these to avoid lag local settings = { max_members = 50, max_invites = 10, -- Maxmimum number of pending invites max_to...
nilq/small-lua-stack
null
local config = require("stickybuf.config") local util = require("stickybuf.util") local M = {} local function open_in_best_window(bufnr) -- Open the buffer in the first window that doesn't have a sticky buffer for winnr = 1, vim.fn.winnr("$") do local winid = vim.fn.win_getid(winnr) if not util.is_sticky_w...
nilq/small-lua-stack
null
deal_guid = '4c4cab' playing_zone_guid = '62af4a' PLAYING_ZONE = nil GAME_MACHINE = nil THIS_IS_A_SAVED_GAME = false TEAM1 = 'TEAM1' TEAM2 = 'TEAM2' TEAM_NAMES = {TEAM1='WhiteGreen', TEAM2='OrangePurple'} PLAYERS_COLOR = {'White', 'Orange', 'Green', 'Purple'} PLAYERS_TEAM = {White=TEAM1, Orange=TEAM2, Green=TEAM1, Pu...
nilq/small-lua-stack
null
data:extend{ { type = "recipe", name = "ultra-light-solar-panel", ingredients = { {"low-density-structure", 5}, {"advanced-circuit", 2}, }, energy_required = 20, result = "ultra-light-solar-panel", enabled = false }, { ...
nilq/small-lua-stack
null
-- 破防种类 CONST_BREAK_ARMOR_TYPE = { avoid = { value = "avoid", label = "回避" }, invincible = { value = "invincible", label = "无敌" }, -- enchant = { value = "enchant", label = "附魔" }, }
nilq/small-lua-stack
null
SkadaPerCharDB = { ["total"] = { ["healingabsorbed"] = 0, ["dispells"] = 0, ["ccbreaks"] = 0, ["time"] = 0, ["interrupts"] = 0, ["damage"] = 67, ["players"] = { { ["healingabsorbed"] = 0, ["class"] = "ROGUE", ["damaged"] = { }, ["auras"] = { }, ["role"] = "NONE", ["tim...
nilq/small-lua-stack
null
----------------------------------- -- -- Zone: Konschtat_Highlands (108) -- ----------------------------------- local ID = require("scripts/zones/Konschtat_Highlands/IDs") require("scripts/globals/icanheararainbow") require("scripts/globals/chocobo_digging") require("scripts/globals/conquest") require("scripts/globals...
nilq/small-lua-stack
null
local venn = require("venn") -- venn.nvim: enable or disable keymappings function _G.Toggle_venn() local venn_enabled = vim.inspect(vim.b.venn_enabled) if venn_enabled == "nil" then vim.b.venn_enabled = true vim.cmd[[setlocal ve=all]] -- draw a line on HJKL keystokes vim.api.nvi...
nilq/small-lua-stack
null
-- ({ { key, value }[], deletedKeys, actualDeletedKeysCount }) GetOrClean(long maximumEmptyLastAccessTimeInSeconds, bool whatif, params string[] keys) local maximumEmptyLastAccessTimeInSeconds = tonumber(ARGV[1]); local whatif = tonumber(ARGV[2]); -- Rest of arguments is are keys local TRUE = 1; local entries...
nilq/small-lua-stack
null
data:extend({ { type = "recipe", name = "human-1", enabled = true, icon = "__factorio-not-included__/graphics/human-1/item-recipe/32.png", icon_size = 32, category = "colony-1", subgroup = "fni-item", energy_required = 5, ingredients = ...
nilq/small-lua-stack
null
function widget:GetInfo() return { name = "ShieldtargetAI", desc = "attempt to make units fire the shields of enemy units. Version 1.00", author = "terve886", date = "2019", license = "PD", -- should be compatible with Spring layer = 11, enabled = true } en...
nilq/small-lua-stack
null
junkDealerReggiConvoTemplate = ConvoTemplate:new { initialScreen = "init", templateType = "Lua", luaClassHandler = "JunkDealerReggiConvoHandler", screens = {} } init = ConvoScreen:new { id = "init", leftDialog = "@conversation/junk_reggi_nym:s_60d2f507", -- Looking for work? I don't know that for sure but normal...
nilq/small-lua-stack
null
local tValidSoundExtensions = { wav = true, mp3 = true, ogg = true, -- mid = false, -- flac = false } -- Since only three-letter sound extensions are valid -- This function can get away with only checking the last three characters of the string function string.IsSoundFile(str) return tValidSoundExtens...
nilq/small-lua-stack
null
local Action = require(script.Parent.Action) return Action("BrushIgnoreInvisibleSet", function(ignoreInvisible) return { ignoreInvisible = ignoreInvisible } end)
nilq/small-lua-stack
null
--[[--ldoc desc @module Card @author ShuaiYang Date 2018-10-24 17:43:45 Last Modified by ShuaiYang Last Modified time 2018-10-24 17:47:33 ]] local Card = class("Card"); function Card:ctor(data) data = checktable(data) self.tByte = nil; self.value = nil; self.type = nil; if data.tByte then ...
nilq/small-lua-stack
null
AddCSLuaFile() DEFINE_BASECLASS( "widget_arrow" ) local widget_axis_arrow = { Base = "widget_arrow" } function widget_axis_arrow:Initialize() BaseClass.Initialize( self ) end function widget_axis_arrow:SetupDataTables() BaseClass.SetupDataTables( self ) self:SetDTInt( 1, 0 ); end function widget_axis_arr...
nilq/small-lua-stack
null
-- Game: Collect of the most of the rarest mineral orbiting aroung the sun and outcompete your competetor. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class =...
nilq/small-lua-stack
null
local current_folder = (...):gsub('%.[^%.]+$', '') .. "." local sdl = require(current_folder .. "sdl2") local ffi = require "ffi" local system = {} function system.getClipboardText() if sdl.hasClipboardText() then return ffi.string(sdl.getClipboardText()) end end function system.setClipboardText(text) ...
nilq/small-lua-stack
null
local class = require('middleclass') local Utils = class('Utils') function Utils:tableMerge(t1, t2) for k,v in pairs(t2) do if type(v) == "table" then if type(t1[k] or false) == "table" then tableMerge(t1[k] or {}, t2[k] or {}) else t1[k] = v ...
nilq/small-lua-stack
null
--- Helper library for reading/writing files to the data folder. -- @module ix.data ix.data = ix.data or {} ix.data.stored = ix.data.stored or {} -- Create a folder to store data in. file.CreateDir("helix") --- Populates a file in the `data/helix` folder with some serialized data. -- @realm shared -- @string key Na...
nilq/small-lua-stack
null
local json = require "cjson" local stringy = require "stringy" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" local function it_content_types(title, fn) local test_form_encoded = fn("application/www-url-formencoded") local test_json = fn("application/json") i...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0178-GetInteriorVehicleData.md -- User story: TBD -- Use case: TBD -- -- Requirement summary: TBD -- -- Description: -- In case -- 1. In...
nilq/small-lua-stack
null
--addonName and namespace local addonName, ns = ... --container local core = CreateFrame("Frame") ns.core = core --------------------------------------------- -- FUNCTIONS --------------------------------------------- function core:CreateDropShadow(parent,edgeFile,edgeSize,padding)...
nilq/small-lua-stack
null
local PLAYER = FindMetaTable("Player") local ENTITY = FindMetaTable("Entity") --[[------------------------------------------------------------------------- Applying Buy functions - Run when the player attempts to use the entity ---------------------------------------------------------------------------]] --local nw_p...
nilq/small-lua-stack
null
print("nested long string [[support in Lua 5.1 [[ is ]] controlled by ]] LUA_COMPAT_LSTR\nnewlines\nare\nneeded\nto\ntrip\nthe\nunluac\nlong string\nheuristic")
nilq/small-lua-stack
null
#! /usr/bin/lua require 'Test.More' if not pcall(require, 'bc') then skip_all 'no bc' end plan(3) local c = require 'CBOR' local bc = require 'bc' local TAG_BC = 42 bc.digits(65) local number = bc.number or bc.new c.coders.userdata = function (buffer, u) if getmetatable(u) == bc then c.coders.tag(b...
nilq/small-lua-stack
null
-- Arithmetic on the Finite Field of Integers modulo q -- Where q is the generator's subgroup order. local util = require(script.Parent.util) local sha256 = require(script.Parent.sha256) local random = require(script.Parent.random) local arith = require(script.Parent.arith) local isEqual = arith.isEqual local compare ...
nilq/small-lua-stack
null
local function GetPhrase(str, default) return language.GetPhrase(str) == str and default or language.GetPhrase(str) end hook.Add("AddToolMenuCategories", "DFHUDAdd", function() spawnmenu.AddToolCategory("Options", "DefaultHUDMenu", "Default HUD+") end) hook.Add("PopulateToolMenu", "DFHUDPopulate", function() // Напо...
nilq/small-lua-stack
null
--[[ Copyright (c) 2013 Aerys 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, distribute, sublice...
nilq/small-lua-stack
null
---------------------------- --版权: --作者: liubo (564773807@qq.com) --时间: 2016-05-31 17:55:15 --作用: 对话框 --备注: ---------------------------- cc.exports.Dialog = {} local dialog = nil local sheildLayer = nil local dialogTag = 10 local sheildLayerTag = 11 --[[ 弹出通用对话框,最多能有两个按钮, params context: 提示的文字 params text1, text2: ...
nilq/small-lua-stack
null
local xx = 325; local yy = 455; local xx2 = 942; local yy2 = 520; local ofs = 25; local followchars = true; function onCreate() -- background shit makeLuaSprite('Ponyville', 'pinkie/bg', -700, -385); scaleObject('Ponyville', 1.2, 1.2); makeAnimatedLuaSprite('PonyBG','pinkie/ponybg',-320, 340)addAnimationByPrefi...
nilq/small-lua-stack
null
local StatusWindow = { OnGetWindowName = function (self) return "OpenUI.StatusWindow."..OpenCore.Player:GetId() end, OnGetTemplate = function (self) return "OpenUI.StatusWindow" end, OnInitialize = function (self) OpenCore.Window:RestorePosition() local player = OpenCore.Player local...
nilq/small-lua-stack
null
object_draft_schematic_space_reactor_mining_grade_reactor = object_draft_schematic_space_reactor_shared_mining_grade_reactor:new { } ObjectTemplates:addTemplate(object_draft_schematic_space_reactor_mining_grade_reactor, "object/draft_schematic/space/reactor/mining_grade_reactor.iff")
nilq/small-lua-stack
null
--[[ This Roact component represents our entire game. ]] local ReplicatedStorage = game:GetService('ReplicatedStorage') local Modules = ReplicatedStorage:WaitForChild('Modules') local logger = require(Modules.src.utils.Logger) local clientSrc = game:GetService('StarterPlayer'):WaitForChild('StarterPlayerScripts').clie...
nilq/small-lua-stack
null
fio = require('fio') xlog = require('xlog').pairs env = require('test_run') test_run = env.new() test_run:cmd("setopt delimiter ';'") function read_xlog(file) local val = {} for k, v in xlog(file) do table.insert(val, setmetatable(v, { __serialize = "map"})) end return val end; test_run:cmd("se...
nilq/small-lua-stack
null
--[[ speechBubble.lua Copyright (C) 2016 Kano Computing Ltd. License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2 ]]-- local Colour = require 'system.colour' local Typewriter = require 'system.typewriter' local love = love local g = love.graphics local SpeechBubble = {} SpeechBubble.__index = SpeechBubble ...
nilq/small-lua-stack
null
local StringJoinTests = test.declare('StringJoinTests', 'string') function StringJoinTests.join_returnsNil_onNilInput() test.isNil(string.join(' ')) end function StringJoinTests.join_returnsSameValue_onSingleValue() test.isEqual('A', string.join(' ', 'A')) end function StringJoinTests.join_returnsJoinedValues_o...
nilq/small-lua-stack
null
local runtime,exports = ... local bON = dofile("deps/bon.lua") function exports.serialize(data) return bON.serialize(data) end function exports.deserialize(data) return bON.deserialize(data) end -- function exports.serialize(data) -- return util.TableToJSON(data) -- end -- function exports.deserialize(data) -- ...
nilq/small-lua-stack
null
local fio = require('fio') local t = require('luatest') local g = t.group('cartridge-without-http') local helpers = require('test.helper') g.test_http_disabled = function() t.skip_if(type(helpers) ~= 'table', 'Skip cartridge test') local cluster = helpers.init_cluster() local server = cluster.main_server ...
nilq/small-lua-stack
null
wait(1) local plr = game.Players.LocalPlayer local char = plr.Character hum=char.Humanoid for i,v in pairs (char:GetChildren()) do if v.Name~="Humanoid" and v.ClassName~="Part" then v:Destroy() end end for i,v in pairs (char:WaitForChild("Head"):GetChildren()) do if v.ClassName=="Sound" then v:Destroy() end en...
nilq/small-lua-stack
null
-- Copyright © Vespura 2018 -- https://github.com/TomGrobbe/JoinTransition/blob/master -- Arboratory character data. Likely fetched from a database. Characters = { { id = 1, forename = "Joe", surname = "Bloggs", description = "Recently signed a Mixer contract.", balance = 10...
nilq/small-lua-stack
null
-- addEventListener('update lightline when lsp diagnostics is updated', { 'User LspDiagnosticsChanged', 'User LspMessageUpdate', 'User LspStatusUpdate' }, function () -- vim.cmd('call lightline#update()') -- end)
nilq/small-lua-stack
null
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. acklay = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "acklay_bone_armor_schematic", weight = 1600000}, {itemTemplate = "acklay_bones", weight = 2200000}, {itemTemplate = "acklay_bones_rare", weight = 2...
nilq/small-lua-stack
null
--[[ Visualization of the evolution process. Requires the lua-gnuplot [1] library. [1]: https://bitbucket.org/lucashnegri/lua-gnuplot --]] local de = require('de') local gp = require('gnuplot') math.randomseed( os.time() ) local solver = de.new(2, 40) solver.limits[1] = {-5.12, 5.12} solver.limits[2...
nilq/small-lua-stack
null
--[[ Netherstorm -- Eye of Culuthas.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHer...
nilq/small-lua-stack
null
sb2 = {} local MP = minetest.get_modpath(minetest.get_current_modname()) local privateSB2 = {} privateSB2.modStorage = minetest.get_mod_storage() local settings = minetest.settings local enableExperiments = settings:get_bool("scriptblocks2_enable_experiments") local function loadfileWithError(file) local func, err...
nilq/small-lua-stack
null
swirl_prong = Creature:new { objectName = "@mob/creature_names:swirl_prong", socialGroup = "prong", faction = "", level = 19, chanceHit = 0.32, damageMin = 170, damageMax = 180, baseXp = 1426, baseHAM = 4100, baseHAMmax = 5000, armor = 0, resists = {5,120,5,135,135,-1,-1,-1,-1}, meatType = "meat_herbivore"...
nilq/small-lua-stack
null
-- Linux kernel types local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string -- TODO add __len to metatables of more...
nilq/small-lua-stack
null
local core=require"hashsi.core" local M={} local meta={} local function next_closure(self) local index=0 local id=rawget(self,"__id") return function() local key,val index,key,val=core.next(id,index) return key,val end end meta.__index=function(self,k) return core.get...
nilq/small-lua-stack
null
require("colorbuddy").setup() -- Run this line to turn function calls yellow Group.new('luaFunctionCall', c.yellow) -- Run this line to turn function calls blue Group.new('luaFunctionCall', c.blue)
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2021 Christophe MICHEL 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, pub...
nilq/small-lua-stack
null
-- -- Please see the license.html file included with this distribution for -- attribution and copyright information. -- -- Some values to cache to reduce processing local isMisc = false; local sNotePath = nil; local widget = nil; local sMiscFieldName = nil; -- NOTE: We purposely do not define onInit() as it appear...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "Tick_FounderStageDone", Effects = { PlaceObj('ForEachExecuteEffects', { 'Label', "Colonist", 'Filters', {}, 'RandomPercent', 20, 'Effects', { PlaceObj('ModifyObject', { ...
nilq/small-lua-stack
null
-------------------------------- -- @module CameraBackgroundBrush -- @extend Ref -- @parent_module cc -------------------------------- -- get brush type<br> -- return BrushType -- @function [parent=#CameraBackgroundBrush] getBrushType -- @param self -- @return int#int ret (return value: int) ---------------...
nilq/small-lua-stack
null
set = {2, 2, 2, 3, 3, 5} dim = 6 enum = {} denom = {} whl = {} enum_p = {} value = {} qq = {} reply = {""} choice = math.random(4) for i = 1,2 do qq = lib.math.random_shuffle(set) index = 1 + math.random(2) denom[i] = 1 for j = 1,index do if (i == choice and qq[j] == 3) then den...
nilq/small-lua-stack
null
local mod = DBM:NewMod("d288", "DBM-WorldEvents", 1) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17278 $"):sub(12, -3)) mod:SetCreatureID(36272, 36296, 36565) mod:SetModelID(16176) mod:SetZone() mod:SetReCombatTime(10) mod:RegisterCombat("combat") mod:RegisterEvents( "CHAT_MSG_MONS...
nilq/small-lua-stack
null
------------------------ -- Object class -- The parent class from which all other classes are derived. See the [middleclass documentation](https://github.com/kikito/middleclass/wiki) for more information. -- @cl Object -- THIS IS A FAKE IMPLEMENTATION JUST TO ASSIST DOCUMENTATION GENERATION. DO NOT INCLUDE IN THE FRAM...
nilq/small-lua-stack
null
rRoot = getResourceRootElement(getThisResource()) --- function onMTstart() outputDebugString("Started AUR driver mission") -- setUpMarkers() -- -- MISSION_TIME = MISSION_TIME_MIN * 60 * 1000 tFlood = {} -- end addEventHandler("onResourceStart",rRoot,onMTstart) function requestDx() if ( DXTEXT == true and D...
nilq/small-lua-stack
null
local config = require('vfiler/actions/config') local action_modules = { 'bookmark', 'buffer', 'cursor', 'directory', 'file_operation', 'open', 'preview', 'select', 'view', 'yank', } local M = setmetatable({}, { __index = function(t, key) for _, name in ipairs(action_modules) do local ...
nilq/small-lua-stack
null
slot0 = 100 Dntgtest_RenderOrder = { longwang = 40000 + 27, sunwukong = 40000 + 30, shandian = 30000 + 5000, shandianmenu = 30000 + 200, shandianxianjie = 30000 + 250, jinyumantang = 30000 + 300, danaotiangong = 30000 + 600, yijianshuangdiao = 30000 + 700, yishisanyu = 30000 + 800, foshou = 30000 + 500, jing...
nilq/small-lua-stack
null
local Direction = require('__stdlib__/stdlib/area/direction') --Global static variables TILE_ENTITY = "modular-storage-stockpileTile" CONTROLLER_ENTITY = "modular-storage-controller" INPUT_ENTITY = "modular-storage-input" OUTPUT_ENTITY = "modular-storage-output" INTERFACE_ENTITY = "modular-storage-interface" PANEL_ENT...
nilq/small-lua-stack
null
------------------------------------------------ -- Sample App : wrap.lua example -- This is the same example code from wrap.lua -- It should work just like the original script ------------------------------------------------ -- Define a global script object with event handlers script = {} function script.on...
nilq/small-lua-stack
null
--- A LogHandler for save log to a file. -- @author zrong -- Creation: 2014-11-14 local FileHandler = class('LogHandler', import(".LogHandler")) -- @file A file to write info or a opened file handler. It must be a absolute path. -- @mode A mode for opened file, it is only available when file is a file name. -- @autof...
nilq/small-lua-stack
null
local http = game:GetService("HttpService") local utils = {} local cache = {} function utils.get(url) local result; local success, err = pcall(function() result = http:GetAsync(url) end) if success and not err then return result else warn('Error occured, "'..err.."'") return err end end function utils...
nilq/small-lua-stack
null
local cpus=require'leda'.scheduler.cpu() return [===[<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Leda HTTP Controller: Real-time updates</title> <link href="leda.css" rel="styleshee...
nilq/small-lua-stack
null
include "map_builder.lua" include "trajectory_builder.lua" options = { map_builder = MAP_BUILDER, trajectory_builder = TRAJECTORY_BUILDER, map_frame = "map", tracking_frame = "imu_link", published_frame = "odom", odom_frame = "", provide_odom_frame = false, publish_frame_projected_to_2d = true, use_o...
nilq/small-lua-stack
null
assert(_ACTION ~= nil, "no action (vs20**, gmake or xcode for example) provided!") include("config.lua") newoption({ trigger = "workspace", description = "Sets the path for the workspace directory", value = "path for workspace directory" }) function CleanPath(p) if p == nil then return end local last = p:su...
nilq/small-lua-stack
null
local cartridge_opts = { 'advertise_uri', 'alias', 'auth_backend_name', 'auth_enabled', 'bucket_count', 'console_sock', 'http_enabled', 'http_host', 'http_port', 'roles', 'roles_reload_allowed', 'swim_broadcast', 'upgrade_schema', 'upload_prefix', 'vshard_grou...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
describe("metis.timer", function() describe("timeout", function() local timeout = require "metis.timer".timeout it("terminates a function", function() local then_ = os.clock() local ok = timeout(0, sleep, 1) local now = os.clock() expect(ok):eq(false) if now - then_ > 0.1 then ...
nilq/small-lua-stack
null
local helpers = require("/dynamic/helpers/mesh_helpers.lua") function create_box(color) local mesh = helpers.new_mesh() helpers.add_vertical_cylinder_to_mesh(mesh, {0,0,0}, 40, 22, 7, color) return mesh end meshes = { create_box(0xffff00ff), -- Yellow box (used by the Shield box) create_box(0xffffffff), -- ...
nilq/small-lua-stack
null
--[[ ]] local slider = {} slider.__index = slider slider._version = "0.3.5" -- aliases local lm = love.mouse local lg = love.graphics local ORIGIN = {x = 0, y = 0} -------------------------------- --------local functions--------- -------------------------------- local function clamp(n, low, high) ...
nilq/small-lua-stack
null
-- Copyright (C) Dejiang Zhu(doujiang24) local bit = require "bit" local setmetatable = setmetatable local byte = string.byte local sub = string.sub local lshift = bit.lshift local bor = bit.bor local strbyte = string.byte local _M = {} local mt = { __index = _M } function _M.new(self, str, api_version) loca...
nilq/small-lua-stack
null
--[[ Netherstorm -- Ethereum Gladiator.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- Black...
nilq/small-lua-stack
null
require("libs/addon") require("system") require("examples/object") font_size_small = math.floor((love.graphics.getHeight()/20)+1) font_small = love.graphics.newFont("libs/comicsans.ttf", font_size_small) font_size_big = math.floor((love.graphics.getHeight()/10)+1) font_big = love.graphics.newFont("libs/umebos...
nilq/small-lua-stack
null
local prototype = dtrequire("prototype") local Agent, State = dtrequire("agent").common() local editable = {} local Interaction = Agent:subtype() editable.Interaction = Interaction do function Interaction:isActive() return false end function Interaction:setCamera(camera) self.camera = camera end ...
nilq/small-lua-stack
null
return {'git','gitaar','gitaarband','gitaarduo','gitaargeluid','gitaargeweld','gitaarheld','gitaarmuziek','gitaarplaat','gitaarpop','gitaarriff','gitaarrock','gitaarsolo','gitaarspel','gitaarspelende','gitaarspeler','gitaarstijl','gitaarvirtuoos','gitaarwerk','gitarist','gitariste','gitten','gitzwart','gitaarakkoord','...
nilq/small-lua-stack
null
function onCreate() setPropertyFromClass('GameOverSubstate', 'characterName', 'rtbf'); --Character json file for the death animation setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'heartbreak'); --put in mods/music/ setPropertyFromClass('GameOverSubstate', 'endSoundName', 'heartbreakend'); --put in mod...
nilq/small-lua-stack
null
---- -- @file PhysicsCloseContact ---- Brief description. -- <#Description#> -- @return <#return value description#> function PhysicsCloseContact:calculateSerializeBufferSize() end ---- Brief description. -- @author James Folk, 16-02-11 15:02:48 -- <#Description#> -- @param dataBuffer <#dataBuffer description#> -- ...
nilq/small-lua-stack
null
package.path = package.path .. ";../?.lua" -- Hack to disable color support local getenv = os.getenv os.getenv = function(sym) return (sym == "TERM") and "dumb" or getenv(sym) end -- Do color test output COLOR_RED = string.char(27) .. "[31m" COLOR_GREEN = string.char(27) .. "[32m" COLOR_RESET = string.char(27) .. "[0...
nilq/small-lua-stack
null