content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
Config = {} Config.DrawDistance = 100.0 Config.MarkerColor = { r = 120, g = 120, b = 240 } Config.EnablePlayerManagement = true -- If set to true, you need esx_addonaccount, esx_billing and esx_society Config.EnablePvCommand = false Config.MaxInServ...
nilq/small-lua-stack
null
-- -- Byte Encoder -- local bit = assert(foundation.com.bit) -- Base module local E = {} function E:e_i64(int) assert(type(int) == "number", "expected an integer") return self:e_iv(8, int) end function E:e_i56(int) assert(type(int) == "number", "expected an integer") return self:e_iv(7, int) end function E:...
nilq/small-lua-stack
null
ITEM.name = "Respirator" ITEM.desc = "A Gas-mask type Respirator that protects you from bad airs." ITEM.model = "models/barneyhelmet_faceplate.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.gasMask = true ITEM.price = 250 ITEM.category = "Outfit" ITEM.iconCam = { ang = Angle(29.00287437439, 411.06158447266, 0), fov = 4.289...
nilq/small-lua-stack
null
local MechanicPickup local vehicleColors = { black = '000000', red = 'FF0000', matallic = 'AAA9AD', electric_green = '00FF00', orange = 'FFA500', yellow = 'FFFF00', blue = '0000FF', baby_blue = '89CFF0', dark_purple = '6A0DAD', white = 'FFFFFF', light_purple = 'B19CD9', d...
nilq/small-lua-stack
null
Config = { Prefix = '^9[^1Badger-Tags^9] ^3', TagsForStaffOnly = false, -- "DiscordTagIDs.Use.Tag-Toggle" roleList = { {0, "~g~Member ~w~"}, {"Cert_Civ", "~b~Certified Civilian ~w~"}, {"Police", "~r~Popo ~w~"}, {"Owner", "~o~FOUNDER ~w~"}, }, }
nilq/small-lua-stack
null
local fireutil = require("__base__.prototypes.fire-util") local nuke_explosions = require("data-nuke-explosions") local atomic_artillery_recipe = { type = "recipe", name = "TN-atomic-artillery-shell", enabled = false, energy_required = 120, ingredients = { {"artillery-shell", 1}, ...
nilq/small-lua-stack
null
local PANEL = {} function PANEL:Init() self:SetSize(500, 700) self:MakePopup() self:Center() self:SetTitle("Paper") self.controls = self:Add("DPanel") self.controls:Dock(BOTTOM) self.controls:SetTall(30) self.controls:DockMargin(0, 5, 0, 0) self.contents = self:Add("DTextEntry") self.contents:Dock(FILL) ...
nilq/small-lua-stack
null
--- === hs.canvas.matrix === --- --- A sub module to `hs.canvas` which provides support for basic matrix manipulations which can be used as the values for `transformation` attributes in the `hs.canvas` module. --- --- For mathematical reasons that are beyond the scope of this document, a 3x3 matrix can be used to repre...
nilq/small-lua-stack
null
local AttackRange = Component.create("AttackRange") function AttackRange:initialize(max, min) self.max = max self.min = min or -1 end function AttackRange:setRange(max, min) self.max = max self.min = min or -1 end
nilq/small-lua-stack
null
local name = "mesecar_yellow" local definition = ... definition.description = "Yellow Mesecar" definition.inventory_image = "mesecar_car4front.png" definition.wield_image = "mesecar_car4front.png" definition.textures = { "mesecar_car4top.png", "mesecar_carbase.png", "mesecar_car4rightside.png", "mesecar_car4lefts...
nilq/small-lua-stack
null
SPECIAL_MSGTYPE_ADDTOKEN = "addtoken"; function onInit() -- if the user is the host if User.isHost() then -- create the token node local tokensnode = DB.createNode("tokens"); -- clean the current tokens cleanTokens(); -- subscrive to the user login event --User.onLogin = onLogin;...
nilq/small-lua-stack
null
local M = {} local sign_define_cache = {} local function sign_get(name) if not sign_define_cache[name] then local s = vim.fn.sign_getdefined(name) if not vim.tbl_isempty(s) then sign_define_cache[name] = s end end return sign_define_cache[name] end function M.sign_define(name, op...
nilq/small-lua-stack
null
--------------------------------------------------------------------------- --- Text clock widget. -- -- @author Julien Danjou <julien@danjou.info> -- @copyright 2009 Julien Danjou -- @classmod wibox.widget.textclock --------------------------------------------------------------------------- local setmetatable =...
nilq/small-lua-stack
null
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA module("Loader", package.seeall) BaseGamemode = GM.FolderName local function GetFileList(strDirectory, strGamemode) local files = {} local realDirectory = strGamemode .. "/gamemode/" .. strDirectory ...
nilq/small-lua-stack
null
--[[ Core.lua is intended to store all core functions and variables to be used throughout the addon. Don't put anything in here that you don't want to be loaded immediately after the Libs but before initialization. --]] local _, core = ...; local _G = _G; local L = core.L; core.MonDKP = {}; -- UI Frames glob...
nilq/small-lua-stack
null
return { summary = 'Encode the TextureData as png.', description = 'Encodes the TextureData to a png.', arguments = {}, returns = { { name = 'blob', type = 'Blob', description = 'A new Blob containing the PNG image data.' } }, related = { 'lovr.filesystem.write' } }
nilq/small-lua-stack
null
local internet = require("internet") -- ############################## -- TCP -- ############################## local function on_tcp_connection(connection, s) print("tcp connection connected") local hello_timer = tmr.create() hello_timer:alarm(1000, tmr.ALARM_AUTO, function () connection:send("testing =...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' 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
-- 删除一个延迟任务 local jobs_key_ht = KEYS[1]; local bucket_key_zset = KEYS[2]; local topic_id = ARGV[1]; redis.call('HDEL',jobs_key_ht,topic_id) ; redis.call('ZREM',bucket_key_zset,topic_id) ;
nilq/small-lua-stack
null
require("prototypes.engineering.add_effects_script") require("prototypes.turrets.data")
nilq/small-lua-stack
null
--[[---------------------------------------------------------------------------- Info.lua metaExportFilter Sample Summary information for Metadata Export Filter plugin sample plugin -------------------------------------------------------------------------------- ADOBE SYSTEMS INCORPORATED Copyright 2008 Adobe Systems...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------- -- Simple cursor script by Infinite Rain, based on a sample by Unreal Software -- --------------------------------------------------------------------------------- if not CSample then require("sys/lua/CS2D-AmplifiedScripting") CSample =...
nilq/small-lua-stack
null
--[[ args={ text={ {content="hello",color={r=255,g=222,b=123}}, {content="wahahhasd",color={r=255,g=222,b=0}}, {content="c喔喔",color={r=255,g=2,b=1}} }, font='Microsoft YaHei', size=23 } ]] local tools = require('app.helpers.tools') local BIAS = 30 local CONTENT_FORMAT = "[color=...
nilq/small-lua-stack
null
local wk = require("which-key") wk.register({ m = { name = "plugins", s = { "<cmd>PackerSync<cr>", "packer-sync" }, c = { "<cmd>PackerCompile<cr>", "packer-compile" }, i = { "<cmd>PackerInstall<cr>", "packer-install" }, u = { "<cmd>PackerUpdate<cr>", "packer-update" }, }, }, { prefix = "<leader>...
nilq/small-lua-stack
null
local function test1() collectgarbage("collect") -- 先清理一次 -- "count": 以 K 字节数为单位返回 Lua 使用的总内存数。 这个值有小数部分,所以只需要乘上 1024 就能得到 Lua 使用的准确字节数(除非溢出)。 local c1 = collectgarbage("count") print("t1 memory:", c1) -- collen 插入 50000个对象 local collen = {} -- 将local去掉, 会导致内存泄漏 for i = 1, 50000 do t...
nilq/small-lua-stack
null
local function curl(payload) local cmd = { 'curl', '--header', 'Content-Type: application/json', '--header', 'X-API-Token: ' .. CODESTATS_API_KEY, '--user-agent', 'codestats.nvim/' .. CODESTATS_VERSION, '--data', payload, '--request', 'POST', '--silent', '--output', '/dev/null', '--write-out', '%{ht...
nilq/small-lua-stack
null
tree_bark = { -- Exactly same spell as Chongun Invincibility (harden body) but this one has longer duration but long aethers. Also has a higher fail rate (just keeping the same for now). cast = function(player) local duration = 12000 -- 12s duration local aether = 300000 -- 300s aethers local magicCost = ...
nilq/small-lua-stack
null
-- -- SOFTCUT -- -- ------------------------------------------------------------------------- -- STATE local state = { recording = false, rec_time = 0, } function sofcut_get_record_duration() return state.rec_time end -- ------------------------------------------------------------------------- -- INIT / CLE...
nilq/small-lua-stack
null
module(..., package.seeall) local ffi = require("ffi") require "terravox.api" -- This loads FFI definition api = ffi.cast("struct TerravoxApi*", __terravoxApi)
nilq/small-lua-stack
null
local Game = require("Game") function love.load() love.window.setTitle("Platform Hero") love.window.setMode(800, 600, { fullscreentype = "desktop", resizable = true, highdpi = true, }) love.physics.setMeter(1) love.graphics.setDefaultFilter("nearest") local music = love.audio.newSource("...
nilq/small-lua-stack
null
module 'mock' local insert = table.insert local index = table.index local remove = table.remove CLASS: DeckCanvas ( GraphicsPropComponent ) :MODEL{ Field 'index' :no_edit(); --'----'; --Field 'size' :type('vec2') :getset('Size'); Field 'serializedData' :getset( 'SerializedData' ) :no_edit(); '----'; ...
nilq/small-lua-stack
null
--[[ --=====================================================================================================-- Script Name: Troll, for SAPP (PC & CE) Description: A unique mod designed to troll your whole server (or specific players) Features: * Silent Kill Random inexplicable deaths (no death message). ...
nilq/small-lua-stack
null
local parsers = require'nvim-treesitter.parsers' local queries = require'nvim-treesitter.query' local utils = require'nvim-treesitter.ts_utils' local M = {} local function get_node_at_line(root, lnum) for node in root:iter_children() do local srow, _, erow = node:range() if srow == lnum then return node end...
nilq/small-lua-stack
null
function getNA11Actions(no) if(no < 0)then return {}; elseif(no == 0)then return {'5185','18562','8936','774','99','22812','22842','61336','192081','6795','164812','77758','33917','6807','213764'}; elseif(no == 1)then return {'106951','1079','106832','5217','22568','164812','1822','5221','213764','61336',...
nilq/small-lua-stack
null
require "lib.classes.class" local Menu = require "Menu.model.menues.Menu" -------------------------------------------------------------------------------------------------------- -- class: MenuBuilder -- Builder class to create a menu local MenuBuilder = class(function(self) self.menu = Menu.new() self.state_n...
nilq/small-lua-stack
null
local log = require('nvim-completor/log') local manager = require("nvim-completor/src-manager") local completor = require("nvim-completor/completor") local ncp_lsp = require("nvim-completor/lsp") local private = {} function private.filter_items(ctx, items) if not items or #items == 0 then return {} end local n...
nilq/small-lua-stack
null
-- clear statistics env = require('test_run') test_run = env.new() test_run:cmd('restart server default with cleanup=1') box.stat.INSERT.total box.stat.DELETE.total box.stat.UPDATE.total box.stat.REPLACE.total box.stat.SELECT.total box.stat.ERROR.total space = box.schema.space.create('tweedledum') index = space:creat...
nilq/small-lua-stack
null
local libraryUtil = {} function libraryUtil.checkType( name, argIdx, arg, expectType, nilOk ) if arg == nil and nilOk then return end if type( arg ) ~= expectType then local msg = string.format( "bad argument #%d to '%s' (%s expected, got %s)", argIdx, name, expectType, type( arg ) ) error( msg, 3 ) end...
nilq/small-lua-stack
null
local ECS = require('wacky-ecs.wacky-ecs') ECS.Component.new('animation', function(texture, quads, current, animations) return { texture = texture, quads = quads, animations = animations, current = current or 'default', time = 0, frame = 1 } end) local animation = ECS.S...
nilq/small-lua-stack
null
return {'inhaalactie','inhaalbeweging','inhaalcursus','inhaaldag','inhaaleffect','inhaalmanoeuvre','inhaalmatch','inhaaloperatie','inhaalpoging','inhaalpremie','inhaalprogramma','inhaalrace','inhaalsituatie','inhaalslag','inhaalstrook','inhaalverbod','inhaalvraag','inhaalwedstrijd','inhaken','inhakken','inhalatie','inh...
nilq/small-lua-stack
null
return function(catagory) return { type = script.Name, catagory = catagory, } end
nilq/small-lua-stack
null
--[[ Copyright (c) 2015 gameboxcloud.com Permission is hereby granted, free of chargse, 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, distri...
nilq/small-lua-stack
null
-- This file is generated by pcode_autog-1.19.5 -- Copyright(c) Lake.Deal, ALL RIGHTS RESERVED. -- -- Purpose: contains some constants defininations -- -- proto = proto or {} proto.numbers = { CID_SIMPLE1 = 101, }
nilq/small-lua-stack
null
local MAJOR="AceConsole-3.0" dofile("wow_api.lua") dofile("LibStub.lua") dofile("../"..MAJOR.."/"..MAJOR..".lua") local AC = assert(LibStub(MAJOR)) ---------------------------------------------------------- -- Simple tests -- (no need to explicitly test startpos; if multi-arg tests work, it works) local a1,a2...
nilq/small-lua-stack
null
local diffview = require 'diffview' diffview.setup { enhanced_diff_hl = true }
nilq/small-lua-stack
null
local fs = require("filesystem") local shell = require("shell") if not fs.exists("/tmp/update-tmp.cfg") then u = io.open("/etc/update.cfg", "r") textu = u:read() u:close() else u = io.open("/tmp/update-tmp.cfg", "r") textu = u:read() u:close() end local function dirs() local env = {} l...
nilq/small-lua-stack
null
object_tangible_loot_npc_loot_dye_set_generic = object_tangible_loot_npc_loot_shared_dye_set_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_dye_set_generic, "object/tangible/loot/npc/loot/dye_set_generic.iff")
nilq/small-lua-stack
null
object_tangible_storyteller_story_token_generic = object_tangible_storyteller_shared_story_token_generic:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_story_token_generic, "object/tangible/storyteller/story_token_generic.iff")
nilq/small-lua-stack
null
function CreateSprite(image) local imageSize = image:GetSize() local size = Vector2(imageSize.x / imageSize.y, 1) / 2 local uv1, uv2 = image:GetUV() local sprite = Model.Create({ Vertex(Vector2(-size.x, size.y), Vector2(uv1.x, uv1.y)), Vertex(Vector2(-size.x,-size.y), Vector2(uv1.x, uv2.y)), ...
nilq/small-lua-stack
null
local iter = function(state, cur) local ret if cur == nil then ret = state[1] -- 起点 else ret = cur + (state[3] and state[3] or 1) -- 有步长加步长没步长加1 end if ret > state[2] then ret = nil -- 超出终点 end return ret end local fromto = function(n, m, p) -- 左边界n,右边界m,步长p loca...
nilq/small-lua-stack
null
--[[ Based on code from: http://www.redblobgames.com/pathfinding/a-star/introduction.html http://www.redblobgames.com/pathfinding/a-star/implementation.html Depends on a Graph class, providing the following methods: getNeighbours( node ): return a list of neighbouring points getCost( from_node, to_node ): return the a...
nilq/small-lua-stack
null
local vim = vim local M = {} function M.is_buf_attached_to_lsp(bufnr) local clients = vim.lsp.buf_get_clients(bufnr or 0) return clients ~= nil and #clients > 0 end function M.is_buf_markdown(bufnr) return vim.api.nvim_buf_get_option(bufnr, 'ft') == 'markdown' end ---@param bufnr number ---@return boole...
nilq/small-lua-stack
null
workspace "SchoolProject" architecture "x64" configurations {"Debug", "Release"} systemversion "latest" project "SchoolProject" location "SchoolProject" files {"%{prj.location}/**.cpp", "%{prj.location}/**.h","%{prj.location}/**.hlsl", "%{prj.location}/**.hlsli"} kind "WindowedA...
nilq/small-lua-stack
null
local FriendUtils = { getOnlineFriendsList = require(script.getOnlineFriendsList), getFriendsList = require(script.getFriendsList), } table.freeze(FriendUtils) return FriendUtils
nilq/small-lua-stack
null
---@class UnityEngine.Behaviour : UnityEngine.Component ---@field enabled bool ---@field isActiveAndEnabled bool local m = {} UnityEngine = {} UnityEngine.Behaviour = m return m
nilq/small-lua-stack
null
-- this file is generated by xresloader, please don't edit it. return { [1] = { count = 4, data_source = { { file = "./资源转换示例.xlsx", sheet = "keep_or_strip_empty_list", }, }, data_ver = "1.0.0.0", hash_code = "sha256:bef5c76679b43b65aec7906f42010530fadae99f...
nilq/small-lua-stack
null
-- (c)ontrolled player e.cplayer = { "position", "size", "player", "sprite", "controller", "pointer", "hearts" } s.cplayer = {"position", "size", "pointer", "hearts", "player", "controller"} s.cplayer.update = function(i, position, size, pointer, hearts, player) move_camera(position.x, position.y) local x...
nilq/small-lua-stack
null
---@class mx.symbol.symbol local M = {} local ctypes = require('ctypes') local AttrScope = require('mx.attribute').AttrScope local base = require('mx.base') local _LIB, numeric_types, c_array, c_array_buf, c_str, c_str_array, c_handle_array , mx_uint, py_str, string_types, integer_types, mx_int , NDArrayHandle, Execut...
nilq/small-lua-stack
null
PluginInfo = { Name = "My Plugins~Playlist Maker", Version = "1.0", BuildVersion = "1.0.0.1", Id = "5783e46f-c180-4a81-961a-21f605ff5e5f", Author = "Maxx Sanner", Description = "A simple plugin that allows you to create a playlist out of a single audio file" }
nilq/small-lua-stack
null
class("U73SkinRePage", import(".TemplatePage.SkinTemplatePage")).OnUpdateFlush = function (slot0) slot0.super.OnUpdateFlush(slot0) setText(slot0.dayTF, setColorStr(slot0.nday, COLOR_GREEN) .. "/" .. #slot0.taskGroup) end return class("U73SkinRePage", import(".TemplatePage.SkinTemplatePage"))
nilq/small-lua-stack
null
object_tangible_saga_system_rewards_shared_decal_pgc_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/saga_system/rewards/shared_decal_pgc_s01.iff" } ObjectTemplates:addClientTemplate(object_tangible_saga_system_rewards_shared_decal_pgc_s01, "object/tangible/saga_system/rewards/share...
nilq/small-lua-stack
null
package.path = "../../?/init.lua;../../?.lua;"..package.path print = require("klib.utils.debug").trace local classes = require "klib.classes" local Application = require("klib.app").Application local gui = require "klib.gui" local MainWindow = classes.class("MainWindow", gui.Window) function MainWindow:init() g...
nilq/small-lua-stack
null
local CBM = CALLBACK_MANAGER local CreateString = ZO_CreateStringId local PSBT_EVENTS = PSBT.EVENTS local PSBT_STRINGS = PSBT.STRINGS --[[ FALL_DAMAGE = 'SI_PSBT_EVENT_FALL_DAMAGE', CANNOT_SEE = 'SI_PSBT_EVENT_CANNOT_SEE', DAMAGE_CRIT = 'SI_PSBT_EVENT_DAMAGE_CRIT', DAMAGE ...
nilq/small-lua-stack
null
return {'eeg','eega','eegs','eegas','eegaatje'}
nilq/small-lua-stack
null
--------------------------------------------- -- Chainspell --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/status") require("scripts/globals/msg") --------------------------------------------- function onMobSkillCheck(target, mob, skill) return 0 en...
nilq/small-lua-stack
null
local tinyurl = {} local kk = require("kk") local conf = require("conf/tinyurl") local table = require("table") return function(uri,data) ngx.log(ngx.ALERT,'[HTTP] '..conf.baseURL .. uri) ngx.log(ngx.ALERT,'[HTTP] '.. kk.json.encode(data)) return kk.http.json(conf.baseURL .. uri,data) end
nilq/small-lua-stack
null
local Element = require "lattice.element" local op = {} op["^"] = function(e1, e2) local b1, n1 = e1:getNumber() local b2, n2 = e2:getNumber() if b1 and b2 then return Element:InitWithNumber(n1 ^ n2) else return Element:InitWithBottom() end end op[".."] = function(e1, e2) local b1, s1 = e1:getString() local b2...
nilq/small-lua-stack
null
--ティアラメンツ・ルルカロス -- --Script by Trishula9 function c101110039.initial_effect(c) c:EnableReviveLimit() --fusion material aux.AddFusionProcCodeFun(c,92731385,aux.FilterBoolFunction(Card.IsSetCard,0x181),1,true,true) --indestructable local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_IND...
nilq/small-lua-stack
null
local function GetAllFiles( tab, folder, extension, path ) local files, folders = file.Find( folder .. "/*", path ) for k, v in pairs( files ) do if ( v:EndsWith( extension ) ) then table.insert( tab, (folder .. v):lower() ) end end for k, v in pairs( folders ) do timer.Simple( k * 0....
nilq/small-lua-stack
null
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Stone Picture Frame -- Notes: Opens door to Den of Rancor using Painbrush of Souls -- !pos -52.239 -2.089 10.000 159 ----------------------------------- local ID = require("scripts/zones/Temple_of_Uggalepih/IDs") require("scripts/globals/keyitems...
nilq/small-lua-stack
null
require "luaClass.init" require "test.containerTest.timeTest" _ENV=namespace "test" using_namespace "container" local q=queue(50) q:push_back(998) print(q:front()) print(q:pop_front()) print(q:empty()) q:push_back(7766) q:push_back(8877) print(q:pop_front()) print(q:pop_front()) print(q:empty()) for i=1,50 do ...
nilq/small-lua-stack
null
-- This script needs to be loaded before other scripts that use it. local PlayerDefaults = { __index = { initialize = function(self) self.ActiveModifiers = { JudgmentGraphic = "Love", Mini = "0%", BackgroundFilter = "Off", SpeedModType = "x", SpeedMod = 1.00, Vocalization = "None", No...
nilq/small-lua-stack
null
local trigger = {} trigger.name = "ExtendedVariantMode/ColorGradeTrigger" trigger.placements = { name = "trigger", data = { colorGrade = "none", revertOnLeave = false, revertOnDeath = true, delayRevertOnDeath = false, withTeleport = false, coversScreen = false, ...
nilq/small-lua-stack
null
require "mods.my_first_mod.files.scripts.test_module" -- ffi = require("ffi") module = {} module.test = 1 function module.HelloWorld() print("hello world" .. module.test) test_module.fooFun1() -- ffi.cdef[[ -- int printf(const char* fmt, ...); -- ]] -- ffi.C.printf() end return module
nilq/small-lua-stack
null
-- Support for visual mode. local M = {} local vi_motion = require('textadept-vi.vi_motion') local vi_ops = require('textadept-vi.vi_ops') local state -- This will be vi_mode.state later (but import time is too early) local function visual_update(pos) local s = state.visual.s local e = pos or state.visual.p...
nilq/small-lua-stack
null
-- -- System module that runs under the energy cluster to resolve the energy generation and -- distribution. -- -- @namespace yatm_cluster_energy local EnergyDevices = assert(yatm.energy.EnergyDevices) local get_node_or_nil = minetest.get_node_or_nil -- @class EnergySystem local EnergySystem = foundation.com.Class:e...
nilq/small-lua-stack
null
function Physic_Standart_Workbench(Map_ID, X, Y, Z) Player_Number = Map_Block_Get_Player_Last(Map_ID, X, Y, Z) Table = {} for i = 0, 3 do if i == 0 then dx, dy = 1, 0 elseif i == 1 then dx, dy = 0, 1 elseif i == 2 then dx, dy = -1, 0 elseif i == 3 then dx, dy = 0, -1 end for ix = 0, 2 do for...
nilq/small-lua-stack
null
module(..., package.seeall) local ffi = require("ffi") local tlv = subClass(nil) ffi.cdef[[ typedef struct { uint8_t type; uint8_t length; } tlv_t __attribute__((packed)) ]] local tlv_t = ffi.typeof("tlv_t") local tlv_ptr_t = ffi.typeof("$ *", tlv_t) tlv._types = { [1] = { name = "src_ll_a...
nilq/small-lua-stack
null
require "common" --[[ TODO: * add oversample * add MAX Over T for some T * multi scale turing patterns: https://faculty.ac/image-story/a-machine-in-motion/ * https://elifesciences.org/articles/14022 * https://examples.pyviz.org/attractors/attractors.html ]] config=make_config({ {"pause",false,type="boolean...
nilq/small-lua-stack
null
function help() print('Usage: wh workbit {<network file path> | namespace <namespace>}') end if arg[2] == 'help' then return help() end local conf local idx if arg[2] and arg[2] ~= "namespace" then local err conf, err = openconf(arg[2]) if not conf then printf("error: %s", err) ret...
nilq/small-lua-stack
null
-- Copyright 2015 Google Inc. All rights reserved. -- -- 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 l...
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2020 DekuJuice 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, d...
nilq/small-lua-stack
null
return { require('routing.routes.plain').new, require('routing.routes.choice').new, require('routing.routes.curly').new, require('routing.routes.pattern').new }
nilq/small-lua-stack
null
cfg = {} ----------------------------------------------------------------------------------------------------------------------------------------- -- START FARM ----------------------------------------------------------------------------------------------------------------------------------------- cfg.StartCoords = { ...
nilq/small-lua-stack
null
local args = { ... } local version = args[1] or '1.1.0' local installDir = '' local repoOwner = 'imevul' local repoName = 'imevul-ui' ---@class Installer local Installer = {} ---Download a single file to a target folder ---@param url string URL of item to download ---@param target string Target path function Instal...
nilq/small-lua-stack
null
--[[ # Element: Status Indicator Combines the combat and resting indicators. ## Widget StatusIndicator - A texture. ## Notes Custom Textures are not supported ## Examples -- Position and size local StatusIndicator = self:CreateTexture(nil, 'OVERLAY') StatusIndicator:SetSize(16, 16) StatusIndicato...
nilq/small-lua-stack
null
require ("libluaauto") some_funs.add(3.3, 4.2) some_funs.sub(3.3,2.1) t=Tesla.create() t:music("don't break my heart.") t:navi("beijing") t:fuel(3332) t:drive("moto", 321, 2.4) t:charge(3.3, 2) t:bluetooth("apple") t=nil collectgarbage()
nilq/small-lua-stack
null
local WeightedSmoothL1Criterion, parent = torch.class("detection.WeightedSmoothL1Criterion", "nn.Criterion") function WeightedSmoothL1Criterion:__init(sizeAverage) parent.__init(self) -- Local SmoothL1Loss self._smoothL1Loss = nn.SmoothL1Criterion():cuda() self._smoothL1Loss.sizeAverage = false end f...
nilq/small-lua-stack
null
--[[By: @V3N0M_Z]] local inheritance = require(script.Parent.Node) local node = {} node.__index = node setmetatable(node, inheritance) function node.new(plugin, pluginDisplay, id) local self = setmetatable(inheritance.new("SelectionNode", plugin, pluginDisplay, id), node) self._settings = { title = function(txt)...
nilq/small-lua-stack
null
data:extend( { { type = "car", name = "land-robot", icon = "__base__/graphics/icons/logistic-robot.png", icon_size = 32, flags = {"placeable-neutral", "player-creation"}, minable = {mining_time = 1, result = "land-robot"}, mined_sound = {filename = "__core__/sound/deconstruct-medi...
nilq/small-lua-stack
null
local Class = require "Base.Class" local ControlBranch = require "Unit.ControlBranch" local Pitch = require "Unit.ViewControl.Pitch" local PitchBranch = Class { classType = "Pitch", classDescription = "Pitch", classPrefix = "tune" } PitchBranch:include(ControlBranch) function PitchBranch:init(args) local id =...
nilq/small-lua-stack
null
if SILE.outputter ~= SILE.outputters.libtexpdf then SU.error("pdf package requires libtexpdf backend") end local pdf = require("justenoughlibtexpdf") SILE.registerCommand("pdf:destination", function (options, content) local name = SU.required(options, "name", "pdf:bookmark") SILE.typesetter:pushHbox({ value ...
nilq/small-lua-stack
null
AssetLoader = AssetLoader or BaseClass() function AssetLoader.GetInstance() if AssetLoader._instance == nil then AssetLoader._instance = AssetLoader.New() end return AssetLoader._instance end function AssetLoader:__init() end function AssetLoader:Load(path) local result = Resources.Load(path)...
nilq/small-lua-stack
null
WIN_WIDTH = 800 WIN_HEIGHT = 800 V_SYNC = false TITLE = "graphique"
nilq/small-lua-stack
null
bonemeal = {} -- Load support for intllib. local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP .. "/intllib.lua") -- creative check local creative_mode_cache = minetest.settings:get_bool("creative_mode") function is_creative(name) return creative_mode_cache or minetes...
nilq/small-lua-stack
null
-- ############################################################################# -- # Battery Monitor - Lua application for JETI DC/DS transmitters -- # Inspired by LI-xx BATTCHECK (Developped by Heisenberg, debugged by Sacre100) -- # -- # Copyright (c) 2016, JETI model s.r.o. -- # All rights reserved. -- # --...
nilq/small-lua-stack
null
-- load options require("ape.options") -- load global options require("ape.globals") -- load global utils require("ape.util.globals") -- don't load any plugins if packer is not installed if require("ape.first_load")() then return end -- speed up starup, must be loaded before any plugins are loaded --require("impa...
nilq/small-lua-stack
null
--[=[ @within PageCursor @prop Client Client @readonly A reference back to the client that owns this object. ]=] --[=[ @within PageCursor @prop Endpoint string @readonly The URL to send requests to. ]=] --[=[ @within PageCursor @prop Tags {[string]=any} @readonly The URL ...
nilq/small-lua-stack
null
local function has_locked_chest_privilege(meta, player) if player:get_player_name() ~= meta:get_string("owner") then return false end return true end local open = "size[8,10]".. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "list[current_name;main;0,0.3;8,4;]".. "list[current_player;main;0,4....
nilq/small-lua-stack
null
local class = require("pl.class") local sfmt = string.format local uuid = require("core.lib.uuid") local tablex = require("pl.tablex") local GameEntity = require("core.GameEntity") local ItemType = require("core.ItemType") local Logger = require("core.Logger") local Inventory = require("cor...
nilq/small-lua-stack
null