content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local domains = require("sample_domains") write_result("domain, ip, error") for _, domain in pairs(domains) do log("Looking up " .. domain) address, err = dns_lookup(domain) if err then log("Error looking up " .. domain .. ": " .. err) write_result(domain .. ",, " .. err) else write_result(domain ....
nilq/small-lua-stack
null
-- 业务路由管理 local userRouter = require("app.routes.user") return function(app) -- simple router: hello world! app:get("/hello", function(req, res, next) res:send("hi! welcome to lor framework.") end) -- simple router: render html, visit "/" or "/?name=foo&desc=bar app:get("/", function(req,...
nilq/small-lua-stack
null
items = {1,2,3,4,1,2,3,4,"bird","cat","dog","dog","bird"} flags = {} io.write('Unique items are:') for i=1,#items do if not flags[items[i]] then io.write(' ' .. items[i]) flags[items[i]] = true end end io.write('\n')
nilq/small-lua-stack
null
require 'Snake' require 'Fruit' push = require 'push' VIRTUAL_WIDTH = 960 VIRTUAL_HEIGHT= 540 WINDOW_WIDTH = 1280 WINDOW_HEIGHT = 720 function love.load() -- Set the window title to Snake love.window.setTitle('Snake') -- Pixelated filter love.graphics.setDefaultFilter('nearest', 'nearest') -- Set the wi...
nilq/small-lua-stack
null
-- radyjko by Neyo ! :D addEventHandler ( "onVehicleEnter", root, function(plr,lel,...) local veh = getPedOccupiedVehicle(plr) local id = getElementData(veh,"vehicle:id") if not id then return end outputChatBox("* Aby dodać stacje radiowe wpisz /radio.", plr) outputChatBox("* Aby wybrać stacje radiowe użyj scrolla."...
nilq/small-lua-stack
null
----------------- local radius = 20 Interface:create_slider('houses', 0, 100, 1, 22) Interface:create_slider('people', 10, 1000, 1, 25) -- In tick 0, all the agents are in the center of the grid, so we only have to divide 360º by -- the number of agents to obtain the degrees of separation between agents (step). -- On...
nilq/small-lua-stack
null
return require "snownet.profile"
nilq/small-lua-stack
null
-- Remove file res = file.open("test.lua", "w"); while true do if(res == false) then print("Open file failed"); break; end file.close(); file.remove("test.lua"); -- remove file break; end
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
AddCSLuaFile() SWEP.PrintName = "Имперский стальной двуручный меч" SWEP.Slot = 2 SWEP.SlotPos = 1 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false SWEP.Category = "WitcherRP" SWEP.Author = "" SWEP.Base = "nut_claymore_base" SWEP.Instructions = "" SWEP.Contact = "" SWEP.Purpose = "" SWEP.ViewModelFOV =...
nilq/small-lua-stack
null
return require("null-ls.builtins").code_actions.eslint.with({ name = "eslint_d", command = "eslint_d", meta = { url = "https://github.com/mantoni/eslint_d.js", description = "Injects actions to fix ESLint issues or ignore broken rules. Like ESLint, but faster.", }, })
nilq/small-lua-stack
null
--|> SIMPLEX | Easy-to-use interaction system <|-- -- ShutoExpressway -- Registers global variables for the server. -- Side note: _G IS NOT BAD IN MOST CASES WeirdChamp local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerStorage = game:GetService("ServerStorage") local SIMPLEX_FOLDERS = { sha...
nilq/small-lua-stack
null
object_tangible_npe_npe_sign_hangar_1 = object_tangible_npe_shared_npe_sign_hangar_1:new { } ObjectTemplates:addTemplate(object_tangible_npe_npe_sign_hangar_1, "object/tangible/npe/npe_sign_hangar_1.iff")
nilq/small-lua-stack
null
--[[ © 2021 Tony Ferguson, do not share, re-distribute or modify without permission of its author ( devultj@gmail.com - Tony Ferguson, http://www.tferguson.co.uk/ ) ]] dHeists.cctv = dHeists.cctv or {} util.AddNetworkString( "dHeists_ViewCCTV" ) function dHeists.cctv.viewCCTV( player, entity ) if player...
nilq/small-lua-stack
null
local function matrix_multiply(a, b) if a.matrix_width ~= b.matrix_height then error("invalid matrix sizes", 2) end local m = {} m.matrix_height = a.matrix_height m.matrix_width = b.matrix_width for y=0,a.matrix_height-1 do for x=0,b.matrix_width-1 do local sum = 0 fo...
nilq/small-lua-stack
null
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT return function(set, func) if func == nil then return #set end local c = 0 for _, v in ipairs(set) do if func(v) then c = c + 1 end end return c end
nilq/small-lua-stack
null
--鬼屠夫 local m=14010028 local cm=_G["c"..m] function cm.initial_effect(c) --SpecialSummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCA...
nilq/small-lua-stack
null
local Position = {} Position.new = function() local self = Position return self end Position.init = function(self, bin, display) self.bin = bin self.display = display end Position.movePosition = function(self, parameter) local resultMovePosition = self.bin.window:movePosition(parameter) if not self.bin....
nilq/small-lua-stack
null
--[[ TheNexusAvenger Tests for VRSurfaceGui. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusVRCore = require(game:GetService("ReplicatedStorage"):WaitForChild("NexusVRCore")) local NexusWrappedInstance = NexusVRCore:GetResource("NexusWrappedInstance") local VRSurfaceGui = NexusVRCore:GetResourc...
nilq/small-lua-stack
null
----------------------------------- -- Area: Apollyon NE -- Mob: Apollyon Cleaner ----------------------------------- local ID = require("scripts/zones/Apollyon/IDs") function onMobDeath(mob, player, isKiller, noKiller) if isKiller or noKiller then local mobID = mob:getID() local battlefield = mob...
nilq/small-lua-stack
null
---------------------------------------- -- Sassilization -- http://sassilization.com -- By Sassafrass / Spacetech / LuaPineapple -- Models By Jaanus ---------------------------------------- EFFECT.RenderGroup = RENDERGROUP_BOTH function EFFECT:Init() if(GHOST_WALL_EFFECT) then self:SetModel( "mo...
nilq/small-lua-stack
null
function AllWords () local line = io.read() local pos = 1 return function () while line do local s, e = string.find(line, "%w+", pos) if s then pos = e + 1 return line:sub(s, e) else line = io.read() ...
nilq/small-lua-stack
null
local xpnn_logic = {} --牌的花色掩码 MASK_VALUE = 0x0F MASK_COLOR = 0xF0 CARD_TYPE = { no_niu = 0x0000, --无牛 niu1 = 0x0001, --牛一 niu2 = 0x0002, --牛二 niu3 = 0x0003, --牛三 niu4 = 0x0004, --牛四 niu5 = 0x0005, --牛五 niu6 = 0x0006, --牛六 niu7 = 0x0007, --牛七 niu8 ...
nilq/small-lua-stack
null
#!/usr/bin/env lua dofile('Penlight/penlight-scm-1.rockspec') local out = io.open('lua-penlight.lua', 'w') for name, file in pairs(build.modules) do out:write(string.format("package.preload['%s'] = function()\n", name)) if name == 'pl.path' then out:write([[ local os = {} for k, v in pairs(_G.os) do os[k] = v e...
nilq/small-lua-stack
null
--[[ © 2015 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] CW_SPANISH = Clockwork.lang:GetTable("Spanish"); CW_SPANISH["AreaDisplayRemo...
nilq/small-lua-stack
null
local MinigameController = require("scenes.minigame.MinigameController") local Controller = class("Controller", MinigameController) -- Call self:onSuccess() when player wins local SPEED = { 1.5, 2.5, 3.5, 4.5, 5.5 } local THRESHOLD = 0.2 function Controller:initialize(level) MinigameController.initialize(self, "...
nilq/small-lua-stack
null
function Gluth_OnCombat(pUnit, Event) pUnit:SendChatMessage(14, 0, "Rawr!") pUnit:RegisterEvent("Gluth_MortalWound", 30000, 0) pUnit:RegisterEvent("Gluth_Decimate", 105000, 0) pUnit:RegisterEvent("Gluth_TerrifyingRoar", 20000, 0) end function Gluth_OnLeaveCombat(pUnit, Event) pUnit:RemoveEvents() end function Gluth_...
nilq/small-lua-stack
null
local level = 635041 local first_recipe = { score = 3, prev = nil, next = nil } local second_recipe = { score = 7, prev = first_recipe, next = first_recipe } first_recipe.prev = second_recipe first_recipe.next = second_recipe local first_elf = first_recipe local second_elf = second_recipe local last = second_recipe...
nilq/small-lua-stack
null
--[[ Name: AceHook-2.1 Revision: $Rev: 17638 $ Developed by: The Ace Development Team (http://www.wowace.com/index.php/The_Ace_Development_Team) Inspired By: Ace 1.x by Turan (turan@gryphon.com) Website: http://www.wowace.com/ Documentation: http://www.wowace.com/index.php/AceHook-2.1 SVN: http://svn.wowace.com/root/tr...
nilq/small-lua-stack
null
-- from https://raw.githubusercontent.com/Stellarium/stellarium/master/skycultures/western_rey/constellationship.fab { --chart = "1", {name="UMi", 7, 11767, 85822, 85822, 82080, 82080, 77055, 77055, 79822, 79822, 75097, 75097, 72607, 72607, 77055}, {name=".UMig", 1, 72607, 75097}, {name="Dra", 15, 87585, 87833...
nilq/small-lua-stack
null
--モーターシェル --Sctipt By JSY1728 function c100200203.initial_effect(c) --"Motor Token" Summon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_TO_GRAVE) e1:SetCountL...
nilq/small-lua-stack
null
----------------------------------------- -- ID: 16472 -- Item: Poison Knife -- Additional Effect: Poison ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------- function onAdditionalEffect(player,ta...
nilq/small-lua-stack
null
-- func1 comment function myfunc1(arg1, arg2) return 1 + cfunc1(-10, cfunc1(arg1, arg2)) end
nilq/small-lua-stack
null
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Ulla -- !pos -65 2 -50 80 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(508); end; function onEventUpdate(player,csid,option) end; function onEventFinish(pla...
nilq/small-lua-stack
null
local GUID_LAEZEL = "58a69333-40bf-8358-1d17-fff240d7fb12" function TestComponentGeneric(componentName, expect) local ch = Ext.GetCharacter(GUID_LAEZEL) local component = ch[componentName] -- FIXME - add ==, ~= operator for entities, component handles -- expect.Entity = ch AssertEqualsProperties(e...
nilq/small-lua-stack
null
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if (CLIENT) then SWEP.Slot = 5; SWEP.SlotPos = 5; SWEP.DrawAmmo = false; SWEP.PrintName = "Heal Ability"; SWEP.DrawCrosshair = true; end SWEP.Author = "JohnyReaper" SWEP.Instructions = "Primary Fire: Heal"; SWEP.Purpose = "To healing people."; SWEP....
nilq/small-lua-stack
null
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by apple. --- DateTime: 2018/9/20 下午11:15 --- --- @class PreAttackEffect : NewGameObject PreAttackEffect = NewGameObject:extend() function PreAttackEffect:new(area,x,y,opts) PreAttackEffect.super.new(self,area,x,y,opts) self.duration = opts...
nilq/small-lua-stack
null
------------------------------------------------------------------------------ -- Require -- ------------------------------------------------------------------------------ local mysql = require("resty.mysql") require('orm.class.global') require("...
nilq/small-lua-stack
null
--[[ -x = 1 -z = 2 +x = 3 +z = 4 ]] nilfunc = function() return end TT1 = require("fuelCheck") -- if you don't want or need this then just remove this if not TT1 then refuelItself = nilfunc end --- config --- blacklist = { "chest", "turtle" } veinMiningEnabled = true -------------- -- Turn functions...
nilq/small-lua-stack
null
--- -- JSON-RPC module. -- -- @module lupidary.jsonrpc -- @author t-kenji <protect.2501@gmail.com> -- @license MIT -- @copyright 2021 t-kenji local _M = {_VERSION = '0.1.0'} _M.__index = _M local json = require('json') local encode, decode = json.encode, json.decode local sub, byte = string.sub, str...
nilq/small-lua-stack
null
ITEM.name = "Refrigerator" ITEM.description = "containerRefrigeratorDesc" ITEM.ContainerModel = "models/props_c17/furniturefridge001a.mdl" ITEM.price = 120
nilq/small-lua-stack
null
-- Modified by Alberto Pettarin -- Date: 2017-01-16 -- ALPE API docs https://awesome.naquadah.org/doc/api/ -- ALPE see also https://awesome.naquadah.org/wiki/FAQ -- ALPE see also https://wiki.archlinux.org/index.php/Awesome -- Standard awesome library local gears = require("gears") local awful = require("awful") awfu...
nilq/small-lua-stack
null
local function ixActMenu() local animation = {"/Actstand","/Actsit","/Actsitwall","/Actcheer","/Actlean","/Actinjured","/Actarrestwall","/Actarrest","/Actthreat","/Actdeny","/Actmotion","/Actwave","/Actpant","/ActWindow"} local animationdesc = {"Stand here","Sit","Sit against a wall","Cheer","Lean against a wall","La...
nilq/small-lua-stack
null
data:extend({ {type = "int-setting", name = "WHMB_update_tick", setting_type = "runtime-global", default_value = 120, minimal_value = 1, maximal_value = 8e4}, {type = "bool-setting", name = "WHMB_create_lines", setting_type = "runtime-per-user", default_value = true} })
nilq/small-lua-stack
null
local Class = require "Utils/Class" local ManagerBase = require "Manager/ManagerBase" local TimerManager = Class("TimerManager", ManagerBase) local _timeSeconds = 0.0 local _pendingTimers = {} local _pauseTimers = {} local _progressingTimers = {} local _lock = false local _delayOperations = {} local Heap = req...
nilq/small-lua-stack
null
--- === cp.adobe.aftereffects.app === --- --- The `cp.app` for Adobe After Effects. local require = require local app = require "cp.app" return app.forBundleID("com.adobe.AfterEffects")
nilq/small-lua-stack
null
local files = require 'files' local guide = require 'parser.guide' local lang = require 'language' local define = require 'proto.define' local vm = require 'vm' local noder = require 'core.noder' return function (uri, callback) local ast = files.getState(uri) if not ast then return...
nilq/small-lua-stack
null
prefixExp():runSampleTest(true, 5)
nilq/small-lua-stack
null
local M = {} M.config = function() O.lang.docker = { lsp = { path = DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver", }, } end M.format = function() -- TODO: implement formatter for language return "No formatter available!" end M.lint = function() -- TODO: implement l...
nilq/small-lua-stack
null
radanthus_mandelatara_missions = { -- Missing quest text strings. Placeholder screenplay for future (npc will spawn and say "notyet" string for now } npcMapRadanthusMandelatara = { { spawnData = { npcTemplate = "radanthus_mandelatara", x = -4.0, z = 1.6, y = -10.7, direction = -82, cellID = 1717473, position ...
nilq/small-lua-stack
null
object_static_worldbuilding_structures_mun_nboo_hospital_destroyed = object_static_worldbuilding_structures_shared_mun_nboo_hospital_destroyed:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_structures_mun_nboo_hospital_destroyed, "object/static/worldbuilding/structures/mun_nboo_hospital_destroyed.iff")
nilq/small-lua-stack
null
serpent = dofile("./File_Libs/serpent.lua") https = require("ssl.https") http = require("socket.http") JSON = dofile("./File_Libs/JSON.lua") local database = dofile("./File_Libs/redis.lua").connect("127.0.0.1", 6379) local HidaarArmando_dev = io.open("HidaarArmando_online.lua") if HidaarArmando_dev then HidaarAr...
nilq/small-lua-stack
null
local Validation = require("vr-radio-helper.state.validation") local Globals = require("vr-radio-helper.globals") local InterchangeLinkedDataref = require("vr-radio-helper.components.interchange_linked_dataref") local SpeakNato = require("vr-radio-helper.components.speak_nato") local Config = require("vr-radio-helper.s...
nilq/small-lua-stack
null
getglobal game getfield -1 ReplicatedStorage getfield -1 Buy getfield -1 FireServer pushvalue -2 pushstring Cosmite pushstring 1 pcall 3 1 0
nilq/small-lua-stack
null
local check = require "check" local lfs = require "lfs" local M = {} function M.process() if lfs.attributes(check.directory) == nil then return print("No checks found") end for file in lfs.dir(check.directory) do if file ~= '.' and file ~= '..' then print(file) end ...
nilq/small-lua-stack
null
local ItemFunctions = require "util/itemfunctions" local PriorityFunctions = {} local Settings = { "ARMOR_SORT_PRIORITY", "LIGHT_SORT_PRIORITY", "STAFF_SORT_PRIORITY", "EQUIPMENT_SORT_PRIORITY", "FOOD_SORT_PRIORITY", "RESOURCE_SORT_PRIORITY", "TOOL_SORT_PRIORITY", } local function SetSett...
nilq/small-lua-stack
null
-- Copyright (c) 2017 Phil Leblanc -- see LICENSE file ------------------------------------------------------------------------ --[[ norx - authenticated encryption with associated data (AEAD) NORX is a high-performance authenticated encryption algorithm supporting associated data (AEAD). It has been desig...
nilq/small-lua-stack
null
lovia = require 'lovia' love.graphics.setDefaultFilter("nearest", "nearest") --[[ TECH DEMO THING --]] function newBullet(x, y) local bullet = {} bullet.x = x bullet.y = y function bullet:update(dt) self.y = self.y - 120 * dt end function bullet:draw() love.graphics.rectangle("fill", self.x, self.y, 2,...
nilq/small-lua-stack
null
data:extend({ { type = "item", name = "concrete", icon = "__base__/graphics/icons/concrete.png", flags = {"goes-to-main-inventory"}, subgroup = "stone-base", order = "b[concrete]", stack_size = 1000, place_as_tile = { result = "concrete", condition_size = 4, cond...
nilq/small-lua-stack
null
local M = {} local fn = vim.fn local cmd = vim.cmd -- TODO: Write a better more usable "autocommand" function -- Functional wrapper for creating AutoGroups -- function M.create_augroup(autocmds, name) -- cmd("augroup " .. name) -- cmd("autocmd!") -- for _, autocmd in ipairs(autocmds) do -- cmd("au...
nilq/small-lua-stack
null
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local Roact = require(ReplicatedStorage.Common.Roact2) Players.PlayerAdded:Connect(function(player) local character = player.Character if not character or not character.Parent then charact...
nilq/small-lua-stack
null
-- Sector A4: Avoid the Enemy Ship obj_prim_newobj_id = 0 enemy_ping = 0 function OnInit() Rule_Add("Rule_Init") end function Rule_Init() StartMission() Event_Start( "IntelEvent_AvoidShip" ) enemy_ping = Ping_AddSobGroup("Enemy Ship", "anomaly", "EnyGroup") objectivesClear[currentSectorRow][currentSectorCol] = 1...
nilq/small-lua-stack
null
-- Copyright (C) 2012 Yichun Zhang (agentzh) local bit = require "bit" local sub = string.sub local tcp = ngx.socket.tcp local strbyte = string.byte local strchar = string.char local strfind = string.find local format = string.format local strrep = string.rep local null = ngx.null local band = bit.band local bxor = b...
nilq/small-lua-stack
null
local cg = require 'CGraph' local rand = require 'RandomWeight' local Dense = require 'Dense' local _ = require 'underscore' local crossEntropy = cg.crossEntropyLoss local function softmax(Z) return cg.exp(Z) / cg.sum(cg.exp(Z), 1) end function buildConfusionMatrix(nb_classes) local mat = {} for i=1,nb_cla...
nilq/small-lua-stack
null
#!/usr/bin/env gt --[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014-2015 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in a...
nilq/small-lua-stack
null
local discordia = require('discordia') discordia.extensions() local config = require('./config.lua') local commands = require('commands.lua') local client = discordia.Client(config.discordia) local correction_timeout = discordia.Stopwatch() correction_timeout:start() local correction_autoresponse = [[> "Lua" (p...
nilq/small-lua-stack
null
giant_fynock = Creature:new { objectName = "@mob/creature_names:giant_fynock", socialGroup = "fynock", faction = "", level = 42, chanceHit = 0.44, damageMin = 345, damageMax = 400, baseXp = 4188, baseHAM = 10000, baseHAMmax = 12000, armor = 0, resists = {30,30,30,30,30,30,30,30,-1}, meatType = "meat_avian"...
nilq/small-lua-stack
null
local ReplicatedStorage = game:GetService("ReplicatedStorage") local LootPlan = require(ReplicatedStorage.Scripts.Modules.LootPlan) ---- local materialPlan = LootPlan.new("single") materialPlan:AddLoot("Wrinkled Leather", 20) materialPlan:AddLoot("Plastic Sheet", 20) materialPlan:AddLoot("Dented Metal", 10) materialPl...
nilq/small-lua-stack
null
--[[ Conditions.lua @Author : DengSir (tdaddon@163.com) @Link : https://dengsir.github.io ]] local ns = select(2, ...) local Addon = ns.Addon local Util = ns.Util local Round = ns.BattleCacheManager:GetModule('Round') local Played = ns.BattleCacheManager:GetModule('Played') local function getOpponent(own...
nilq/small-lua-stack
null
local id = KEYS[1] local data = ARGV[1] local retJson = redis.call('get', id) local dataSource = cjson.decode(data) if retJson == false then retJson = {} else retJson = cjson.decode(retJson) end for k,v in pairs(dataSource) do retJson[k] = v end redis.call('set', id, cjson.encode(retJson)) retur...
nilq/small-lua-stack
null
Vote = {} Vote.__mt = {__index = Vote} Vote.elMap = {} addEvent("onVoteFinish") addEvent("vote_onPlayerVote", true) function Vote:onPlayerVote(player, optIdx) local prevOptIdx = self.players[player] local prevOpt = prevOptIdx and self.opts[prevOptIdx] self.players[player] = optIdx local opt = self.o...
nilq/small-lua-stack
null
__nowaiting = true db = "127.0.0.1:2528" db2 = "127.0.0.1:2529" db3 = "127.0.0.1:2530" db4 = "127.0.0.1:2531" db5 = "127.0.0.1:2532"
nilq/small-lua-stack
null
--https://github.com/Nyapaw/lionstore local Lionstore = {} Lionstore.__index = Lionstore local DATA_BUDGET = 3999000; local Promise = require(script.Promise) local Queue = require(script.Queue) local spawn = require(script.spawn) local inspect = require(script.inspect) local TableUtil = require(script.TableUtil) loc...
nilq/small-lua-stack
null
vim.opt.completeopt = { "menu", "menuone", "noselect" } local cmp = require "cmp" local lspkind = require "lspkind" local luasnip = require "luasnip" local utils = require "util" local t = utils.t local fn = vim.fn local api = vim.api lspkind.init() cmp.setup { completion = { completeopt = "menu,menuone,noinse...
nilq/small-lua-stack
null
--heal unit from all wounds and damage function healunit(unit) if unit==nil then unit=dfhack.gui.getSelectedUnit() end if unit==nil then error("Failed to Heal unit. Unit not selected/valid") end for i=#unit.body.wounds-1,0,-1 do unit.body.wounds[i]:delete() end unit.body.wounds:resize(0) ...
nilq/small-lua-stack
null
return { load="battle/load.lua", doInitSDL=true, }
nilq/small-lua-stack
null
-- Live User Interface loader -- Part of Live Simulator: 2 -- See copyright notice in main.lua local love = require("love") local Util = require("util") local Luaoop = require("libs.Luaoop") local log = require("logging") local uibase = require("game.live.uibase") local ui = {list = {}} function ui.newLive...
nilq/small-lua-stack
null
Tracks = { [1] = { Type = 1, Nodes = { vector3(1084.48, 3231.45, 39.2565), vector3(1078.58, 3230.36, 39.2948), vector3(1072.68, 3229.27, 39.3333), vector3(1063.83, 3227.65, 39.3894), vector3(1054.97, 3226.04, 39.4273), vector3(1043.17, 3223.9, 39.4553), vector3(1031.36, 3221.78, 39.4911), v...
nilq/small-lua-stack
null
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ local path = ... -- central library table loveframes = {} -- library info loveframes.author = "Kenny Shields" loveframes.versio...
nilq/small-lua-stack
null
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] -- Called when the command has been run. local COMMAND = Clockwork.command:New("Ad...
nilq/small-lua-stack
null
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_templateArmas() local obj = GUI.fromHandle(_obj_newObject...
nilq/small-lua-stack
null
local ctlStateEnum = {} ctlStateEnum.ALL_BUTTONS = {"up", "down", "left", "right", "x", "circle", "triangle", "square", "start", "select"} ctlStateEnum.DIRECTIONS = {"up", "down", "left", "right"} ctlStateEnum.FACE_BUTTONS = {"x", "circle", "triangle", "square"} ctlStateEnum.START_SELECT = {"start", "select"} ctlState...
nilq/small-lua-stack
null
-- AUTO BUILD, DON'T MODIFY! dofile "autobuild/cocos2d-physics-types.lua" name = "cocos2d_physics" path = "../../frameworks/libxgame/src/lua-bindings" headers = [[ #include "lua-bindings/lua_conv.h" #include "lua-bindings/lua_conv_manual.h" #include "lua-bindings/LuaCocosAdapter.h" #include "cclua/xlu...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------------- -- BigFootTooltip 1.02 -- 日期: 2008-1-21 -- 作者: 独孤傲雪 -- 描述: 插件配置 -- 版权所有: 艾泽拉斯国家地理 --------------------------------------------------------------------------------------- local BFTT_ANCHOR_MAP, BFTT_RANK_MAP, BFTT_SHOW_MAP, BFT...
nilq/small-lua-stack
null
return { "const", "seq", "period", "rand" }
nilq/small-lua-stack
null
--Originally ripped from https://github.com/peterkos/LuaMIDIGraphics/blob/master/MidiParser.lua --but heavily edited local MIDI = require("MIDI") score = {} local removeNonNotes local getBpm local getDurationMultiplier function score.new(filename, track) track = track + 1 --Track 1 on the score is just BPM info --...
nilq/small-lua-stack
null
local entity = {} entity["arcana"] = [[Strength]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Zan-ei]] entity["spellDeck"][2] = [[Rebellion]] entity["spellDeck"][3] = [[Mudo]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[]] entity["spellDeck"][6] = [[]] entity["desc"] = [[Sir Tristan of Lyonesse was...
nilq/small-lua-stack
null
ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) local text = true Citizen.CreateThread(function() while true do local sleep = 1250 local ped = PlayerPedId() ...
nilq/small-lua-stack
null
-- This Lua script reads the code version of the requesting client -- from a cookie and routes the request based on code version. function code_vsn(txn) local hdr = txn.http:req_get_headers() if hdr["cookie"] == nil then return "version1" end local cookie = hdr["cookie"][0] txn.Info(txn, "Cookie: " .....
nilq/small-lua-stack
null
data:extend({ { -- Super loader type = "item", name = "loader_x100", icon_size = 32, icon = "__X100_assembler__/graphics/icon/super-loader.png", flags = {"goes-to-quickbar"}, subgroup = "belt", order = "h", place_result = "loader_x100", stack_size = 50 }, { type = "loader", name = "loader_x100"...
nilq/small-lua-stack
null
<li> <div><a class='dark topic_title' href="/topic/<%- topic.id %>" title="<%- topic.title %>"><%- topic.title %></a> </div> </li>
nilq/small-lua-stack
null
sti = require "Simple-Tiled-Implementation" shine = require "shine" love.filesystem.load("player.lua")() love.filesystem.load("input.lua")() love.filesystem.load("evilbox.lua")() -- Collision masks used by Box2d (1 is default ?) playerCollisionMask = 2 evilboxCollisionMask = 3 oneMeter = 70 debugInfo = false physic...
nilq/small-lua-stack
null
-- Copyright (C) 2008-2020 Christoph Kubisch. All rights reserved. --------------------------------------------------------- local binpath = ide.config.path.fxcbin or (os.getenv("DXSDK_DIR") and os.getenv("DXSDK_DIR").."/Utilities/bin/x86/") local dxprofile return binpath and { fninit = function(frame,menuBar) ...
nilq/small-lua-stack
null
object_mobile_coa_aclo_soldier_geonosian = object_mobile_shared_coa_aclo_soldier_geonosian:new { } ObjectTemplates:addTemplate(object_mobile_coa_aclo_soldier_geonosian, "object/mobile/coa_aclo_soldier_geonosian.iff")
nilq/small-lua-stack
null
local prefix = 'KEPSREC' local names = {'C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab', 'A', 'Bb', 'B'} for i = 21, 108 do local idx = (i % 12) + 1 local oct = math.floor(i / 12) - 1 local inp = string.format('%s%03d.wav', prefix, i) local out = string.format('%s%d.wav', names[idx], oct) os.exec...
nilq/small-lua-stack
null
struct = { name = "messageStruct", fields = { {name = "term", type = "int"}, {name = "from", type = "int"}, {name = "to", type = "int"}, {name = "type", type = "string"}, {name = "value", type = "string"} } } interface = { name = "Raft", methods = { receiveMessa...
nilq/small-lua-stack
null
-- Natural Selection 2 'Classic Entities Mod' -- Adds some additional entities inspired by Half-Life 1 and the Extra Entities Mod by JimWest - https://github.com/JimWest/ExtraEntitesMod -- Designed to work with maps developed for Extra Entities Mod. -- Source located at - https://github.com/xToken/ClassicEnts -- lua\...
nilq/small-lua-stack
null
return { mod_description = { en = "Shows class icon on pick ups in the order of those who need them the most" }, useCareerIcons_CB_Name = { en = "Use Career Icons" }, useCareerIcons_CB_TT = { en = "Uses a Heros career icons instead of the default career icon" }, countBots_CB_Name = { en = "Count Bots" }...
nilq/small-lua-stack
null
local giveSwepOnSpawn = CreateConVar("magic_give_swep", "1") hook.Add("PlayerLoadout", "magic_GiveSwepOnSpawn", function(ply) if giveSwepOnSpawn:GetBool() then ply:Give("magic") end end) local notifySpellCasted = CreateConVar("magic_notify_spell_casted", "0") hook.Add("magic_PlayerCastSpell", "not...
nilq/small-lua-stack
null
local RunService = game:GetService("RunService") RunService.RenderStepped:Connect(function() -- check if the script is in the players character if script.Parent:IsA("Model") and script.Parent:FindFirstChild("Humanoid") then if not script.Parent:FindFirstChildWhichIsA("Shirt") then local shirt = Instance.new("Sh...
nilq/small-lua-stack
null