content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
return {'jicht','jichtaanval','jichtig','jichtknobbel','jichtlijder','jichtpijn','jichtaanvallen','jichtige','jichtknobbels','jichtlijders','jichtpijnen'}
nilq/small-lua-stack
null
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -- -- ───────────────────────────────────────────────── -- -- Plugin: nvim-treesitter -- Github: github.com/nvim-treesitter/nvim-treesitter -- ───────────────────────────────────────────────── -- -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -- -- ━━...
nilq/small-lua-stack
null
-- Since there are two i2c on esp32, I setup one i2c as master and the other one as slave, and read/write them on the esp32 -- slave : -- GPIO25 is assigned as the data signal of i2c slave port -- GPIO26 is assigned as the clock signal of i2c slave port -- master: -- GPIO18 is assigned as the data signal of i2c ma...
nilq/small-lua-stack
null
---create an instance of RunAfter (so tests are independent of each other) ---@return RunAfter local function makeRunAfter() ---@class RunAfter local RunAfter = {} local private = {} if EXPOSE_PRIVATE_FOR_TESTING then RunAfter.private = private end --#region type definitions ---@class Options ---...
nilq/small-lua-stack
null
-- settings_gui.lua -- -- Version 0.1 -- -- Copyright (C) 2013 David I. Gross. All Rights Reserved. -- -- This software is is protected by the author's copyright, and may not be used, copied, -- modified, merged, published, distributed, sublicensed, and/or sold, without -- written permission of the author. -- ...
nilq/small-lua-stack
null
local playsession = { {"Knugn", {503955}}, {"EPO666", {218193}}, {"wekkka", {482881}}, {"Dammpi", {501429}}, {"untouchablez", {437330}}, {"NikolaB131", {495661}}, {"MovingMike", {486455}}, {"vvictor", {142548}}, {"Croustibax", {153755}}, {"Mrho", {1138}}, {"elvaleto", {446741}}, {"Thymey", {257809}}, {"Sex...
nilq/small-lua-stack
null
-- Basic Movement Training -- Teaches the basic movement controls. --[[ Lessons: * How to show the mission panel again * Walking * Collecting crates * Health basics * Jumping * Fall damage * Walking and staying on ice * Switching hedgehogs * Bouncing on rubber ]] HedgewarsScriptLoad("/Scripts/Locale.lua") HedgewarsSc...
nilq/small-lua-stack
null
local util = require("__bztitanium__.data-util"); if mods["modmashsplinter"] then if mods["modmashsplinterresources"] then util.remove_raw("recipe", "titanium-extraction-process") data.raw.recipe["alien-enrichment-process-to-titanium-ore"].icons = { { icon = "__modmashsplinterresources__/graphics/icon...
nilq/small-lua-stack
null
--- High-level database class. -- -- Contains all of the high-level methods to manage databases. This module -- should be used instead of the core modules when possible. -- -- See the @{database.lua} example for more detail. -- -- @classmod luchia.database -- @author Chad Phillips -- @copyright 2011-2015 Chad Phillips ...
nilq/small-lua-stack
null
local new_player = require("player") local new_obstacle_handler = require("obstacle_handler") local collision = require("collision") function new() local player_list = {} local obstacle_handler = new_obstacle_handler() local function get_player(player_id) for _, player in ipairs(player_list) do if(player...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: RJ -- Date: 03/02/14 -- Time: 09:28 -- To change this template use File | Settings | File Templates. -- require "ISUI/ISCollapsableWindow" require "ISUI/ISRichTextPanel" require "ISUI/ISButton" require "ISUI/ISTabPanel" ---@class ISChat : ISCollapsableWindow ISChat = ISCollaps...
nilq/small-lua-stack
null
--[[ helpers for the cbox_grind module (see appropriate lua file). ]] local i = {} -- reference implementation of mkcube which just assigns the result into a table. local mkcube_collect = function(sxmin, symin, szmin, sxmax, symax, szmax) local r = {} r.xmin = sxmin r.ymin = symin r.zmin = szmin r.xmax = sxmax...
nilq/small-lua-stack
null
--- The idle node inherits from the @{action} base node class and plays a configurable animation for a specified -- amount of time. It succeeds when the duration time has elapsed. -- @action idle local action = behaviors.action local idle = behaviors.class("idle", action) behaviors.idle = idle --- Configuration table...
nilq/small-lua-stack
null
local M = {} local Result = {} Result.__index = Result function Result.new() local tbl = {lines = {}, declaration = {params = {}, param_lines = {}, has_variadic = false}} return setmetatable(tbl, Result) end local function merge(origin, result) for key, value in pairs(result) do local v = origin[key] i...
nilq/small-lua-stack
null
local helpers = require "spec.helpers" local cjson = require "cjson" for _, strategy in helpers.each_strategy() do describe("plugin: cluster-redirect (access) [#" .. strategy .. "]", function() local db, bp, dao local client -- Admin API REST interface local function api_send(method, path, body, for...
nilq/small-lua-stack
null
-- HYDRO_TURBINE -- Water turbine: -- Active if flowing >water< above it -- (does not work with other liquids) minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", { drawtype = "nodebox", tiles = {"jeija_hydro_turbine_off.png"}, groups = {dig_immediate=2}, description="Water Turbine", paramtype =...
nilq/small-lua-stack
null
local M = {} function M.attach(bufnr, lang) -- TODO: Fill this with what you need to do when attaching to a buffer end function M.detach(bufnr) -- TODO: Fill this with what you need to do when detaching from a buffer end return M
nilq/small-lua-stack
null
---@class CS.FairyEditor.FullSearch ---@field public result CS.System.Collections.Generic.List_CS.FairyEditor.FPackageItem ---@type CS.FairyEditor.FullSearch CS.FairyEditor.FullSearch = { } ---@return CS.FairyEditor.FullSearch function CS.FairyEditor.FullSearch.New() end ---@param strName string ---@param strTypes str...
nilq/small-lua-stack
null
--[[ Bagnon Void Storage Localization: Russian --]] local L = LibStub('AceLocale-3.0'):NewLocale('Bagnon-VoidStorage', 'ruRU') if not L then return end L.ConfirmTransfer = 'Вклад этих предметов удалит все изменения и сделает их не продаваемыми и не возвращаемыми.|n|nПродолжить?' L.PurchaseDialog = 'Вы хотите разбл...
nilq/small-lua-stack
null
Harmony.ui.styles = {} -- Eleusis: ForestGreen -- Cyrene: dodger_blue -- Mhaldor: firebrick -- Ashtan: blue_violet -- Hashan: a_darkmagenta -- Targossas: gold Harmony.ui.styles.blackConsole = [[ background-color: #000000; ]] Harmony.ui.styles.buttonActive = [[ background-color: #00654b; border-left: 1px ...
nilq/small-lua-stack
null
--[[ This file is to deal with the code to generate the lockout table/vector and to handle the refresh of data and deletion of stale data --]] local addonName, _ = ...; -- libraries local addon = LibStub( "AceAddon-3.0" ):NewAddon( addonName, "AceConsole-3.0", "AceEvent-3.0", "AceBucket-3.0" ); local L = L...
nilq/small-lua-stack
null
require('hop').setup() vim.api.nvim_set_keymap('n', 'ss', "<cmd>:HopWord<cr>", {}) vim.api.nvim_set_keymap('n', 'sc', "<cmd>:HopChar1<cr>", {}) vim.api.nvim_set_keymap('n', 'sw', "<cmd>:HopChar2<cr>", {})
nilq/small-lua-stack
null
local json = require("cjson") local bit = require("bit") local exception = require("core.exception") local Util = { table = require("core.util.table"), string = require("core.util.string"), } function Util:isNull(value) return not value or (value == null) or (value == ngx.null) end --- 值是否为表 -- -- @param...
nilq/small-lua-stack
null
function start (song) end function update (elapsed) end function beatHit (beat) end function stepHit (beat) end function keyPressed (key) FlxG.camera.shake(0.05, 0.05); end
nilq/small-lua-stack
null
--[[ Replaces Code nodes with attrs that would be produced by rST reader from the role syntax by a Str AST node containing {role}, followed by a Code node. This is to emulate MyST syntax in Pandoc. (MyST is a CommonMark flavour with rST features mixed in.) Reference: https://myst-parser.readthedocs.io/en/latest/synta...
nilq/small-lua-stack
null
-- indent.lua function edGetIndent() local indent = 0 local pos = getEditorLineStart() while edGetAt(pos) == " " do indent = indent + 1 pos = pos + 1 end return indent end function edGetIndent() local indent = 0 local pos = getEditorLineStart() while (function () local c = edGetAt(p...
nilq/small-lua-stack
null
Config = {} Config.Locale = 'en' -- check in locales folder for all avaiable languages Config.debugMode = false -- print a lot of stuff in console for internal test Config.showMutedOnScreen = true -- render an small text on screen that shows player they are muted Config.disableTalkKeyForMutedPlayers = true ...
nilq/small-lua-stack
null
local a,b,c,d,e; d=b
nilq/small-lua-stack
null
local DynamicMusic = Class(function(self, inst) self.inst = inst self.inst:StartUpdatingComponent(self) self.enabled = true self.is_busy = false self.busy_timeout = 0 self.playing_danger = false self.season = GetSeasonManager() and GetSeasonManager().current_season or SEASONS.AUTU...
nilq/small-lua-stack
null
----------------------------------------------- -- torchItem.lua -- The code for the torch, when it is in the player's inventory. -- Created by NimbusBP1729 ----------------------------------------------- return{ name = 'torch', description = 'Torch', type = 'weapon', subtype = 'melee', damage = '2', speci...
nilq/small-lua-stack
null
function main() m.log(9, "echo 123"); return "Lua script matched."; end
nilq/small-lua-stack
null
local awful = require 'awful' screen.connect_signal('request::desktop_decoration', function(s) awful.tag({'1', '2', '3', '4', '5'}, s, awful.layout.layouts[1]) end)
nilq/small-lua-stack
null
object_draft_schematic_furniture_furniture_tapestry_pole = object_draft_schematic_furniture_shared_furniture_tapestry_pole:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_tapestry_pole, "object/draft_schematic/furniture/furniture_tapestry_pole.iff")
nilq/small-lua-stack
null
function onCreate() makeLuaSprite('cave','cave',-750,-430) addLuaSprite('cave',false) setLuaSpriteScrollFactor('cave', 0.9, 0.9); end
nilq/small-lua-stack
null
function SetPlayerPos(amx, player, x, y, z) setElementPosition(player, x, y, z) end GetPlayerPos = GetObjectPos function SetPlayerFacingAngle(amx, player, angle) setPedRotation(player, angle) end function GetPlayerFacingAngle(amx, player, refRot) writeMemFloat(amx, refRot, getPedRotation(player)) end function IsPlay...
nilq/small-lua-stack
null
--[[ Desc: Input component Author: SerDing Since: 2018-04-06 16:11:06 Last Modified time: 2018-04-06 16:11:06 Docs: * Receive and cache input messages for entity, implement input handler interface. * When you create an instance for a entity, it will register itself to the input module of engine....
nilq/small-lua-stack
null
equip_exam = {} equip_exam.name = core.get_current_modname() equip_exam.path = core.get_modpath(equip_exam.name) local files = { "formspec", "node", "crafting", } for _, f in pairs(files) do dofile(equip_exam.path .. "/" .. f .. ".lua") end
nilq/small-lua-stack
null
local pkgObj = {} local function push(list,value) local node = {next=nil,value=value} if list.head == nil then list.head = node list.tail = node else list.tail.next = node list.tail = node end list.len = list.len + 1 end local function pop(list) local ret=nil ...
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) local Module = K:GetModule("ActionBar") local _G = _G local math_min = _G.math.min local math_ceil = _G.math.ceil local table_insert = _G.table.insert local FilterConfig = C.ActionBars.actionBarCustom local padding, margin = 0, 6 local prevPage = 8 local function ChangeActionPa...
nilq/small-lua-stack
null
local commands = bot.commands local fw = "𝑨 𝑩 𝑪 𝑫 𝑬 𝑭 𝑮 𝑯 𝑰 𝑱 𝑲 𝑳 𝑴 𝑵 𝑶 𝑷 𝑸 𝑹 𝑺 𝑻 𝑼 𝑽 𝑾 𝑿 𝒀 𝒁" local charMap = {} for i, c in next, fw:split(" ") do charMap[64 + i] = { string.byte(c, 1, 9) } end commands.stand = { callback = function(msg, line) local str = "『 " .. line .. " 』" -- pr...
nilq/small-lua-stack
null
--[[ Example Service This is an example to demonstrate how to use the BaseService class to implement a game service. **NOTE:** After declaring you service, you have to include your package inside the main.lua file! ]]-- require 'common' require 'services.baseservice' --Declare class DebugTools lo...
nilq/small-lua-stack
null
if json4lua == nil then json4lua = {} end if json4lua.internal == nil then json4lua.internal = {} end if json4lua.config == nil then json4lua.config = {} end -- [[ Default Configuration ]] -- json4lua.config.ignore_unsupported_datatypes = true; json4lua.config.ignore_nonstring_keys = true; json4lua.config.ignore_nonta...
nilq/small-lua-stack
null
-- ======== -- DEFAULTS -- ======== -- Created by datwaft <github.com/datwaft> -- ======== -- Preamble -- ======== local M = {} local fusion = require("bubbly.utils.table").fusion -- ======= -- Palette -- ======= M.palette = { background = "Black", foreground = "White", black = "Black", red = "Red", green = ...
nilq/small-lua-stack
null
local class = require 'middleclass' local lume = require 'lume' local Timer = require 'Timer' -- エイリアス local lg = love.graphics -- 基底クラス local Entity = require 'Entity' -- インゲーム クラス local InGame = class('InGame', Entity) InGame:include(require 'stateful') -- クラス local EntityManager = require 'EntityManager' local ...
nilq/small-lua-stack
null
--[[ audioJack.lua Copyright (C) 2016 Kano Computing Ltd. License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2 This is the dialogue you can have with Mr Info in Overworld on the Beach. ]]-- return { type = "repeat", dialogues = { --- 1) Welcome dialogue ---------------------------------------...
nilq/small-lua-stack
null
hkArmyScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "hkArmyScreenPlay", } registerScreenPlay("hkArmyScreenPlay", true) function hkArmyScreenPlay:start() if (isZoneEnabled("mustafar")) then self:spawnMobiles() end end function hkArmyScreenPlay:spawnMobiles() --[[ spawnMobile("mustafar", ...
nilq/small-lua-stack
null
object_tangible_furniture_decorative_carved_bowl = object_tangible_furniture_decorative_shared_carved_bowl:new { } ObjectTemplates:addTemplate(object_tangible_furniture_decorative_carved_bowl, "object/tangible/furniture/decorative/carved_bowl.iff")
nilq/small-lua-stack
null
return {{[1] = [[2.0]],[2] = [[2.0.1]],[3] = [[2.0.2]],[4] = [[2.0.3]],[5] = [[2.0.4]],[6] = [[2.0.5]], [7] = [[2.0.6]], [8] = [[2.0.7]], [9] = [[2.0.8]], [10] = [[2.0.9]], [11] = [[2.0.10]], [12] = [[2.0.11]], [13] = [[2.0.12]], [14] = [[2.0.13]], [15] = [[2.0.14]], [16] = [[2.0.15]], [17] = [[2.0.16]]}, }
nilq/small-lua-stack
null
return {--[[ #PVF_File ]] ["[player number]"]={2,8}, ["[pvp start area]"]={0,0,0,0,0,0,0,0,0,0,0,0}, ["[dungeon]"]={3,}, ["[type]"]="[normal]", ["[greed]"]="DD BB", ["[tile]"]={"Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOverUnder.til","Tile/ForestUnder.til","Tile/ForestUnd...
nilq/small-lua-stack
null
local class = require("pl.class") ---@class Party local M = class() local tablex = require("pl.tablex") function M:_init(leader) self.invited = {} self.leader = leader self.members = {} self.members[leader] = true end function M:delete(member) self.members[member] = nil member.party = nil end funct...
nilq/small-lua-stack
null
require('spec/setup/busted')() local Color = require('stdlib/utils/color') describe('Color', function () local say = require('say') local WHITE = {r = 1, g = 1, b = 1, a = 1} local WHITE_HALF = {r = 1, g = 1, b = 1, a = 0.5} local BLACK = {r = 0, g = 0, b = 0, a = 1} local BLACK_HALF = {r = 0, g ...
nilq/small-lua-stack
null
local entity = {} entity["level"] = [[42]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Mabufula]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Marakukaja]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] = [[Ice]...
nilq/small-lua-stack
null
-- -- c_main.lua -- objectPreview = {} objectPreview_mt = { __index = objectPreview } local isMRTShaderSupported = nil local glRenderTarget = nil refOPTable = {} local scx, scy = guiGetScreenSize () local fov = ({getCameraMatrix()})[8] function objectPreview:create(element,rotX,rotY,rotZ,projPosX,projPosY,projSize...
nilq/small-lua-stack
null
ancientigguardian = Creature:new { customName = "Ancient IG-88 Guardian", socialGroup = "mercenary", faction = "", level = 300, chanceHit = 25.00, damageMin = 300, damageMax = 400, baseXp = 500000, baseHAM = 500000, baseHAMmax = 510000, armor = 0, resists = {80,80,80,80,80,80,80,80,80}, meatType = "", mea...
nilq/small-lua-stack
null
RegisterServerEvent('keys:send') AddEventHandler('keys:send', function(player, data) TriggerClientEvent('keys:received', player, data) end) RegisterServerEvent('enteredMyVehicle') AddEventHandler('enteredMyVehicle', function(plate) local source = tonumber(source) local user = exports["npc-core"]:getModule("Pla...
nilq/small-lua-stack
null
-- Copyright 2021 Sonu Kumar -- -- 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 -- -- https://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agr...
nilq/small-lua-stack
null
trans = nil local timer = 0.2 function Constructor() trans = owner:GetLayer():GetObject("pig"):GetComponent("Transform") end function OnUpdate(dt) p = trans:GetWorldPosition() p = p + trans:RightVector()*dt*40 if(timer < 0) then timer = 0.2 s = trans:GetWorldRotation() s.y = s:y()+7...
nilq/small-lua-stack
null
--local minetest.colorize saves time Colorize = minetest.colorize --Making the priv minetest.register_privilege("wings_god", { description = "Can change the wings settings of players", give_to_singleplayer = true }) --Command to add fly privs player! minetest.register_chatcommand("wings_effect", { d...
nilq/small-lua-stack
null
SRL={{["Angles"]=Angle(0,175.56608581543,0),["Position"]=Vector(1511.0524902344,-364.5080871582,64.03125),["Class"]="info_player_start"},{["Angles"]=Angle(0,175.56608581543,0),["Position"]=Vector(1707.3967285156,-379.73303222656,64.03125),["Class"]="info_player_start"},{["Angles"]=Angle(0,175.56608581543,0),["Position"...
nilq/small-lua-stack
null
SceneManager = require("SceneManager") BattleScene_Normal = {} BattleScene_Normal.name = "BattleScene_Normal" local _window_width, _window_height = GetWindowSize() local _FONT_HP_ = nil local _FONT_TIP_ = nil local _COLOR_CLEAR_ = {r = 0, g = 0, b = 0, a = 75} local _COLORLIST_ENEMY_ = { {r = 162, g = 215, b =...
nilq/small-lua-stack
null
print("how Deep") nDeeep=io.read() nDeeep=tonumber(nDeeep) <<<<<<< HEAD print("I'm digging a mine") ======= print("me mine get cookeis") >>>>>>> caf03f92df0c0114aa2733b6bedea25c7e720858 for j=1,20 do for i=1,nDeeep do turtle.digDown() turtle.down() end for i=1,nDeeep do turtle.up() end turtle.forward() end
nilq/small-lua-stack
null
local CurrentVersion = '2.0.0' local GithubResourceName = 'RadarWhileDriving' PerformHttpRequest('https://raw.githubusercontent.com/Flatracer/FiveM_Resources/master/' .. GithubResourceName .. '/VERSION', function(Error, NewestVersion, Header) PerformHttpRequest('https://raw.githubusercontent.com/Flatracer/FiveM_Resou...
nilq/small-lua-stack
null
-- Copyright (c) 2018 Phil Leblanc -- see LICENSE file ------------------------------------------------------------------------ --[[ test plterm - Pure Lua ANSI Terminal functions - unix only ]] -- some local definitions local strf = string.format local byte, char, rep = string.byte, string.char, string.rep l...
nilq/small-lua-stack
null
local vim = vim local api = vim.api local globals = require 'vimwiki_server/globals' local g = require 'vimwiki_server/lib/graphql' local u = require 'vimwiki_server/lib/utils' local M = {} -- Synchronous function to select an element under cursor function M.an_element() local bridge = globals.bridge local tmp =...
nilq/small-lua-stack
null
--[[-------------------------------------------------------- -- Database Schema - A SQL Table Schema Tool for Lua -- -- Copyright (c) 2014-2015 TsT worldmaster.fr -- --]]-------------------------------------------------------- ------------------------------------------------------------------------------ -- hoPairs ...
nilq/small-lua-stack
null
local update = false local t = Def.ActorFrame{ InitCommand = function(self) self:xy(0,-100):diffusealpha(0):visible(false) end; BeginCommand = function(self) self:queuecommand("Set") end; OffCommand = function(self) self:finishtweening() self:bouncy(0.3) self:xy(0,-100):diffusealpha(0) end; OnCommand = function(sel...
nilq/small-lua-stack
null
local GameConstants = require("game/GameConstants") local menu = require("game/MainMenu") local Level = require("game/Level") local LevelSelect = require("game/LevelSelect") local GameEnd = require("game/GameEnd") local StateManager = {currentState = nil, _state = GameConstants.State.MENU} function StateManager.init(...
nilq/small-lua-stack
null
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component gradient...") disp:setColor(0, 0, 255, 0) disp:setColor(1, 255, 0, 0) disp:setColor(2, 255, 0, 255) disp:setColor(3, 0, 255, 255) disp:drawG...
nilq/small-lua-stack
null
-- API.lua -- Implements the functions that are considered "External API" callable by other plugins --- Locks an area specified by the coords -- Returns true on success, false and error ID and error message on failure -- a_LockedByName is the name of the player locking the area (for information purposes only) fu...
nilq/small-lua-stack
null
object_tangible_furniture_all_frn_all_data_terminal_wall_s1 = object_tangible_furniture_all_shared_frn_all_data_terminal_wall_s1:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_data_terminal_wall_s1, "object/tangible/furniture/all/frn_all_data_terminal_wall_s1.iff")
nilq/small-lua-stack
null
--local null_ls = require("null-ls") -- register any number of sources simultaneously --local sources = { -- --null_ls.builtins.formatting.prettier, -- --null_ls.builtins.diagnostics.write_good, -- --null_ls.builtins.code_actions.gitsigns, -- null_ls.builtins.diagnostics.vale.with({ -- filetypes = { "...
nilq/small-lua-stack
null
return { install_script = [[ wget -O vscode.tar.gz https://update.code.visualstudio.com/latest/linux-x64/stable rm -rf vscode mkdir vscode tar -xzf vscode.tar.gz -C vscode --strip-components 1 rm vscode.tar.gz rm -rf vscode-html mkdir vscode-html cp -r vscode/resources/app/extensions/node_modules vsc...
nilq/small-lua-stack
null
-- copy from https://github.com/ejoy/avalon/blob/master/lualib/staticfile.lua local conf = require "conf" local io = io local root = conf.static_path local cache = setmetatable({}, { __mode = "kv" }) local function cachefile(_, filename) local v = cache[filename] if v then return v[1] end loc...
nilq/small-lua-stack
null
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ # Heka JSON Message Decoder Module https://wiki.mozilla.org/Firefox/Services/Logging The above link describes t...
nilq/small-lua-stack
null
-- vim: ft=lua ts=2 return { area = true, base = true, br = true, col = true, command = true, embed = true, hr = true, img = true, input = true, keygen = true, link = true, meta = true, param = true, source = true, track = true, wbr = true }
nilq/small-lua-stack
null
module(..., package.seeall) local tinsert, tremove = table.insert, table.remove local format = string.format local db = BAMBOO_DB ------------------------public ------------ local function getClassName(self) return self.__name end -- return the key of some string like 'User:__index' -- local function getIndexKey(sel...
nilq/small-lua-stack
null
-- simulate flux hs.location.start() hs.timer.doAfter(1, function() loc = hs.location.get() hs.location.stop() -- NY time -- local times = {sunrise = "07:00", sunset = "20:00"} -- UTC + NY time local times = {sunrise = "14:00", sunset = "03:00"} -- UTC + SF time -- local times = {sunrise = "11:00", s...
nilq/small-lua-stack
null
-- Easy installer. Bootstrapped by http://pastebin.com/p8PJVxC4 local repo, tree = select(1,...) if not tree then -- assume tree as the preferred argument. tree = repo or 'master' end if not repo then repo = 'eric-wieser/computercraft-github' end local REPO_BASE = ('https://raw.githubusercontent.com/%s/%s/'):forma...
nilq/small-lua-stack
null
--New object_static_installation_shared_mockup_clothing_factory_style_1 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/installation/shared_mockup_clothing_factory_style_1.iff" } ObjectTemplates:addClientTemplate(object_static_installation_shared_mockup_clothing_factory_style_1, "object/stat...
nilq/small-lua-stack
null
local Players = game:GetService("Players") local CorePackages = game:GetService("CorePackages") local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies) local Roact = InGameMenuDependencies.Roact local t = InGameMenuDependencies.t local InGameMenu = script.Parent.Parent local Promise = require(InG...
nilq/small-lua-stack
null
--------------------------------------------------------------------- -- SF Compiler. -- Compiles code into an uninitialized Instance. --------------------------------------------------------------------- SF.Compiler = {} --- Preprocesses and Compiles code and returns an Instance -- @param code Either a string of cod...
nilq/small-lua-stack
null
--[[ Enumerated state of the purchase prompt ]] local createEnum = require(script.Parent.createEnum) local PromptState = createEnum("PromptState", { "None", "PremiumUpsell", "RobuxUpsell", "PromptPurchase", "PurchaseInProgress", "UpsellInProgress", "AdultConfirmation", "U13PaymentModal", "U13MonthlyThreshold...
nilq/small-lua-stack
null
-- Copyright (c) 2021 榆柳松 -- https://github.com/wzhengsen/LuaOOP -- 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, co...
nilq/small-lua-stack
null
assert = _G.assert collectgarbage = _G.collectgarbage dofile = _G.dofile error = _G.error getfenv = _G.getfenv getmetatable = _G.getmetatable ipairs = _G.ipairs load = _G.load loadfile = _G.loadfile loadstring = _G.loadstring next = _G.next pairs = _G.pairs pcall = _G.pcall print = _G.print rawe...
nilq/small-lua-stack
null
data:extend({ { type = "recipe", name = "ground-telescope", category = "satellite-crafting", enabled = false, ingredients = { {"steel-plate", 2000}, {"concrete", 1000}, {"pipe", 1000}, {"processing-unit", 500}, {"elec...
nilq/small-lua-stack
null
hook.Add( "PopulateEntities", "AddEntityContent", function( pnlContent, tree, node ) local Categorised = {} -- Add this list into the tormoil local SpawnableEntities = list.Get( "SpawnableEntities" ) if ( SpawnableEntities ) then for k, v in pairs( SpawnableEntities ) do v.Category = v.Catego...
nilq/small-lua-stack
null
local Ans = select(2, ...); local TUJDB = Ans.Database.TUJ; local TSMDB = Ans.Database.TSM; local Sources = Ans.Sources; local Utils = Ans.Utils; local Data = Ans.Data; local Filter = Ans.Filter; local AHTabs = {}; local AHTabIndexToTab = {}; AnsCore = {}; AnsCore.__index = AnsCore; Ans.Filters = {}; AnsCore.A...
nilq/small-lua-stack
null
-- Grab all of the functions and classes from our GUI library local info = debug.getinfo(1,'S'); script_path = info.source:match[[^@?(.*[\/])[^\/]-$]] GUI = dofile(script_path .. "ultraschall_gui_lib.lua") gfx_path=script_path.."/Ultraschall_Gfx/ColorPicker/" -- All functions in the GUI library are now contained in th...
nilq/small-lua-stack
null
data:extend({ { type = "bool-setting", name = "autocolor_on", setting_type = "runtime-per-user", default_value = false, order = "a" }, { type = "double-setting", name = "autocolor_r", setting_type = "runtime-per-user", minimum_value = 0...
nilq/small-lua-stack
null
gfx.initialize = function() gfx.create_context({alpha = true}) gfx.clear_color(0.0, 0.0, 0.0, 1.0) vertices = gfx.array.new(gfx.FLOAT, 0.0, 0.5, 0.0, -0.5, -0.5, 0.0, 0.5, -0.5, 0.0) vertexPosObject = gfx.gen_buffers(1) gfx.bind_buffer(gfx.ARRAY_BUFFER, vertexPosOb...
nilq/small-lua-stack
null
-- AICharacter: TankClose -------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2001-2004. -------------------------------------------------------------------------- -- $Id$ -- $DateTime$ -- Description: Character SCRIPT for Tank -- -----...
nilq/small-lua-stack
null
------------------------------------------- ------------ Global Permissions ----------- ------------------------------------------- -- sh_permissions.lua SHARED -- -- -- -- Set up permissions for multiple Gmod -- -- moderation systems. -- ------------...
nilq/small-lua-stack
null
--[=[ Utility functions involving field of view. @class FieldOfViewUtility ]=] local ReplicatedStorage = game:GetService("ReplicatedStorage") local Math = require(ReplicatedStorage.Knit.Util.Additions.Math.Math) local FieldOfViewUtility = {} --[=[ Converts field of view to height @param fov number @return numbe...
nilq/small-lua-stack
null
--- -- usage.lua -- Usage and uses -- -- Example -- ------- -- -- usage "vendor" -- defines "USING_VENDOR" -- includedirs "include/vendor" -- links "lib/vendor" -- -- project "core" -- kind "SharedLib" -- uses "vendor" -- uses "core" -- -- usage "core" -- links "openssh" -- includedirs "include/core" --...
nilq/small-lua-stack
null
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA local SERVICE = {} SERVICE.Name = "DLive" SERVICE.NeedsCodecs = true function SERVICE:GetKey(url) if url.host and string.match(url.host, "dlive.tv") and string.match(url.path, "^/([%w_]+)[/]?$") then ret...
nilq/small-lua-stack
null
local Container = {} Container.__VERSION = "Container 2.0" Container.__AUTHOR = "lettuce-magician" local mt = { __index = Container, __metatable = false } local _cst = {} local function iter_table(tbl, Index) if type(Index) ~= "number" then Index = 0 end Index = Index + 1 local Value = tbl[Index]...
nilq/small-lua-stack
null
-- load the base plugin object and create a subclass local plugin = require("kong.plugins.base_plugin"):extend() -- local debug = require "kong.plugins.newrelic-insights.debug" local http = require "resty.http" local JSON = require "kong.plugins.newrelic-insights.json" local basic_serializer = require "kong.plugins.lo...
nilq/small-lua-stack
null
local M = {} local excludeDirsFunc = function(opts) local excludeDirs = {} local dir = "" repeat dir = vim.fn.input("Exclude Dir (be sure to add trailing '/') > ", "", "file") if dir ~= nil and dir ~= "" then table.insert(excludeDirs, "--glob=!" .. dir) end until dir == "" for index, dire...
nilq/small-lua-stack
null
local turretUtils = {} require "util" local function foreach(table_, fun_) for k, tab in pairs(table_) do fun_(tab) end return table_ end local indicator_pictures = { north = { filename = "__base__/graphics/entity/flamethrower-turret/flamethrower-turret-led-indicato...
nilq/small-lua-stack
null
-- s-300v 9s32 tr GT = {}; GT_t.ws = 0; set_recursive_metatable(GT, GT_t.generic_stationary); set_recursive_metatable(GT.chassis, GT_t.CH_t.STATIC); GT.chassis.life = 4; GT.visual.shape = "9s32"; GT.visual.shape_dstr = "9s32_d"; GT.visual.fire_pos[2] = 1; GT.snd.radarRotation = "RadarRotation"; GT.sensor = {}; GT.s...
nilq/small-lua-stack
null