content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local list = {'.'} --'app', 'lib', 'tests', 'util', 'importacoes', 'api'} for _, dir in ipairs(list) do local list = os.glob(dir, '\\.txt$', true) for fileName in list:each() do print(fileName) local buffer = os.read(fileName) local buffer = buffer:replace('charon', 'arken') local buffer = buffer...
nilq/small-lua-stack
null
module("shadows.Object", package.seeall) Object = {} Object.__index = Object Object.__type = "Object" function Object:typeOf(Name) local Metatable = getmetatable(self) while Metatable do if Metatable.__type == Name then return true end Metatable = getmetatable(Metatable) end return...
nilq/small-lua-stack
null
---@diagnostic disable: trailing-space local milky = require "milky" milky.render_rectangles = false function love.load() love.window.setMode(800, 600) grid_size = 10 -- data structs init -- DEFINES CHANCE_FOR_A_POTION_TO_SPOIL = 0.0001 -- flags map_build_flag = {} -- lists ...
nilq/small-lua-stack
null
-- This file is under copyright, and is bound to the agreement stated in the EULA. -- Any 3rd party content has been used as either public domain or with permission. -- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved. --ENUMS FOR ARC BANKING SYSTEM! --137164355 ARCPhone = ARCPhone or {} function ARCPh...
nilq/small-lua-stack
null
-- wifi_ap local wifiAp = {} local wifi_ap_cfg ={} wifi_ap_cfg.ssid = "IoT_Button" wifi_ap_cfg.pwd = "iotbutton" function wifiAp.Start(callback) print("wifi ap start"..wifi_ap_cfg) wifi.setmode(wifi.SOFTAP) tmr.alarm(0, 1000, 0, function() wifi.ap.config(wifi_ap_cfg) end) end return wifiAp
nilq/small-lua-stack
null
-- Copyright (C) 2018 David Capello -- -- This file is released under the terms of the MIT license. -- Read LICENSE.txt for more information. assert(ColorMode.RGB == 0) assert(ColorMode.GRAYSCALE == 1) assert(ColorMode.INDEXED == 2)
nilq/small-lua-stack
null
DS = {} DS.Config = {} -- Be sure to restart the server changing any of these -- Is the addon enabled? DS.Enabled = true -- Override Gamemodes? (Recommended = true!) -- Known Gamemodes with compatability issues are: -- Trouble in terrorist town -- Zombie Survival -- Flood DS.OverrideGamemodes = true ...
nilq/small-lua-stack
null
local lines = 10 -- number of scores to display local frameWidth = capWideScale(160, 260) local framex = SCREEN_WIDTH-frameWidth-WideScale(get43size(40),40)/2 local framey = 110 local spacing = 34 local steps = GAMESTATE:GetCurrentSteps() --Input event for mouse clicks local function input(event) local scoreBoard = S...
nilq/small-lua-stack
null
--アマゾネス女帝王 -- --Script by Trishula9 function c100427034.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFun2(c,c100427034.matfilter,aux.FilterBoolFunction(Card.IsFusionSetCard,0x4),true) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFEC...
nilq/small-lua-stack
null
local state = {} local util = require "util" function state.new() return setmetatable({}, {__index = state}) end function state:contains(other) for k,v in pairs(other) do if type(v) == "boolean" then if not self[k] == v then return false end elseif type(v) == "number" then if ma...
nilq/small-lua-stack
null
--------------------------------------------------------------------------- -- do as much setup work as possible in another file to keep default.lua -- from becoming overly cluttered local setup = LoadActor("./Setup.lua") if setup == nil then return LoadActor(THEME:GetPathB("ScreenSelectMusicCasual", "overlay/NoVali...
nilq/small-lua-stack
null
local galactic_hq_0 = DoorSlot("galactic_hq","0") local galactic_hq_0_hub = DoorSlotHub("galactic_hq","0",galactic_hq_0) galactic_hq_0:setHubIcon(galactic_hq_0_hub) local galactic_hq_1 = DoorSlot("galactic_hq","1") local galactic_hq_1_hub = DoorSlotHub("galactic_hq","1",galactic_hq_1) galactic_hq_1:setHubIcon(galactic_...
nilq/small-lua-stack
null
--- A scroll box. -- @module[kind=component] scrollbox local args = { ... } local path = fs.combine(args[2], "../../") local scrollbox = {} local marquee = require("/" .. fs.combine(path, "components", "marquee")) local scrollboxes = {} --- Create a new scroll box. -- @tparam number id The ID of the scrollbox. -- @t...
nilq/small-lua-stack
null
Auctionator.Selling.Events.RefreshHistory = "selling_refresh_history" Auctionator.Selling.Events.SellSearchStart = "sell_search_start" Auctionator.Selling.Events.PriceSelected = "price_selected" Auctionator.Selling.Events.RefreshSearch = "selling_refresh_search" Auctionator.Selling.Events.ConfirmCallback = "selling_con...
nilq/small-lua-stack
null
---------------------------------------- -- Group Calendar 5 Copyright (c) 2018 John Stephen -- This software is licensed under the MIT license. -- See the included LICENSE.txt file for more information. ---------------------------------------- if GetLocale() == "ruRU" then GroupCalendar.cTitle = "Организатор...
nilq/small-lua-stack
null
local cli = require('neogit.lib.git.cli') local util = require('neogit.lib.util') local M = {} function M.pull_interactive(remote, branch, args) local cmd = "git pull " .. remote .. " " .. branch .. " " .. args return cli.interactive_git_cmd(cmd) end local function update_unpulled(state) if not state.upstream...
nilq/small-lua-stack
null
require("dapui").setup({ icons = { expanded = "▾", collapsed = "▸" }, mappings = { expand = { "<CR>", "<2-LeftMouse>" }, open = "o", remove = "d", edit = "e", repl = "r", toggle = "t", }, sidebar = { elements = { { id = "scopes", size = 0.25, }, { id...
nilq/small-lua-stack
null
local zmq = require "lzmq" local zloop = require "lzmq.loop" local zassert = zmq.assert require "utils" print_version(zmq) main_loop = zloop.new() local ECHO_ADDR = { "inproc://echo"; "tcp://127.0.0.1:5555"; } local ECHO_TIME = 1000 main_loop:add_new_bind(zmq.REP, ECHO_ADDR, function(skt) local msg = zassert...
nilq/small-lua-stack
null
-- Copyright 2016-2019, Firaxis Games -- Non-interactive messages (e.g., Gossip and combat results) that appear in the upper-center of the screen. include( "InstanceManager" ); include("cui_settings"); -- CUI -- =========================================================================== -- CONSTANTS -- ==============...
nilq/small-lua-stack
null
--[[ Copyright (C) 2018 ZTE, Inc. and others. All rights reserved. (ZTE) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ...
nilq/small-lua-stack
null
if tweak_data and tweak_data.SCSuiteConfiguration.mute_bain_enabled then if not STFUBain then if not DialogManager then return end STFUBain = true local ingredient_dialog = {} ingredient_dialog["pln_rt1_20"] = "Muriatic Acid" ingredient_dialog["pln_rt1_22"] = "Caustic Sod...
nilq/small-lua-stack
null
--for your safety it is recommended you save a copy of your project file before running this script --if you do not understand how this script works then you should probably not use it local shouldDestroy = false local SearchFor = { "#", "$", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", } local Sele...
nilq/small-lua-stack
null
-- import local candy = require "candy" local EditorCommandModule = require 'candy_edit.common.EditorCommand' local CanvasView = require 'candy_edit.EditorCanvas.CanvasView' -- module local SceneViewModule = {} local function prioritySortFunc ( a, b ) return a._priority < b._priority end --------------------------...
nilq/small-lua-stack
null
if Query == nil then Query = class({}) end function Query:findItemByName(unit, itemName) if unit ~= nil and unit:HasInventory() then for i=DOTA_ITEM_SLOT_1, DOTA_STASH_SLOT_6 do local item = unit:GetItemInSlot(i); if item:GetName() == itemName then return item end end end retu...
nilq/small-lua-stack
null
local OVALE, Ovale = ... local OvaleScripts = Ovale.OvaleScripts do local name = "icyveins_druid_guardian" local desc = "[7.1.5] Icy-Veins: Druid Guardian" local code = [[ Include(ovale_common) Include(ovale_trinkets_mop) Include(ovale_trinkets_wod) Include(ovale_druid_spells) AddCheckBox(opt_interru...
nilq/small-lua-stack
null
-- Variables Controlkey = {["generalChat"] = {245,"T"}} RegisterNetEvent("event:control:update") AddEventHandler("event:control:update", function(table) Controlkey["generalChat"] = table["generalChat"] end) local chatInputActive = false local chatInputActivating = false local chatHidden = true local chatLoaded = ...
nilq/small-lua-stack
null
local KEY = {} local KEY_INDEX = {} function KEY:__index(key) local metafunction = KEY_INDEX[key] if metafunction ~= nil then return metafunction end local selfdata = rawget(self, key) if selfdata ~= nil then return selfdata end return KEY_INDEX.Find(self, key) end function KEY:__newindex(key, value) KE...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "bp_base" ENT.Spawnable = false ENT.Category = "Blue's Pharmaceuticals" function ENT:SetupDataTables() self:NetworkVar("Entity", 1, "owning_ent") end
nilq/small-lua-stack
null
---@class LegacyModule: ModuleBase local LegacyModule = ModuleBase:createModule('Legacy'); LegacyModule.sharedContext = { string = {}, table = {}, VaildChar = Char.IsValidCharIndex, NL = {}, Char = {}, Battle = {}, Item = {}, Pet = {}, Recipe = {}, Field = {}, Data = {}, NLG = {}, ...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: qiang -- Date: 2019/9/28 -- Time: 7:11 PM -- To change this template use File | Settings | File Templates. -- -- #######################调用案例################################## --[[ local consulConfig = config.get('consul') local client = consul:new(nil,consulConfig) ...
nilq/small-lua-stack
null
function Job.accumulate_results(results) return function(err, data) if data == nil then if results[#results] == '' then table.remove(results, #results) end return end if results[1] == nil then results[1] = '' end -- Get rid of pesky \r data = data:gsub("\r",...
nilq/small-lua-stack
null
local ffi = require 'ffiex.init' local lib -- initialize cc local cc local function error_callback(self, msg) msg = ffi.string(msg) -- print(msg) if self.error then self.error = (self.error .. "\n" .. msg) else self.error = msg end end local function new_tcc() if not lib then -- import lib...
nilq/small-lua-stack
null
--[[ spoonacular API The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 800,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural language queries, such ...
nilq/small-lua-stack
null
-------------------- Vars -------------------- local AddOn = LibStub("AceAddon-3.0"):NewAddon("TalentProfiles", "AceConsole-3.0", "AceEvent-3.0", "AceHook-3.0"); local const__numTalentCols = 3 -- TODO: Get this from the API local cdn, playerClass, cid = UnitClass("player"); -- playerClass is localisation independent...
nilq/small-lua-stack
null
local fio = require('fio') local t = require('luatest') local g = t.group() local helpers = require('test.helper') g.before_each(function() g.datadir = fio.tempdir() g.cluster = helpers.Cluster:new({ datadir = g.datadir, server_command = helpers.entrypoint('srv_basic'), cookie = require...
nilq/small-lua-stack
null
azura_gaze_of_exile = class({}) LinkLuaModifier( "modifier_azura_gaze_of_exile", "custom_abilities/azura_gaze_of_exile/modifier_azura_gaze_of_exile", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_azura_gaze_of_exile_buff", "custom_abilities/azura_gaze_of_exile/modifier_azura_gaze_of_exile_buff", LUA_MODIFIER_MO...
nilq/small-lua-stack
null
local ts_utils = require "nvim-treesitter.ts_utils" local npairs = require "nvim-autopairs" local cond = require "nvim-autopairs.conds" local Rule = require "nvim-autopairs.rule" local indent = require "modules.indent" npairs.setup { enable_check_bracket_line = false, fast_wrap = {}, map_bs = false, check_ts =...
nilq/small-lua-stack
null
require('scripts.align')
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "Bazaar Shop 7" Prop.Cat = "Stores" Prop.Price = 250 Prop.Doors = { Vector( -13553, -11141, 359 ), Vector( -13697, -11370, 359 ), } GM.Property:Register( Prop )
nilq/small-lua-stack
null
-- Luapress -- File: lib/table_to_lua.lua -- Desc: helper to convert a table object into a Lua string -- Originally from: https://github.com/Fizzadar/Lua-Bits/blob/master/tableToLuaFile.lua -- Takes a Lua table object and outputs a Lua string local function table_to_lua(table, indent) indent = indent or 1 loc...
nilq/small-lua-stack
null
DeriveGamemode("gearfox") AddLuaSHFolder("shared") AddLuaCSFolder("hud") AddLuaCSFolder("client") AddLuaSVFolder("server") GM.Name = "Maw's Zombie Survival" GM.Author = "The Maw" GM.Email = "cjbremer@gmail.com" GM.Website = "www.devinity2.com" function GM:PlayerHurt( Vict, Att, HPLeft, Dmg ) if (V...
nilq/small-lua-stack
null
local jsonConfig = {} jsonConfig.data = {} -- -- public functions -- function jsonConfig.Load(name, default, keyOrderArray) local filename = jsonConfig.GetFileName(name) local result = fileDrive.LoadAsync(filename) if not result.content then fileDrive.SaveAsync(filename, jsonInterface.encode(defa...
nilq/small-lua-stack
null
NightSisterStrongholdScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "NightSisterStrongholdScreenPlay", lootContainers = { 5035775 }, lootLevel = 38, lootGroups = { { groups = { {group = "color_crystals", chance = 3500000}, {group = "junk", chance = 3500000}, {group = "rifl...
nilq/small-lua-stack
null
local OV = angelsmods.functions.OV local rawmulti = angelsmods.marathon.rawmulti local special_vanilla = clowns.special_vanilla local ore_table = clowns.tables.ores ------------------------------------------- ------------BEGIN LOOKUP TABLES------------ ------------------------------------------- clowns.tables.get_trig...
nilq/small-lua-stack
null
local Timer = require "lib.timer" local pre_state = { load = function(self) self.font = love.graphics.newFont("assets/mr_pixel/Mister Pixel Regular.otf", 40) love.graphics.setFont(self.font) self.logo = love.graphics.newImage("assets/erik.png") local text_list = { [[ I...
nilq/small-lua-stack
null
-- fortwars 3 killfeed system, created by legendofrobbo local Gunkills = { "#V was ventilated by #K", "#V got shot up by #K", "#V was shot to pieces by #K", "#V got blasted by #K", "#V was capped by #K", "#V ate a load of #K's hot lead", "#V was perforated by #K", "#V was gunned down by #K", "#V co...
nilq/small-lua-stack
null
local config = require("pulls.config") local git = require("pulls.git") local request = require('pulls.github.request') local encode = vim.fn.json_encode local decode = vim.fn.json_decode local M = {} function M.get() local repo_info = git.get_repo_info() local branch = git.current_branch() local head = r...
nilq/small-lua-stack
null
local content = { _VERSION = "1.0:0" } content["msg-error"] = "[Zeus] An error occurred while trying to perfom this action!" content["msg-no-permission"] = "[Zeus] You have no permissions to do that!" content["msg-argument-missing"] = "[Zeus] Failed to executed because Argument {1} is missing!" content["msg-argument-i...
nilq/small-lua-stack
null
object_tangible_furniture_all_frn_all_trophy_finned_blaggart_new = object_tangible_furniture_all_shared_frn_all_trophy_finned_blaggart_new:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_trophy_finned_blaggart_new, "object/tangible/furniture/all/frn_all_trophy_finned_blaggart_new.iff")
nilq/small-lua-stack
null
local text = "Information on Offline Training:\n 1. You need to have a Premium account in order to train here.\n 2. Choose a skill you'd like to train. Shielding is ALWAYS included.\n 3. If you're not sure which statue trains what, read the inscriptions.\n 4. Use a statue to be logged out of the game and train the skil...
nilq/small-lua-stack
null
local pairs = pairs local type = type local next = next local error = error local tonumber = tonumber local utf8_char = utf8.char local table_concat = table.concat local string_char = string.char local math_type = math.type local setmetatable = setmetatable local Inf = math.huge local json = {} json.nul...
nilq/small-lua-stack
null
local ftcsv = require 'ftcsv' local tpl_dir = 'tpl/' local function load_tpl(name) local path = tpl_dir..name..'.csv' local t = ftcsv.parse(path, ",", {headers=false}) local meta = {} local inputs = {} local funcs = {} local packets = {} for k,v in ipairs(t) do if #v > 1 then if v[1] == 'META' then ...
nilq/small-lua-stack
null
--ZFUNC-separator-v1 local function separator() --> sep return _G.package.config:sub( 1, 1 ) end return separator
nilq/small-lua-stack
null
local http = require("socket.http") local test_support = require("test_support") require 'busted.runner'() describe("when accessing the protected resource without token", function() test_support.start_server() teardown(test_support.stop_server) local _, status, headers = http.request({ url = "http://127.0.0....
nilq/small-lua-stack
null
data:extend({ { type = "int-setting", name = "Energy_consumption_m", setting_type = "startup", minimum_value = 3, default_value = 3 } })
nilq/small-lua-stack
null
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** ---@class ISUIHandler ISUIHandler = {}; ISUIHandler.allUIVisible = true; ISUIHandler.visibleUI = {}; ISUIHandler.setVisibleAllUI = f...
nilq/small-lua-stack
null
local status_ok, go = pcall(require, "go") if not status_ok then return end local lsp_status_ok, _ = pcall(require, "nvim-lsp-installer") if not lsp_status_ok then return end local path = require 'nvim-lsp-installer.path' local install_root_dir = path.concat {vim.fn.stdpath 'data', 'lsp_servers'} go.setup({ go='...
nilq/small-lua-stack
null
local core = require "sys.core" local netssl = require "sys.netssl.c" local type = type local assert = assert local socket_pool = {} local ssl = {} local EVENT = {} local function new_socket(fd) local s = { fd = fd, delim = false, co = false, sslbuff = false } s.sslbuff = netssl.create(...
nilq/small-lua-stack
null
return require('keycloak_role_check')
nilq/small-lua-stack
null
require('hlslens').setup({ calm_down = true, nearest_only = true, }) local activate_hlslens = function(direction) local cmd = string.format("normal! %s%szzzv", vim.v.count1, direction) local status, msg = pcall(vim.fn.execute, cmd) -- 13 is the index where real error message starts msg = msg:sub(13) ...
nilq/small-lua-stack
null
require "fufusion.prototypes.item" require "fufusion.prototypes.technology" require "fufusion.prototypes.recipe" require "fufusion.prototypes.fluid"
nilq/small-lua-stack
null
local _M = { _VERSION = "2.3.1" } local lock = require "resty.lock" local shdict = require "shdict" local JOBS = shdict.new("jobs") local ipairs = ipairs local update_time = ngx.update_time local ngx_now = ngx.now local worker_exiting = ngx.worker.exiting local timer_at = ngx.timer.at local ngx_log = ngx.log loca...
nilq/small-lua-stack
null
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("Terrain", function() local Terrain = require "terrain" it("grass", function() local g = Terrain:grass() assert.not_equals(nil, g) end) ...
nilq/small-lua-stack
null
local image = require("Image") local GUI = require("GUI") local keyboard = require("Keyboard") ------------------------------------------------------ local workspace, window, menu = select(1, ...), select(2, ...), select(3, ...) local tool = {} local locale = select(4, ...) tool.shortcut = "Brs" tool.keyCode = 48 t...
nilq/small-lua-stack
null
return { version = "1.2", luaversion = "5.1", tiledversion = "1.3.2", orientation = "orthogonal", renderorder = "right-down", width = 95, height = 95, tilewidth = 24, tileheight = 24, nextlayerid = 17, nextobjectid = 21, properties = {}, tilesets = { { name = "tiles", firstgid ...
nilq/small-lua-stack
null
local rainbow = { "#a89984", "#b16286", "#d79921", "#689d6a", "#d65d0e", "#458588" } require("nvim-treesitter.configs").setup({ ensure_installed = { "python", "cpp", "lua", "vim", "java", "typescript", "javascript", "html", "css" }, ignore_install = { "beancount", "clojure", "co...
nilq/small-lua-stack
null
---Test program for InputMangler. local input = require "inputmangler" local commandbuff = {} --record of recently given inputs local mapping = nil --command we're in the process of mapping, if any function love.load() --Establish a new context, map keys 1-4, F1-F4 and buttons a, b, x, y, and set modifiers shi...
nilq/small-lua-stack
null
dnl autoconf rules for NS Emulator (NSE) dnl $Id: configure.in.nse,v 1.3 2000/03/10 01:49:32 salehi Exp $ dnl dnl Look for ethernet.h dnl dnl Now look for supporting structures dnl AC_MSG_CHECKING([for struct ether_header]) AC_TRY_COMPILE([ #include <stdio.h> #include <net/ethernet.h> ], [ int main() { struct ether...
nilq/small-lua-stack
null
tips_proto = { [1] = { tips_type = 1, }, [2] = { tips_type = 2, }, [3] = { tips_type = 3, }, [4] = { tips_type = 4, }, [5] = { tips_type = 5, }, [6] = { tips_type = 6, }, [7] = { tips_type = 7, }, [8] = { tips_type = 8, }, [9] = { tips_type = 9, }, [10] = { tips_type = 10, }, [11] = { tips_type = 11, }, [12] = { tips_t...
nilq/small-lua-stack
null
function onCreate() -- background shit makeLuaSprite('poop', 'poop', -500, -300); setLuaSpriteScrollFactor('poop', 0.9, 0.9); addLuaSprite('poop', false); close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage end
nilq/small-lua-stack
null
local theme={colors={normal={blue={0.28235294117647,0.72941176470588,0.76078431372549,1},green={0.21960784313725,0.47058823529412,0.10980392156863,1},cyan={0.17647058823529,0.41960784313725,0.69411764705882,1},white={0.094117647058824,0.094117647058824,0.094117647058824,1},red={0.61176470588235,0.35294117647059,0.00784...
nilq/small-lua-stack
null
 local mod = {} --self代表root标签 function mod.onCreate(self) self:setColor(0xffff0000) end return mod;
nilq/small-lua-stack
null
LhdController.initProtoFunc = function (slot0) if slot0.netProtoFunc == nil then slot0.netProtoFunc = { [LHD_SUB_S_GAME_FREE] = { bodyStr = "LHD_CMD_S_GameFree", func = slot0.protoTransferGamingFree }, [LHD_SUB_S_GAME_START] = { bodyStr = "LHD_CMD_S_GameStart", func = slot0.protoTransferGami...
nilq/small-lua-stack
null
--[[ ####### Aseprite - MSX image files importer script ####### Copyright by Natalia Pujol (2021) This file is released under the terms of the MIT license. Info: - MSX Graphics Screen modes: https://www.msx.org/wiki/Yamaha_V9958 http://map.grauw.nl/resources/video/yamaha_v9958.pdf - YJK ...
nilq/small-lua-stack
null
local TAG = "MotionBlurRender" local MotionBlurRender = { vs = [[ precision highp float; attribute vec4 aPosition; attribute vec4 aTextureCoord; varying vec2 vTexCoord; void main() { gl_Position = aPosition; vTexCoord = aTextureCoo...
nilq/small-lua-stack
null
require('constants') require('quest') -- Hild requires a large supply of whiteflower to be able to fulfill -- her various orders. local function hild_weaving_start_fn() add_message_with_pause("HILD_WEAVING_QUEST_START_SID") add_message_with_pause("HILD_WEAVING_QUEST_START2_SID") clear_and_add_message("HILD_WEAVI...
nilq/small-lua-stack
null
local cartographer = require 'cartographer' local testMap = cartographer.load 'demo/groups.lua' function love.update(dt) testMap:update(dt) end function love.draw() testMap:draw() love.graphics.print(love.timer.getFPS()) end
nilq/small-lua-stack
null
local slib = slib local snet = slib.Components.Network local timer = timer local isfunction = isfunction local SERVER = SERVER -- local netowrk_name_to_client = slib.GetNetworkString('SNet', 'CL_ValidatorForServer') local netowrk_name_to_server = slib.GetNetworkString('SNet', 'SV_ValidatorForServer') if SERVER then s...
nilq/small-lua-stack
null
player_manager.AddValidModel( "PMC4_01", "models/player/PMC_4/PMC__01.mdl" ) list.Set( "PlayerOptionsModel", "PMC4_01", "models/player/PMC_4/PMC__01.mdl" )
nilq/small-lua-stack
null
--========================================================== -- SocialPolicy Chooser Popup -- Modified by bc1 from 1.0.3.276 code using Notepad++ --========================================================== Events.SequenceGameInitComplete.Add(function() include "GameInfoCache" -- warning! booleans are true, not 1, an...
nilq/small-lua-stack
null
-- LuaBox library -- Copyright (c) 2017 Lobachevskiy Vitaliy local strrep_limit = tonumber(minetest.settings:get("libluabox.string_rep_limit")) or 65536 function string.strstr(haystack, needle, base) return string.find(haystack, needle, base or 1, true) end local rstring = {} function rstring.find(s, pattern, init...
nilq/small-lua-stack
null
function a() local var = 1 for something in all(something) do for key, value in pairs(something) do target[key] = value end end end function indentedfunction(value) return flr(value / cell_size) end local var = 1 local indentedvar = 1 function f(x, y) return get(nestedcall(x), nes...
nilq/small-lua-stack
null
AddCSLuaFile() ENT.RenderGroup = RENDERGROUP_OPAQUE ENT.Base = "base_anim" ENT.Type = "anim" ENT.Spawnable = true ENT.CopySubmodels = true ENT.Model = "wa2000" ENT.Scale = 1 ENT.Debug = true function ENT:Initialize() self:SetModel("models/hunter/blocks/cube025x025x025.mdl") self:SetupPhysics...
nilq/small-lua-stack
null
local P = {} imgfun = P function P.img2mat(img) return torch.reshape(img, 3, img:size()[2]*img:size()[3]):t() end function P.mat2img(mat, h, w) return torch.reshape(mat:t(), 3, h,w) end function P.assign_means(means, mat) -- means: K x d -- mat -- N x d -- returns N x 1 assignments local K = ...
nilq/small-lua-stack
null
require "util" require "config" local TrainPlan = require "models/TrainPlan" local TrainBuild = {} TrainBuild.__index = TrainBuild TrainBuild.version = 1 function TrainBuild.new(depot, train, storage, parameters) local self = setmetatable({}, TrainBuild) self.type = "TrainBuild" self.version = TrainBuild.versio...
nilq/small-lua-stack
null
QznnbPlayerInfoCcsPane = class("QznnbPlayerInfoCcsPane") QznnbPlayerInfoCcsPane.onCreationComplete = function (slot0) createSetterGetter(slot0, "data", nil, nil, nil, nil, nil, handler(slot0, slot0.onData)) slot0.spProgress:deploy(slot0.controller:getParticlePath("touxianglizi.plist"), 124, 171, 14, 2, 1, true) slo...
nilq/small-lua-stack
null
local vs={} for i,k in ipairs(KEYS) do local ov=false local st=false local ms=false local ttl=false local tp=redis.call('TYPE',k)['ok'] if tp == 'hash' then st=0 if ARGV[1] == '1' then ov=redis.call('HMGET',k,_GET_FIELDS_) else ov=redis.call('HGETALL',k) end elseif tp == 'none'...
nilq/small-lua-stack
null
local lfs = require "lfs" local screen_width, screen_height, flags = 1600, 900, { fullscreen = false } local newFont = function() return { getWidth = function() return 10 end, getHeight = function() return 10 end, getWrap = function(_, text) local t={} for str in string.gmatch(text, "([^:]+)"...
nilq/small-lua-stack
null
local night_blue = bundle_file('tm_night_blue.moon') howl.ui.theme.register('Tomorrow Night Blue', night_blue) local unload = function() howl.ui.theme.unregister 'Tomorrow Night Blue' end return { info = { author = 'Tomorrow themes adapted by Nordman <nino at nordman.org>', description = [[ The Tom...
nilq/small-lua-stack
null
--[[ Going to leave this as my bullshit lua file. So I can test stuff. ]]
nilq/small-lua-stack
null
--- Client async writer class. -- @classmod grpc_lua.client.async.ClientAsyncWriter local ClientAsyncWriter = {} local c = require("grpc_lua.c") -- from grpc_lua.so local pb = require("luapbintf") ------------------------------------------------------------------------------- --- Public functions. -- @section publi...
nilq/small-lua-stack
null
local CloakThink local function Cloak(ply, cmd, args) local targets = FAdmin.FindPlayer(args[1]) or {ply} for _, target in pairs(targets) do if not FAdmin.Access.PlayerHasPrivilege(ply, "Cloak", target) then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end if IsValid(target) ...
nilq/small-lua-stack
null
--- Developer -- @script Developer local Developer = {} setmetatable(Developer, {__index = require("stdlib/data/core")}) local Data = require("stdlib/data/data") local function make_no_controls() local controls = {} for name in pairs(data.raw["autoplace-control"]) do controls[name] = {size = "none", ...
nilq/small-lua-stack
null
--[[ Command ]] CommandManager.Command("ping", function(Args, Payload) Payload:reply { embed = { ["title"] = "Pong", ["image"] = { ["url"] = "https://media1.tenor.com/images/6f1d20bb80a1c3f7fbe3ffb80e3bbf4e/tenor.gif" }, ["color"] = Config.Embe...
nilq/small-lua-stack
null
local ElementNode = require("htmlparser/ElementNode.lua") local voidelements = require("htmlparser/voidelements.lua") local HtmlParser = {} local function parse(text) local index = 0 local root = ElementNode:new(index, text) local node, descend, tpos, opentags = root, true, 1, {} while true do local open...
nilq/small-lua-stack
null
function createStore(reducer) local currentReducer = reducer local currentState = nil function getState() return currentState end function dispatch(action) currentState = currentReducer(currentState, action) return action end dispatch({type = '__INIT__'}) retu...
nilq/small-lua-stack
null
make_tests( "general", { ["traits"] = {nil, nil}, ["primitive"] = {nil, nil}, })
nilq/small-lua-stack
null
--[[ - SKYNET SIMPLE ( https://github.com/viticm/skynet-simple ) - $Id preload.lua - @link https://github.com/viticm/skynet-simple for the canonical source repository - @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com ) - @license - @user viticm( viticm.ti@gmail.com ) - @date 2020/11/25 19:56 - @uses T...
nilq/small-lua-stack
null
-- -- Copyright 2010-2014 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- function bgfxProject(_name, _kind, _defines) project ("bgfx" .. _name) uuid (os.uuid("bgfx" .. _name)) kind (_kind) if _kind == "SharedLib" then defines { "BGFX_SHARED_LIB_BU...
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) local Module = K:GetModule("Installer") local _G = _G local table_wipe = _G.table.wipe -- local function ForceZygorOptions() -- if not IsAddOnLoaded("Zygor") then -- return -- end -- if Zygor then -- table_wipe(Zygor) -- end -- end local function ForceHekiliOptions() ...
nilq/small-lua-stack
null