content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local stone = 0 local grass = stone + 1 local grass2 = grass + 1 local grass3 = grass2 + 1 teal_tileset_core = -- Indexes for the normal map tileset, modify this if the tileset changes { { name = "stone", index = stone }, { name = "grass", index = grass }, { ...
nilq/small-lua-stack
null
object_tangible_quest_outbreak_outbreak_facility_vent_02 = object_tangible_quest_outbreak_shared_outbreak_facility_vent_02:new { } ObjectTemplates:addTemplate(object_tangible_quest_outbreak_outbreak_facility_vent_02, "object/tangible/quest/outbreak/outbreak_facility_vent_02.iff")
nilq/small-lua-stack
null
--[[ Copyright (c) 2016 Technicolor Delivery Technologies, SAS The source code form of this Transformer component is subject to the terms of the Clear BSD license. You can redistribute it and/or modify it under the terms of the Clear BSD License (http://directory.fsf.org/wiki/License:ClearBSD) See LICENSE file for m...
nilq/small-lua-stack
null
local FrameCounter = require("frame_counter/frame_counter") local utils = require("utils/utils") local settings = require("settings/settings") local Action = require("controller/action") local Controller = {} function Controller:new(board) local controller = { board = board, frameCounters = { ...
nilq/small-lua-stack
null
local boxer = {} function boxer.new_box(boxes, font) local ret = {} table.insert(boxes, ret) ret.lines = {} ret.padding = 10 ret.line_height = 20 ret.width = 180 ret.color = { 50, 50, 50, 200 } ret.font = font return ret end function boxer.new_line(box, text, color) table.insert(box.lines, { color = color o...
nilq/small-lua-stack
null
-- Holds custom descriptions for view-item-info -- Originally by PeridexisErrant -- Mod-specific overrides for The Earth Strikes Back! mod by Dirst --[[=begin item-descriptions ================= Exports a table with custom description text for every item in the game. Used by `view-item-info`; see instructions ...
nilq/small-lua-stack
null
-- autocmd BufWritePre <buffer> <cmd>EslintFixAll<CR> require'lspconfig'.eslint.setup{ -- on_attach = require('lsp').on_attach, } -- capabilities = require('coq').capabilities, -- require'lspconfig'.eslint.setup(require "coq".lsp_ensure_capabilities())
nilq/small-lua-stack
null
-- 補充lua沒有的數學庫 local math = math local Math = { __index = math, e = math.exp(1) } setmetatable(Math, Math) function Math.round(num) if num >= 0 then return math.floor(num + 0.5) else return math.ceil(num - 0.5) end end -- 無參數 產生(0, 1)的隨機整數 -- 只有參數n 產生[1, n]的隨機整數 -- 兩個參數 產生[n, m]的隨機...
nilq/small-lua-stack
null
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] require("lualib_bundle"); local ____exports = {} local ____log = require("lib.log") local Log = ____log.default local ____game = require("lib.game") local getPlayers = ____game.getPlayers local ____player_2Ddata = require("data.player-data") loca...
nilq/small-lua-stack
null
local data local ffi if type(rawget(_G, "jit")) == 'table' then ffi = require("ffi") data = ffi.new("char[32768]") else data = {} local i = 0 while i < 32768 do data[i] = 0 i = i + 1 end end local i = 0 local w = function(c) io.write(string.char(c)) end local r = function() return ...
nilq/small-lua-stack
null
-- import local TaskModule = require 'candy.task.Task' local Task = TaskModule.Task ---@class AsyncImageLoadTask : Task local AsyncImageLoadTask = CLASS:AsyncImageLoadTask ( Task ) :MODEL {} function AsyncImageLoadTask:__init ( path, transform ) self.imagePath = path self.imageTransform = transform end local n = ...
nilq/small-lua-stack
null
modifier_puck_dream_coil_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_puck_dream_coil_lua:IsHidden() return false end function modifier_puck_dream_coil_lua:IsDebuff() return true end function modifier_puck_dream_coil_lua:IsStu...
nilq/small-lua-stack
null
require 'lfs' -- Ensure the test is launched within the specs/ folder assert(string.match(lfs.currentdir(), "specs")~=nil, "You must run this test in specs folder") local initial_dir = lfs.currentdir() -- Go to specs folder while (not string.match(lfs.currentdir(), "/specs$")) do lfs.chdir("..") end local specs_d...
nilq/small-lua-stack
null
ITEM.name = "Darkness" ITEM.desc = "A story of a man and his realizations" ITEM.price = 0 ITEM.flag = "3" ITEM.iconCam = { pos = Vector(0, 200, 6), ang = Angle(0, 270, 0), fov = 4.5, } ITEM.contents = [[ <p align="center"><font color='red' size='6'>DARKNESS</font></p><br/> <font color='black' size='3'> Brian...
nilq/small-lua-stack
null
if string.sub(UI.GetAppVersion(),1,9) ~= "1.0.0.262" then -- =========================================================================== -- Production Panel / Purchase Panel -- =========================================================================== include( "ToolTipHelper" ); include( "InstanceManager" ); in...
nilq/small-lua-stack
null
--[[--ldoc desc @module ClockCountDown @author JrueZhu Date 2018-11-01 19:21:54 Last Modified by JrueZhu Last Modified time 2018-11-01 20:43:47 ]] local ClockCountDown = class("ClockCountDown", function() local layout = ccui.Layout:create(); layout:setLayoutType(ccui.LayoutType.RELATIVE) ...
nilq/small-lua-stack
null
--- the moduler to builder the raw tags. -- @author [Alejandro Baez](https://keybase.io/baez) -- @copyright 2014-2016 -- @licence MIT (see LICENSE) -- @module raw local _CTAGS = _USERHOME .. "/modules/rust/ctags.rust" --- gets project name from **pwd** or from vcs root. -- @function get_project_name -- @return projec...
nilq/small-lua-stack
null
addEvent("admin:setClipboardText", true) addEventHandler("admin:setClipboardText", resourceRoot, function(data) setClipboard(tostring(data)) end)
nilq/small-lua-stack
null
require "/scripts/dpxObject.lua" function init() object.setInteractive(true) dpx.init() storage.pixels = storage.pixels or 0 end function update(dt) -- Request power if storage.dpx < dpx.maxStore then -- ensure we dont just eat power for id, node in pairs(self.dpxInputConnections) do dpx.sendRequ...
nilq/small-lua-stack
null
-- internationalization boilerplate local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") -- A convenienence function that attempts to do a generic crafting operation. -- "request_stack" is an item stack that it is assumed the player has removed from a set of possible...
nilq/small-lua-stack
null
ItemConfig["banana"] = { name = "Banana", type = "usable", category = "Grocery", price = 3, interactions = { use = { use_label = "Eat", sound = "sounds/eat.wav", animation = { name = "DRINKING" }, event = "EatBanana" }, }, model...
nilq/small-lua-stack
null
local IncarnateBuffs = { INCARNATE_S = { FireCursed = "INF_NECROFIRE", FrozenBlessed = "INF_BLESSED_ICE", PoisonCursed = "INF_ACID", ElectrifiedCursed = "INF_CURSED_ELECTRIC", Electrified = "INF_ELECTRIC", Fire = "INF_FIRE", Poison = "INF_POISON", Oil = "INF_OIL", Blood = "INF_BLOOD", Water = "INF_...
nilq/small-lua-stack
null
return { tag = 'vectors', summary = 'Create a new Quat.', description = 'Creates a new quaternion. This function takes the same arguments as `Quat:set`.', arguments = {}, returns = {}, related = { 'lovr.math.quat', 'Quat' } }
nilq/small-lua-stack
null
local Class = require("tabula.Class") local PrimitiveType = require("tabula.PrimitiveType") local StructType = require("tabula.StructType") local tableMod = require("tabula.table") local TagType = require("tabula.TagType") local lton = require("lton") local ValueType = require("tabula.ValueType") local keys = assert(t...
nilq/small-lua-stack
null
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Cache global variables --Lua functions local _G = _G --WoW API / Variables local hooksecurefunc = hooksecurefunc --Global variables that we don't cache, list them here for mikk's F...
nilq/small-lua-stack
null
local _, addon = ...; -- https://onlinetexttools.com/split-text?input=&split-by-char=false&char=%20&split-by-regex=false&regex=%2F%5Cs%2B%2F&split-by-length=true&length=110&separator=%2C%5Cn&symbol-before-chunk=%22&symbol-after-chunk=%22 table.insert(addon.officialCourses, table.concat({ "!WOP:2!0xD3E05B04!nI1xSXX...
nilq/small-lua-stack
null
local Colors = require(script.Parent.Colors) local CompactView = { ContainerBackgroundTransparency = 0, ContainerBackgroundColor = Colors.Carbon, UseContainerAspectRatio = false, ContainerAspectRatio = nil, MaxAssetCardsPerRow = 3, ContainerSize = UDim2.new(1, 0, 1, -36), ContainerAnchorPoint = Vector2.new(0.5,...
nilq/small-lua-stack
null
IncludeDirectories = {} IncludeDirectories["yaml"] = "%{wks.location}/MangaList/vendor/yaml-cpp/include" IncludeDirectories["spdlog"] = "%{wks.location}/MangaList/vendor/spdlog/include" IncludeDirectories["debugbreak"] = "%{wks.location}/MangaList/vendor/debugbreak" IncludeDirectories["glfw"] = "%{wks.location}/GUI/ven...
nilq/small-lua-stack
null
function updateRendererLayeredBSDFList(layered_bsdf) _G["__RENDERER_ELEMENTS__"]["__LAYERED_BSDF_COUNT__"] = _G["__RENDERER_ELEMENTS__"]["__LAYERED_BSDF_COUNT__"] + 1 _G["__RENDERER_ELEMENTS__"]["__LAYERED_BSDFS__"][_G["__RENDERER_ELEMENTS__"]["__LAYERED_BSDF_COUNT__"]] = layered_bsdf return _G["__RENDERER_...
nilq/small-lua-stack
null
--text.lua local utils = require("euler.utils") local Widget = require("euler.widget") local Text = class(Widget) local prop = property(Text) prop:reader("scroll_view", nil) function Text:__init(id, txt) self.root = gui.get_node(id .. "/text") self.label = gui.get_node(id .. "/label") local text = gui.getlab self...
nilq/small-lua-stack
null
do --this class is currently used for AWACS and Ships, at a latter date a separate class for ships could be created, currently not needed SkynetIADSAWACSRadar = {} SkynetIADSAWACSRadar = inheritsFrom(SkynetIADSAbstractRadarElement) function SkynetIADSAWACSRadar:create(radarUnit, iads) local instance = self:superClass...
nilq/small-lua-stack
null
if not modules then modules = { } end modules ['scrp-ini'] = { version = 1.001, comment = "companion to scrp-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- We need to rewrite t...
nilq/small-lua-stack
null
local function create() local en = CreateEntity() en.transform = CreateComponent("transform") function en:render() self.transform:draw() end return en end return create
nilq/small-lua-stack
null
require 'cunn' require 'ccn2' -- Very Deep model local model = nn.Sequential() local final_mlpconv_layer = nil -- Convolution Layers model:add(nn.Transpose({1,4},{1,3},{1,2})) model:add(ccn2.SpatialConvolution(3, 64, 3, 1, 1)) model:add(nn.ReLU()) model:add(ccn2.SpatialConvolution(64, 64,...
nilq/small-lua-stack
null
util.AddNetworkString("bSecure.OpenMenu") bSecure.ConCommandAdd("menu", function(ply) if not ply:IsAdmin() then return bSecure.ChatPrint(ply, "Insufficient access") end bSecure.ChatPrint(ply, "Opening the menu...") net.Start("bSecure.OpenMenu") net.Send(ply) end)
nilq/small-lua-stack
null
-- Copyright (c) 2015 Pwootage -- -- 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, dist...
nilq/small-lua-stack
null
/* NetRexx */ options replace format comments java crossref symbols nobinary ir = InetAddress addresses = InetAddress[] InetAddress.getAllByName('www.kame.net') loop ir over addresses if ir <= Inet4Address then do say 'IPv4 :' ir.getHostAddress end if ir <= Inet6Address then do say 'IPv6 :' ir.getHostA...
nilq/small-lua-stack
null
local _, ADDON = ... ------------------------------------------------------------ local items = { -- Druid T2: [16897] = {boss = 617, slot = 5, xtype = 2, xclass = 1, account = 2, cost = 160}, -- Stormrage Chestguard [16898] = {boss = 612, slot = 10, xtype = 2, xclass = 1, account = 2, cost = 120}, -- Storm...
nilq/small-lua-stack
null
-- Copyright 2017-2019 Xingwang Liao <kuoruan@gmail.com> -- Licensed to the public under the MIT License. local m, s, o local fs = require "nixio.fs" local util = require "luci.util" local uci = require "luci.model.uci".cursor() local config_dir = uci:get("aria2", "main", "config_dir") or "/var/etc/aria2" local c...
nilq/small-lua-stack
null
local Class = require("CoreLib.SimpleLuaClasses.Class") local Delaunay = require("Utils.Delaunay") local AsteroidSet = Class() function AsteroidSet:init(asteroidConfig) self.config = asteroidConfig or { numPoints = 6, numInSet = 5, minVariance = -0.25, maxVariance = 0.25, ...
nilq/small-lua-stack
null
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Administrator. --- DateTime: 2018/6/14 21:41 --- require("Core.class") function pTable(Lua_table) -- do -- return -- end local function define_print(_tab,str) str = str .. " " for k,v in pairs(_tab) d...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- copyright notice. -- And of course you are NOT allowed to pretend you have written it. -- --! @file generic_functions.lua --! @brie...
nilq/small-lua-stack
null
app_config = { ssid ="",passwd = "", ip={192,168,0,9}, bc_port=1999, data_port=2012, baud=115200, dhcp=true, apmode=true, cast_delay = 3000 }
nilq/small-lua-stack
null
--[[ tp8_grass TODO: models/props_foliage/grass3.mdl models/props_foliage/grass_cluster01.mdl models/props_foliage/grass_cluster01a.mdl models/props_foliage/swamp_grass01.mdl models/props_foliage/swamp_grass_row01.mdl Flowers: models/props_foliage/potted_plant1_p1.mdl --dirt --CS:S models/props_foliage/pott...
nilq/small-lua-stack
null
-- -- tests/base/test_tree.lua -- Automated test suite source code tree handling. -- Copyright (c) 2009-2012 Jason Perkins and the Premake project -- local suite = test.declare("base_tree") local tree = premake.tree -- -- Setup/teardown -- local tr function suite.setup() tr = tree.new() end local function...
nilq/small-lua-stack
null
local Ui = {} function Ui.devicons() return { "kyazdani42/nvim-web-devicons", opt = true } end function Ui.bufferline() return { "romgrk/barbar.nvim", wants = "nvim-web-devicons", requires = Ui.devicons(), config = require("modules.ui.bufferline")(), } end function Ui.stat...
nilq/small-lua-stack
null
set_xmakever("2.2.5") -- project set_project("hikyuu") -- version set_version("1.1.5") set_configvar("USE_ASYNC_LOGGER", 0) set_configvar("SPDLOG_ACTIVE_LEVEL", 2) set_configvar("CHECK_ACCESS_BOUND", 1) set_configvar("SUPPORT_SERIALIZATION", 1) set_configvar("SUPPORT_TEXT_ARCHIVE", 0) set_configvar("SUPPORT_XML_ARCHI...
nilq/small-lua-stack
null
--[[ DEVELOPED BY BORKEDsetup LAST COMMIT: 2021/03/18 SCRIPT TESTED WITH: Synapse X Most full/near full lua executors should be able to handle it. Make sure you have a gun out while executing and throughout the entire operation. Read the README and LICENSE for more information. ]]-- print('INITIALIZED...
nilq/small-lua-stack
null
local Event = require("api.Event") local I18N = require("api.I18N") local Gui = require("api.Gui") local Rand = require("api.Rand") local Chara = require("api.Chara") local Effect = require("mod.elona.api.Effect") local Log = require("api.Log") local World = require("api.World") local Ui = require("api.Ui") local Enum ...
nilq/small-lua-stack
null
local pedWeps = { "WEAPON_PISTOL", "WEAPON_PUMPSHOTGUN", "WEAPON_SAWNOFFSHOTGUN", "WEAPON_MICROSMG", "WEAPON_COMPACTRIFLE", "WEAPON_COMBATPISTOL", "WEAPON_BULLPUPRIFLE", "WEAPON_ASSAULTSHOTGUN", "WEAPON_REVOLVER", "WEAPON_COMBATPDW", "WEAPON_ASSAULTSMG", "WEAPON_ASSAULTRIFLE", "weapon_Pistol_Mk2", "weapon...
nilq/small-lua-stack
null
game = {} love.filesystem.setRequirePath(love.filesystem.getRequirePath()..";lib/?.lua;lib/") love.filesystem.setCRequirePath(love.filesystem.getCRequirePath()..";lib/?.dll;lib/?/?.dll;lib/?/?.so") -- Globals (yikes) debug = false cameraController = {} inputController = {} uiController = {} animationController = {} r...
nilq/small-lua-stack
null
// Wildfire Black Mesa Roleplay // File description: BMRP server-side crystal storage entity script // Copyright (c) 2022 KiwifruitDev // Licensed under the MIT License. //********************************************************************************************* // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY ...
nilq/small-lua-stack
null
return { ["comment"]="% generated by mtxrun --script pattern --convert", ["exceptions"]={ ["n"]=0, }, ["metadata"]={ ["mnemonic"]="tk", ["source"]="hyph-tk", ["texcomment"]="% copyright: Copyright (c) 2010-2015 Nazar Annagurban\ % title: Hyphenation patterns for Turkmen language\ % version: 0.1 16 March 201...
nilq/small-lua-stack
null
--[[ A non-doc comment multi-line probably containing license information! Doesn't use module(), but module name is inferred from file name. If you have initial licence comments that look like doc comments, then set `boilerplate=true` ]] ------------ -- Test module, -- Actual blurb here! ---- local one = {} --- answe...
nilq/small-lua-stack
null
local M = {} function M.seconds_to_string(seconds) if seconds < 60 * 60 then -- MM:SS return string.format("%02d:%02d", math.floor(seconds / 60), seconds % 60 ) elseif seconds < 60 * 60 * 24 then -- HH:MM:SS return string.format("%02d:%02d:%02d", math.floor(seconds / 3600), math.floor(seconds / 60) % 60, second...
nilq/small-lua-stack
null
function GM:LoadClient() local data = util.JSONToTable(file.Read("rotgb_tg_data.dat", "DATA") or "") if data then local ply = LocalPlayer() ply.rtg_PreviousXP = tonumber(data.xp) or 0 local skills = data.skills net.Start("rotgb_statchanged") net.WriteUInt(RTG_STAT_INIT, 4) net.WriteDouble(ply.rtg_Pr...
nilq/small-lua-stack
null
local bit32 = require("bit") local oam = {} oam.width = 320 oam.init = function(gameboy) oam.canvas = love.graphics.newCanvas(160, 400) oam.gameboy = gameboy oam.sprite_imagedata = love.image.newImageData(8, 16) oam.sprite_image = love.graphics.newImage(oam.sprite_imagedata) oam.background_8x8_image = love...
nilq/small-lua-stack
null
----------------------------------- -- Area: Vunkerl Inlet [S] -- NM: Big Bang ----------------------------------- require("scripts/globals/hunts") require("scripts/globals/status") ----------------------------------- function onMobInitialize(mob) mob:setMod(tpz.mod.MOVE, 12) end function onMobDeath(mob, player...
nilq/small-lua-stack
null
local RunService = game:GetService("RunService") local Signal = require(script.Parent.Signal) local NoYield = require(script.Parent.NoYield) local Store = {} -- This value is exposed as a private value so that the test code can stay in -- sync with what event we listen to for dispatching the Changed event. -- It may...
nilq/small-lua-stack
null
require "GThieves/G_OnDismantleTimedAction" require "GThieves/G_OnPickLockTimedAction" G_OnRightClickContextMenu = {}; G_OnRightClickContextMenu.doMenu = function(player, context, worldobjects) for i,v in ipairs(worldobjects) do local checkObject = nil; local ojects = v:getSquare():getObjects(); if ojects:...
nilq/small-lua-stack
null
require("core.lsp").run("css")
nilq/small-lua-stack
null
---@class CS.UnityEngine.ImageConversion ---@type CS.UnityEngine.ImageConversion CS.UnityEngine.ImageConversion = { } ---@return Byte[] function CS.UnityEngine.ImageConversion.EncodeToTGA() end ---@return Byte[] function CS.UnityEngine.ImageConversion.EncodeToPNG() end ---@overload fun(): Byte[] ---@return Byte[] ---@...
nilq/small-lua-stack
null
require("libs.cocos.ui.experimentalUIConstants")
nilq/small-lua-stack
null
-- Hojicha localization strings for English (default) local AddonName = ... local L = LibStub('AceLocale-3.0'):NewLocale(AddonName, 'enUS', true) L.AddonUpgradedToVersion = "Upgraded to v%s-%s"
nilq/small-lua-stack
null
function getInfo() return { onNoUnits = SUCCESS, -- instant success tooltip = "Move a group of units along a path (not in any specified formation).", parameterDefs = { { name = "unitsToMove", variableType = "expression", componentType = "editBox", defaultValue = "", }, { name = "pa...
nilq/small-lua-stack
null
--------------------------------- --! @file InPortConnectorBase.lua --! @brief InPortコネクタ基底クラス定義 --------------------------------- --[[ Copyright (c) 2017 Nobuhiko Miyamoto ]] local InPortConnector= {} --_G["openrtm.InPortConnectorBase"] = InPortConnector local ConnectorBase = require "openrtm.ConnectorBase" InPort...
nilq/small-lua-stack
null
function Update_Drone0(CustomGroup, playerIndex, shipID) SobGroup_CreateIfNotExist("dronefrigate_temp") SobGroup_Clear("dronefrigate_temp") SobGroup_FillShipsByType("dronefrigate_temp", "Player_Ships"..playerIndex, "kus_dronefrigate") if SobGroup_FillProximitySobGroup ("temp", "dronefrigate_temp", CustomGroup, 1000...
nilq/small-lua-stack
null
----------------------------------- -- Area: Valley of Sorrows -- NPC: qm1 (???) -- Spawns Adamantoise or Aspidochelone -- !pos 0 0 -37 59 ----------------------------------- local ID = require("scripts/zones/Valley_of_Sorrows/IDs") require("scripts/globals/npc_util") require("scripts/globals/settings") require("scrip...
nilq/small-lua-stack
null
module(..., package.seeall) function new(mainCharStatus) local group = display.newGroup() local speed = 0.5 local hostage local clickMeImage function group:spawnHostage() hasCheckedStatus = false local options = { width = 128, height = 128, numFrames = 16, sheetContentWidth = 512, sheetConten...
nilq/small-lua-stack
null
--- -- Pass a signal through, performing no operation. -- -- $$ y[n] = x[n] $$ -- -- @category Miscellaneous -- @block NopBlock -- -- @signature in:any > out:copy -- -- @usage -- local nop = radio.NopBlock() -- top:connect(src, nop, snk) local ffi = require('ffi') local block = require('radio.core.block') local NopB...
nilq/small-lua-stack
null
-- видеоскрипт для сайта https://www.youtube.com (12/3/21) -- https://github.com/Nexterr-origin/simpleTV-YouTube --[[ Copyright © 2017-2021 Nexterr 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...
nilq/small-lua-stack
null
-- General settings -- Set options vim.o.clipboard = "unnamedplus" vim.o.encoding = "UTF-8" vim.o.signcolumn = "no" -- vim.o.signcolumn = "number" -- vim.o.number = true -- vim.o.relativenumber = true vim.o.numberwidth = 2 vim.o.shiftwidth = 4 vim.o.tabstop = 4 vim.o.autoindent = true vim.o.smartindent = true vim.o....
nilq/small-lua-stack
null
aura_env.active = 0 aura_env.spellSchool = {} aura_env.currentAbsorb = {} aura_env.maxAbsorb = {} aura_env.totalAbsorb = 0 aura_env.schoolAbsorb = {0, 0, 0, 0, 0, 0, 0, 0, 0} local function improvedPowerWordShieldMultiplier() -- FIXME: GetTalentInfo(1, 5) return 1.15 end aura_env.talentMultiplier = { [ ...
nilq/small-lua-stack
null
local options = { term = { position = "belowright", size = 8, }, filetype_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/code_runner.nvim/lua/code_runner/code_runner.json", filetype = {}, project_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/code_runner.nvim/lua/code_runner/proj...
nilq/small-lua-stack
null
local ATTEMPTS_MAX = 40 local ignored_skills = Ext.Require("Server/BonusSkills/IgnoredSkills.lua") local ignored_skillwords = Ext.Require("Server/BonusSkills/IgnoredSkillWords.lua") local ignored_parents = { Target_SourceVampirism = true } local redirected_skills = { Rain_Oil = "Rain_LLENEMY_EnemyOil" } -- Has a ...
nilq/small-lua-stack
null
local odimension, ointerior, ox, oy, oz, orot, oskin local localPlayer = getLocalPlayer() local team = 0 local factionrank local skins local skincount local curr function changeDutySkin() local factionid = getElementData(localPlayer, "faction") factionrank = getElementData(localPlayer, "factionrank") cur...
nilq/small-lua-stack
null
return { uiEffect = "", name = "受伤瞬移", cd = 5, painting = 0, id = 79075, picture = "0", aniEffect = "", desc = "瞬移", effect_list = { { type = "BattleSkillTeleport", target_choise = { "TargetHarmNearest" }, arg_list = { delay = 1.6, targetRelativeRandom = { rear = 16, upper =...
nilq/small-lua-stack
null
-- choose correct ffi functions for OS -- TODO many are common and can be shared here local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pc...
nilq/small-lua-stack
null
target("quark-base") set_symbols("debug") set_kind("static") --add_includedirs("$(projectdir)/deps/easyloggingpp") add_links("uring") add_linkdirs("$(projectdir)/deps/liburing/lib") add_files("*.cpp") add_files("$(projectdir)/deps/easyloggingpp/easylogging++.cc")
nilq/small-lua-stack
null
--[[----------------------------------------------------------------------------- * Infected Wars, an open source Garry's Mod game-mode. * * Infected Wars is the work of multiple authors, * a full list can be found in CONTRIBUTORS.md. * For more information, visit https://github.com/JarnoVgr/InfectedWars * * Inf...
nilq/small-lua-stack
null
Script.Load("lua/%__MODNAME__%/ModFramework/Modules/FrameworkModule.lua") class 'EnumUtilitiesModule' (FrameworkModule) function EnumUtilitiesModule:Initialize(framework) FrameworkModule.Initialize(self, "enumutilities", framework, false) end --[[ Append key to enum tbl: Enum key: Key ]] function En...
nilq/small-lua-stack
null
-- WIP Hashed Queue local function NtoZ_c(x, y) return (x >= 0 and x or (-0.5 - x)), (y >= 0 and y or (-0.5 - y)) end local function cantorPair_v7(pos) local x, y = NtoZ_c(math.floor(pos.x), math.floor(pos.y)) local s = x + y local h = s * (s + 0.5) + x return h + h end local Queue = {} function...
nilq/small-lua-stack
null
target("CoreTest") set_kind("binary") set_group("Test") add_files("**.cpp") add_headerfiles("**.hpp") add_deps("Core") add_packages("gtest", {public = true}) add_includedirs("$(projectdir)/test/core_test", {public = true}) target_end()
nilq/small-lua-stack
null
require "keycodes" --- org author mafins function SetupText() ui.SET_TEXT_FONT(0) ui.SET_TEXT_SCALE(0.4, 0.4) ui.SET_TEXT_COLOUR(255, 255, 255, 255) ui.SET_TEXT_WRAP(0.0, 1.0) ui.SET_TEXT_CENTRE(0) ui.SET_TEXT_DROPSHADOW(0, 0, 0, 0, 0) ui.SET_TEXT_EDGE(0, 0, 0, 0, 0) ui.SET_TEXT_OUTLINE() end function DrawS...
nilq/small-lua-stack
null
local instances = {} return instances
nilq/small-lua-stack
null
victorQuestpSlumsConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "victorQuestpSlumsConvoHandler", screens = {} } init_joined_victor = ConvoScreen:new { id = "init_joined_victor", leftDialog = "@conversation/victor_questp_slums:s_f25283c7", -- I knew you'd come. The...
nilq/small-lua-stack
null
local pcall, dofile, _G = pcall, dofile, _G module "luci.version" if pcall(dofile, "/etc/openwrt_release") and _G.DISTRIB_DESCRIPTION then distname = "" distversion = _G.DISTRIB_DESCRIPTION if _G.DISTRIB_REVISION then distrevision = _G.DISTRIB_REVISION if not distversion:find(distrevision,1,true) then di...
nilq/small-lua-stack
null
local core = require 'core' local parser = require 'parser' local buildVM = require 'vm' local function catch_target(script) local list = {} local cur = 1 while true do local start, finish = script:find('<[!?].-[!?]>', cur) if not start then break end list[#lis...
nilq/small-lua-stack
null
object_tangible_tcg_series3_decorative_jango_fett_memorial_statue = object_tangible_tcg_series3_shared_decorative_jango_fett_memorial_statue:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series3_decorative_jango_fett_memorial_statue, "object/tangible/tcg/series3/decorative_jango_fett_memorial_statue.iff")
nilq/small-lua-stack
null
local URL = require('url') local qs = require('querystring') -- helper to find elements by its values local function _indexOf (target, field) if type(target) == 'string' then return target:find(field, 1, true) end for index, value in pairs(target) do if value == field then return index end end retu...
nilq/small-lua-stack
null
local args = ... local player = args.player local af = Def.ActorFrame{ --Name="Pane2_SideP1", InitCommand=function(self) self:visible(false) end } af[#af+1] = LoadActor(THEME:GetPathB("ScreenEvaluation", "common/Panes/Pane1"), {player, args.player}) local position = player == "PlayerNumber_P1" and (_screen.cx - 155...
nilq/small-lua-stack
null
include("/scripts/includes/consts.lua") name = "" level = 20 itemIndex = 11 creatureState = CREATURESTATE_IDLE function onInit() -- Player collides with BB. Make it a bit larget than the default BB. self:SetBoundingSize({1.0, 2.0, 2.0}) self:SetUndestroyable(true) -- Even when the collision mask is zero, it s...
nilq/small-lua-stack
null
Heresy = class("Heresy") function Heresy:init(data) local heresyTable = loadjson(".\\tables\\heresy.JSON") self.founder = choice(heresyTable["founder"]) self.major_heresy = choice(heresyTable["major_heresy"]) self.attitude = choice(heresyTable["attitude"]) self.quirk = choice(heresyTable["qu...
nilq/small-lua-stack
null
-- It's possible for players to edit their Simply Love UserPrefs.ini file -- in various ways that might break the theme. Also, sometimes theme-specific mods -- are deprecated or change their internal name, leaving old values behind in player profiles -- that might break the theme as well. Use this table to validate se...
nilq/small-lua-stack
null
return function(location, pattern) return location == pattern and location or nil end
nilq/small-lua-stack
null
-- title: entity.lua -- author: Samy Bencherif -- desc: Parent class of all game entities Object = require "libraries/classic/classic" assets = require("libraries/cargo/cargo").init("assets") Entity = Object:extend() function Entity:new() self.t = 0 end function Entity:update(dt) self.t = self.t + dt end...
nilq/small-lua-stack
null
package.path = "../?.lua;"..package.path; require("p5") function setup() background(0xff, 0x20, 0x20) clear(); end go()
nilq/small-lua-stack
null
local _M = {} _M.__index = _M function _M.new(cookieString) local self = setmetatable({}, _M) self.data = {} self.flags = {} if cookieString ~= nil then for keyValue in string.gmatch(cookieString, "([^;]+)") do key, value = string.match(keyValue, " *([^=]+)=(.+)") if ke...
nilq/small-lua-stack
null
-- Function Availability FileWriteLineFast("test/output.txt", "Function Availability", FM_WRITE); local fa = dofile("test/common/function_availability.lua"); fa.FunctionSupported(MouseInit, "MTR_MouseInit", MouseFunctionSupported); fa.FunctionSupported(MouseRefresh, "MTR_MouseRefresh", MouseFunctionSupported); fa.Func...
nilq/small-lua-stack
null
local on_attach = require('lsp.on_attach') local lsp = vim.lsp -- config that activates keymaps and enables snippet support local function base_config() local capabilities = require('cmp_nvim_lsp').update_capabilities( vim.lsp.protocol.make_client_capabilities() ) capabilities.textDocument.completion.comple...
nilq/small-lua-stack
null