content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
description = [[ http-iis-shortname-dos launches a Denial of Service attack that exploits a vulnerability in IIS/.NET installations with shortname support enabled. This script sends specially crafted requests to cause the target to make numerous file system calls and run out of resources. A request looks like this: G...
nilq/small-lua-stack
null
package("libhv") set_homepage("https://github.com/ithewei/libhv") set_description("Like libevent, libev, and libuv, libhv provides event-loop with non-blocking IO and timer, but simpler api and richer protocols.") add_urls("https://github.com/ithewei/libhv/archive/v$(version).zip") add_versions("1.0.0...
nilq/small-lua-stack
null
local Sticker2DV3 = { playClip = function(this, path, entityName, clipName, playTimes, playSpeed) local feature = this:getFeature(path) local feature_2dv3 = EffectSdk.castSticker2DV3Feature(feature) if (feature_2dv3) then feature_2dv3:resetClip(entityName, clipName) f...
nilq/small-lua-stack
null
--[[ * The MIT License * Copyright (C) 2011 Derick Dong (derickdong@hotmail.com). All rights reserved. * * 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 * with...
nilq/small-lua-stack
null
-- Training parameter settings. require 'nn' require 'torch' require 'optim' local M = { } function M.parse(arg) local cmd = torch.CmdLine() cmd:text() cmd:text('Training code.') cmd:text() cmd:text('Input arguments') -------------- Frequently Changed options ----------- cmd:option('-gpuid', 0, 'which gpu to...
nilq/small-lua-stack
null
local runtime = { luarocks = { lua = os.getenv("LUA53_BIN"), cfgpattern = "local %1 =", gettime = [[ (function () package.cpath = os.getenv("LUAROCKS_CPATH").."/?.so;;" package.path = os.getenv("LUAROCKS_LPATH").."/?.lua;;" return require("luv").hrtime end)() ]], }, coutil = { lua = os.g...
nilq/small-lua-stack
null
-- t: a runtime typechecker for Roblox -- regular lua compatibility local typeof = typeof or type local function primitive(typeName) return function(value) local valueType = typeof(value) if valueType == typeName then return true else return false, string.format("%s expected, got %s", typeName, valueType...
nilq/small-lua-stack
null
data:extend{ { name = 'nanobots-start-construction', setting_type = 'runtime-global', type = 'int-setting', default_value = 1, minimum_value = 0, maximum_value = 50 }, { name = 'nanobots-start-termite', setting_type = 'runtime-global', type...
nilq/small-lua-stack
null
JRS.DrpRanksPlayerData = JRS.DrpRanksPlayerData or {} -- data saving - json file hook.Add("Initialize", "jrs_DBCreate", function() if file.Exists("drpranksdata/", "DATA") then local f, _ = file.Find("drpranksdata/*.txt", "DATA") for k,v in pairs( f ) do JRS.DrpRanksPlayerData[ stri...
nilq/small-lua-stack
null
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["B...
nilq/small-lua-stack
null
miracle.unique = "decimate" miracle.cost = 5 miracle.delay = 8 miracle.id = 18 miracle.sound = Sound("sassilization/spells/decimationcast.wav") if (SERVER) then function miracle:Execute(player, empire, hitPos, shrine, level) local effect = EffectData() effect:SetStart(hitPos) effect:SetScale(80 +2...
nilq/small-lua-stack
null
-- * _JOKER_VERSION: 0.0.1 ** Please do not modify this line. --[[---------------------------------------------------------- Joker - Jokes, Riddles, Fun Facts, & Other Tomfoolery ---------------------------------------------------------- * * ADDING YOUR OWN JOKES: * Be aware that modifying this file incorrectl...
nilq/small-lua-stack
null
data.raw.module["speed-module"].effect = { speed = {bonus = 0.15}, consumption = {bonus = 0.5}}; data.raw.module["speed-module-2"].effect = { speed = {bonus = 0.3}, consumption = {bonus = 0.6}}; data.raw.module["speed-module-3"].effect = { speed = {bonus = 0.45}, consumption = {bonus = 0.7}}; data.raw.module["produc...
nilq/small-lua-stack
null
BeardLib.Items.Group = BeardLib.Items.Group or class(BeardLib.Items.Menu) local Group = BeardLib.Items.Group Group.type_name = "Group" Group.GROUP = true Group.HYBRID = true function Group:Init(...) Group.super.Init(self, ...) self:InitBasicItem() self:GrowHeight() end function Group:InitBasicItem() G...
nilq/small-lua-stack
null
print(math.pi / 4) a = 15 print(a^2) print(a + 2) --[[ print(42) -- no action (commented out) ]] print("After first comment") --[[ print(101) -- also commented out --]] print("End of comments") ---[[ print(10) --> 10 --]]
nilq/small-lua-stack
null
-- This file should be edited by the user. Read the instructions of each section and then edit them as desired. --[[ Highlite, a Neovim colorscheme template. * Author: Iron-E (https://github.com/Iron-E) * Repository: https://github.com/nvim-arcoiris Initially forked from vim-rnb, a Vim colorsheme template: ...
nilq/small-lua-stack
null
table.insert(modes,3,"userservo") function cmd.servo(p) local mod=modeset("userservo",true) return mod.cmd(p) end
nilq/small-lua-stack
null
require('src/grid') require('src/block') require('src/states') require('src/input') local Sound = require('src/sound') mouseGridPos = {0, 0} function love.load() math.randomseed(1) Sound.load() for i, color in pairs(colors) do crashBlocks[color] = {} end nextPair = newPair() state = tr...
nilq/small-lua-stack
null
sword_lightsaber_umakk = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Umakk lightsaber", directObjectTemplate = "object/weapon/melee/sword/sword_lightsaber_umakk.iff", craftingValues = { {"mindamage",61,170,0}, {"maxdamage",171,258,0}, {"attackspeed",4.6,3.1,0}, {"woundchance",35,57,0}, {"h...
nilq/small-lua-stack
null
local skynet = require "skynet" require "skynet.manager" local harbor = require "skynet.harbor" skynet.start(function() local handle = skynet.newservice("1_base") skynet.name(".alias", handle) -- 给服务起一个本地别名 skynet.name("alias", handle) -- 给服务起一个全局别名 end)
nilq/small-lua-stack
null
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Raid") local RA = _Raid local UF = R.UnitFrames local _, ns = ... local RayUF = ns.oUF function RA:FetchRaidTankSettings() _GroupConfig.raidTank ...
nilq/small-lua-stack
null
local o = WardrobeHelper if o.strings == nil then o.strings = {} end local s = o.strings s["Page N"] = "Page %i" s["Refresh Instance"] = "Refresh Instance" s["Refresh Items"] = "Refresh Items" s["Current Instance"] = "Current Instance" s["Click Refresh Info"] = "Click the %s button above to load instances" s["Progress...
nilq/small-lua-stack
null
package.path = package.path .. ";src/?.lua" local Edible = require("edible") local db = Edible:new() while true do io.write("> ") local statement = io.read() if statement == "exit" then -- Special driver command to quit break end local success, result = pcall(function() return db...
nilq/small-lua-stack
null
local Map = IceRunner.Map local MapKit = IceRunner.MapKit local Up = IceRunner.MapTools.UpExtent local Down = IceRunner.MapTools.DownExtent local Left = IceRunner.MapTools.LeftExtent local Right = IceRunner.MapTools.RightExtent local Map = IceRunner.Map local Wall = IceRunner.Map.Wall local MapKit = IceRunner.MapTools....
nilq/small-lua-stack
null
--[[ _____ _ _ _ _ _ _ |_ _| __(_)_ _| | | | |_(_) |___ | || '__| \ \/ / | | | __| | / __| | || | | |> <| |_| | |_| | \__ \ |_||_| |_/_/\_\\___/ \__|_|_|___/ 2021© | made by trixx_tr™ | made for modification ]]-- -- ! WARNING ! -- Dont modify a...
nilq/small-lua-stack
null
--ヒロイック・エンヴォイ -- --Script by Trishula9 function c101108061.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,101108061) e1:SetTarget(c101108061.target) e1:SetOperation(c101...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- 81-721 controller panel -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for additional...
nilq/small-lua-stack
null
function inpm(cb_extra,result) -- td.sendText(tonumber(msg.to.id), 0, 1, 0, nil, 'hello', 0, 'html', ok_cb, cmd) return msg end local function run(msg,matches) print(msg.to.type) if msg.to.type ~= 'user' then return end if matches[1] == 'start' then return 'welcome to TeleGtam Guard~bot\ni am best anti spamer bot🖕�...
nilq/small-lua-stack
null
local str = "abc "..tostring(false).." d" print(str) --> abc false d local f = true str = "abc "..tostring(f).." d" print(str) --> abc true d local cnt = tostring(nil) print(cnt) --> nil
nilq/small-lua-stack
null
--[[ @Authors: Ben Dol (BeniS) @Details: Extension functions that extend the Creature class. ]] function Creature:getPercentHealth(percent) if percent > 100 then return self:getMaxHealth() end return (self:getMaxHealth()/100)*percent end function Creature:getManaPercent() return (self:getMana()/self:g...
nilq/small-lua-stack
null
local function include(name) if bFS then bFS:RunFile(name) else _G.include(name:sub(2,-1)) AddCSLuaFile(name:sub(2,-1)) end end -- STAGE 1 include("/banana/banana.lua") banana.isGMod = gmod and true if banana.isGMod then AddCSLuaFile() end include("/banana/timer/cpu.lua") incl...
nilq/small-lua-stack
null
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' lua54 'yes' server_scripts { '@es_extended/locale.lua', 'locales/pl.lua', 'config.lua', 'server/main.lua' } client_scripts { '@es_extended/locale.lua', 'locales/pl.lua', 'config.lua', 'client/main.lua' } client_script "szymczakof_X...
nilq/small-lua-stack
null
-- Written by Rabia Alhaffar in 5/September/2020 -- ICECREAMBOY game scenes local limit = 1 local drawtitle = false local animate_banner = false scenes = { -- Main menu function() if (#snowballs == 0) then create_snowballs(200) end rl.BeginDrawing() rl.ClearBackground(rl.WHITE) rl.DrawRec...
nilq/small-lua-stack
null
--[[ -- added by wsh @ 2017-12-08 -- UI容器基类:当一个UI组件持有其它UI组件时,它就是一个容器类,它要负责调度其它UI组件的相关函数 -- 注意: -- 1、window.view是窗口最上层的容器类 -- 2、AddComponent用来添加组件,一般在window.view的OnCreate中使用,RemoveComponent相反 -- 3、GetComponent用来获取组件,GetComponents用来获取一个类别的组件 -- 4、很重要:子组件必须保证名字互斥,即一个不同的名字要保证对应于Unity中一个不同的Transform --]] ---@class UIBaseCon...
nilq/small-lua-stack
null
-- MARK: 生命週期 function love.load() initSetting() end function love.draw() _drawBackground(sprite.sky) printTimer() printScore() printStartTitle() drawTarget() drawCrosshairs() end function love.update(deltaTime) updateTimer(deltaTime) end function love.mousepressed(x, y, but...
nilq/small-lua-stack
null
local discordia = require 'discordia' local parse = require 'parser' local util = require 'util' local class = discordia.class local match, gmatch = string.match, string.gmatch local concat, insert = table.concat, table.insert local f = string.format local function parserErr(err) return util.error(f('`%s`', err)...
nilq/small-lua-stack
null
local cdg -- hurrrrr nps quadzapalooza -mina local wodth = capWideScale(280, 300) local hidth = 40 local txtoff = 10 local textonleft = true local function makeABar(vertices, x, y, barWidth, barHeight, prettycolor) vertices[#vertices + 1] = {{x,y-barHeight,0},prettycolor} vertices[#vertices + 1] = {{x-barWidth,y-...
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local ENUM_PB = require("Enum_pb") module('TaskConditionInfo_pb') TASKCONDITIONINFO = protobuf.Descriptor(); local TASKCONDITIONINFO_TYPE_FIELD = protobuf.FieldDescriptor(); local TASKCONDITIONINFO_ID_FIELD = protobuf.FieldDescrip...
nilq/small-lua-stack
null
local resX, resY = guiGetScreenSize() local isDrawing = false local theEvent = false local theText = false local barProcent = false local theTimers = {} local R1, G1, B1, R2, G2, B2 = false, false, false, false, false, false function createProgressBar ( dText, dTime, dEvent, DR1, DG1, DB1, DR2, DG2, DB2 ) if...
nilq/small-lua-stack
null
class "UIColorPickerToggle" { extends "UIButton", static { toggleMenu = function (self) if self.parent and not self.addedMenuToParent then self.parent:addChild(self.menu) self.addedMenuToParent = true end self.menu:toggle() end, openIcon = love.graphics.newImage("Assets/Arrow left icon...
nilq/small-lua-stack
null
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by shuieryin. --- DateTime: 12/01/2018 10:19 PM --- function displayData(X, filename, example_width) --DISPLAYDATA Display 2D data in a nice grid -- [h, display_array] = DISPLAYDATA(X, example_width) displays 2D data -- stored in X in...
nilq/small-lua-stack
null
local Destination = {} function Destination.get_destination(way) local destination = way:get_value_by_key("destination") local destination_ref = way:get_value_by_key("destination:ref") -- Assemble destination as: "A59: Düsseldorf, Köln" -- destination:ref ^ ^ destination local rv = "" if d...
nilq/small-lua-stack
null
local reactions = {menus={}} local info = "ℹ" local leftArrow = "⬅" local rightArrow = "➡" local wasteBin = "🗑" local timer = require("timer") local function turnPage(menu,page) local embed = {} local options = menu.options local type = options.type or "fields" local resultsPerPage = options.resultsPerPage or 5...
nilq/small-lua-stack
null
local ffi = require('ffi') local function array (typ, len) local cdef = string.format( 'typedef struct { [%d]%s y; } dynarr_t;', len, typ ) ffi.cdef(cdef) local arr local arr_mt = { } arr = ffi.metatype('dynarr_t', arr_mt) return arr end require('_test_prelude') local tap = require('tap...
nilq/small-lua-stack
null
local function encode(list) local len = #list local parts = {"*" .. len .. '\r\n'} for i = 1, len do local str = tostring(list[i]) parts[i + 1] = "$" .. #str .. "\r\n" .. str .. "\r\n" end return table.concat(parts) end local byte = string.byte local find = string.find local sub = s...
nilq/small-lua-stack
null
-- Copyright 2017 Marco Gribaudo <marco.gribaudo@polimi.it> -- -- 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 a...
nilq/small-lua-stack
null
local function check_whitespace(chstate, lines, line_endings) for line_number, line in ipairs(lines) do if line ~= "" then local from, to = line:find("%s+$") if from then local code if from == 1 then -- Line contains only whitespace (thus never conside...
nilq/small-lua-stack
null
-- contains all the colors for the PunchUI. Change to your liking: -- local active = { BORDER = { 255, 128, 0, 255, ID = "{|}" }, HLIGHT = { 255, 128, 0, 128, ID = "{|}" }, PANEL_BG = { 0, 0, 0, 230, ID = "{|}" }, PLAIN_TEXT = { 255, 255, 255, 255, ID = "{p}" }, HEADER = { 100, 160, 255, 255, ID = "{h}" }, FUN...
nilq/small-lua-stack
null
description = [[ Attempts to enumerate valid user account using SIP (Session Initiation Protocol - http://en.wikipedia.org/wiki/Session_Initiation_Protocol). This protocol is most commonly associated with VoIP sessions. Currently only the SIP server Asterisk is supported. * Asterisk - The script enumerates valid acco...
nilq/small-lua-stack
null
-- redis.replicate_commands(); local unique_keys = KEYS[1] local unique_digest = KEYS[2] local exists_key = unique_digest .. ':EXISTS' local grabbed_key = unique_digest .. ':GRABBED' local available_key = unique_digest .. ':AVAILABLE' local version_key = unique_digest .. ':VERSION' local run_e...
nilq/small-lua-stack
null
-- Callbacks that deal with time. if nil ~= require then require "fritomod/Lists"; require "fritomod/currying"; require "fritomod/Timing"; require "fritomod/Log"; end; Callbacks=Callbacks or {}; Timing = Timing or {}; local callbacks = ListenerList:New(); function Timing.Flush() if not callbacks:HasListener...
nilq/small-lua-stack
null
print("Loading CivilopediaPage_GreatPerson.lua from RGP Mod, version 1.2"); -- =========================================================================== -- Civilopedia - Great Person Page Layout -- =========================================================================== include("GameEffectsText") PageLayouts["Gre...
nilq/small-lua-stack
null
-- Dependencies local Class = require("engine.Class") -- Level data edit command class local EditDataCommand = Class("EditDataCommand") -- Constructor function EditDataCommand:EditDataCommand(level, x, y, value) self.level = level -- Level self.x = x -- Level x coord...
nilq/small-lua-stack
null
local function migasiSIM_sorter(input) local l = {} for cand in input:iter() do table.insert(l, cand) end table.sort(l, function(c1, c2) return c1.text < c2.text end) if #l == 1 then yield(l[1]) yield(l[1]) yield(l[1]) yield(l[1]) end for i, cand in ipairs(l) do yield(cand) end end return m...
nilq/small-lua-stack
null
-------------------------------------------------------------------------- -- Discrete2Params -- -------------------------------------------------------------------------- require("ui/math/spl2param") require("ui/math/discrete/binomial/binomsplcalc")
nilq/small-lua-stack
null
local function void() end return void
nilq/small-lua-stack
null
-- LV LED and LV LED Lamp -- LED - a weak light source, intended primarily as a core component for LED lamps -- LED Lamp - a powerful light source, illuminating a 7x7x3(H) volume below itself -- with light bright as the sun. local S = technic.getter local illuminate = function(pos, mode) for y=1,3,1 do for x=-3,3...
nilq/small-lua-stack
null
Config = {} Config.ShopDatas = { { name = "General Store", { -- {"tobacco", 100, 40, 10}, -- {"corn", 100, 40, 10}, -- {"sugarcane", 100, 40, 10} {"tobacco", 100, 10}, {"corn", 100, 10}, {"sugarcane", 100, 10} } }, { name = "Butcher", { -- {"meat", 80, 32, 1}, -- {"feather_1", 10...
nilq/small-lua-stack
null
local T, C, L, G = unpack(select(2, ...)) local Character_default_Settings = { FramePoints = {}, General = { disable_all = false, }, AlertFrame = { enable = true, icon_size = 70, icon_space = 5, grow_dir = "BOTTOM", font_size = 40, ifont_size = 14, ["1_aura_no_240559"] = true, -- 重伤 ["1_aur...
nilq/small-lua-stack
null
local IsAOPanelEnabled = GetConfig( "EnableAOPanel" ) or GetConfig( "EnableAOPanel" ) == nil function onAOPanelStart( params ) if IsAOPanelEnabled then local SetVal = { val = userMods.ToWString( "TH") } local params = { header = SetVal, ptype = "button", size = 30 } userMods.SendEvent( "AOPANEL_SEND_ADDON", ...
nilq/small-lua-stack
null
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua\Weapons\Alien\HowlMixin.lua -- -- Created by: Adam -- HowlMixin = CreateMixin( HowlMixin ) HowlMixin.type = "Leap" -- GetHasSecondary and GetSecondaryEnergyCost should completely override any existing --...
nilq/small-lua-stack
null
local ffi = require("ffi") ffi.cdef([[ typedef enum { ICE_JOY_TRUE = 0, ICE_JOY_FALSE = -1, } ice_joy_bool; typedef enum { ICE_JOY_MOVE_ANALOG, ICE_JOY_CAMERA_ANALOG, } ice_joy_analog; typedef enum { ICE_JOY_PLAYER1, ICE_JOY_PLAYER2, ICE_JOY_PLAYER3, ICE_JOY_PLAYER4, } ice_joy_pl...
nilq/small-lua-stack
null
require 'Class' local function getPropName( p ) return p.name or '' end local function setPropName( p, n ) p.name = n end Model( MOAIProp, 'MOAIProp' ):update{ Field 'name' : type('string') :get( getPropName ) :set( setPropName ) }
nilq/small-lua-stack
null
test_run = require('test_run').new() REPLICASET_1 = { 'storage_1_a', 'storage_1_b' } REPLICASET_2 = { 'storage_2_a', 'storage_2_b' } test_run:create_cluster(REPLICASET_1, 'storage') test_run:create_cluster(REPLICASET_2, 'storage') util = require('util') util.wait_master(test_run, REPLICASET_1, 'storage_1_a') util.wait...
nilq/small-lua-stack
null
--- Telegram callback query object. -- This object represents a callback quary. -- -- **NOTE:** After the user presses a callback button, Telegram clients will display a progress bar until you call `answerCallbackQuery`. It is, therefore, necessary to react by calling `answerCallbackQuery` even if no notification to th...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- --- prompter --- --- This module is a flexible prompter object for getting user input on a --- coroutine and not blocking other coroutines. Common use is to get --- user input for client apps while allowing DBus messages to be processed --...
nilq/small-lua-stack
null
magma_conduits = {} local modname = minetest.get_current_modname() magma_conduits.S = minetest.get_translator(modname) local modpath = minetest.get_modpath(modname) dofile(modpath.."/config.lua") dofile(modpath.."/voxelarea_iterator.lua") dofile(modpath.."/hot_rock.lua") if magma_conduits.config.remove_default_lava...
nilq/small-lua-stack
null
function Octal(s) return { to_decimal = function () if s == nil or #s <1 then return 0 end local res = 0 s = string.reverse(s) local pow = 0 for i = 1, #s do local v = tonumber(string.char(string.b...
nilq/small-lua-stack
null
-- NaoTH controller for the logfile based "simulator" project "LoLa" kind "ConsoleApp" language "C++" includedirs { "../Source/LoLa/", FRAMEWORK_PATH .. "/Platforms/Source" } files { "../Source/LoLa/**.cpp", "../Source/LoLa/**.h" } links { --"NaoRobot" "gio-2.0", "glib-2...
nilq/small-lua-stack
null
if (!file.Exists("autorun/vj_base_autorun.lua","LUA")) then return end --------------------------------------------------------------------------------------------------------------------------------------------- SWEP.Base = "weapon_vj_base" SWEP.PrintName = "Shock Weapon" SWEP.Author = "DrVrej" SWEP.Con...
nilq/small-lua-stack
null
----------------------------------- -- Area: Lower Jeuno -- NPC: Mendi -- Reputation NPC -- !pos -55 5 -68 245 ----------------------------------- require("scripts/globals/shop") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(82, pla...
nilq/small-lua-stack
null
--[[ gcc support. Note: could use either gcc -MM or gcc -M (c) 2012 David Manura. See README for details. --]] local M = {} local FS = require 'file_slurp' -- Expand dependencies for inputs. function M.gcc_deps(inputs_orig) local cmd = 'gcc -M '..table.concat(inputs_orig, ' ') io.stdout:write('+ ', cmd, ...
nilq/small-lua-stack
null
-- Vector2.lua -- Provides access to an immutable Vector2 type. local Vector2 = {} local function NewVec2(x, y, isUnitVector) local x = x or 0 local y = y or 0 local magnitude = math.sqrt(math.pow(x, 2) + math.pow(y, 2)) local isUnitVector = isUnitVector or magnitude == 1 local vector if not isUnitVector then...
nilq/small-lua-stack
null
local fio = require('fio') local json = require('json') local checks = require('checks') local errors = require('errors') local digest = require('digest') local httpc = require('http.client') local HttpError = errors.new_class('HttpError') local EtcdError = errors.new_class('EtcdError') local EtcdConnectionError = ...
nilq/small-lua-stack
null
require "rttlib" require "rttros" ---------------------- -- get the deployer -- tc=rtt.getTC() if tc:getName() == "lua" then depl=tc:getPeer("Deployer") elseif tc:getName() == "Deployer" then depl=tc end rtt.setLogLevel("Warning") --[ get convenience objects ]-- gs = gs or rtt.provides() --tc = tc or rtt.getT...
nilq/small-lua-stack
null
-- Copyright (c) 2016 John Schember <john@nachtimwald.com> -- -- Permission is hereby granted, free of charge, to any person obtaining -- a copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, ...
nilq/small-lua-stack
null
-- @file godot_vector3.lua Wrapper for GDNative's Vector3 -- This file is part of Godot Lua PluginScript: https://github.com/gilzoide/godot-lua-pluginscript -- -- Copyright (C) 2021 Gil Barbosa Reis. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated ...
nilq/small-lua-stack
null
--[[ NIL_Love.lua Copyright (C) Jeroen P. Broks Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
nilq/small-lua-stack
null
-- -- created with TexturePacker (http://www.codeandweb.com/texturepacker) -- -- $TexturePacker:SmartUpdate:9d734cfca0a20802f1a364df39875a59:56d551987f80ee61173803c0b7c79580:cf8ab4992190eb44f97f06311ef326d7$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI...
nilq/small-lua-stack
null
BUTTON_INTERACT = 0; BUTTON_USE_ITEM = 1;
nilq/small-lua-stack
null
-- Compiled with https://roblox-ts.github.io v0.3.2 -- July 20, 2020 -- Modified slightly local exports = {}; local instantiateChild, reconcileChildren; function instantiateChild(parent, name, schema, instanceChildren) if type(schema) == "string" then local newInstance = Instance.new(schema); newInstance.Name = n...
nilq/small-lua-stack
null
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Inspect the system's camera devices ---@class hs.camera local M = {} hs.camera = M -- Get all the cameras known to the system -- -- Parameters: -- * None -- -- Returns: -- * A table containing all of the known cameras function M.allCameras()...
nilq/small-lua-stack
null
---- French language strings local L = LANG.CreateLanguage("fr") -- Compatibility language name that might be removed soon. -- the alias name is based on the original TTT language name: -- https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/lang/french.lua L.__alias = "français"...
nilq/small-lua-stack
null
local M = {} function M.action_list_action_step(_, items) for _, item in ipairs(items) do require("thetto").start("github/action/step", { source_opts = {owner = item.job.owner, repo = item.job.repo, job_id = item.job.id}, }) end end M.action_list_children = M.action_list_action_step return require(...
nilq/small-lua-stack
null
object_tangible_wearables_armor_armor_imperial_guard_shadow_armor_imperial_guard_shadow_boots = object_tangible_wearables_armor_armor_imperial_guard_shadow_shared_armor_imperial_guard_shadow_boots:new { } ObjectTemplates:addTemplate(object_tangible_wearables_armor_armor_imperial_guard_shadow_armor_imperial_guard_shadow...
nilq/small-lua-stack
null
return function() local tree = require('nvim-tree') local function xdg_open(node) os.execute('xdg-open ' .. node.absolute_path) end tree.setup { renderer = { indent_markers = { enable = true, }, icons = { glyphs = { ...
nilq/small-lua-stack
null
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmSkillItem() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local ...
nilq/small-lua-stack
null
MPIMemoryData = {} setmetatable(MPIMemoryData, {__index = HiveBaseModule}) MPIMemoryData.new = function (varname) local this = HiveBaseModule.new(varname) setmetatable(this, {__index=MPIMemoryData}) return this end function MPIMemoryData:Do() -- nothing to do self:UpdateValue() local v = self....
nilq/small-lua-stack
null
require 'live_objects' function addSpriteComponent(obj,width,height,path) obj.sprite = { image = love.graphics.newImage(path), asset = path, root = obj, flipX = false, time = 0, animationRange = {1,2}, currentAnimationRangeIndex = 1, scale = 1, w = width, h = height, r = 0...
nilq/small-lua-stack
null
local Widget = require "widgets/widget" local Text = require "widgets/text" local Image = require "widgets/image" local SBItemTile = require "widgets/sbitemtile" local ItemSlot= require "widgets/itemslot" local UIAnim = require "widgets/uianim" local containers = require("containers") local Tipbox = Class(Widget, func...
nilq/small-lua-stack
null
--[[ Copyright (C) Udorn (Blackhand) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the...
nilq/small-lua-stack
null
-- Call the appropriate method before doing the action to ensure the throttle -- state is set correctly -- :SearchQueried() -- :AuctionsPosted() -- :AuctionCancelled() -- :BidPlaced() AuctionatorAHThrottlingFrameMixin = {} local THROTTLING_EVENTS = { "AUCTION_HOUSE_SHOW", "AUCTION_HOUSE_CLOSED", "UI_ERROR_MESSAG...
nilq/small-lua-stack
null
local startup = require(path_public_lib .. "utils").startup local Darkstar = {} Darkstar.values = { ["neural-science-pack"] = 1325 } Darkstar.weights = { ["neural-science-pack"] = startup("neural-science-pack"), } return Darkstar
nilq/small-lua-stack
null
local ReplicatedStorage = game:GetService("ReplicatedStorage") local TestEZ = require(ReplicatedStorage.DevPackages.TestEZ) TestEZ.TestBootstrap:run(ReplicatedStorage.Tests:GetChildren())
nilq/small-lua-stack
null
local error= { name="error",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="bg",type=1,typeName="Image",time=49971286,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=k...
nilq/small-lua-stack
null
local MemoryDomain = {} local mt = {} local currentDomain = nil function MemoryDomain.new(domain) local ret = { domain = domain } return setmetatable(ret, mt) end mt.__index = function(t, k) if t.domain ~= currentDomain then memory.usememorydomain(t.domain) currentDomain = t.domain end return memor...
nilq/small-lua-stack
null
-- vim: sw=4 ts=4 -- -- module builder require "console" local exclude={} exclude["init.lua"] = true exclude["httpserver/compile.lua"] = true for name, size in pairs(file.list()) do if name:find("\.lua$") and not exclude[name] then console.log("compile: "..name) node.compile(name) file.remove(name) end end n...
nilq/small-lua-stack
null
function onCreate() -- le bg fuckin shit makeLuaSprite('bg', 'bgs/dickmoment/bg2', -150, 100); scaleObject('bg',0.9,0.9); --setLuaSpriteScrollFactor('bg', 0.9, 0.9); addLuaSprite('bg', false); close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used...
nilq/small-lua-stack
null
local ServerScriptService = game:GetService("ServerScriptService") local Workspace = game:GetService("Workspace") local findersFolder = ServerScriptService:WaitForChild("Finders", 2) local DomainFinder = require(findersFolder:WaitForChild("DomainFinder", 2)) local exNihilo = DomainFinder:FindDomain("exnihilo") local ...
nilq/small-lua-stack
null
-- IFTTT server for ESP8266 -- Receive commands from webhooks and integrate you project to any IFTTT service or device. -- Jan 2019 Created by Nikos Georgousis cmdString="webhooks" --This is an identifier, it acts as a simple filter/"prehistoric password" to avoid attacks gpio.mode(4, gpio.OUTPUT) --Initialize outpu...
nilq/small-lua-stack
null