content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
PLUGIN.name = "Player Spawn Points" PLUGIN.author = "STEAM_0:1:29606990" PLUGIN.description = "" local PLUGIN = PLUGIN PLUGIN.spawners = PLUGIN.spawners or {} ix.util.Include("sv_plugin.lua", "server") if (CLIENT) then net.Receive("ixPlayerSpawnerSync", function() for _, v in ipairs(PLUGIN.spawners) do if (IsV...
nilq/small-lua-stack
null
--[[ FiveM Scripts Copyright C 2018 Sighmir This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or at your option any later version. ...
nilq/small-lua-stack
null
widget = { plugin = 'pulse', cb = function(t) if t.mute then return 'V X' end local percent = (t.cur / t.norm) * 100 return string.format('V %d', math.floor(0.5 + percent)) end, }
nilq/small-lua-stack
null
local ps_common = require("lj2ps.ps_common") local Matrix = require("lj2ps.ps_matrix") local GraphicState = require("lj2ps.ps_graphicsstate") local exports = {} -- Graphics State - Device Independent -- gsave -- grestore local function gsave(vm) vm.Driver:gSave() return true end exports.gsave = gsave loca...
nilq/small-lua-stack
null
-- restops.lua return { GET = 1, PUT = 2, DELETE = 3, }
nilq/small-lua-stack
null
assert(Global.CLIENT or Global.SERVER) assert(not (Global.CLIENT and Global.SERVER)) log(DEBUG, string.format("Generating LogicEntity system with CLIENT = %s", tostring(Global.CLIENT))) RootLogicEntity = class() function RootLogicEntity:__tostring () return "LogicEntity" end RootLogicEntity.shouldAct = true functi...
nilq/small-lua-stack
null
local Plugin = script.Parent.Parent.Parent local Constants = require(Plugin.Core.Util.Constants) local Libs = Plugin.Libs local Cryo = require(Libs.Cryo) local Rodux = require(Libs.Rodux) local t = require(Libs.t) local HttpService = game:GetService("HttpService") local Immutable = require(Plugin.Core.Util.Immutable...
nilq/small-lua-stack
null
local passive_only = false spawnlite = {} spawnlite.passive = {} spawnlite.agressive = {} spawnlite.water = {} spawnlite.air = {} spawnlite.mobs = {} spawnlite.mobs.passive = {} spawnlite.mobs.agressive = {} spawnlite.mobs.water = {} spawnlite.mobs.air = {} spawnlite.mobs.passive.now = 0 spawnlite.mobs.agressive.now ...
nilq/small-lua-stack
null
range = require ("init") function testIntegerRangeWithoutEnd () local sum = 0 for i in range (2) do sum = sum + i end local expected = 2 assert ( expected == sum, "sum should be " .. expected .. " but is " .. sum ) end function testIntegerRange () local sum = 0 for i in range (1, 10) do sum = sum + i...
nilq/small-lua-stack
null
if (...) == "-?" then printUsage( "reboot","Soft reboots LIKO-12", "reboot hard","Hard reboots LIKO-12" ) return end local args = {...} --Get the arguments passed to this program if tostring(args[1] or "soft") == "hard" then print("HARD REBOOTING ...") sleep(0.25) reboot(true) else print("SOFT REBO...
nilq/small-lua-stack
null
TRAIT.name = "Chaotic Alloys I" TRAIT.IconX = 1 TRAIT.IconY = 1 TRAIT.LevelReq = 3 TRAIT.SkillPointCost = 1 TRAIT.Incompatible = { } TRAIT.RequiredTraits = { "undivided" } TRAIT.icon = "vgui/skills/ability_warrior_defensivestance_1.png" TRAIT.category = "Blessings of Chaos Undivided"-- Common Passives, Warriors ...
nilq/small-lua-stack
null
-- Point definition in Lua PointLua = {} PointLua.__index = PointLua PointLua.__class = 'PointLua' function PointLua:new(x, y) obj = {x = x, y = y, velocityX = 0, velocityY = 0} setmetatable(obj, self) -- This makes obj inherit from HUD return obj end function PointLua:setX(x) self.x = x; end function PointLua:g...
nilq/small-lua-stack
null
-- @module table module ("table", package.seeall) --require "list" FIXME: allow require loops -- FIXME: use consistent name for result table: t_? (currently r and -- u) -- @func sort: Make table.sort return its result -- @param t: table -- @param c: comparator function -- @returns -- @param t: sorted table l...
nilq/small-lua-stack
null
-- Rectivate / Deactivate local gvt = require 'luagravity' local state local app = gvt.start(function() state = 0 gvt.await(10) state = 1 gvt.await(10) state = 2 end) assert(state == 0) gvt.step(app, 'dt', 10) gvt.step(app, 'dt', 0) assert(state == 1) gvt.deactivate(app) gvt.step(app, 'dt', 10...
nilq/small-lua-stack
null
test = require 'u-test' common = require 'common' function SetupTest_Handler() print("SetupTest_Handler") local hr = GetLastError() SetCheckHR(1) if hr ~= 0 then print("Calling XalAddUserWithUiAsync") XalAddUserWithUiAsync() else test.stopTest(); end end test.StartSetu...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Sending PTS to mobile application -- [HMI API] SystemRequest request/response -- -- Description: -- SDL must forward OnSystemRequest(request_type=PROPRIETARY, url, appID) with en...
nilq/small-lua-stack
null
local CrateModule = { crates = { ["Starter"] = { common = 60, uncommon = 30, rare = 10, legendary = 0, currency = "Coins", productId = 0, price = 500 }, ["Spotty"] = { common = 40, uncommon = 30, rare = 25, legendary = 5, currency = "Coins", productId = 0, price = 2000 ...
nilq/small-lua-stack
null
-- Player perk mapping. local Perks = {} -- Perks are separated by governing skill. -- They are grouped into areas - which has nothing to do with any practical aspects of the skill. -- Instead, areas have requirements and this governs at what skill level the perk is unlocked. -- Ultimate "perks" are actually referred ...
nilq/small-lua-stack
null
-- Copyright (c) 2019 teverse.com -- theme.lua local themeController = {} print ("DEBUG: Loading theme.lua") -- values from default are used in all styles unless overridden. themeController.currentTheme = { default = { fontFile = "OpenSans-Regular", backgroundColour = colour:fromRGB(37, 37,...
nilq/small-lua-stack
null
name = "Settings Menu" popUp = false local nameIVT = INSPECTOR_VARIABLE_TYPE.INSPECTOR_STRING nameIV = InspectorVariable.new("name", nameIVT, name) NewVariable(nameIV) function Start() child = Find(name) child:Active(false) end -- Called each loop iteration function UpdateUI(dt) if (gameObject:GetButton(...
nilq/small-lua-stack
null
-- ======================================================================================= -- Plugin: OBJ_MANAGE.lua -- Programmer: Cooper Santillan -- Last Modified: October 23, 2021 10:55am -- ======================================================================================= -- Description: All functions used to...
nilq/small-lua-stack
null
require "guild" function post() if not session:isLogged() then http:redirect("/") return end local guild = db:singleQuery("SELECT name, ownerid, id FROM guilds WHERE name = ?", http.postValues["guild-name"]) if guild == nil then http:redirect("/") return end i...
nilq/small-lua-stack
null
--[[ Mojang Session API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) OpenAPI spec version: 2020-06-05 Generated by: https://openapi-generator.tech ]] --[[ Unit tests for openapiclient.model.player_profile_texture_property_value Automatically ...
nilq/small-lua-stack
null
local PLAYER = FindMetaTable("Player") if SERVER then function PLAYER:SetHuman() self:SetTeam(TEAM_HUMANS) self:AllowFlashlight(true) player_manager.SetPlayerClass(self, "player_ritual_human") end function PLAYER:SetDemon() self:SetTeam(TEAM_DEMONS) self:AllowFlashlight(false) player_manager.SetPlayerC...
nilq/small-lua-stack
null
-- 首先继承Controller基类 local Index_Controller = Controller:new() function Index_Controller:indexAction() ngx.say('Hello,MicroMVC') return true end return Index_Controller
nilq/small-lua-stack
null
-- Petit script pour configurer les choses secrètes que l'on n'aimerait -- pas être exportées sur Internet (github) -- faut donc le mettre ailleurs que dans le dépôt ! print("\n credential.lua zf181205.1910 \n") cli_ssid="3g-s7" cli_pwd="12234567"
nilq/small-lua-stack
null
return PlaceObj("ModDef", { "title", "Fix Projector Lamp", "id", "ChoGGi_FixProjectorLamp", "lua_revision", 1007000, -- Picard "steam_id", "2387107341", "pops_any_uuid", "d1288e04-d8e6-41a6-b4ba-5a0e84d4c1ac", "version", 1, "version_major", 0, "version_minor", 1, "image", "Preview.jpg", "author", "ChoGGi", "...
nilq/small-lua-stack
null
object_draft_schematic_furniture_furniture_table_jedi_dark_s01 = object_draft_schematic_furniture_shared_furniture_table_jedi_dark_s01:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_table_jedi_dark_s01, "object/draft_schematic/furniture/furniture_table_jedi_dark_s01.iff")
nilq/small-lua-stack
null
local BasePlugin = require "kong.plugins.base_plugin" local host = os.getenv("SPLUNK_HOST") --Ex: gateway-datacenter.company.com local KongClusterDrain = BasePlugin:extend() KongClusterDrain.PRIORITY = 3 --The standard request termination plugin is 2 so we need to run before that and beat it out in priority. KongClus...
nilq/small-lua-stack
null
--[[ A top-down action game made with Bitty Engine Copyright (C) 2021 Tony Wang, all rights reserved Engine page: https://paladin-t.github.io/bitty/ Game page: https://paladin-t.github.io/games/hb/ ]] Tips = class({ --[[ Variables. ]] _game = nil, _content = nil, --[[ Constructor. ]] ctor = function (self,...
nilq/small-lua-stack
null
local _, TIC = ... TIC:RegisterEvent("BAG_UPDATE_DELAYED") local bags = {0, -1, -2, -3, -4} local temp = {} function TIC:BAG_UPDATE_DELAYED() wipe(temp) -- count items in bags for bag = 0, 4 do for slot = 1, GetContainerNumSlots(bag) do local icon, itemCount, locked, quality, readable,...
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------- Grid Compact party and raid unit frames. Copyright (c) 2006-2009 Kyle Smith (Pastamancer) Copyright (c) 2009-2016 Phanx <addons@phanx.net> All rights reserved. See the accompanying LICENSE file for details. https://github.com/Phanx/Grid htt...
nilq/small-lua-stack
null
-- main tab VERSION = "1.2" UI.Label("Config version: " .. VERSION) UI.Separator() --local atk = Panels.FastAttack() UI.Button("Ingame macro editor", function(newText) UI.MultilineEditorWindow(storage.ingame_macros_main or "", {title="Macro editor", description="You can add your custom macros (or any other lua co...
nilq/small-lua-stack
null
local fastsplit = require("quantization.fastsplit") local palette = require("quantization.palette") local utils = require("utils") local draw = {} local PALETTE_CHARS = {"0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"} local function TO_PALETTE_CHARS(i) return PALETTE_CHARS[i] end function draw.slice...
nilq/small-lua-stack
null
local Time = require "module.Time" local View = {} function View:Start(data) self.view = CS.SGK.UIReference.Setup(self.gameObject) self.AwardData = {} self.offlineAwardData = nil; self.nguiDragIconScript = self.view.ScrollView[CS.UIMultiScroller] self.nguiDragIconScript.RefreshIconCallback = (function (go,idx) ...
nilq/small-lua-stack
null
local Stream = require("stream") local function compress(stream) return Stream(stream.dumpString()) end return compress
nilq/small-lua-stack
null
object_tangible_tcg_series5_hangar_ships_imperial_gunboat = object_tangible_tcg_series5_hangar_ships_shared_imperial_gunboat:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_imperial_gunboat, "object/tangible/tcg/series5/hangar_ships/imperial_gunboat.iff")
nilq/small-lua-stack
null
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Control Hammerspoon's dock icon -- -- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). ---@class hs.dockicon local M = {} hs.dockicon = M -- Bounce Hammerspoon's...
nilq/small-lua-stack
null
Locales['fr'] = { ['skin_menu'] = 'Skin Menu', ['use_rotate_view'] = 'utilisez ~INPUT_VEH_FLY_ROLL_LEFT_ONLY~ et ~INPUT_VEH_FLY_ROLL_RIGHT_ONLY~ pour tourner la vue.', ['skin'] = 'changer de skin', ['saveskin'] = 'sauvegarder skin dans un fichier', ['confirm_escape'] = 'voulez-vous annuler le changeur de skin...
nilq/small-lua-stack
null
-- local log = require "log" local hutype = require "chestnut.mahjongroom.hutype" local function check_qidui(cards, ... ) -- body assert(cards and #cards > 0) local qing = true local jiang = 0 local gang = 0 local single = 0 local len = #cards local idx = 1 local a = cards[idx] idx = idx + 1 while id...
nilq/small-lua-stack
null
local runtime = require 'jass.runtime' local console = require 'jass.console' local tostring = tostring local debug = debug console.enable = true runtime.handle_level = 2 runtime.sleep = true runtime.error_handle = function(msg) console.write("---------------------------------------") console.write(" ...
nilq/small-lua-stack
null
ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) RegisterNetEvent('esx:playerLoaded') AddEventHandler('esx:playerLoaded', function(xPlayer) PlayerData = xPlayer end) ----- Reg...
nilq/small-lua-stack
null
local _, Engine = ... local Module = Engine:NewModule("Fonts") local gameLocale = GetLocale() local isLatin = ({ enUS = true, enGB = true, deDE = true, esES = true, esMX = true, frFR = true, itIT = true, ptBR = true, ptPT = true })[gameLocale] Module.SetUp = function(self) -- shortcuts to the fonts local c...
nilq/small-lua-stack
null
local members = redis.call("SMEMBERS", "processing") redis.call("DEL", "processing") local time = tonumber(redis.call("TIME")[1]) * 1000 for i = 1, #members, 1 do redis.call("ZADD", "processing", time, members[i]) end
nilq/small-lua-stack
null
local playsession = { {"TiTaN", {1338110}}, {"EPO666", {472199}}, {"die_ott", {13490}}, {"vvictor", {903576}}, {"MoeMoms", {40156}}, {"Menander", {2072809}}, {"Nikkichu", {2321995}}, {"BallisticGamer04", {8683}}, {"BootyMuncher123", {2368}}, {"TheHiddenManiac", {29350}}, {"Hitman451", {4014}}, {"PogomanD", ...
nilq/small-lua-stack
null
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) local Vehicles = nil RegisterServerEvent('esx_lscustom:buyMod') AddEventHandler('esx_lscustom:buyMod', function(price) local _source = source local xPlayer = ESX.GetPlayerFromId(_source) price = tonumber(price) if Config.IsMecanoJobOnly th...
nilq/small-lua-stack
null
AI = {} function AI:load() self.img = love.graphics.newImage("assets/2.png") self.width = self.img:getWidth() self.height = self.img:getHeight() self.x = love.graphics.getWidth() - self.width - 50 self.y = love.graphics.getHeight() / 2 self.yVel = 0 self.speed = 500 self.timer = 0 self.rate = 0.5 ...
nilq/small-lua-stack
null
------------------------------------------------------------------------------------------------------------------------ -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0192-button_subscription_response_from_hmi.md ------------------------------------------------------------------...
nilq/small-lua-stack
null
--[[ Copyright (C) 2018 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
nilq/small-lua-stack
null
local Advice = require("api.Advice") local Extend = require("api.Extend") local IFeatLockedHatch = require("mod.elona.api.aspect.feat.IFeatLockedHatch") local UiMinimap_show_stair_locations = {} UiMinimap_show_stair_locations.after = {} function UiMinimap_show_stair_locations.after:init(...) local ext = Extend.ge...
nilq/small-lua-stack
null
--异态魔女·毒-?? local m=14000508 local cm=_G["c"..m] cm.named_with_Spositch=1 xpcall(function() require("expansions/script/c14000501") end,function() require("script/c14000501") end) function cm.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,cm.xfilter,11,2) c:EnableReviveLimit() --to hand local e1=Eff...
nilq/small-lua-stack
null
local cmdsDir = "cmds" client_script (cmdsDir..[[/client_test.lua]]) server_script (cmdsDir..[[/server_test.lua]]) dependencies { "exp" }
nilq/small-lua-stack
null
--- Operations for game settings / stats. -- @module Noble.Settings -- Noble.Settings = {} -- This is the "class" that holds methods. local settings = nil -- This is the actual settings object. We keep it local to avoid direct tampering. local settingsDefault = nil -- We keep track of default values so they can b...
nilq/small-lua-stack
null
local DotaQuiz = {} DotaQuiz.Identity = "dota_quiz" DotaQuiz.Locale = { ["name"] = { ["english"] = "Dota Quiz", ["russian"] = "Викторина", ["chinese"] = "测验", }, ["desc"] = { ["english"] = "Quiz #1 in Dota 2", ["russian"] = "Викторина #1 в Dota 2", ["chinese"] = "Dota 2中的测验#1" }, ["delay_before_quiz_lo...
nilq/small-lua-stack
null
local basic_handlers = { gmod_combine_lock={ Handle_Mouse1=function(caller,ent) ent:Backdoor() end, Handle_Mouse2=function(ent) end }, npc_rollermine={ Handle_Mouse1=function(caller,ent) local hacked=ent:GetSaveTable().m_bHackedByAlyx if hacked then ent:SetSaveValue( "m_bHackedByAlyx", false...
nilq/small-lua-stack
null
local cli = require("tn.cli") local core = require("tn.core") local M = {} local function run() local editor = os.getenv("EDITOR") or os.getenv("VISUAL") local notes_dir_envvar = "TN_NOTES_DIR" local notes_dir = os.getenv(notes_dir_envvar) if not notes_dir then cli.write_message(io.stderr, "...
nilq/small-lua-stack
null
----------------------------------- -- Area: Kazham -- NPC: Nenepp -- Standard Info NPC ----------------------------------- local ID = require("scripts/zones/Kazham/IDs") require("scripts/globals/pathfind") require("scripts/globals/quests") require("scripts/globals/titles") ----------------------------------- local p...
nilq/small-lua-stack
null
require("lead-recipe-final-stacking") require("lead-recipe-modules") require("lead-recipe-colors") require("lead-recipe-final-5d") require("lead-recipe-final-rrr") ---- local util = require("__bzlead__.util"); if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then -- If furnaces ar...
nilq/small-lua-stack
null
-- AreCoordsCollidingWithExterior() local OwnedHouse = nil local AvailableHouses = {} local blips = {} local Knockings = {} local housespawn = false Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Wait(0) end while ESX.GetPlayerData().jo...
nilq/small-lua-stack
null
local data_dir = vim.fn.stdpath('data') local lsp = require('modules.lsp') local capabilities = lsp.capabilities capabilities.textDocument.completion.completionItem.snippetSupport = true require'lspconfig'.cssls.setup { cmd = { "node", data_dir .. "/lspinstall/css/vscode-css/css-language-featu...
nilq/small-lua-stack
null
gg.ignore_modules = { "gg%.service%.*", "gg%.like_skynet.*", "app%.game%.main", "app%.game%.httpd_main", "app%.scene%.main", } function gg.hotfix(modname) for i,prefix in ipairs({"../src/","gameserver/src/","loginserver/src/","src/"}) do if string.startswith(modname,prefix) then ...
nilq/small-lua-stack
null
-- Données pour le module local storeInfo = { order = 70, framed = true, text = _G.VOID_STORAGE, icon = 'Interface\\AddOns\\Kerviel\\img\\Void', } -- Environnement local Kerviel = LibStub('AceAddon-3.0'):GetAddon('Kerviel') local store = Kerviel:NewStore('VoidStorage', storeInfo) local L = LibStub('A...
nilq/small-lua-stack
null
-- =========================================================================== -- Cui In Game Note Screen -- =========================================================================== include("InstanceManager") include("cui_helper") include("cui_settings") -- ==========================================================...
nilq/small-lua-stack
null
local locations = require("lua.locations") local locationsPositions = require("lua.locationspositions") local currentLocation = false local characters = { ["Fred"] = { x = 0, y = 0, z = 0, animationOffset = {0, 0}, visible = true, animation = "", rotation = "A...
nilq/small-lua-stack
null
local tiny = require "lib/tiny" local collision = tiny.processingSystem() collision.filter = tiny.requireAll("map", "collision_layer") function collision:onAdd(e) local world for _, e in ipairs(self.world.entities) do if world then break end local filter = tiny.requireAll("box2d", "world") if filter(se...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- --[[ Gravity Demonstrates the effect of the gravity parameter on particles. --]] -------------------------------------------------------------------------------- local CBE = require("CBE.CBE") local sample = CBE.newVent({ title = "lase...
nilq/small-lua-stack
null
local LoggerLib = require("__DedLib__/modules/logger") local Logger = LoggerLib.create("Template") local Util = require("__DedLib__/modules/util") local Storage = {} Storage.__index = Storage --[[ Quick usage: - call Storage.new() with on_init and on_load functions to handle those events - add Storage:on_init() and S...
nilq/small-lua-stack
null
local t = { aaa = 123, bbb = 546 } function fff() local t = 123, b, c, d, e local function func() if aa then local t = 1231 end end return func end
nilq/small-lua-stack
null
-- crude implementation local breakpointer = {} local boundGuis = {} -- Store a list of breakpoints local breakpoints = { {"xs", 0}, {"sm", 576}, {"md", 768}, {"lg", 992}, {"xl", 1200}, {"xxl", 1600} } -- Remap these breakpoints into a dictionary for the end-user breakpointer.breakpoints = {} for i, v in pairs(...
nilq/small-lua-stack
null
------------- -- Chicken -- ------------- local follows = {} minetest.register_on_mods_loaded(function() for name, def in pairs(minetest.registered_items) do if name:match(":seed_") or name:match("_seed") then table.insert(follows, name) end end end) creatura.register_mob("animalia:chick...
nilq/small-lua-stack
null
slot0 = class("WorldMapTheme", import("...BaseEntity")) slot0.Fields = { sinAngle = "number", cellSpace = "table", fov = "number", offsetx = "number", assetSea = "string", offsetz = "number", cosAngle = "number", offsety = "number", cellSize = "table", angle = "number" } slot0.Setup = function (slot0, slot1)...
nilq/small-lua-stack
null
local F, C = unpack(select(2, ...)) local MAP = F:RegisterModule('Map') function MAP:OnLogin() self:SetupWorldMap() self:SetupMiniMap() end
nilq/small-lua-stack
null
ignoredID = -1 ignoredCheckpoints = {} function getAreaFromPos(x, y) return math.floor((y + 3000)/750)*8 + math.floor((x + 3000)/750) end function getCheckpointLinks(cp) local links = {} for id, area in pairs(cp.links) do if id ~= ignoredID then table.insert(links, checkpointsTable[area][id]) end end if #...
nilq/small-lua-stack
null
local util = {} function util.split(str, sep, stop_at_first) local sep, fields = sep or ":", {} local pattern = string.format("([^%s]+)", sep) string.gsub(str, pattern, function(c) fields[#fields+1] = c end) if stop_at_first and #fields > 1 then local s = fields[1]..sep fields = {fields...
nilq/small-lua-stack
null
vim.api.nvim_set_keymap("n", "<C-n>", "<cmd>NvimTreeToggle<CR>", { noremap = true }) vim.api.nvim_set_keymap("n", "<leader>t", "<cmd>NvimTreeFocus<CR>", { noremap = true })
nilq/small-lua-stack
null
local env,java=env,java local event,packer,cfg,init=env.event.callback,env.packer,env.set,env.init local set_command,exec_command=env.set_command,env.exec_command local mysql=env.class(env.db_core) mysql.module_list={ "help", "findobj", "mysql_exe", "usedb", "show", "info", "snap", "sql"...
nilq/small-lua-stack
null
local addon, ns = ... local LSM = LibStub("LibSharedMedia-3.0") local GetTime = GetTime local floor, fmod = floor, math.fmod local sort = table.sort local day, hour, minute = 86400, 3600, 60 ns.FormatTime = function(time) if time >= day then return format("%dd", floor(time/day + 0.5)) elseif time>= ...
nilq/small-lua-stack
null
local map = require("helpers").map map("n", "<leader>ps", ":PackerSync <CR>")
nilq/small-lua-stack
null
-- NOTE: this is the module object we return? local M = {} M.map = function(mode, lhs, rhs, opts) local options = { noremap = true, silent = true } if opts then options = vim.tbl_extend("force", options, opts) end vim.api.nvim_set_keymap(mode, lhs, rhs, options) end return M
nilq/small-lua-stack
null
AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "cl_init.lua" ) include( 'shared.lua' ) ENT.DespawnTime = false function ENT:Initialize() self:DrawShadow(true) self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Entity:SetUseType( SIMPLE_USE ) local phys = self:GetPhysicsObject() ...
nilq/small-lua-stack
null
----------------------------------- -- Area: King Ranperre's Tomb -- NM: Vrtra ----------------------------------- require("scripts/globals/status") require("scripts/globals/titles") ----------------------------------- local offsets = {1, 3, 5, 2, 4, 6} function onMobEngaged(mob, target) mob:resetLocalVars() en...
nilq/small-lua-stack
null
local M = {} local expect_object, dump_object local error, tostring, pairs, type, floor, huge, concat = error, tostring, pairs, type, math.floor, math.huge, table.concat local dump_type = {} function dump_type:string(nmemo, memo, acc) local nacc = #acc acc[nacc + 1] = '"' acc[nacc + 2] = self:gsub('"', '""') acc[...
nilq/small-lua-stack
null
--refer to link below for more information --https://github.com/Cryotheus/minge_defense/blob/main/gamemodes/mingedefense/gamemode/loader.lua PECAN = {Build = 0, Version = "0.0.0d"} local config = { autorun = {player_expression_canvas = 4}, --100 player_expression_canvas = { editor = { context_menu = 5, --00 1...
nilq/small-lua-stack
null
local getDistanceBetweenOriginal; function onInit() if super and super.onInit() then super.onInit(); end getDistanceBetweenOriginal = Token.getDistanceBetween; Token.getDistanceBetween = getDistanceBetween; end function onMeasurePointer(pixellength, type, startx, starty, endx, endy) if not (getGridSize and ge...
nilq/small-lua-stack
null
-- Mon Jul 16 23:34:53 2018 -- (c) Alexander Veledzimovich -- view KADZEN local ui = require('lib/lovui') local imd = require('lib/lovimd') local obj = require('game/obj') local set = require('game/set') local View = {} function View:new() self.ui = ui self.screen = nil self.uibg = love.graphics.newImage(...
nilq/small-lua-stack
null
local class = require "class" local new_tab = require("sys").new_tab local log = require "logging" local Log = log:new({ dump = true, path = 'internal-TCP' }) local type = type local assert = assert local io_open = io.open local spack = string.pack local insert = table.insert local remove = table.remove local dns =...
nilq/small-lua-stack
null
local source_doc_root=[[j:\BM\E66230_01\]] local target_doc_root=[[j:\BM\newdoc12\]] --[[--FOR 11g local source_doc_root='j:\\BM\\E11882_01\\' local target_doc_root='j:\\BM\\newdoc11\\' --]] --[[ (c)2016-2017 by hyee, MIT license, https://github.com/hyee/Oracle-DB-Document-CHM-builder .hhc/.hhk/.hhp files ar...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Tests the yxpcall method. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusUnitTestingProject = require(game:GetService("ReplicatedStorage"):WaitForChild("NexusUnitTesting"):WaitForChild("NexusUnitTestingProject")) local yxpcall = NexusUnitTestingProject:GetResource("UnitTest...
nilq/small-lua-stack
null
module_version("java/1.8.0-A","1.8")
nilq/small-lua-stack
null
ESX = nil local CopsConnected = 0 TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('force_transportrobberyReward') AddEventHandler('force_transportrobberyReward', function() local player = ESX.GetPlayerFromId(source) local money = math.random(Config.MoneyRewardMin, Config...
nilq/small-lua-stack
null
table_Months = {EVT_JAN, EVT_FEB, EVT_MAR, EVT_APR, EVT_MAY, EVT_JUN, EVT_JUL, EVT_AUG, EVT_SEP, EVT_OCT, EVT_NOV, EVT_DEC}; table_Dotw = {EVT_SUN, EVT_MON, EVT_TUE, EVT_WED, EVT_THU, EVT_FRI, EVT_SAT}; local epochYear = 2016; local epochMonth = 1; --whichever month your epoch is local epochDay = 5; --whichever day y...
nilq/small-lua-stack
null
local ADDONNAME, ns = ... ns.ARDENWEALD_UIMAPID = 1565 ns.TREASURES = { -- Ardenweald: Lunarpods LARGE = "large", DREAMSHRINE = "Dreamshrine", GLITTERFALL_HEIGHTS_EAST = "Glitterfall Heights (East)", GLITTERFALL_HEIGHTS_WEST = "Glitterfall Heights (West)", GARDEN_OF_NIGHT = "Garden of Night",...
nilq/small-lua-stack
null
-- Import this library local g = require("gachLib") -------------------------------------------------------------------------------- -- Create new application local application = g.gui.application() local label = g.gui.label(10,10,20,20,"TEST") application:addChild(label) application:start()
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.ALCS = wOS.ALCS or {} wOS.ALCS.Config = wOS.ALCS.Config or {} wOS.ALCS.Config.ExecSys = wOS.AL...
nilq/small-lua-stack
null
-- -- tests/test_keywords.lua -- Automated test suite for configuration block keyword filtering. -- Copyright (c) 2008, 2009 Jason Perkins and the Premake project -- T.keywords = { } local suite = T.keywords -- -- Keyword escaping tests -- function suite.escapes_special_chars() test.isequal("%.%-", path.wildcar...
nilq/small-lua-stack
null
--[[ name : biginfo.lua version: 1.0 description: useful information updated every day. Return: create global variables (variables named BI_*) Based on today's date and longitude/latitude recorded in Domoticz $BI_ISHOLIDAYS ==> true/false $BI_GEOLATITUDE ==> number $BI_HOLIDAYS ==> text (for country code = fr) $BI_...
nilq/small-lua-stack
null
-- -- (C) 2019 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,str...
nilq/small-lua-stack
null
slot0 = class("CommonBuff", import(".BaseVO")) slot0.Ctor = function (slot0, slot1) slot0.id = slot1.id slot0.configId = slot0.id slot0.timestamp = slot1.timestamp end slot0.IsActiveType = function (slot0) return false end slot0.bindConfigTable = function (slot0) return pg.benefit_buff_template end slot0.check...
nilq/small-lua-stack
null
fx_version 'adamant' game 'gta5' description 'ESX Menu Dialog' version '1.1.0' shared_script '@DiamondCasino/shared.lua' client_script 'client/main.lua' ui_page 'html/ui.html' files { 'html/ui.html', 'html/css/app.css', 'html/js/mustache.min.js', 'html/js/app.js', 'html/fonts/pdown.ttf', 'html/fonts/ban...
nilq/small-lua-stack
null
-- Profile settings for G402 -- ========================= -- Use these parameters to assign keyboard-keys to mouse buttons G3,G4,G5,G7,G8 -- Type in your in-game key bindings to select which signs should be mapped to a mouse button. -- Also type in what key you're using to cast a sign. -- E.g. the default key ma...
nilq/small-lua-stack
null