content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
vim.o.runtimepath = '/Users/wention/.config/nvim-lua,' .. vim.o.runtimepath local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/opt/packer.nvim' if vim.fn.empty(vim.fn.glob(install_path)) > 0 then vim.cmd('!git clone https://github.com/wbthomason/packer.nvim' .. ' ' .. install_path) ...
nilq/small-lua-stack
null
local ns = oUF local oUF = ns.oUF or _G.oUF local trinketSpells = { [59752] = 120, [42292] = 120, [7744] = 45, } local function GetTrinketIcon(unit) if UnitFactionGroup(unit) == "Horde" then return "Interface\\Icons\\INV_Jewelry_TrinketPVP_02" else return "Interface\\Icons\\INV_Je...
nilq/small-lua-stack
null
return {'zuur','zuurachtig','zuurbal','zuurbrand','zuurdeeg','zuurder','zuurdesem','zuurdesembrood','zuurgehalte','zuurgraad','zuurheid','zuurhoudend','zuurkast','zuurkijker','zuurkool','zuurkraam','zuurmuil','zuurmuilen','zuurpruim','zuurpruimen','zuurrest','zuursel','zuurstel','zuurstof','zuurstofapparaat','zuurstofa...
nilq/small-lua-stack
null
local options = {noremap = true, silent = true} local map = vim.api.nvim_set_keymap map('n', '<Leader>c', ':Cheat<CR>', options)
nilq/small-lua-stack
null
local addon, ns = ... local C, F, L = unpack(ns) if not F:IsLoaded() then return end local CreateFrame,GetTotemInfo,UnitExists,InCombatLockdown = CreateFrame,GetTotemInfo,UnitExists,InCombatLockdown local MAX_TOTEMS = MAX_TOTEMS local HiddenFrame = CreateFrame("Frame") HiddenFrame:Hide() local mainFrame = CreateFram...
nilq/small-lua-stack
null
local copas = require("copas") local synchttp = require("socket.http").request local asynchttp = require("copas.http").request local gettime = require("socket").gettime local targets = { "http://www.google.com", "http://www.microsoft.com", "http://www.apple.com", "http://www.facebook.com", "http://www.yahoo....
nilq/small-lua-stack
null
local lt = require 'ltest' local seri = require 'bee.serialization' local function TestEq(...) lt.assertEquals( table.pack(seri.unpack(seri.pack(...))), table.pack(...) ) lt.assertEquals( table.pack(seri.unpack(seri.packstring(...))), table.pack(...) ) end local functi...
nilq/small-lua-stack
null
-- ultra bindings local ultra = { 'ctrl', 'alt', 'cmd' } local capitalize = require('utils').capitalize local template = require('template') function isDarkModeEnabled() local _, res = hs.osascript.javascript([[ Application("System Events").appearancePreferences.darkMode() ]]) return res e...
nilq/small-lua-stack
null
addEventHandler( "onVehicleEnter", getRootElement( ), function( player ) if exports.global:hasItem( source, 84 ) then setTimer( triggerClientEvent, 1000, 1, player, "enablePoliceRadar", player ) end end )
nilq/small-lua-stack
null
local servers = require "nvim-lsp-installer.servers" local _ = require "nvim-lsp-installer.core.functional" local settings = require "nvim-lsp-installer.settings" local log = require "nvim-lsp-installer.log" ---@class LspInfoClient ---@field name string ---@field cmd string[] ---@field cmd_diagnostics {lineno: integer...
nilq/small-lua-stack
null
-- Roomba control library for NodeMCU / ESP8266 -- -- The MIT License (MIT) -- Copyright (c) 2017 Alexander Williams, Unscramble <license@unscramble.jp> -- Motors functions and constants MOTORS = { main_brush = 4, vacuum = 2, side_brush = 1, -- bits range_min = 0, range_max = 7 } -- Ensures the sel...
nilq/small-lua-stack
null
startx = 62 starty = 61 endx = 63 endy = 3 defineTile(".", "GRASS") defineTile(":", "DIRT_PATH") defineTile("~", "DEEP_WATER") defineTile("#", "WALL") defineTile("'", "DOOR_OPEN") defineTile("+", "DOOR_LOCKED") defineTile("=", "FENCE") defineTile("^", "GRAVESTONE") defineTile("|", "TREE") defineTile("<", "GRAVEYARD_E...
nilq/small-lua-stack
null
rageon_vart = Creature:new { objectName = "", customName = "Rageon Vart", socialGroup = "death_watch", faction = "", level = 178, chanceHit = 12.25, damageMin = 1020, damageMax = 1750, baseXp = 16794, baseHAM = 175000, baseHAMmax = 175000, armor = 2, resists = {75,75,90,80,45,45,100,70,-1}, meatType = "",...
nilq/small-lua-stack
null
local lang = { rank = { [0] = "Common", [1] = "Uncommon", [2] = "Rare", [3] = "Very rare", [4] = "Legendary" }, booster = { title = "TCG {1} Booster {2} Cards", description = "This booster contains {2} cards with a good probability of having a {1} card or below. There is also a slight...
nilq/small-lua-stack
null
local test = require("cp.test") local log = require("hs.logger").new("t_case") -- A simple test case, to test cp.test return test("cp.test_case", function() ok(true, "passes") end)
nilq/small-lua-stack
null
local versionNumber = "0.5" function widget:GetInfo() return { name = "SmoothCam", desc = "[v" .. string.format("%s", versionNumber ) .. "] Moves camera smoothly", author = "very_bad_soldier", date = "August, 8, 2010", license = "GNU GPL, v2 or later", layer =...
nilq/small-lua-stack
null
function learn.criterion.mse(p) function p.forward(predictions, target) p.output_tensor = predictions.copy().sub(target).pow(2.0).sum().scale(1.0 / predictions.size[1]) p.output = p.output_tensor.data[1] return p.output end function p.backward(predictions, target) p.gradInput = predictions.copy()...
nilq/small-lua-stack
null
local wibox = require("wibox") local gears = require("gears") local lain = require("lain") local awful = require("awful") local beautiful = require("beautiful") local calendar_popup_factory = require("awesome-wm-widgets.calendar-widget.calendar") local cpu_widget_factory = require("awesome-wm-widgets.cpu-widget.cpu-w...
nilq/small-lua-stack
null
local errno = require 'errno' local fio = require 'fio' local util = require 'tarantoolapp.util' local fileio = {} local S_IFREG = tonumber('0100000', 8) -- regular file local S_IFDIR = tonumber('0040000', 8) -- directory local modes = fio.c.mode local perms = bit.bor(modes.S_IRUSR, modes.S_IWUSR, ...
nilq/small-lua-stack
null
local MapExploration = { Name = "MapExplorationInfo", Type = "System", Namespace = "C_MapExplorationInfo", Functions = { { Name = "GetExploredAreaIDsAtPosition", Type = "Function", Arguments = { { Name = "uiMapID", Type = "number", Nilable = false }, { Name = "normalizedPosition", Type = "t...
nilq/small-lua-stack
null
local skynet = require "skynet" local crypt = require "skynet.crypt" local netpack = require "skynet.netpack" local cluster = require "skynet.cluster" local socket = require "skynet.socket" local websocket = require "http.websocket" local protobuf = require "protobuf" local __TEST__ = true local CMD = {} local conne...
nilq/small-lua-stack
null
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.BogeyDistance = 650 -- Needed for gm trainspawner --------------------------------------------------- -- Defined train information -- Types of wagon(for wagon limit system): -- 0 = Head or intherim -- 1 = Only head -- 2 = Only...
nilq/small-lua-stack
null
local _ENV = mkmodule('fantastic.events') onUnitSpawned=dfhack.event.new() local hiddenEventInfo={UNIT_SPAWNED={prevNumUnits=#df.global.world.units.all,ticks=50}} hiddenEventInfo.UNIT_SPAWNED.func=function() local script=require('gui.script') local info=hiddenEventInfo.UNIT_SPAWNED script.start(function() local ...
nilq/small-lua-stack
null
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] cwAreaDisplays.activeDisplays = {}; cwAreaDisplays.expiredList = Clockwork.kernel:...
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 ]] -- player_profile_property class local player_profile_property = {} local player_profile_pro...
nilq/small-lua-stack
null
-- shortcuts local la = love.audio local lg = love.graphics arc = {} local arc_path = (...):match("(.-)[^%.]+$") local _key, _, _ = unpack(require(arc_path .. 'input')) -- config arc.cfg = { msg_spd = 50, -- chars/sec. message speed msg_tanim = 0.2, -- sec. duration of message box o...
nilq/small-lua-stack
null
local BasePlugin = require "kong.plugins.base_plugin" local UpstreamOauthPlugin = BasePlugin:extend() local cache = require("kong.plugins.upstream-oauth.cache") UpstreamOauthPlugin.PRIORITY = 940 function UpstreamOauthPlugin:new() UpstreamOauthPlugin.super.new(self, "upstream-oauth") end function filter_header...
nilq/small-lua-stack
null
--[[ StateChart //////////////////////////////////////////////////////////////// Statechart library inspired by XState Example: ``` local StateChart = require 'statechart' local fetchMachine = StateChart.machine { initial = 'idle', context = { retries = 0, }, states = { idle = { ...
nilq/small-lua-stack
null
if vim.g.loaded_session then return end vim.g.loaded_session = true local fn = vim.fn local api = vim.api local session = require "dm.session" -- By default, every session we open will be saved automatically when Vim exits. -- -- If there's any need to stop *tracking* a session, we can add that -- functionality th...
nilq/small-lua-stack
null
-- LED.lua -- Copyright © 2019 Matt Morton -- 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, publ...
nilq/small-lua-stack
null
--[[ � CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] -- Called when Clockwork has loaded all of the entities. function Schema:ClockworkInitPostEntity() self:LoadRationDispensers(); self:LoadVendingMachines(); self:LoadCombineLocks(); self:LoadO...
nilq/small-lua-stack
null
local Suite = require "loop.test.Suite" return Suite{ MethodInvocation = require "oil.dtests.kernel.MethodInvocation", CallbackInvocation = require "oil.dtests.kernel.CallbackInvocation", CallbackAsyncInvocation = require "oil.dtests.kernel.CallbackAsyncInvocation", ErrorHandler = require "oil.dtests.kernel.ErrorH...
nilq/small-lua-stack
null
local M = {} local function hex (hex, alpha) local redColor,greenColor,blueColor=hex:match('(.)(..)(..)(..)') redColor, greenColor, blueColor = tonumber(redColor, 16)/255, tonumber(greenColor, 16)/255, tonumber(blueColor, 16)/255 redColor, greenColor, blueColor = math.floor(redColor*100)/100, math.floor(greenColor...
nilq/small-lua-stack
null
local light_table = { L_HeadLampPos = Vector(102.5,15.239,53), L_HeadLampAng = Angle(0,0,0), R_HeadLampPos = Vector(102.5,-15.239,53), R_HeadLampAng = Angle(0,0,0), L_RearLampPos = Vector(-95.38,17.91,51.29), L_RearLampAng = Angle(0,180,0), R_RearLampPos = Vector(-95.38,-17.91,51.29), R_RearLampAng = Angle(0...
nilq/small-lua-stack
null
include("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") local function playSequence(self, name) local seq = self:LookupSequence(name) self:ResetSequence(seq) self:SetPlaybackRate(1) self:SetSequence(seq) return self:SequenceDuration(seq) end local items = { "item_healthkit", "item_bat...
nilq/small-lua-stack
null
-- Color Sprite function createColorSprite() local color = NSColor.redColor() local size = {width=100, height=100} return SKSpriteNode.spriteNodeWithColorSize(color, size) end -- Empty Node function createEmptyNode() return SKNode.node() end -- Light function createLight() return SKLightNode.node() end -- Emitt...
nilq/small-lua-stack
null
local Food = { { food = "ITFO_BACON", hp = 15 }, { food = "ITFOMUTTONRAW", hp = 6 }, { food = "ITFOMUTTON", hp = 12 }, { food = "ITFO_SAUSAGE", hp = 12 }, { food = "ITFO_FISH", hp = 5 }, { food = "ITFO_FISHSOUP", hp = 12 }, { food = "ITFO_STEW", hp = 10 }, { food = "IFTO_XPSTEW", hp = 10 }, { food = "ITFO_CO...
nilq/small-lua-stack
null
ys = ys or {} slot1 = ys.Battle.BattleConfig slot2 = ys.Battle.BattleVariable ys.Battle.BattleCameraTween = class("BattleCameraTween") ys.Battle.BattleCameraTween.__name = "BattleCameraTween" ys.Battle.BattleCameraTween.Ctor = function (slot0) slot0._point = Vector3.zero end ys.Battle.BattleCameraTween.SetFromTo = f...
nilq/small-lua-stack
null
local input_file = "input.txt" local state = nil local rules = {} for line in io.lines( input_file ) do if string.find( line, "initial state: " ) ~= nil then state = string.gsub( line, "initial state: ", "" ) elseif string.find( line, " => " ) ~= nil then local b, e = string.find( line, " => "...
nilq/small-lua-stack
null
object_mobile_dressed_herder_f_02 = object_mobile_shared_dressed_herder_f_02:new { } ObjectTemplates:addTemplate(object_mobile_dressed_herder_f_02, "object/mobile/dressed_herder_f_02.iff")
nilq/small-lua-stack
null
local oop = require("oop") local frame_base = require("libGUI/frame") local bar_base = require("libGUI/bar") local colors = require("libGUI/colors") local reactor_load_bar = { mPercentageOptimal = nil } oop.inherit(reactor_load_bar, bar_base) function reactor_load_bar:construct() bar_base.construct(self)...
nilq/small-lua-stack
null
local _M = {} local inject = require ("bkb.lib.injection") local iputils = require("bkb.lib.resty.iputils") local utf8 = require("bkb.lib.utf8_validator") local util = require("bkb.util") local iputils = require("bkb.lib.resty.iputils") local ac = require("bkb.lib.ac") iputils.enable_lrucache() local parse_cidrs = i...
nilq/small-lua-stack
null
--[[ --Copyright (c) 2022 Bruno Sales <baliestri@icloud.com>. Licensed under the MIT license. --See the LICENSE file in the repository root for full license text. --]] local function createEditorGroup(palette, aura) return { CursorLine = { bg = palette.black }, Cursor = { fg = palette.white, bg = palette.bla...
nilq/small-lua-stack
null
AddCSLuaFile() local DbgPrint = GetLogging("Util") -- Any utility function should go in here. if SERVER then function TriggerOutputs(outputs) DbgPrint("Firing outputs") for _, out in pairs(outputs) do local entname = out[1] or "" local cmd = out[2] or "" loca...
nilq/small-lua-stack
null
local kong = kong local plugin = { PRIORITY = 5001, -- set the plugin priority, which determines plugin execution order VERSION = "0.1.0-4", } -- It runs in the 'init_worker_by_lua_block' function plugin:init_worker() -- your custom code here kong.log.debug("Loading static-response plugin") end --]] -- ru...
nilq/small-lua-stack
null
-- Written by Zeaga for Zeaga's Community, CrimePanda TTT, and Questionable Ethics -- http://steamcommunity.com/id/zeaga local adverts = { } local function NewAdvert( advert, color ) adverts[#adverts+1] = { advert, color } end local ColorSupport = Color( 255, 234, 0 ) local ColorWarning = Color( 255, 23, 68 ) local...
nilq/small-lua-stack
null
function GM:GetHL2CamPos() return { Vector( -1188, 41, 1435 ), Angle( 5, -37, 0 ) }; end function GM:GetCACamPos() return Vector( 2132, -1424, 1730 ); end function GM:GetCombineCratePos() return { Vector( 1297, 1111, 529 ), Angle() }; end function GM:GetCombineRationPos() return { Vector( 1405, 126...
nilq/small-lua-stack
null
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "ISUI/ISCollapsableWindow" ---@class ThunderDebug : ISCollapsableWindow ThunderDebug...
nilq/small-lua-stack
null
deck_zone_id = 'a0f2d7' reset_button_id = '0e20c2' debug_button_id = 'e94e7d' function onLoad() for _, obj in ipairs(getAllObjects()) do if obj.hasTag('Static') or obj.hasTag('Table') then obj.interactable = false obj.drag_selectable = false end end deck_zone = getO...
nilq/small-lua-stack
null
-- Converted From LST file data\pathfinder\paizo\roleplaying_game\core_essentials\ce_abilities_familiar_apg.lst -- From repository https://github.com/pcgen/pcgen at commit 11ceb52482855f2e5f0f6c108c3dc665b12af237 SetSource({ SourceLong="Advanced Player's Guide", SourceShort="APG", SourceWeb="http://paizo.com/stor...
nilq/small-lua-stack
null
local neogit = require('neogit') neogit.setup {}
nilq/small-lua-stack
null
--[[ Author: Jxl Description: A builder module ]] local Builder = {} do local BLOCKS_FOLDER = game.ReplicatedStorage.Blocks local remotePath = game.ReplicatedStorage.rbxts_include.node_modules.net.out:FindFirstChild('_NetManaged') or game.ReplicatedStorage.Remotes.Functions local PLACE_B...
nilq/small-lua-stack
null
-- Copyright (C) 2017-2018 by chrono local process = require "ngx.process" local str = process.type() assert(str == "worker") ngx.say("type is ", str) ngx.say("count = ", ngx.worker.count()) ngx.say("pid = ", ngx.worker.pid()) ngx.say("id = ", ngx.worker.id()) ngx.say("status = ", ngx.worker.exiting()) -- curl 127....
nilq/small-lua-stack
null
if not settings():GetFFlag("CoreScriptFasterCreate") then return function(className, defaultParent) return function(propertyList) local object = Instance.new(className) local parent = nil for index, value in next, propertyList do if typeof(index) == 'string' then if index == 'Parent' then pa...
nilq/small-lua-stack
null
--[[Author: DigitalG Date: April 29, 2021 Creates a puppet that grows in level and has 4 different skills]] kankuro_summon_karasu = class({}) LinkLuaModifier("modifier_karasu_talent_attack_speed_bonus", "heroes/kankuro/summon_karasu", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_karasu_base_mana", "heroes/k...
nilq/small-lua-stack
null
PRODUCERS = 9 CONSUMERS = 10 SIZE = 128 local thread = require("thread") local queue = require("thread.queue") local fifo = queue.newqueue(SIZE) local output = thread.newmutex() function newcount() local mutex = thread.newmutex() local value = 1 return function () mutex:lock() local v = va...
nilq/small-lua-stack
null
-- Custom Badges for the "World Auction House" Guild (NA) -- Made by @aquateen for sirinsidiator's addon "Aetherius Badge Filter" - http://www.esoui.com/downloads/info1354-AetheriusBadgeFilter.html -- Last edited: -- 05/06/2017 AetheriusBadgeFilter:RegisterGuild(AetheriusBadgeFilter.SERVER_NA, "World Auction House"...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
local Helper = require("Helper") local args = {...} local rows = 3 local lines = 10 local states = Helper.readState() local temp = { 1, 1 } if(states[1] == nil) then -- FIXME: seems to ALWAYS generate a new States.txt (which renders this useless) -- or it does not generate a new one? -- well gott...
nilq/small-lua-stack
null
local startDiag = false function onStartCountdown() if not startDiag and isStoryMode and not seenCutscene then startVideo('Quake Cutscene'); startDiag = true; return Function_Stop; end if startDiag and not seenCutscene and isStoryMode then startDialogue('dialogue', 'sly3'); seenCutscene = true; return F...
nilq/small-lua-stack
null
local info = { version = 1.002, comment = "scintilla lpeg lexer for bibtex", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files", } local global, string, table, lpeg = _G, string, table, lpeg local...
nilq/small-lua-stack
null
require 'image' require 'paths' stacks = {} stacks.path = 'stacks.t7' stacks.s3 = torch.Tensor(30,1,500,500) stacks.s5 = torch.Tensor(30,1,500,500) stacks.input = torch.Tensor(1,1,500,500) stacks.output = torch.Tensor(1,1,500,500) function stacks.load(override) override = override or false if not paths.file...
nilq/small-lua-stack
null
function count_jewels(s, j) local count = 0 for i=1,#s do local c = s:sub(i,i) if string.match(j, c) then count = count + 1 end end return count end print(count_jewels("aAAbbbb", "aA")) print(count_jewels("ZZ", "z"))
nilq/small-lua-stack
null
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Your code here local physics = require("physics") local tapCount = 5 local background = display.newImageRect("back...
nilq/small-lua-stack
null
local _L = LibStub("AceLocale-3.0"):NewLocale("HandyNotes_Argus", "esES") or LibStub("AceLocale-3.0"):NewLocale("HandyNotes_Argus", "esMX") if not _L then return end if _L then -- -- DATA -- -- -- READ THIS BEFORE YOU TRANSLATE !!! -- -- DO NOT TRANSLATE THE RARE NAMES HERE UNLESS YOU HAVE A GOOD REASON!!! -- FOR ...
nilq/small-lua-stack
null
-- Put functions in this file to use them in several other scripts. -- To get access to the functions, you need to put: -- require "my_directory.my_file" -- in any script using the functions. local M = {} M.ore = 150 M.MinerCost = 12 M.SabreCost = 35 M.SabreHealth = 10 M.SpaceStationHealth = 250 return M
nilq/small-lua-stack
null
local myadminWindow = nil function adminhelp (sourcePlayer, commandName) local sourcePlayer = getLocalPlayer() local adminLevel = getElementData(sourcePlayer, "adminlevel") if (adminLevel > 0) then if (myadminWindow == nil) then guiSetInputEnabled(true) myadminWind...
nilq/small-lua-stack
null
---@diagnostic disable: different-requires local M = {} M.bufferline = function() require("bufferline").setup { offsets = { { filetype = "NvimTree", text = "File Explorer" }, { filetype = "neo-tree", text = "Explorer" } }, } end M.fugitive = function() vim.api.nvim_create_autocmd("FileType", { pattern = "fugit...
nilq/small-lua-stack
null
return { "000_base_escher" }
nilq/small-lua-stack
null
function love.conf(t) t.console = true t.window.height = 1080 t.window.width = 1920 t.window.resizable = true end
nilq/small-lua-stack
null
local cmp_status_ok, cmp = pcall(require, "cmp") if not cmp_status_ok then return end vim.cmd [[ augroup _markdown autocmd! autocmd FileType markdown setlocal wrap autocmd FileType markdown setlocal spell augroup end ]] cmp.setup.buffer({ sources = { { name = "luasnip" }, { name = "spell" ...
nilq/small-lua-stack
null
---@class CS.FairyEditor.Component.ListItemResourceInput : CS.FairyEditor.Component.ResourceInput ---@field public toggleClickCount number ---@type CS.FairyEditor.Component.ListItemResourceInput CS.FairyEditor.Component.ListItemResourceInput = { } ---@return CS.FairyEditor.Component.ListItemResourceInput function CS.F...
nilq/small-lua-stack
null
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local unban = {} local mattata = require('mattata') local redis = require('libs.redis') function unban:init() unban.commands = mattata.commands(self.info.username):command('unb...
nilq/small-lua-stack
null
pango_ultimate = class({}) LinkLuaModifier("modifier_pango_ultimate_displacement", "abilities/heroes/pango/pango_ultimate/modifier_pango_ultimate_displacement", LUA_MODIFIER_MOTION_BOTH) LinkLuaModifier("modifier_pango_mobility_displacement_enemy", "abilities/heroes/pango/pango_ultimate/modifier_pango_mobility_displace...
nilq/small-lua-stack
null
local Request = {} Request.__index = Request function Request:new(port, client) local newObj = {} newObj.client = client newObj.port = port newObj.ip = client:getpeername() newObj.firstLine = nil newObj._method = nil newObj._path = nil newObj._params = {} newObj._headers_parsed = false newObj._head...
nilq/small-lua-stack
null
require("tests/testsuite") Cmd.InsertStringIntoParagraph("paragraph one") Cmd.ChangeParagraphStyle("LN") Cmd.SplitCurrentParagraph() Cmd.InsertStringIntoParagraph("paragraph two") Cmd.ChangeParagraphStyle("LN") Cmd.SplitCurrentParagraph() Cmd.InsertStringIntoParagraph("paragraph three") Cmd.ChangeParagraphStyle("LN") ...
nilq/small-lua-stack
null
-- ============================================================================ -- -- Level (Model) -- Throughout the game, players and accumulate Experience points (XP) -- when they perform various actions as spcified in the formula config -- These XP then contributes to the requirements of reachin...
nilq/small-lua-stack
null
local function generateTable(size) local newTable = {} for _ = 1, size do table.insert(newTable, math.random()) end return newTable end local function displayElements(table) for _, key in pairs(table) do io.write(key, " ") end end local function average(table) local sum = 0...
nilq/small-lua-stack
null
local last_known_path = nil local mp_utils = require('mp.utils') function string:split( inSplitPattern, outResults ) if not outResults then outResults = { } end local theStart = 1 local theSplitStart, theSplitEnd = string.find( self, inSplitPattern, theStart ) while theSplitStart do table.insert( out...
nilq/small-lua-stack
null
function spawn_tnt(pos, entname) minetest.sound_play("", {pos = pos,gain = 1.0,max_hear_distance = 15,}) return minetest.add_entity(pos, entname) end function activate_if_tnt(nname, np, tnt_np, tntr) if nname == "tnt:tnt" then local e = spawn_tnt(np, nname) e:setvelocity({x=(np.x - tnt_np...
nilq/small-lua-stack
null
local C = {} function C:init(unit) self.unit = unit end function C:onAppeared() self.unit.persistentOnChangeMap = true game:changeMap(1) end return newInstance(C)
nilq/small-lua-stack
null
local ts_utils = require('nvim-treesitter.ts_utils') local Table = require('orgmode.parser.table') local utils = require('orgmode.utils') local config = require('orgmode.config') local query = vim.treesitter.query ---@class TsTable ---@field node userdata ---@field data table[] ---@field tbl Table local TsTable = {} ...
nilq/small-lua-stack
null
object_tangible_npe_npe_target_crate = object_tangible_npe_shared_npe_target_crate:new { } ObjectTemplates:addTemplate(object_tangible_npe_npe_target_crate, "object/tangible/npe/npe_target_crate.iff")
nilq/small-lua-stack
null
local re = require"relabel" local lp = require"lpeglabel" local parser = require"caribay.parser" local annotator = require"caribay.annotator" local Symbol = require"caribay.Symbol" lp.locale(lp) -- adds locale entries into 'lpeglabel' table ---------------------------------------------------------------------------- -...
nilq/small-lua-stack
null
trampoline = {} trampoline.modname = minetest.get_current_modname() trampoline.modpath = minetest.get_modpath(trampoline.modname) -- Log messages specific to trampoline mod trampoline.log = function(lvl, msg) if msg == nil then msg = lvl lvl = nil end if lvl == nil then core.log(msg) else core.log(lvl, ...
nilq/small-lua-stack
null
function makeDB(path) local DB_PATH = path local self = {} function self.getDBfiles() local files = {} for file in lfs.dir(DB_PATH) do if file ~= "." and file ~= ".." then local attr = lfs.attributes(DB_PATH..file) if attr and attr.mode=="file" and file:match("%w.db") then ...
nilq/small-lua-stack
null
----GLOBALS---- local socket = require( "socket" ) function deviceIP() local client = socket.connect( "www.google.com", 80 ) local ip, port = client:getsockname() print(ip) client:close() return ip end local M = {} M.deviceIP = deviceIP() return M
nilq/small-lua-stack
null
local usage_detector = require "usage_detector" local gui_center = require "gui_center" -- Per player: -- top.usage_detector -- center.usage_detector_center frame -- list? -- header panel -- start, stop, choose item/fluid -- results table -- rows with: recipe name, amount, count, sum, machine_cou...
nilq/small-lua-stack
null
-- del_keys [pattern] return redis.call('DEL', unpack(redis.call('KEYS', KEYS[1])))
nilq/small-lua-stack
null
local api = vim.api local M = {} function M.row_range() if not M.leave() then return nil end return { first = api.nvim_buf_get_mark(0, "<")[1], last = api.nvim_buf_get_mark(0, ">")[1], } end local CTRL_V = api.nvim_replace_termcodes("<C-v>", true, false, true) local is_current = function() loca...
nilq/small-lua-stack
null
local function vehicleAction(name, value) return function() exports.dpVehicles:toggleVehicleParam(name, value) end end local function switchHandling() exports.dpVehicles:switchHandling() end local doorsLocales = { [2] = {"context_menu_vehicle_door_lf_close", "context_menu_vehicle_door_lf_open"}, [3] = {"contex...
nilq/small-lua-stack
null
local BasePlugin = require "kong.plugins.base_plugin" local kong = kong local access = require "kong.plugins.kong-opaque-jwt.access" local TokenHandler = BasePlugin:extend() TokenHandler.VERSION = "1.0.0" TokenHandler.PRIORITY = 1006 -- Set to run above all other authenticatoin plug-ins function TokenHandler:ne...
nilq/small-lua-stack
null
--- Corona binding for [FreeImage](http://freeimage.sourceforge.net): -- -- "FreeImage is an Open Source library project for developers who would like to -- support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as -- needed by today's multimedia applications. FreeImage is easy to use, fast, -- mul...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- copas_conn.lua -- This file is a part of lua-aplicado library -- Copyright (c) Lua-Aplicado authors (see file `COPYRIGHT` for the license) -------------------------------------------------------------------------------- local copas_rea...
nilq/small-lua-stack
null
--[===[DOC = differencetable [source,lua] ---- function differencetab( firstTab, secondTab ) --> differenceTab ---- It returns a table that contain the keys present in the `firstTab` table but not in the `secondTab` table. No checks are performed on the associated values. == Example [source,lua,example] ---- loca...
nilq/small-lua-stack
null
object_tangible_collection_col_tatooine_vistas_marker_04 = object_tangible_collection_shared_col_tatooine_vistas_marker_04:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_tatooine_vistas_marker_04, "object/tangible/collection/col_tatooine_vistas_marker_04.iff")
nilq/small-lua-stack
null
help([[ Module: NCEP bufrlib library for reading binary BUFR format files ]]) local pkgName = myModuleName() local pkgVersion = myModuleVersion() local pkgNameVer = myModuleFullName() local hierA = hierarchyA(pkgNameVer,1) local compNameVer = hierA[1] local compNameVerD = compNameVer:gsub("/","-") conflic...
nilq/small-lua-stack
null
-- whitelist.lua -- Implements the whitelist-related commands, console commands, API and storage --- The SQLite handle to the whitelist database: local WhitelistDB --- Global flag whether whitelist is enabled: local g_IsWhitelistEnabled = false --- Loads the config from the DB -- If any value cannot be rea...
nilq/small-lua-stack
null
lovr.joystick = require("lovr-joystick") local draw = false function lovr.draw() if draw then lovr.graphics.print(lovr.joystick.getName(0), 0, 0, -5, 0.5) end end function lovr.update() if lovr.joystick.isAvailable(0) then draw = lovr.joystick.isDown(0, "x") end end
nilq/small-lua-stack
null
-- Copyright (c) 2015 Phil Leblanc -- see LICENSE file ------------------------------------------------------------------------ -- test bin.lua local bin = require "plc.bin" local stx = bin.stohex local xts = bin.hextos ------------------------------------------------------------------------ local function test_...
nilq/small-lua-stack
null