content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
dofile(minetest.get_modpath("my_future_doors").."/framed.lua") dofile(minetest.get_modpath("my_future_doors").."/sliding.lua")
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Handler.......... : onWorkshopDownloadComplete -- Author........... : -- Description...... : Called when a workshop download has completed or failed -------------------------------------------------------------------------------- -...
nilq/small-lua-stack
null
insert_warps = { cast = function(player, question) local path = "../mornamaps/warps2.txt" -- local path = "/root/Morna/mornamaps/warps.txt" -- local path = "/root/Morna/mornamaps/end_warps.txt" local file = io.open(path, "a+") local m = player.m local x = player.x local y = player.y local txt if s...
nilq/small-lua-stack
null
local PANEL = {} AccessorFunc( PANEL, "m_bDirty", "Dirty", FORCE_BOOL ) AccessorFunc( PANEL, "m_bSortable", "Sortable", FORCE_BOOL ) AccessorFunc( PANEL, "m_iHeaderHeight", "HeaderHeight" ) AccessorFunc( PANEL, "m_iDataHeight", "DataHeight" ) AccessorFunc( PANEL, "m_bMultiSelect", "MultiSelect" ) Accessor...
nilq/small-lua-stack
null
--[[-- CREATECHAR STATE ---- Create the player character. --]]-- local st = RunState.new() local mt = {__tostring = function() return 'RunState.createchar' end} setmetatable(st, mt) local InputCommandEvent = getClass 'wyx.event.InputCommandEvent' local CreateCharUI = getClass 'wyx.ui....
nilq/small-lua-stack
null
-------------------------------------------------------- -- Brainfuck interpreter written in Lua -- Author: Michael Scholtz <michael.scholtz@outlook.com> -- Licence: MIT -------------------------------------------------------- return function(code) -- Brainfuck language consists of 8 instructions "><+-.,[]", every...
nilq/small-lua-stack
null
-- SCT localization information -- French Locale -- Initial translation by Juki <Unskilled> -- Translation by Sasmira -- Date 04/03/2006 if GetLocale() ~= "frFR" then return end -- Static Messages SCT.LOCALS.LowHP= "Vie Faible !"; -- Message to be displayed when HP is low SCT.LOCALS.LowMana= "Mana Faible !"...
nilq/small-lua-stack
null
test_run = require('test_run').new() engine = test_run:get_cfg('engine') box.sql.execute('pragma sql_default_engine=\''..engine..'\'') -- Forbid multistatement queries. box.sql.execute('select 1;') box.sql.execute('select 1; select 2;') box.sql.execute('create table t1 (id primary key); select 100;') box.space.t1 == n...
nilq/small-lua-stack
null
local brandner = RegisterMod("Brandner", 1); local costume_Brandner_Body = Isaac.GetCostumeIdByPath("gfx/characters/BrandnerBody.anm2") local costume_Brandner_Head = Isaac.GetCostumeIdByPath("gfx/characters/BrandnerHead.anm2") local costume_Brandner_HeadBone = Isaac.GetCostumeIdByPath("gfx/characters/BrandnerHeadBone....
nilq/small-lua-stack
null
function nmap(shortcut, command, options) vim.api.nvim_set_keymap("n", shortcut, command, options) end function vmap(shortcut, command, options) vim.api.nvim_set_keymap("v", shortcut, command, options) end function tmap(shortcut, command, optinos) vim.api.nvim_set_keymap("t", shortcut, command, options) end v...
nilq/small-lua-stack
null
local Sidequest = require("mod.elona_sys.sidequest.api.Sidequest") local Chara = require("api.Chara") local common = require("mod.elona.data.dialog.common") local Item = require("api.Item") local Gui = require("api.Gui") data:add { _type = "elona_sys.dialog", _id = "erystia", nodes = { __start = functi...
nilq/small-lua-stack
null
c/val = Instance.new("IntValue") val.Parent = workspace.acb227 val.Value = 0 va = Instance.new("IntValue") va.Parent = workspace.acb227 va.Value = 0 he = Instance.new("Hint") he.Parent = workspace.acb227 hel = Instance.new("Message") hel.Parent = workspace.acb227 script.Parent = workspace.acb227 while true do ...
nilq/small-lua-stack
null
--劫火の翼竜 ゴースト・ワイバーン -- --Script by REIKAI function c100286011.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100286011,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:S...
nilq/small-lua-stack
null
--- Wrappers around a XCB connection. -- This is the main thing. local ffi = require("ffi") local xcbr = require("xcb.raw") local xcbe = require("xcb.enums") local cv = require("xcb.wrappers.create_values") local c_window = require("xcb.wrappers.window") local c_event = require("xcb.wrappers.event") local c_gc = requ...
nilq/small-lua-stack
null
local scale = 1.5 local stamp_width = 128 local rpg = require("rpg") -- Temporary (as if) local margin_stamp = 32 local initial_stamp_offset = 180 local y_offset_stamp = 52 local next_form = 0.5 local running = true local time_finish_allowed = 0 local form_speed = 400 local form_height = 60 * scale local beltSpeed = ...
nilq/small-lua-stack
null
return [[ { "Lang": "fin", "Name": "Suomi", "Entities.gmod_subway_ezh3.Buttons.Stopkran.EmergencyBrakeValveToggle": "Hätäjarru", "Entities.gmod_subway_ezh3.Buttons.Back.BackDoor": "Taka-ovi", "Entities.gmod_subway_ezh3.Buttons.DriverValveBLTLDisconnect.DriverValveBLDisconnectToggle": "Jarrujohdon irroitusve...
nilq/small-lua-stack
null
local emmyFunction = require 'core.hover.emmy_function' local function buildValueArgs(func, object, select) if not func then return '', nil end local names = {} local values = {} local options = {} if func.argValues then for i, value in ipairs(func.argValues) do ...
nilq/small-lua-stack
null
Shape = {area = 0}--定义变量 function Shape:new(side) local o ={}--定义私有表 setmetatable(o, self)--定义元表 self.__index = self--持有元表 side = side or 0--判断变量是否为0 self.area = side * side--赋值 return o end function Shape:printArea() print("面积为", self.area) end -- 创建对象 local myshape=Shape:new(20) myshap...
nilq/small-lua-stack
null
local M = {} function M.cloneTableByValue(obj, seen) if type(obj) ~= 'table' then return obj end if seen and seen[obj] then return seen[obj] end local localSeen = seen or {} local resultingTable = setmetatable({}, getmetatable(obj)) localSeen[obj] = resultingTable for key, value in pairs(obj...
nilq/small-lua-stack
null
local mod = get_mod("ExecLua") local mod_data = { name = "Execute Lua Ingame", description = mod:localize("mod_description"), is_togglable = true, allow_rehooking = true, } mod_data.options = {} return mod_data
nilq/small-lua-stack
null
data:extend({ { type = "font", name = "upgrade-planner2-small-font", from = "default", size = 14 } }) data.raw["gui-style"].default["upgrade-planner2-small-button"] = { type = "button_style", parent = "button", font = "upgrade-planner2-small-font" } d...
nilq/small-lua-stack
null
-- << Services >> -- local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local CAS = game:GetService("ContextActionService") -- << Constants >> -- local CLIENT = script.Parent.Parent local MODULES = CLIE...
nilq/small-lua-stack
null
local M = {} _NgConfigValues = { debug = false, -- log output not implemented width = 0.6, -- valeu of cols TODO allow float e.g. 0.6 preview_height = 0.35, height = 0.35, default_mapping = true, keymaps = {}, -- e.g keymaps={{key = "GR", func = "references()"}, } this replace gr default mapping combined_...
nilq/small-lua-stack
null
local uv = require('luv') local server = uv.new_tcp() server:bind("127.0.0.1", 1337) server:listen(128, function (err) assert(not err, err) local client = uv.new_tcp() server:accept(client) client:read_start(function (err, chunk) assert(not err, err) if chunk then client:write(chunk) else ...
nilq/small-lua-stack
null
return { ["#t1 需要达到#cff0000%d#cffffff级再来。"] = "G公用反馈配置表.反馈正文", ["#t2%d次之后必出紫色佣兵"] = "G公用反馈配置表.反馈正文", ["#t2%d次之后必出紫色碎片"] = "G公用反馈配置表.反馈正文", ["VIP%d可继续刷新"] = "G公用反馈配置表.反馈正文", ["VIP等级不足"] = "G公用反馈配置表.反馈正文", ["一闪"] = "C产品表.名称", ["一闪·血怒"] = "C产品表.名称", ["一阶血技书"] = "C产品表.名称", ["不可使用"] = "G公用反馈配置表.反馈正文", ["不可升级,请先突...
nilq/small-lua-stack
null
local runService = game:GetService("RunService") local replicatedStorage = game:GetService("ReplicatedStorage") local modules = require(replicatedStorage.modules) local network = modules.load("network") local module = {} -- returns the total exp needed to reach this level function module.getBaseEXPForLevel(level...
nilq/small-lua-stack
null
settings = NewSettings() if family == "windows" then if arch == "amd64" or arch == "ia64" then lib_sdl_path = "SDL2-2.0.4/lib/x64" lib_sdl_image_path = "SDL2_image-2.0.1/lib/x64" else lib_sdl_path = "SDL2-2.0.4/lib/x86" lib_sdl_image_path = "SDL2_image-2.0.1/lib/x86" end ...
nilq/small-lua-stack
null
local CorePackages = game:GetService("CorePackages") local RetrievalStatus = require(CorePackages.AppTempCommon.LuaApp.Enum.RetrievalStatus) local InspectAndBuyFolder = script.Parent.Parent local IsDetailsItemPartOfBundle = require(InspectAndBuyFolder.Selectors.IsDetailsItemPartOfBundle) local UtilityFunctions = requir...
nilq/small-lua-stack
null
local actions = require('telescope.actions') local fb_actions = require('telescope').extensions.file_browser.actions require('telescope').setup { defaults = { mappings = { i = { ['<C-j>'] = actions.move_selection_next, ['<C-k>'] = actions.move_selection_previous,...
nilq/small-lua-stack
null
function Para (_) return pandoc.Para{pandoc.Str(PANDOC_SCRIPT_FILE)} end
nilq/small-lua-stack
null
local config = {} config.ltnh_item_slot_count = 27 config.ltnh_ltn_slot_count = 13 config.ltnh_misc_slot_count = 14 config.ltn_signals = { -- signal_name = {default_value, slot, bounds = {min, max}} ["ltn-network-id"] = {default = -1, slot = 1, bounds = {min = -2^31, max = 2^31 - 1}}, ["ltn-requeste...
nilq/small-lua-stack
null
-------------------------------------- -- LOOT GUI -------------------------------------- -- GUI used for loot decisions -------------------------------------- -- HELPER FUNCTIONS -------------------------------------- local function OnClick_PASS(self,button) if self:IsEnabled() then SKC:CancelLootTimer() SKC.db.c...
nilq/small-lua-stack
null
-- okarosa local usernameCache = {} local searched = {} local refreshCacheRate = 10 --Minutes function getUsername( clue ) if not clue or string.len(clue) < 1 then return false end for i, username in pairs(usernameCache) do if username and string.lower(username) == string.lower(clue) then return username ...
nilq/small-lua-stack
null
local lpeg = require('lpeg') local C, Cg, Ct, P, R, S = lpeg.C, lpeg.Cg, lpeg.Ct, lpeg.P, lpeg.R, lpeg.S local coltype = P('int') + P('string') + P('float') + P('locstring') local sym = R('az', 'AZ') * R('az', 'AZ', '09', '__')^0 local fkey = P('<') * sym * P('::') * sym * P('>') local skiptoeol = (1 - S('\n'))^0 local...
nilq/small-lua-stack
null
inertia = { {1.1, 0.1, 0.2}, {0.3, 1.2, 0.4}, {0.5, 0.6, 1.3}, } pelvis = { mass = 9.3, com = { 1.1, 1.2, 1.3}, inertia = inertia } thigh = { mass = 4.2, com = { 1.1, 1.2, 1.3}, inertia = inertia } shank = { mass = 4.1, com = { 1.1, 1.2, 1.3}, inertia = inertia } foot = { mass = 1.1, com = { 1.1, 1.2, 1.3}, inerti...
nilq/small-lua-stack
null
local helper = require('.helper') local _M = {} -- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -- load on startup function _M.run() -- redirect stderror to stdout, then capture the result command = 'new_attr bool my_not_first_autostart' local handle = io.popen('herbstclient ' .. co...
nilq/small-lua-stack
null
--[[ My auto commands --]] vim.cmd([[ augroup Jpw_group autocmd! " Permanent sign column autocmd BufRead,BufNewFile * setlocal signcolumn=yes " Highlight on yank. See help:lua-highlight autocmd TextYankPost * silent! lua vim.highlight.on_yank() " Markdown ...
nilq/small-lua-stack
null
--[=====[ ## XP MultiBar ver. @@release-version@@ ## XPMultiBar_Config.lua - module Configuration and initialization for XPMultiBar addon --]=====] local addonName = ... local Utils = LibStub("rmUtils-1.0") local XPMultiBar = LibStub("AceAddon-3.0"):GetAddon(addonName) local Config = XPMultiBar:NewModul...
nilq/small-lua-stack
null
local a = true; return a;
nilq/small-lua-stack
null
return function() local sortCounterClockwise = require(script.Parent.Parent.sortCounterClockwise) local getConvexHull = require(script.Parent.Parent.getConvexHull) local getPolygonArea = require(script.Parent.Parent.getPolygonArea) local isSquare = require(script.Parent.isSquare) it("should return false if given ...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: seletz -- Date: 28.02.18 -- Time: 20:54 -- To change this template use File | Settings | File Templates. -- local game_state = { current_room = nil, flash_frames = nil, slow_amount = 1, attacks = { ['Neutral'] = {cooldown = 0.24, ammo = 0, abbreviati...
nilq/small-lua-stack
null
local Packages = script.Parent.Parent.Parent.Parent local Roact = require(Packages.Roact) local t = require(Packages.t) local UIBloxConfig = require(Packages.UIBlox.UIBloxConfig) local RadioButton = require(script.Parent.RadioButton) local ID_PROP_NAME = UIBloxConfig.renameKeyProp and "id" or "key" local RadioButton...
nilq/small-lua-stack
null
local drpath = require("directories") drpath.addPath("myprograms", "ZeroBraineProjects", "CorporateProjects", -- When not located in general directory search in projects "ZeroBraineProjects/dvdlualib", "ZeroBraineProje...
nilq/small-lua-stack
null
local ffi = require "ffi" local ffi_cdef = ffi.cdef ffi_cdef[[ typedef struct sha256_ctx { uint32_t state[8]; uint64_t count; uint8_t block[64]; unsigned int index; } SHA256_CTX; typedef struct sha512_ctx { uint64_t state[8]; uint64_t count_low, count_high; uint8_t block[128]; unsigned int index; ...
nilq/small-lua-stack
null
local L = Grid2Options.L local function MakeOptions(self, status, options, optionParams) self:MakeStatusColorOptions(status, options, optionParams) options.update = { type = "range", order = 20, name = L["Update rate"], desc = L["Rate at which the status gets updated"], min = 0, max = 5, ste...
nilq/small-lua-stack
null
function isPlayerAdmin(player) if not isElement(player) or not player.account then return false end if player.account.guest then return false end local adminGroup = ACLGroup.get("Admin") if not adminGroup then return false end return not not adminGroup:doesContainObject("user." .. tostring(player.account....
nilq/small-lua-stack
null
function onCreate() makeLuaSprite('Overlay', 'week-ace/Overlay', -600, -300) addLuaSprite('Overlay', false) setObjectCamera('Overlay', 'hud') makeLuaSprite('coldh', 'songlocks/cold-hearted', 0, 500) scaleObject('coldh', 2.5, 2.5) end function onCreatePost() setProperty('gf.alpha', 0) end fu...
nilq/small-lua-stack
null
local NWNXEvents = require 'solstice.nwnx.events' local Inst = require 'ta.instance' function pl_inst_check() local pc = Game.GetPCSpeaker() local trig = pc:GetLocalObject("PL_CONV_WITH") local node = NWNXEvents.GetCurrentNodeID() return node <= trig:GetLocalInt("instance_level") end function pl_inst_do(...
nilq/small-lua-stack
null
--[[ Variables ]] local Keys = {} --[[ Events ]] RegisterNetEvent("SpawnEventsServer") AddEventHandler("SpawnEventsServer", function() local src = source local cid = exports["caue-base"]:getChar(src, "id") if not cid then return end if Keys[cid] then TriggerClientEvent("keys:rec...
nilq/small-lua-stack
null
local json = require('json') local enums = require('enums') local class = require('class') local Channel = require('containers/abstract/Channel') local PermissionOverwrite = require('containers/PermissionOverwrite') local Invite = require('containers/Invite') local Cache = require('iterables/Cache') local Resolv...
nilq/small-lua-stack
null
-- create node Matrix3 require "moon.sg" local node = moon.sg.new_node("sg_mat3") if node then node:set_pos(moon.mouse.get_position()) end
nilq/small-lua-stack
null
local a = {} assert(table.maxn(a) == 0) a["key"] = 1 assert(table.maxn(a) == 0) table.insert(a, 10) table.insert(a, 3, 10) assert(table.maxn(a) == 3) local ok, msg = pcall(function() table.insert(a) end) assert(not ok and string.find(msg, "wrong number of arguments"))
nilq/small-lua-stack
null
----------------------------------- -- Area: Windurst Woods -- NPC: Roberta -- !pos 21 -4 -157 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) end function onTrigg...
nilq/small-lua-stack
null
local typedefs = require "kong.db.schema.typedefs" local schema = { name = "path-test", fields = { { config = { type = "record", fields = { { path = typedefs.path{ required = true } } } } } } } return schema
nilq/small-lua-stack
null
local access = {} local utils = require 'kong.tools.utils' local params = require 'kong.lib.params' local request = require 'kong.lib.request' local resData = require 'kong.lib.response' local exception = require 'kong.plugins.api-polymerization.exception' local function check(config) local names = config.reque...
nilq/small-lua-stack
null
_G.kWebSocketScriptHandlerOpen = cc.WEBSOCKET_OPEN _G.kWebSocketScriptHandlerMessage = cc.WEBSOCKET_MESSAGE _G.kWebSocketScriptHandlerClose = cc.WEBSOCKET_CLOSE _G.kWebSocketScriptHandlerError = cc.WEBSOCKET_ERROR _G.kStateConnecting = cc.WEBSOCKET_STATE_CONNECTING _G.kStateOpen ...
nilq/small-lua-stack
null
return function (Data) local TableString, ErrMsg = Split(tostring(Data), "|") if not TableString then return nil, ErrMsg end return TableString end
nilq/small-lua-stack
null
huff_darklighter_2_outfit = { { {objectTemplate = "object/tangible/wearables/shirt/shirt_s07.iff", customizationVariables = {{"/private/index_color_1", 158}} }, {objectTemplate = "object/tangible/wearables/pants/pants_s12.iff", customizationVariables = {{"/private/index_color_1", 60}} }, {objectTemplate = "obje...
nilq/small-lua-stack
null
--[[ utils.lua Some additional functions, they are not related explicitly related to the main addon functionality --]] local ADDON, Addon = ... Addon.debug = false local string = string local SendChatMessage = SendChatMessage local DEFAULT_CHAT_FRAME = DEFAULT_CHAT_FRAME function Addon:Print(msg) DEFAULT_...
nilq/small-lua-stack
null
function Client_PresentConfigureUI(rootParent) if initialValue == nil then initialValue = 3; end local vert = UI.CreateVerticalLayoutGroup(rootParent); allowTransferingBox = UI.CreateCheckBox(vert).SetText('Allows that a commander can transfer').SetIsChecked(true); allowAttackingBox = UI.CreateCheckBo...
nilq/small-lua-stack
null
-- phone call local line = 1 local text = "Placeholder" local timer = 0 local nexta = false while true do buttons.read() rama:blit(0,0) bgcall:blit(window[1],window[2]) textbox:blit(window[1],window[2] + 190) screen.print(window[1] + 18,window[2] + 220,text,0.8) screen.print(window[1] + 5,window[2]...
nilq/small-lua-stack
null
------------------------ -- StateAnimatedSprite class. -- Contains multiple @{Sprite|sprites} that are drawn based on the current state. -- -- Derived from @{Object}. -- @cl StateAnimatedSprite local StateAnimatedSprite = class("StateAnimatedSprite") --[[ void StateAnimatedSprite:setState( state ) void StateAnimated...
nilq/small-lua-stack
null
object_tangible_dungeon_mustafar_obiwan_finale_obiwan_finale_launch_object = object_tangible_dungeon_mustafar_obiwan_finale_shared_obiwan_finale_launch_object:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_mustafar_obiwan_finale_obiwan_finale_launch_object, "object/tangible/dungeon/mustafar/obiwan_finale/o...
nilq/small-lua-stack
null
local class = require 'lib.middleclass' local Gamestate = class('Gamestate') function Gamestate:initialize(name) self.name = name end -- Subclasses should replace these function Gamestate:enter() end function Gamestate:exit() end function Gamestate:returnTo() end function Gamestate:draw() end function Gamestate:upd...
nilq/small-lua-stack
null
require("oh-my-hammerspoon") omh_go({ "plugins.misc.hyperkey", "plugins.apps.hammerspoon_toggle_console", "plugins.apps.hammerspoon_install_cli", "plugins.apps.hammerspoon_config_reload", "plugins.windows.manipulation", "plugins.windows.grid", "plugins.apps.skype_mute", ...
nilq/small-lua-stack
null
--[[ SAT - Satellite Imagery Script - Version: 1.01 - 16/1/2020 by Theodossis Papadopoulos -- Requires MIST ]] local maxSATTargets = 8 -- How much targets will SAT provide at maximum local imageEvery = 600 -- How many seconds between each SAT Image update (if SAT station is still alive) local SAT_NAMES_B...
nilq/small-lua-stack
null
local awful = require('awful') require('awful.autofocus') local beautiful = require('beautiful') local terminal = "alacritty" local hotkeys_popup = require('awful.hotkeys_popup').widget require('module.brightness-osd') local modkey = "Mod4" local altKey = "Mod1" function poweroff_command() awful.spawn.with_shell('...
nilq/small-lua-stack
null
local util = require 'util' local function gaussmf(x, params) if x == 'name' then return 'gaussian' end local sig, c = table.unpack(params, 1, 2) return math.exp(-((x - c)^2) / 2 * sig^2) end local function trapmf(x, params) if x == 'name' then return 'trapezoidal' end local a, b, c, d = table.unpack(par...
nilq/small-lua-stack
null
local wx = require "wx" local ffi = require "ffi" local gl = require "glewgl" local glu = require "glutils" local utils = require "utils" local r3e = require "r3e" local r3etrace = require "r3etrace" local config = gCONFIG local r3emap = gR3EMAP local helpers = gHELPERS local reportStatus = gAPP.reportStatus local c...
nilq/small-lua-stack
null
function Awake() print("Awake:"..gameObject.name) end function OnEnable() print("OnEnable:"..transform.name) end function Start() print("Start") end function OnDisable() print("OnDisable") end function OnDestroy() print("OnDestroy") end
nilq/small-lua-stack
null
wrk.method = "POST" wrk.body = "{}" wrk.headers["Content-Type"] = "application/json"
nilq/small-lua-stack
null
-- WIP WIP WIP PLUGIN:set_name('Documentation Generator') PLUGIN:set_author('TeslaCloud Studios') PLUGIN:set_description('Generates documentation for Flux and/or your schema.') if !Flux.development then return end if !Settings.experimental then return end local green, orange, red = Color(0, 255, 0), Color(255, 150, ...
nilq/small-lua-stack
null
local awful = require('awful') local theme = require('beautiful') local cairo = require('lgi').cairo local rsvg = require('lgi').Rsvg local menu_utils = {} -- Get geometry to position menu at corner function menu_utils.get_position(corner) local width = 0 local height = 0 local index = awful.screen.focus...
nilq/small-lua-stack
null
local Misc = {} local Lib Misc.Mouse = {X = 0, Y = 0} Misc.WorldMouse = {X = 0, Y = 0} Misc.GridMouse = {X = 0, Y = 0} Misc.Screen = {X = 0, Y = 0} Misc.Delta = 0 Misc.FPS = 0 Misc.ElapsedTime = 0 Misc.Update = function(Self, Delta) Self.Mouse = {X = love.mouse.getX(), Y = love.mouse.getY()} local WX, WY = Lib.Univ...
nilq/small-lua-stack
null
local L = BigWigs:NewBossLocale("Siamat", "ptBR") if not L then return end if L then L.servant = "Sumonar Serviçal" L.servant_desc = "Avisa quando um Serviçal de Siamat é sumonado." end
nilq/small-lua-stack
null
module(...,package.seeall) local debug = true local ffi = require("ffi") local C = ffi.C local packet = require("core.packet") require("core.packet_h") require("core.link_h") local band = require("bit").band local size = C.LINK_RING_SIZE -- NB: Huge slow-down if this is not local max = C.LINK_MAX_PA...
nilq/small-lua-stack
null
function onAttach() LOG_INFO("attach") end local rad = math.rad local cos = math.cos local sin = math.sin local speed = 15.0 local rotationSpeed = 60 local currentSpeed, currentRotationSpeed = 0, 0 local Position, Rotation = {x = 0, y = 0, z = 0} local KeyActions = { ["W"] = function(delta) currentSp...
nilq/small-lua-stack
null
--黒炎の騎士-ブラック・フレア・ナイト- function c911000462.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCode2(c,46986414,(45231177 or 511001128),true,true) --Special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(911000462,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_...
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
nilq/small-lua-stack
null
-- Target Component -- local Base = require 'modern' local Target = Base:extend() -- New -- function Target:new(host, data) self.host = host -- -- properties self._targets = {} self._targetCount = 0 self._detects = data.detects or {} end -- Get/set `detects` value. -- function Target:detects(value)...
nilq/small-lua-stack
null
--[[ Sample Author: Guillaume Cartier Version: 1.0 - Initial release ]] -- Version Version = 1.0 -- --- Sample -- function Sample() end function SampleMsg(message) MessageBox(message); end -- --- Events -- function SampleOnEvent(event) -- X if ( event == "X" ) then ...
nilq/small-lua-stack
null
(setfenv and rawlen)(setfenv and rawlen)
nilq/small-lua-stack
null
local S = aurum.get_translator() aurum.mobs.register("aurum_mobs_monsters:wose", { description = S"Wose", herd = "aurum:elemental", longdesc = S"Born in the depths of Primus Hortum, this creature desires only to reclaim dust to dust and mud to mud. It is not aggressive in the sunlight.", box = {-0.35, -0.35, -0.3...
nilq/small-lua-stack
null
-------------------------------------------------------------------------- -- GTFO_Fail_BFA.lua -------------------------------------------------------------------------- --[[ GTFO Fail List - Battle for Azeroth Author: Zensunim of Malygos ]]-- --- ****************************** --- * Battle for Azeroth (World) * --...
nilq/small-lua-stack
null
SILE.baseClass:loadPackage("rebox") SILE.baseClass:loadPackage("raiselower") SILE.registerCommand("tkanav", function(options, content) SILE.settings.temporarily(function() SILE.call("font", {size= "0.42em", filename= "./FRBTaiwaneseKana.otf", features="+ruby"}) local i = 0 local tkana = {} SU.dump...
nilq/small-lua-stack
null
local utils = require("core.utils") -- vim-bbye configurations -- -------------------------------------- utils.keymap("n", "gb", "<cmd>Bdelete<cr>") -- vim-markdown configurations -- -------------------------------------- vim.g.markdown_syntax_conceal = 0 vim.g.markdown_fenced_languages = { "cmake", "c", "cpp", "...
nilq/small-lua-stack
null
require "helpers" local tables = {} tables.public_transport_point = osm2pgsql.define_table({ name = 'public_transport_point', schema = schema_name, ids = { type = 'node', id_column = 'osm_id' }, columns = { { column = 'osm_type', type = 'text', not_null = true }, { column = 'osm_su...
nilq/small-lua-stack
null
-- Generated by CSharp.lua Compiler local System = System local SlipeMtaDefinitions local SlipeSharedElements System.import(function (out) SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedElements = Slipe.Shared.Elements end) System.namespace("Slipe.Client.Gui", function (namespace) -- <summary> -- Represe...
nilq/small-lua-stack
null
-- Bundled: ${date} assert(slot1.getElementClass() == "ManualButtonUnit") -- ensure initial state, set up globals pressedCount = 0 releasedCount = 0 -- prep for user interaction assert(slot1.getState() == 0) system.print("please enable and disable the button")
nilq/small-lua-stack
null
---@diagnostic disable: undefined-global -- Success function Success() end -- Failed function Failed(error) print("Error:", error) end -- -- data = {"function":3,"address":0,"quantity":1," value":1} -- data = {"function":3,"address":1,"quantity":1," value":1} -- ----------------------- -- |电压 |电流 -- ---------...
nilq/small-lua-stack
null
-- Gather diagnostics local levels = { errors = vim.diagnostic.severity.ERROR, warnings = vim.diagnostic.severity.WARN, info = vim.diagnostic.severity.INFO, hints = vim.diagnostic.severity.HINT, } local function get_all_diagnostics(bufnr) local result = {} for k, level in pairs(levels) do result[k] = #...
nilq/small-lua-stack
null
-- Workspace definition workspace "FilePatcher" configurations { "Debug", "Release" } platforms { "Win32", "Win64" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" filter "configurations:Debug" defines { "DEBUG" } runtime "Debug" flags { "symbols" } filt...
nilq/small-lua-stack
null
local KeyHandler = Class(function(self, inst) self.inst = inst self.handler = TheInput:AddKeyHandler(function(key, down) self:OnRawKey(key, down) end ) end) function KeyHandler:OnRawKey(key, down) local player = ThePlayer if (key and not down) and not IsPaused() then player:PushEvent("keypressed",...
nilq/small-lua-stack
null
local ffi = require "ffi" require "resty.openssl.include.ossl_typ" require "resty.openssl.include.param" ffi.cdef [[ typedef struct ossl_provider_st OSSL_PROVIDER; typedef struct ossl_lib_ctx_st OSSL_LIB_CTX; void OSSL_PROVIDER_set_default_search_path(OSSL_LIB_CTX *libctx, ...
nilq/small-lua-stack
null
object_intangible_beast_bm_spiderclan_consort = object_intangible_beast_shared_bm_spiderclan_consort:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_spiderclan_consort, "object/intangible/beast/bm_spiderclan_consort.iff")
nilq/small-lua-stack
null
position = {x = -0.986122131347656, y = 1.4300149679184, z = -18.040979385376} rotation = {x = -0.000122623663628474, y = 269.991760253906, z = 0.00591064570471644}
nilq/small-lua-stack
null
lesser_spend_mana_regenerate_mana = class({}) function lesser_spend_mana_regenerate_mana:OnCreated( data ) -- ### VALUES START ### -- self.mana_refund = 100 self.duration = 8 -- ### VALUES END ### -- end function lesser_spend_mana_regenerate_mana:DeclareFunctions() local fu...
nilq/small-lua-stack
null
local ops = require"src.ops" require"src.color" sound = require"src.sound" git_hash,git_count = "missing git.lua",-1 pcall( function() return require("src.git") end ); print("# Click4 Documentation") print() print("__v"..git_count.." #"..git_hash.."__") print() for opi,opv in pairs(ops) do print("## "..(opi-1)..":...
nilq/small-lua-stack
null
object_mobile_naboo_stonewall_labs_battledroid_green = object_mobile_shared_naboo_stonewall_labs_battledroid_green:new { } ObjectTemplates:addTemplate(object_mobile_naboo_stonewall_labs_battledroid_green, "object/mobile/naboo_stonewall_labs_battledroid_green.iff")
nilq/small-lua-stack
null
#!/usr/bin/env lua --- Tests on dumocks.Library. -- @see dumocks.Library -- set search path to include src directory package.path = "src/?.lua;" .. package.path local lu = require("luaunit") local ml = require("dumocks.Library") require("test.Utilities") _G.TestLibrary = {} --- Verify results pre-load properly for...
nilq/small-lua-stack
null