content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
object_tangible_loot_creature_loot_collections_meatlump_lint_03 = object_tangible_loot_creature_loot_collections_shared_meatlump_lint_03:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_lint_03, "object/tangible/loot/creature/loot/collections/meatlump_lint_03.iff")
nilq/small-lua-stack
null
-- lua freq.lua < freq.lua local count = {} --local t = io.read("*all") --for w in string.gmatch(t, "%w+") do -- count[w] = (count[w] or 0) + 1 --end for line in io.lines() do for w in string.gmatch(line, "%w+") do count[w] = (count[w] or 0) + 1 end end local words = {} for w in pairs(count) do wo...
nilq/small-lua-stack
null
local Vector = require("src/helper/Vector") local ParallaxSystem = class("ParallaxSystem", System) function ParallaxSystem:update(dt) local engine = stack:current().engine -- Calculate the edact middle position between the players local playerMid = table.firstElement(engine:getEntitiesWithComponent("Angel...
nilq/small-lua-stack
null
local _, XB = ... -- func cache local GetTime = GetTime local UnitExists = ObjectExists or UnitExists local UnitIsFriend = UnitIsFriend -- local var local artifact = XB.Game.Artifact local buff = XB.Game.Buff local...
nilq/small-lua-stack
null
local PANEL = {} local log = require("log") local json = require("serializer.json") local notification = require("notification") require("extensions.math") function PANEL:Initialize() self:super() --self:SetTitle("Settings") --self:DockPadding(1, 32, 1, 1) --self:SetHideOnClose(true) self:DockPadding(0, 0, 0, ...
nilq/small-lua-stack
null
--[[ Copyright (C) 2019 The DMLab2D Authors. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
nilq/small-lua-stack
null
----------------------------------------------- -- Solution configuration file. ----------------------------------------------- workspace "DV1570" system "Windows" architecture "x86_64" flags { "MultiProcessorCompile" } configurations { "Debug", "Release" } --...
nilq/small-lua-stack
null
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local DNS = require("lib.protocol.dns.dns").DNS local ethernet = require("lib.protocol.ethernet") local ffi = require("ffi") local header = require("lib.protocol.header") local ipv4 = require("lib.protocol.ipv4")...
nilq/small-lua-stack
null
local findInSphere = ents.FindInSphere local setFont = surface.SetFont local getTextSize = surface.GetTextSize local clr = Color local hsvToClr = HSVToColor local curTime = CurTime local abs = math.abs local min = math.min local pairs = pairs local vector = Vector local start3d2d = cam.Start3D2D local end3d2d = cam.En...
nilq/small-lua-stack
null
local m = { } local function test_inheritance(m) local Test1 = m.class("Test1") Test1.a = "Test1" local Test2 = m.class("Test2", Test1) local Test3 = m.class("Test3", Test1) Test3.a = "Test3" local Test4 = m.class("Test4") local Test5 = m.class("Test5", {Test4, Test1}) assert(Test2.a == "Test1") assert(Test3...
nilq/small-lua-stack
null
object_tangible_quest_menagerie_terminal_49 = object_tangible_quest_shared_menagerie_terminal_49:new { } ObjectTemplates:addTemplate(object_tangible_quest_menagerie_terminal_49, "object/tangible/quest/menagerie_terminal_49.iff")
nilq/small-lua-stack
null
---@module gamelogic ---Starts a new game, and does all the bookkeeping necessary for that. Generates the first map, and puts the player on it. --@param mapSeed Number. The seed to use to generate the world. (optional) --@param playTutorial Boolean. Whether or not to show tutorial messages this game. (optional) --@par...
nilq/small-lua-stack
null
---@tag telescope-file-browser.picker --@module telescope-file-browser.picker -- ---@brief [[ --- You can use the file browser as follows --- <code> --- :lua vim.api.nvim_set_keymap( --- "n", --- "<space>fb", --- "<cmd>lua require 'telescope'.extensions.file_browser.file_browser()<CR>", --- {noremap = true...
nilq/small-lua-stack
null
local GameManager = Ballance2.Services.GameManager local GameDebugEntry = Ballance2.Entry.GameDebugEntry.Instance local GameErrorChecker = Ballance2.Services.Debug.GameErrorChecker local GameError = Ballance2.Services.Debug.GameError local StringUtils = Ballance2.Utils.StringUtils ---自定义关卡调试环境 function LevelCustomDebu...
nilq/small-lua-stack
null
---------------------------------------------------------------------------- -- LuaSec 0.6 -- Copyright (C) 2009-2016 PUC-Rio -- -- Author: Pablo Musa -- Author: Tomas Guisasola -- Coroutines version --------------------------------------------------------------------------- local socket = require("socket") or socket ...
nilq/small-lua-stack
null
--The MIT License (MIT) -- --Copyright (c) 2016 Jaap Braam -- --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, modi...
nilq/small-lua-stack
null
local voice = {default = 5.0, shout = 12.0, whisper = 1.0, current = 0, level = nil} function drawLevel(r, g, b, a) SetTextFont(4) SetTextScale(0.5, 0.5) SetTextColour(r, g, b, a) SetTextDropshadow(0, 0, 0, 0, 255) SetTextDropShadow() SetTextOutline() BeginTextCommandDisplayText('STRING') AddTextComponentSubs...
nilq/small-lua-stack
null
require "ISUI/ISCollapsableWindow" ---@class ISInfoContainer : ISCollapsableWindow ISInfoContainer = ISCollapsableWindow:derive("ISInfoContainer"); function ISInfoContainer:initialise() --print("init"); ISCollapsableWindow.initialise(self); self.panel = ISPanel:new(0, 16, self.width, self.height-16); self.pane...
nilq/small-lua-stack
null
--internal DB herbs MillButton_Herblist = { ["Classic"] = { [765] = false, --Silberblatt [785] = false, --Maguskönigskraut [2447] = false, --Friedensblume [2449] = false, --Erdwurzel [2450] = false, --Wilddornrose [2452] = false, --Filzdistel [2453] = false, --Beulengras [3820] = false, -...
nilq/small-lua-stack
null
LinkLuaModifier("modifier_boss_unslowable_attack_speed", "abilities/boss_unslowable_attack_speed.lua", LUA_MODIFIER_MOTION_NONE) boss_unslowable_attack_speed = class(AbilityBaseClass) function boss_unslowable_attack_speed:GetIntrinsicModifierName() return "modifier_boss_unslowable_attack_speed" end ---------------...
nilq/small-lua-stack
null
--- Common functions [INTERNAL]. All of these functions are internal! -- @module worldedit.common --- Copies and modifies positions `pos1` and `pos2` so that each component of -- `pos1` is less than or equal to the corresponding component of `pos2`. -- Returns the new positions. function worldedit.sort_pos(pos1, pos2...
nilq/small-lua-stack
null
local COMMAND = {} COMMAND.title = "Freeze" COMMAND.description = "(Un)Freeze a player." COMMAND.author = "Nub" COMMAND.timeCreated = "Friday, April 17, 2020 @ 8:36 PM" COMMAND.category = "Player Management" COMMAND.call = "freeze" COMMAND.usage = "<player> [1|0]" COMMAND.server = function(caller, args) lo...
nilq/small-lua-stack
null
local C = {} function C:init(unit) self.unit = unit end function C:setup(params) self.lineDirection = params:getVec2("lineDirection", Vec2(0, 1)) end function C:onUpdate() if not self.unit.root then return end self.unit.root.position.x = self.unit.root.position.x + self.unit.speed * game.deltaTim...
nilq/small-lua-stack
null
-- Rayman 3: Hoodlum Havoc (NTSC-U v1.0) local core = require("games.core") local game = { memorymap = {} } core.loadGenericControllerMap(0x8042F5C8, game) return game
nilq/small-lua-stack
null
connection = require 'connection' noauto = function() if file.open("no_auto_connect.txt", "w") then file.close("no_auto_connect.txt") end end nouart = function() file.remove("uart_settings.lua") change_uart_settings = false end begin = function() print("hi :)") if file.open("uart_sett...
nilq/small-lua-stack
null
local args = ... local date = args.date local body = args.body local song = args.song local font_zoom = 0.675 local max_width = 420 local padding = 12 local af = Def.ActorFrame{ InitCommand=function(self) self:diffuse( Color.Black ) end, StartSceneCommand=function(self) self:visible(true):smooth(1):diffuse(Color.Wh...
nilq/small-lua-stack
null
--- -- Module containing some general utility functions local uuid = require "uuid" -- This is important to seed the UUID generator uuid.seed() local _M = {} --- Generates a random unique string -- @return string The random string (a uuid without hyphens) function _M.random_string() return uuid():gsub("-", "") e...
nilq/small-lua-stack
null
local rects = {} -- Create an array to store the rectangle objects rects[0] = display.newRect(150, 150, 100, 100) -- Create and store the first rectangle object rects[1] = display.newRect(300, 150, 100, 100) -- Create and store the second rectangle object rects[2] = display.newRect(150, 300, 100, 100) ...
nilq/small-lua-stack
null
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
nilq/small-lua-stack
null
local crc = require("crcarray") require("struct_define") local ffi = require("ffi") local function createC() local c = crc.start("struct C") crc.setValue(c, "int", "id", 987) crc.setString(c, "name", "name") local b = crc.malloc("struct B") crc.setReference(c, "b", b) crc.setValue(b, "int", "id", 654) crc.setSt...
nilq/small-lua-stack
null
local tools = require 'utils.tools' -- --------------------------------------------------------------------------- -- communication -> mud local function send(...) for _,msg in ipairs{...} do mud.send(msg, { gag = true }) end end -- -------------------------------------------------------------------------...
nilq/small-lua-stack
null
require "defines" -- cost_price - total outlay required to produce something -- market_price or selling_price - cost_price + profit -- I decided to define cost price of resources as function of time (s) and electric power (kW) -- of corresponding machinery, so energy_cost can be used as universal reference point ene...
nilq/small-lua-stack
null
Sheet = { hero = { aim_arm = AnimSheet('res/sheets/units/hero/aim_arms.png'):split(100, 65), aim = AnimSheet('res/sheets/units/hero/aim_body.png'):split(100, 65), base = AnimSheet('res/sheets/units/hero/base.png'):split(50, 48), attack = AnimSheet('res/sheets/units/hero/attack.png'):split(100, 65), },...
nilq/small-lua-stack
null
require "resty.nettle.types.sha1" local lib = require "resty.nettle.library" local ffi = require "ffi" local ffi_new = ffi.new local ffi_typeof = ffi.typeof local ffi_cdef = ffi.cdef local ffi_str = ffi.string local setmetatable = setmetatable ffi_cdef[[ void nettle_sha1_init(struct ...
nilq/small-lua-stack
null
--[[ * Copyright (c) 2011 MoSync AB * * 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...
nilq/small-lua-stack
null
local status_ok, gitsigns = pcall(require, "gitsigns") if not status_ok then return end gitsigns.setup { signcolumn = false, numhl = true, }
nilq/small-lua-stack
null
local ground_dir = { [0] = {x = 0, y = -1, z = 0}, {x = 0, y = 0, z = -1}, {x = 0, y = 0, z = 1}, {x = -1, y = 0, z = 0}, {x = 1, y = 0, z = 0}, {x = 0, y = 1, z = 0}, } minetest.register_lbm({ label = "Upgrade legacy pistons pointing up", name = "mesecons_pistons:r...
nilq/small-lua-stack
null
local strict = require(script.Parent:WaitForChild("strict")) local SignalService = require(script.Parent) local function createId(self) math.randomseed(#self.__connections) return tostring(math.random(math.huge, 1)) end local function connectCheck(self, callbackFunction) if SignalService.isSignal(self) then if ...
nilq/small-lua-stack
null
-- Set the resource manifest resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' -- Add a client script client_script 'client.lua' client_script "@Badger-Anticheat/acloader.lua"
nilq/small-lua-stack
null
local h = require 'controller_helpers' local inspect = require 'inspect' local EventObs = require 'models.event_observer' local Event = require 'models.event' local events = { count = function(params) local conditions, options = h.jor_conditions_and_options(params, '$gt') if params.read ~= ni...
nilq/small-lua-stack
null
local harpoon = require('harpoon') local utils = require('harpoon.utils') local M = {} local function filter_empty_string(list) local next = {} for idx = 1, #list do if list[idx] ~= "" then table.insert(next, list[idx]) end end return next end local function get_buf_name(...
nilq/small-lua-stack
null
local output, arch = ... local fs = require 'bee.filesystem' require 'msvc'.copy_vcrt( arch == "x86" and 'x86' or 'x64', fs.current_path() / output )
nilq/small-lua-stack
null
-- Symbol table module(..., package.seeall) function new() local st = {} setmetatable(st, { __index = _M }) return st end function _M:enter(func) local level = { func = (func or self[#self].func) } if func then func.args = {} func.locals = {} func.upvals = {} end self[#self + 1] = level end...
nilq/small-lua-stack
null
local execute = vim.api.nvim_command local fn = vim.fn local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then execute("!git clone http://github.com/wbthomason/packer.nvim " .. install_path) execute "packadd packer.nvim" end require("packer...
nilq/small-lua-stack
null
--redis local class = require("base/class") local tcp = require("base/tcp") local log = require("base/log") ------------------------------------------------------------------------------- --CCRedis,封装redis客户端操作 ------------------------------------------------------------------------------- local TIMEOUT = 60*1000 --数据...
nilq/small-lua-stack
null
-- Generated by CSharp.lua Compiler local System = System local SlipeClientPeds local SlipeClientVehicles local SlipeMtaDefinitions local SlipeSharedElements local SlipeSharedVehicles local SystemNumerics local ArrayComponent local DictInt32Player System.import(function (out) SlipeClientPeds = Slipe.Client.Peds Sli...
nilq/small-lua-stack
null
----------------------------------- -- Area: Northern San d'Oria -- NPC: Capiria -- Type: Involved in Quest (Flyers for Regine) -- !pos -127.355 0.000 130.461 231 ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs"); require("scripts/globals/quests"); -------------------------...
nilq/small-lua-stack
null
bSecure.AntiAlt = {}
nilq/small-lua-stack
null
local PANEL = {} function PANEL:Init() self:Dock(LEFT) self:DockMargin(0, 0, 32, 0) self:SetContentAlignment(4) end function PANEL:setText(name) self:SetText(L(name):upper()) self:InvalidateLayout(true) self:SizeToContentsX() end function PANEL:onSelected(callback) self.callback = callback end function PANEL...
nilq/small-lua-stack
null
local item = Item{ -- Item ID (optional, defaults to path) id = "white_ribbon", -- Display name name = "White Ribbon", -- Item type (item, key, weapon, armor) type = "armor", -- Item icon (for equipment) icon = "ui/menu/icon/armor", -- Battle description effect = "", -- Sho...
nilq/small-lua-stack
null
dofile "Script/StorySystem/StorySystem.lua" -- dofile "Script/StorySytem/StoryBaseSystem.lua"
nilq/small-lua-stack
null
--[[ Name: "sv_autorun.lua". Product: "kuroScript". --]] local MOUNT = MOUNT; -- Include some prefixed files. kuroScript.frame:IncludePrefixed("sh_autorun.lua"); -- A function to load the parent data. function MOUNT:LoadParentData() self.parentData = {}; -- Set some information. local parentData = kuroScript.fr...
nilq/small-lua-stack
null
Database = require("database") local BaseRecordStore = require("recordstore.base") local RecordStore = class("RecordStore", BaseRecordStore) function RecordStore:__init() BaseRecordStore.__init(self) if self.hasEntry == nil then -- Not implemented yet end end function RecordStore:CreateEntry() ...
nilq/small-lua-stack
null
-- test Linux structures against standard headers -- Need to cross compile on correct 32/64 bits --[[ luajit test/linux-structures.lua x64 > ./obj/s.c && cc -U__i386__ -DBITS_PER_LONG=64 -I./include/linux-kernel-headers/x86_64/include -o ./obj/s ./obj/s.c && ./obj/s luajit32 test/linux-structures.lua x86 > ./obj/s.c ...
nilq/small-lua-stack
null
local conf = require("telescope.config").values local Path = require "plenary.path" local utils = require "telescope.utils" local uv = vim.loop ---@tag telescope.actions.history ---@config { ["module"] = "telescope.actions.history" } ---@brief [[ --- A base implementation of a prompt history that provides a simple h...
nilq/small-lua-stack
null
--- -- @description Implements a discrete Markov Chain over a finite set of states. -- @author simplex local Lambda = wickerrequire 'paradigms.functional' local Pred = wickerrequire 'lib.predicates' local table = wickerrequire 'utils.table' --- -- The markov chain class. -- -- @class table -- @name MarkovChain -- l...
nilq/small-lua-stack
null
-- Generated by LairTool dantooine_janta_rockshaper_camp_neutral_medium_theater = Lair:new { mobiles = {{"janta_rockshaper",1},{"janta_primalist",1},{"janta_herbalist",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/building/poi/dantooine_janta_medium1.iff","object/building/poi/dantooine_janta_medium2.iff"}, bui...
nilq/small-lua-stack
null
#!/usr/local/bin/lua lib=require "mylib" print(lib.add(1, 2))
nilq/small-lua-stack
null
--navigation program, which avoids obstacles using the Braitenberg algorithm --originates from CoppeliaSim, tweaked for own purposes function sysCall_init() count = 0 visionSensorHandle = sim.getObjectHandle('Vision_sensor') usensors={-1,-1,-1,-1,-1,-1,-1,-1,-1} for i=1,9,1 do usensors[i]=sim....
nilq/small-lua-stack
null
--fixes map lighting local function mapfix(minp, maxp) local vm = minetest.get_voxel_manip(minp, maxp) vm:write_to_map() vm:update_map() local emin, emax = vm:get_emerged_area() end --calls the mapfix function minetest.register_chatcommand("mapfix", { description = "Recalculate the light of a chunk", func = func...
nilq/small-lua-stack
null
--[[ This resource is officially available on GitHub at https://github.com/patrikjuvonen/editor_addon_effects MIT License Copyright (c) 2021 patrikjuvonen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ...
nilq/small-lua-stack
null
if not modules then modules = { } end modules ['font-imp-quality'] = { version = 1.001, comment = "companion to font-ini.mkiv and hand-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" ...
nilq/small-lua-stack
null
cotw_wild_monkey_poet = { cast = function(player) local magicCost = 10 local mobID = 565 if not player:canCast(1, 1, 0) then return end if player.magic < magicCost then player:sendMinitext("Not enough mana.") return end if cotw_spawnCheck(player, mobID) == false then return end player...
nilq/small-lua-stack
null
local Basic, super = Class(Wave) function Basic:onStart() -- Every 0.33 seconds... self.timer:every(1/3, function() -- Our X position is offscreen, to the right local x = SCREEN_WIDTH + 20 -- Get a random Y position between the top and the bottom of the arena local y = Utils.ran...
nilq/small-lua-stack
null
do local PANEL = FindMetaTable("Panel") function PANEL:SetHelixTooltip(callback) if (IsValid(self)) then self:SetMouseInputEnabled(true) self.ixTooltip = callback end end end
nilq/small-lua-stack
null
function setup() displayMode(FULLSCREEN) end function draw() background(0) stroke(255) strokeWidth(20) line(CurrentTouch.prevX,CurrentTouch.prevY,CurrentTouch.x,CurrentTouch.y) end
nilq/small-lua-stack
null
local path = require('path') local fs = require('fs') local os = require('os') local parseUrl = require('url').parse local decodeURI = require('querystring').urldecode local mimes = require('mimes') -- static files middleware -- root - directory path required -- options: -- `maxAge` - browser cache maxAge in millisec...
nilq/small-lua-stack
null
local M = {} -- Fails the chunk regex near the end: M[1] = [[room.writtenmap Exits northwest and southeast of one southwest, the limit of your vision is one southwest from here, exits southwest and northeast of one southeast, a sneaky pickpocket and a fair wenche are one southeast, exits southwest and northeast of on...
nilq/small-lua-stack
null
local dyes = { {"white", "White", nil}, {"grey", "Grey", "basecolor_grey"}, {"black", "Black", "basecolor_black"}, {"red", "Red", "basecolor_red"}, {"yellow", "Yellow", "basecolor_yellow"}, {"green", "Green", "basecolor_green"}, {"cyan", "Cya...
nilq/small-lua-stack
null
object_tangible_smuggler_contraband_contraband_8 = object_tangible_smuggler_contraband_shared_contraband_8:new { } ObjectTemplates:addTemplate(object_tangible_smuggler_contraband_contraband_8, "object/tangible/smuggler/contraband/contraband_8.iff")
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceGuildApplyList_pb', package.seeall) local BCEGUILDAPPLYLIST = protobuf.Descriptor(); BCEGUILDAPPLYLIST.name = "BceGuildApplyList" BCEGUILDAPPLYLIST.full_name = ".com.xinqihd.sns.gameserver.proto.BceGuildApplyList" BCEGUILDAPPLY...
nilq/small-lua-stack
null
---------------------------------------- -- Group Calendar 5 Copyright (c) 2018 John Stephen -- This software is licensed under the MIT license. -- See the included LICENSE.txt file for more information. ---------------------------------------- function GroupCalendar:InitializeRealm() self.RealmName = GetRealm...
nilq/small-lua-stack
null
--[[-------------------------------------------------- GUI Editor client item_multiple_selection.lua define the right click menu items that can be applied to multiple selections --]]-------------------------------------------------- function createItem_multipleMove() return MenuItem_Text:create("Move"):set({onC...
nilq/small-lua-stack
null
local L = vim.loop local M = {} -- reexport submodule M.log = require('nvimd.utils.log') M.none = vim.NIL function M.deepcopy(orig) local orig_type = type(orig) local copy if orig_type == 'table' then copy = {} for orig_key, orig_value in next, orig, nil do copy[M.deepcopy(or...
nilq/small-lua-stack
null
--[[ Author: kritth Date: 7.1.2015. Init: Create stack and buff ]] function overpower_init( keys ) local caster = keys.caster local ability = keys.ability local modifierName = "modifier_enrage_buff_datadriven" local duration = ability:GetLevelSpecialValueFor( "duration_tooltip", ability:GetL...
nilq/small-lua-stack
null
function onEvent(name, value1, value2) curHealth = getProperty('health'); if name == 'Drain' then if curHealth > 0.02 then setProperty('health', curHealth - 0.02); end end end
nilq/small-lua-stack
null
local PLAYER = FindMetaTable( "Player" ) function PLAYER:SetRemainingProps(int) self:SetNWInt("props", int) end function PLAYER:GetRemainingProps() return self:GetNWInt("props") end function PLAYER:SetupFW() self:SetRemainingProps( GetConVar("fw_maxplayerprops"):GetInt() ) end function PLAYER:Init() ...
nilq/small-lua-stack
null
return { Janitor = { URL = "https://raw.githubusercontent.com/RoStrap/Events/master/Janitor.lua"; Documentation = "https://rostrap.github.io/Libraries/Events/Janitor/"; ParentFolderPath = "Events"; }; Signal = { URL = "https://raw.githubusercontent.com/RoStrap/Events/master/Signal.lua"; Documentation = "h...
nilq/small-lua-stack
null
/* * @package : rlib * @author : Richard [http://steamcommunity.com/profiles/76561198135875727] * @copyright : (C) 2020 - 2020 * @since : 3.0.0 * @website : https://rlib.io * @docs : https://docs.rlib.io * * MIT License * * THE SOFTWARE IS PROVIDED "AS IS",...
nilq/small-lua-stack
null
--sample local skynet = require "skynet" local this = { user_info = nil, gmList = { {gmName="增加道具", defaultGMStr="Goods,100000,1"}, {gmName="清空背包", defaultGMStr="ClearAllGoods"}, {gmName="切换场景", defaultGMStr="Scene,1001"}, {gmName="改变属性", defaultGMStr="Attr,1,100"}, {gmName="设置金钱", defaultGMStr="Money,1000...
nilq/small-lua-stack
null
--[[-- 深度克隆一个值 ~~~ lua -- 下面的代码,t2 是 t1 的引用,修改 t2 的属性时,t1 的内容也会发生变化 local t1 = {a = 1, b = 2} local t2 = t1 t2.b = 3 -- t1 = {a = 1, b = 3} <-- t1.b 发生变化 -- clone() 返回 t1 的副本,修改 t2 不会影响 t1 local t1 = {a = 1, b = 2} local t2 = clone(t1) t2.b = 3 -- t1 = {a = 1, b = 2} <-- t1.b 不受影响 ~~~ @param mixed object 要克...
nilq/small-lua-stack
null
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT return { adventure_guild = require "game.entities.adventure_guild", hero = require "game.entities.hero", quest = require "game.entities.quest", turn_counter = require "gam...
nilq/small-lua-stack
null
exports = exports tonumber = tonumber addEvent = addEvent addEventHandler = addEventHandler addCommandHandler = addCommandHandler connection = exports.slua_mysql SmallestID = function() local query = dbQuery(connection:getConnection(), "SELECT MIN(e1.id+1) AS nextID FROM factions AS e1 LEFT JOIN factions AS e...
nilq/small-lua-stack
null
print("Hello from", _VERSION)
nilq/small-lua-stack
null
local geometry = require("hexagonalGeometryHelper") local states = require("states") local graphicsModel = require("models/graphicsModel") local selection = {} local offset = 0 local itemName local targetGraphicsTable local rememberedMouseX,rememberedMouseY function selection.open(params) offset = 0 itemName = par...
nilq/small-lua-stack
null
----------------------------------- -- Area: Hall of Transference -- NPC: Cermet Gate - Mea -- !pos 280 -86 -19 ----------------------------------- require("scripts/globals/missions"); local ID = require("scripts/zones/Hall_of_Transference/IDs"); ----------------------------------- function onTrade(player,npc,trade) ...
nilq/small-lua-stack
null
--[[ A Lua module for wrapping infoboxes. Originally written on the English Wikipedia by Toohool and Mr. Stradivarius. Code released under the GPL v2+ as per: https://en.wikipedia.org/w/index.php?diff=next&oldid=581399786 https://en.wikipedia.org/w/index.php?diff=next&oldid=581403025 @license GNU GPL v2+ @au...
nilq/small-lua-stack
null
print("START JSON TEST") local json_lua = require("jsonlua") local abc = {} local xyz = {} abc.xyz = abc xyz.abc = xyz local data = { { "xyz", "hello" }, { hello = 32; data = { nested = 64; }; nothing = {}; --cyclical = abc; }, "test", "abc", "123", 32, 64 } local dataStr = "[32, 64, 128,...
nilq/small-lua-stack
null
return {'ubbergen','ubberger','ubbergs','ubbink','ubben','ubbels'}
nilq/small-lua-stack
null
local socket = require("socket") local sdl = require("lunasdl") local port = tonumber(({...})[1]) or 8080 -- server port local n = tonumber(({...})[2]) -- no. of tests (nil->max) local npings = tonumber(({...})[3]) or 3 local ping_int = tonumber(({...})[4]) or 1 local timeout = tonumber(({...})[5]) or 10 -- timeout lo...
nilq/small-lua-stack
null
RegisterNUICallback( 'CreateContact', function( data, cb ) actionCb['CreateContact'] = cb TriggerServerEvent('mythic_phone:server:CreateContact', securityToken, 'CreateContact', data.name, data.number) end) RegisterNUICallback( 'EditContact', function( data, cb ) actionCb['EditContact'] = cb TriggerSer...
nilq/small-lua-stack
null
local data = { parent = {}, count = 0, } local function build(host_id, service_id, host_dep_id, service_dep_id) local retval = { category = 1, element = 20, _type = 65556, dependency_period = "24/24", dependent_host_id = host_dep_id, dependent_service_id = service_dep_id, host_id = ho...
nilq/small-lua-stack
null
return {'anijs','anijsmelk','anijszaad','aniline','anilinepotlood','anima','animaal','animaliteit','animateur','animateurs','animatie','animatiefilm','animatieserie','animatiestudio','animatietechniek','animator','animatrice','anime','animeermeisje','animeren','animisme','animistisch','animo','animositeit','animus','an...
nilq/small-lua-stack
null
local async = require './' local table = require 'table' local string = require 'string' local math = require 'math' local fmt = string.format local checked = 0 local asserts = {} asserts.equal = function(a, b) checked = checked + 1 assert(a == b) end asserts.ok = function(a) checked = checked + 1 assert(a) ...
nilq/small-lua-stack
null
local component = require('component'); local event = require('event'); local rc = require('rc'); local shell = require('shell'); local logger = require('log')('dns-client'); local db = require('persistable')('hostnames', {}); local DNS_PORT = 1; local TIMEOUT = 2; started = false local function getModem() local ...
nilq/small-lua-stack
null
--[[ Displays the box containing the evolutionary line of a Pokémon. This module exposes three WikiCode interfaces. The main one is Evobox, that is automatic and meant to be used in Pokémon pages. It's called with {{#invoke: Evobox | Evobox | {{BASEPAGENAME}} }} The other two interfaces are Formbox and GlitchEvobox...
nilq/small-lua-stack
null
--[[ Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local thoughts = {} local mattata = require('mattata') local http = require('socket.http') local url = require('socket.url') local ltn12 = require('ltn12') local json = require('dkjson') fu...
nilq/small-lua-stack
null
modifier_slardar_slithereen_crush_lua_slow = class({}) -------------------------------------------------------------------------------- function modifier_slardar_slithereen_crush_lua_slow:IsDebuff() return true end -------------------------------------------------------------------------------- function modifier_s...
nilq/small-lua-stack
null
object_tangible_loot_npc_loot_heroic_exar_roots_s04 = object_tangible_loot_npc_loot_shared_heroic_exar_roots_s04:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_heroic_exar_roots_s04, "object/tangible/loot/npc/loot/heroic_exar_roots_s04.iff")
nilq/small-lua-stack
null
include('sky/lib/prelude') local chain = sky.Chain{ sky.Logger{}, sky.Output{ device = midi.connect(2) }, } source = sky.Input{ device = midi.connect(1), -- name = "AXIS-64", chain = chain, } function redraw() screen.clear() screen.update() end function cleanup() source:cleanup() end
nilq/small-lua-stack
null