content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--- === plugins.microsoftteams.application.manager === --- --- Registers Microsoft Teams with the Core Application Manager if installed. local require = require local application = require "hs.application" local infoForBundleID = application.infoForBundleID local plugin = { id ...
nilq/small-lua-stack
null
require("import") -- the import fn import("cpp11_strongly_typed_enumerations") -- import lib -- catch "undefined" global variables local env = _ENV -- Lua 5.2 if not env then env = getfenv () end -- Lua 5.1 setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i.."'",2) end}) function enumChe...
nilq/small-lua-stack
null
function processRequest(url, requestHeaders, cookies, hostname) local query = urlParser.parse(url).query if not query.username then return false end local result = exports.dpCore:getUserAccount(query.username) if not result then result = { error = "User not found" } end retur...
nilq/small-lua-stack
null
local function bottleneck() if remote.interfaces["Bottleneck"] and remote.interfaces["Bottleneck"]["blacklist_name"] then remote.call("Bottleneck", "blacklist_name", "liquify2-liquifier") end end script.on_init(bottleneck); script.on_load(bottleneck);
nilq/small-lua-stack
null
Citizen.CreateThread(function() while true do Citizen.Wait(0) if NetworkIsSessionStarted() then TriggerServerEvent("Queue:playerActivated") return end end end)
nilq/small-lua-stack
null
-- lodr helper: erase lodr from the arg array local alreadyRan = false local target = require("z_lodrSupport.target") return function() if not alreadyRan then alreadyRan = true arg[0] = target local argc = #arg for i=1,argc do arg[i] = arg[i+1] end end end
nilq/small-lua-stack
null
---@type ModuleA local a ---@type string local num num = a.module_scoped_var
nilq/small-lua-stack
null
--Keep traders from bringing blood, ichor, or goo with their caravans. local my_entity=df.historical_entity.find(df.global.ui.civ_id) local sText=" " local k=0 local v=1 for x,y in pairs(df.global.world.entities.all) do my_entity=y k=0 while k < #my_entity.resources.misc_mat.extracts.mat_index do v=my_ent...
nilq/small-lua-stack
null
module(..., package.seeall) NODE = { title="@JavaScript (Prototype for Javascript Pages)", prototype="@Text_Config", category="_prototypes", actions=[[js="javascript.js"]], permissions = [[allow(all_users, "js")]], content=[[ The content of this page is ignored but it's fields are inherited by some of...
nilq/small-lua-stack
null
local Peg = require "espalier:espalier/peg" local subGrammar = require "espalier:espalier/subgrammar" local fragments = require "orb:orb/fragments" local Twig = require "orb:orb/metas/twig" local table_str = [[ table ← WS* handle* WS* row+ row ← WS* pipe cell (!table-end pipe cell)* tab...
nilq/small-lua-stack
null
-- Raid Debuffs general options local L = LibStub("AceLocale-3.0"):GetLocale("Grid2Options") local RDO = Grid2Options.RDO local options = {} RDO.OPTIONS_GENERAL = options function RDO:InitGeneralOptions() Grid2Options:MakeStatusTitleOptions( RDO.statuses[1], options) end -- separate content from title ...
nilq/small-lua-stack
null
local M = {} M.config = function() require'telescope'.setup{ extensions = { fzf = { fuzzy = true, override_generic_sorter = true, override_file_sorter = true, }, }, } require'telescope'.load_extension'fzf' local map = vim.api.nvim_set_keymap local opts = {noremap...
nilq/small-lua-stack
null
-- Dependencies local Playable = require("engine.Playable") -- Repeater class local Repeater = Playable:derive("Repeater") -- Constructor function Repeater:Repeater(period, callback) self:Playable() -- Superclass constructor self.period = period -- Repetition period self.callback = callback -...
nilq/small-lua-stack
null
local function LogAndTsay(str) ulx.logString("[HSNotice] " .. str) ulx.tsay(NULL, "[HSNotice] " .. str) end function HSNotice.JoinAlert(pl) local str = "플레이어[" .. (pl:Nick() or "{UNKNOWN}") .. "] 님께서 게임에 참여하셨습니다. (" .. pl:IPAddress() .. ")" LogAndTsay(str) end hook.Remove("PlayerInitialSpawn", "HSNotice.JoinAlert"...
nilq/small-lua-stack
null
----------------------------------- -- -- Zone: Lower_Jeuno (245) -- ----------------------------------- local ID = require("scripts/zones/Lower_Jeuno/IDs") require("scripts/zones/Lower_Jeuno/globals") require("scripts/globals/conquest") require("scripts/globals/keyitems") require("scripts/globals/missions") require("s...
nilq/small-lua-stack
null
local Class = require "hump.class" local Vector = require "hump.vector" local BaseObject = require "toys/baseObject" Rectangle = Class{__includes = BaseObject} function Rectangle:init(world, mapObject) -- calculate values from map object self.width, self.height = mapObject.width, mapObject.height local xSpawn, y...
nilq/small-lua-stack
null
local items = __pointers__.items local entities = __pointers__.entities for i=1,#items do local item = items:at(i) local speed = 5.0 local dir = vec2.normalize(vec2.new(400, 300) - item.pos) * speed item.vel = dir end
nilq/small-lua-stack
null
local Module = {} return Module
nilq/small-lua-stack
null
local LabelID = {} LabelAll = 0 addEvent("doCreateLabel", true) addEventHandler("doCreateLabel", root, function(text, color, x, y, z, dis, dimens, font, size) create3DTextLabel(text, color, x, y, z, dis, dimens, font, size) end) addEvent("doRemoveLabel", true) addEventHandler("doRemoveLabel", root, function(id) delet...
nilq/small-lua-stack
null
local baton = require 'libs.baton' local controlsA = baton.new { controls = { left = {'key:left', 'axis:leftx-', 'button:dpleft'}, right = {'key:right', 'axis:leftx+', 'button:dpright'}, up = {'key:up', 'axis:lefty-', 'button:dpup'}, down = {'key:down', 'axis:lefty+', 'button:dpdown...
nilq/small-lua-stack
null
local IInput = require("api.gui.IInput") local IUiLayer = require("api.gui.IUiLayer") local InputHandler = require("api.gui.InputHandler") local UiTheme = require("api.gui.UiTheme") local VisualAIBlockList = require("mod.visual_ai.api.gui.VisualAIBlockList") local Ui = require("api.Ui") local UiWindow = require("api.gu...
nilq/small-lua-stack
null
-- require 'tableutils'; loadModule("util/tableutils"); loadModule("util/checkutils"); --[[! \file \brief Este script define funciones auxiliares e iteradores útiles para trabajar con cadenas e caracteres. ]] --! Iterador de palabras separadas por uno o varios separadores (por defecto, espacios) --! Los separad...
nilq/small-lua-stack
null
return { name = "Mage", description = "Mages spend years learning to harness arcane forces to impose their will on the world around them. As scholars, they tend to be less brawny than Warriors and less stout than Clerics. Their powerful spells keep them alive and allow them to wreak havoc... as long as the...
nilq/small-lua-stack
null
return { ["trail"] = "iz", ["texture filter"] = "doku filtresi", ["show only with active weapon"] = "sadece aktif silah çıkmışken göster", ["parent velocity length"] = "ebeveyn hız büyükluğü", ["equal"] = "eşit", ["owner velocity right"] = "sahip sağ hızı", ["owner velocity length"] = "sahip hız büyüklüğü", ["timerx"] ...
nilq/small-lua-stack
null
return { level = 63, need_exp = 140000, clothes_attrs = { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, }, }
nilq/small-lua-stack
null
local jsonish = require 'jsonish' local t = require 'testhelper' t( jsonish '', nil ) t( jsonish '1', 1 ) t( jsonish 'true', true ) t( jsonish '"hi"', "hi" ) t( jsonish '""', "" ) t( jsonish [["\u0021"]], [[!]] ) t( jsonish [["h\u0021i"]], [[h!i]] ) t( jsonish [["\\u0021"]], [[\u0021]] ) t( jsonish [["h\\u0021i...
nilq/small-lua-stack
null
do class "FIFO" : namespace "util" : implements "Countable" : from "interfaces" { m_tbl = {}, } setter "GCCB->m_fnGcCB" function Initialize( self ) end function Push( self, var ) self.m_tbl[#self.m_tbl+1] = var end function Pop( self ) assert( #self.m_tbl > 0 ) local r = self:Next() table.remove(...
nilq/small-lua-stack
null
ENT.Type = "Anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Grenade" ENT.Author = "VurtualRuler98" ENT.Contact = "steam" ENT.Purpose = "Getting more ammo!" ENT.Instructions = "Spawn. Use. Reload." ENT.Category = "Vurtual's base" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.DetFragMagnitude="50" ENT...
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2018 JWRR.COM git clone https://github.com/jwrr/lued.git 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 righ...
nilq/small-lua-stack
null
function lovr.load() shader = lovr.graphics.newShader([[ vec4 position(mat4 projection, mat4 transform, vec4 vertex) { return projection * transform * vertex; } ]], [[ const float gridSize = 25.; const float cellSize = .5; vec4 color(vec4 gcolor, sampler2D image, vec2 uv) { // Dist...
nilq/small-lua-stack
null
term = {} qA = {} qB = {} answA = {} answB = {} term[1] = math.random(59) + 10; term[2] = math.random(90 - term[1]) + 10; term[3] = math.random(59) + 10 ; term[4] = math.random(90 - term[3]) + 10; for i=1,4 do term[i] = term[i]; end summA = term[1] + term[2]; summB = term[3] + term[4]; qA[...
nilq/small-lua-stack
null
ColorsState = GameState:new() function GameState:getName() return 'colors' end function ColorsState:update(dt) Background:update(dt) AIColors:update(dt) Colors:update(dt) end function ColorsState:draw() Colors:draw() AIColors:draw() end function ColorsState:onMousePressed(mousePosition) ...
nilq/small-lua-stack
null
require("impatient") require("plugins") require("functions") require("mappings") require("settings")
nilq/small-lua-stack
null
local class = require("30log") local Controller = class "Controller" Controller.init = { -- Used here as a filler _do_nothing =function() end, is_bound = false } function Controller:bind_to_handler(--[[handler]]) self.is_bound = true end function Controller:unbind_to_handler(--[[handler]]) self....
nilq/small-lua-stack
null
-- Parameters variables (do not change) obs = obslua distance_file = "" source_name = "" shown = false started = false last_distance = 0.0 threshold = 100 check_time = 2 decay = 5 -- -- This part is providing main functionality -- function visibility_change(visible) -- Get...
nilq/small-lua-stack
null
---- -- Tests for the xlsxwriter.lua xml writer class. -- -- Copyright 2014, John McNamara, jmcnamara@cpan.org -- require "Test.More" local utility = require "xlsxwriter.utility" local expected local got local caption local tests plan(15) ---- -- Test the utility cell_to_rowcol functions. -- tests = { --row, col,...
nilq/small-lua-stack
null
local hit_effects = require ("__base__/prototypes/entity/demo-hit-effects.lua") local sounds = require("__base__/prototypes/entity/demo-sounds.lua") local function createHeatGenerator(name, energy_usage, energy_source, recipeEnabled, order) data:extend({ { type = "item", name = name, icon...
nilq/small-lua-stack
null
--- Виджет поля ввода -- @module dpUI.DpInput DpInput = {} local inputColors = { dark = "gray", light = "gray_light" } function DpInput.create(properties) if type(properties) ~= "table" then properties = {} end local widget = Input.create(properties) local colorName = inputColors[exports.dpUtils:defaultVal...
nilq/small-lua-stack
null
function Struct() local struct = {} struct.__index = struct -- Class information -- local info = debug.getinfo(2, "Sl") local structName = string.split(info.source, "/") -- remove everything before path -- @fixme This doesn't work with Lua 5.1. I'm not sure if it's because of -- the escape...
nilq/small-lua-stack
null
--[[ ----gui function--------------------------------------------------------------- gui:newWindow(x,y,width,height,screen_address) return window gui:update() ----window function------------------------------------------------------------ window:close() return nil window:setWindowName(name) return ...
nilq/small-lua-stack
null
local K, C, L, _ = select(2, ...):unpack() local format, find, gsub = string.format, string.find, string.gsub local match = string.match local floor, ceil = math.floor, math.ceil local print = print local reverse = string.reverse local tonumber, type = tonumber, type local unpack, select = unpack, select local CreateF...
nilq/small-lua-stack
null
local eterna_forest_0 = DoorSlot("eterna_forest","0") local eterna_forest_0_hub = DoorSlotHub("eterna_forest","0",eterna_forest_0) eterna_forest_0:setHubIcon(eterna_forest_0_hub) local eterna_forest_1 = DoorSlot("eterna_forest","1") local eterna_forest_1_hub = DoorSlotHub("eterna_forest","1",eterna_forest_1) eterna_for...
nilq/small-lua-stack
null
local m = require 'pegparser.parser' local coder = require 'pegparser.coder' local util = require'pegparser.util' g = [[ program <- SKIP head^Err_001 decs block^Err_002 Dot^Err_003 !. head <- PROGRAM^Err_004 Id^Err_005 (LPar ids^Err_006 RPar^Err_007 / !Semi %{Err_008} .)? Semi^Err_009 decs ...
nilq/small-lua-stack
null
TOOL.Category = "Harbor" TOOL.Name = "Ship Designator" cleanup.Register( "nocollide" ) function TOOL:LeftClick( trace ) if ( !IsValid( trace.Entity ) ) then return end if ( trace.Entity:IsPlayer() ) then return end -- If there's no physics object then we can't constraint it! --if ( SERVER && ...
nilq/small-lua-stack
null
sampleInfo = { CodeName="LDS", ShortName="LDS", LongName="Low Discrepancy Sequences", Description="Low discrepancy sequences", Functions= { { name = "NRooks", progressive = false, randomized = true, cache = false }, { name = "Sobol", progressive = true, randomized = false, cache = f...
nilq/small-lua-stack
null
ardour { ["type"] = "EditorHook", name = "Check if file exists", author = "M. Schott", description = "Import midi file when it exists", } function signals () return LuaSignal.Set():add ({[LuaSignal.LuaTimerDS] = true}) end function factory () -- setup filesystem vars local home_dir = os.geten...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: gerry -- Date: 15/02/2017 -- Time: 20:10 -- To change this template use File | Settings | File Templates. -- local setmetatable = setmetatable local ngx = ngx local gw_conf = require "trustbuilder-gateway.configuration" local ngx_escape_uri = ng...
nilq/small-lua-stack
null
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { Const = { RandomTypeCount = { { 1, 1 }, { 0, 0 }, { 3, 4 }, }, SkipCost = { 10, 20, 30, 40, 50, 60, 70, 80, 90,...
nilq/small-lua-stack
null
return {'asamoah','asante'}
nilq/small-lua-stack
null
-- NoIndex: true -- Adds creation and property data to the GUI element classes, -- as well as GB-specific methods for selecting, deleting, duplicating, dragging, etc --[[ {prop = "", caption = "", class = ""}, prop Target element's property caption Displayed property name class Pr...
nilq/small-lua-stack
null
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _M = {} -- local _K = require "Application" -- {{#ultimate}} local imageWidth = {{elW}}/4 local imageHeight = {{elH}} local mX, mY = _K.ultimatePosition({{mX}}, {{mY}}...
nilq/small-lua-stack
null
cflags{ '-Wall', '-Wpedantic', '-Wno-parentheses', '-I $dir', } lib('libpci.a', [[ lib/( init.c access.c generic.c dump.c names.c filter.c names-hash.c names-parse.c names-net.c names-cache.c names-hwdb.c params.c caps.c sysfs.c ) ]]) cc('common.c') exe('lspci', { 'lspci.c', 'ls-vpd...
nilq/small-lua-stack
null
----------------------------------------------------------------------------------- local MAJOR, MINOR = "AgiDialogs", 5 local AgiDialogs, OldMinor = LibStub:NewLibrary(MAJOR, MINOR) if ( not AgiDialogs ) then return end -- No Upgrade needed. -----------------------------------------------------------------------...
nilq/small-lua-stack
null
aurum.carts = {} b.dofile("rail.lua") b.dofile("cart.lua") b.dofile("default_carts.lua")
nilq/small-lua-stack
null
require("utilfunctions") require("prototypes.item-groups") require("prototypes.parts") require("prototypes.fuel") require("prototypes.inserters.burner-inserter") require("prototypes.inserters.long-inserter") require("prototypes.inserters.fast-inserter") require("prototypes.inserters.stack-inserter") require("prototyp...
nilq/small-lua-stack
null
local skynet = require "skynet" skynet.start(function() skynet.dispatch("lua", function(session, source, cmd, subcmd, ...) print("test dispatch", session, source, cmd, subcmd) end) end)
nilq/small-lua-stack
null
return { load="load.lua", doInitSDL=true }
nilq/small-lua-stack
null
local utils = require('util') local core = require('core') local client = require('rtsp/client') local RtspClient = client.RtspClient local rtspClient = nil local TAG = 'test_rtsp_client' local color = console.color ------------------------------------------------------------------------------- -- MockClientSocke...
nilq/small-lua-stack
null
Sprite = {} -- this sprite just work if all animation sprites are on the same line function Sprite.new(image, start_x, start_y, width, height) local self = {} self.start_x = start_x self.start_y = start_y self.quad_width = width self.quad_height = height self.quad = {} self.image = image self.x_scal...
nilq/small-lua-stack
null
local math, string = math, string local wibox = require('wibox') local Container = require('sanity/util/container') local FontIcon = require('sanity/util/fonticon') local markup = require('lain.util.markup') local weather = require('lain.widget.weather') local display = require('sanity/util/display') local dstheme = ...
nilq/small-lua-stack
null
-- http://lua-users.org/wiki/FileInputOutput -- Return true if file exists and is readable. function file_exists(path) local file = io.open(path, "rb") if file then file:close() end return file ~= nil end -- get all lines from a file, returns an empty -- list/table if the file does not exist ...
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) if C.Misc.MoveBlizzard ~= true then return end -- Lua API local _G = _G local type = type -- Lua Wow local IsAddOnLoaded = _G.IsAddOnLoaded -- Global variables that we don"t cache, list them here for the mikk"s Find Globals script -- GLOBALS: TradeSkillFrame, AchievementFrameHe...
nilq/small-lua-stack
null
------------------------------------- --- PANELS ------------------------------------- local Panels = MR.CL.Panels -- Networkings net.Receive("CL.Panels:RefreshProperties", function() Panels:RefreshProperties(MR.CL.ExposedPanels:Get("properties", "self")) end) local function validateEntry(panel) local input = pane...
nilq/small-lua-stack
null
-- The init file of PLoop.System.Net.MQTT require "PLoop.System.Net" -- Core require "PLoop.System.Net.OPC.Core" require "PLoop.System.Net.OPC.DataTypes" require "PLoop.System.Net.OPC.Reference" require "PLoop.System.Net.OPC.NodeClasses" require "PLoop.System.Net.OPC.EventTypes" require "PLoop.System.Net.OPC.Variable...
nilq/small-lua-stack
null
--load all the module from the dll package.loadlib("LuaSmartCardLibrary.dll", "luaopen_card")() package.loadlib("LuaSmartCardLibrary.dll", "luaopen_sam")() package.loadlib("LuaSmartCardLibrary.dll", "luaopen_log")() package.loadlib("LuaSmartCardLibrary.dll", "luaopen_bytes")() package.loadlib("LuaSmartCardLibrary.dll",...
nilq/small-lua-stack
null
require("curses"); function read_cmd() curses.attron(curses.A_BOLD); curses.addstr("Command: "); curses.attron(underline); local s = ""; while (true) do local c = string.char(curses.getch()); if (c == '\n') then break; end s = s .. c; end curses.attroff(underline); curses.attroff(cu...
nilq/small-lua-stack
null
local TAG = "城市争夺战 商店======snake" local activityConfig = require "config.activityConfig" local ShopModule = require "module.ShopModule" local buildScienceConfig = require "config.buildScienceConfig" local Time = require "module.Time" local BuildShopModule = require "module.BuildShopModule" local MapConfig = require "co...
nilq/small-lua-stack
null
-- Note: This file contains comments taken from this document: -- http://java.sun.com/javase/6/docs/platform/serialization/spec/protocol.html -- -- The document is (C) 2005 Sun Microsystems, all rights reserved. -- I am only using it for reference. -- Removal of the comments should not affect functionality. -- -- Thi...
nilq/small-lua-stack
null
--!A cross-platform build utility based on Lua -- -- 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 -- -- Unless required by applicable law...
nilq/small-lua-stack
null
-- Mizar32 A board configuration return { cpu = 'at32uc3a0512', components = { sercon = { uart = "cdc", speed = 115200 }, mmcfs = { spi = 4, cs_port = 0, cs_pin = "SD_MMC_SPI_NPCS_PIN" }, adc = { buf_size = 2 }, term = { lines = 25, cols = 80 }, tcpip = { ip = "193.168.1.10", netmask = "255.255...
nilq/small-lua-stack
null
----------------------------------------------------------------------------------------------------------------------- -- RedFlat monitor widget -- --------------------------------------------------------------------------------...
nilq/small-lua-stack
null
__STD_REQUIRE = require; local function checkstring(s) local t = type(s) if t == "string" then return s elseif t == "number" then return tostring(s) else error("bad argument #1 to 'require' (string expected, got "..t..")", 3) end end local function split_prefix_module_name(...
nilq/small-lua-stack
null
name = "xSoulStealerx" me = game.Players[name] me.Chatted:connect(function(msg) if string.sub(msg, 1, 6) == "music/" then local test = string.sub(msg,7) local msg = Instance.new("Hint") msg.Parent = workspace msg.Text = "" local son = Instance.new("Sound") son.Parent = workspace son.Volume = 0.5 son...
nilq/small-lua-stack
null
-- Register a network event RegisterNetEvent( 'wk:deleteVehicle' ) -- The distance to check in front of the player for a vehicle -- Distance is in GTA units, which are quite big local distanceToCheck = 5.0 -- Add an event handler for the deleteVehicle event. -- Gets called when a user types in /dv in chat (see se...
nilq/small-lua-stack
null
#! /usr/bin/env wsapi.cgi local orbit = require("orbit") local cjson = require("cjson") module("example", package.seeall, orbit.new) function log(web) local env_info = {} for k, v in pairs(web.vars) do if type(v) == "string" then env_info[k] = v end end print(web.path_...
nilq/small-lua-stack
null
-- Enhanced from a script written by Wim Langers require'cdlua' require'iuplua' require'iupluacd' require'cdluapdf' function DrawInCanvas(canvas) -- If you want that your coordinates means the same thing independent from the driver -- then set the Window to be the your "world" coordinate system canvas...
nilq/small-lua-stack
null
pfUI:RegisterSkin("Character", function () local border = tonumber(pfUI_config.appearance.border.default) local bpad = border > 1 and border - 1 or 1 local magicResTextureCords = { {0.21875, 0.78125, 0.25, 0.3203125}, {0.21875, 0.78125, 0.0234375, 0.09375}, {0.21875, 0.78125, 0.13671875, 0.20703125},...
nilq/small-lua-stack
null
local S = farming.intllib --= A nice addition from Ademant's grain mod :) -- Rye farming.register_plant("hades_extrafarming:rye", { description = S("Rye seed"), paramtype2 = "meshoptions", inventory_image = "farming_rye_seed.png", steps = 8, place_param2 = 3 }) minetest.override_item("hades_extrafarming:rye",...
nilq/small-lua-stack
null
-- Hello World server -- -- Expects "Hello" from client, replies with "World" -- local zmq = require 'luazmq' local mp = require 'MessagePack' local dumpstring = require 'dump'.dumpstring zmq.init() local address = 'tcp://127.0.0.1:12315' local s = zmq.socket(zmq.ROUTER) s:bind(address) print('server start at '...
nilq/small-lua-stack
null
#!/usr/bin/env lua --[[------------------------------------------------------------------- LuaSrcDiet Compresses Lua source code by removing unnecessary characters. Copyright (c) 2005 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be distributed ...
nilq/small-lua-stack
null
c_vertexes={} c_colors={} c_segments={} local mn2=50 local mn1=50 local fk=2*math.pi local r1=4000 local r2=4000 local r3=4000 local index1 = 0 local c1=0x00903050 local segm1 =fk/mn1 local segm2 =fk/mn2/2 for k=0,mn2 do local z=r3*math.cos(k*segm2) for i=1,mn1 do local x=math.sin(i*segm1)*r1*math.s...
nilq/small-lua-stack
null
-- VARIABLES =================================================================== -- [components] local owner_pathFinding = nil local owner_transform = nil local owner_rigidBody = nil local isConstruct = false --Enemy INFO ParticleSpeed = 20 myMoveIndex = 2 local telePoints = nil local finalPos =...
nilq/small-lua-stack
null
local activityConfig = require "config.activityConfig" local equipConfig = require "config.equipmentConfig" local HeroScroll = require "hero.HeroScroll" local CemeteryConf = require "config.cemeteryConfig" local SmallTeamDungeonConf = require "config.SmallTeamDungeonConf" local openLevel = require "config.openLevel" l...
nilq/small-lua-stack
null
--[[ Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. ]]-- local tnt ...
nilq/small-lua-stack
null
local Rain = require('rain') local numberOfDrops = 1 local width, height = love.graphics.getDimensions() local rain = Rain(width, height, numberOfDrops) function love.load(arg) love.graphics.setBackgroundColor(230, 230, 250) -- Purple end function love.keypressed(k) if k == 'escape' or k == 'q' then l...
nilq/small-lua-stack
null
local chat = require("lukkit/chat") -- Text components are used to create plain messages. local component = chat.text("your text") -- Translatables are used for client side translations. It can be used to send translation keys for the client translate -- client side, this means you are limited to the text provided b...
nilq/small-lua-stack
null
local function ApplyLeading(tooltip_mc, element, amount) local val = 0 if element then if amount == 0 or amount == nil then amount = tooltip_mc.m_Leading * 0.5 end local heightPadding = 0 if element.heightOverride then heightPadding = element.heightOverride / amount else heightPadding = element.he...
nilq/small-lua-stack
null
local CorePackages = game:GetService("CorePackages") local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies) local Roact = InGameMenuDependencies.Roact local Cryo = InGameMenuDependencies.Cryo local UIBlox = InGameMenuDependencies.UIBlox local t = InGameMenuDependencies.t local withStyle = UIBlox....
nilq/small-lua-stack
null
local bmf = require 'bitmapFontLoader' local printf = function(self, string) local origin = self.node:getOrigin() self.text = string local node, rect = bmf.newString(self.bmflabel, self.text, self.material, self.geometry, self.shaderProgram) node:setOrigin(origin) node:setRenderCategory(self.node) node:getSta...
nilq/small-lua-stack
null
local qt = require "qtest" local S = require "serialize" ---- orderedPairs local orderedPairs = S.orderedPairs local function top(t, o) local s = "" for k,v in orderedPairs(t) do s = s .. tostring(k) .. "=" .. tostring(v) .. ";" end return qt.eq(o, s) end top( {y="A", x="a", [5]="b", [false] = tru...
nilq/small-lua-stack
null
local Array = require('arken.Array') local FormHelper = require('arken.Helper.FormHelper') local test = {} test.should_return_html_not_checked = function() local list = Array.new{ { id = 1, name = 'description' } } local data = { id = '1' } local controller = {controller_name = 'form', action_name = 'save'}...
nilq/small-lua-stack
null
return {'wodka','wodkafles','wodanseik','wodan','wodkas','wodans'}
nilq/small-lua-stack
null
package.path = package.path .. ";../src/?.lua" require 'busted.runner'() local match = require("luassert.match") --Mocking the kong/restify dependencies local BasePlugin = { extend = function() return { super = { new = function() end, access = function() end } } end } ...
nilq/small-lua-stack
null
ModMagicNumbersFileAdd( "mods/mod_dev_settings/files/magic_numbers.xml" )
nilq/small-lua-stack
null
-- local mg = metagui settings = { } local modules = { } local moduleProto = { } local moduleMt = extend(moduleProto) local pageProto = { } local pageMt = extend(pageProto) local loadedPages = { } local ap = mg.cfg.assetPath local function setAssetPath(p) mg.cfg.assetPath = p or ap end local scriptId, scriptPat...
nilq/small-lua-stack
null
class "sScriptConfig" function sScriptConfig:__init(name, theme) UpdateWindow() self.name = name self.theme = theme self.state = nil self.states = {} self.substates = {} self.par = {} self.resize = false self.move = false self.pos = {x = 0, z = 50} self.touch = ...
nilq/small-lua-stack
null
return function() local Option = require(script.Parent.Parent.Parent.Option) local assign = require(script.Parent.Parent.Parent.TableUtils.assign) it("should accept zero additional tables", function() local input = {} local result = assign(input) expect(input).to.equal(result) end) it("should merge multi...
nilq/small-lua-stack
null
local wezterm = require 'wezterm' actions = { wezterm.on('trigger-vim-with-scrollback', function(window, pane) local scrollback = pane:get_lines_as_text() local name = os.tmpname() local f = io.open(name, 'w+') f:write(scrollback) f:flush() f:close() window:perform_action( wezterm.action { SpawnCommandInNewW...
nilq/small-lua-stack
null
-- classical-physics data:extend({ { type = "technology", name = "classical-physics", icon = "__fundamental_physics__/graphics/technology/classical-physics.png", icon_size = 128, effects = {}, unit = { count_formula = "5", ingredients = { {"science-pack-1", 1}, ...
nilq/small-lua-stack
null
-- manage a pool of worker threads running arbitrary lua tasks -- copyright 2017 Samuel Baird MIT Licence local class = require('core.class') local array = require('core.array') local rascal = require('rascal.core') local proxy_client = require('rascal.proxy.client') local proxy_server = require('rascal.proxy.server...
nilq/small-lua-stack
null