content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
--!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | nilq/small-lua-stack | null |
local Types = require(script.Parent.Types)
--[=[
This is a class I took from something Rust related. You can read its documentation info [here](https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html).
@class BinaryHeap
]=]
local BinaryHeap = {}
BinaryHeap.ClassName = "BinaryHeap"
BinaryHeap.__index ... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | nilq/small-lua-stack | null |
local CorePackages = game:GetService("CorePackages")
local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies)
local Roact = InGameMenuDependencies.Roact
local RoactRodux = InGameMenuDependencies.RoactRodux
local InGameMenu = script.Parent.Parent
local Controls = require(InGameMenu.Resources.Contro... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Abyssea - Misareaux
-- NPC: Cavernous Maw
-- !pos 676.070, -16.063, 318.999 216
-- Teleports Players to Valkrum Dunes
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
player:startEvent(200)
end
function onEv... | nilq/small-lua-stack | null |
-- Load basic awesome libs.
local awful = require("awful")
local gears = require("gears")
local menubar = require("menubar")
-- Widgets
local wibox = require("wibox")
-- Theme library.
local beautiful = require("beautiful")
-- Constants
terminal = "kitty -1"
editor = "vim"
editor_cmd = "kitty -e vim"
modkey = "Mod4"
c... | nilq/small-lua-stack | null |
return {'vahl'} | nilq/small-lua-stack | null |
local skynet = require "skynet"
local socket = require "socket"
local syslog = require "syslog"
local config = require "config.system"
local session_id = 1
local slave = {}
local nslave
local gameserver = {}
local CMD = {}
function CMD.open (conf)
for i = 1, conf.slave do
local s = skynet.newservice ("loginslav... | nilq/small-lua-stack | null |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by Sasha Harp.
--- DateTime: 026, 8/26/21 6:27 AM
---
os.loadAPI("global/locator")
os.loadAPI("global/inventory")
args = {...}
min = {}
min.x = math.min(tonumber(args[2]), tonumber(args[5]))
min.y = math.min(tonumber(args[3]), tonumber(args[6]))
min... | nilq/small-lua-stack | null |
local slib = slib
local snet = slib.Components.Network
--
snet.Callback('snet_file_write_to_server', function(ply, path, data)
slib.FileWrite(path, data)
end).Protect()
function snet.FileWriteToClient(ply, path, data)
snet.Invoke('snet_file_write_to_client', ply, path, data)
end | nilq/small-lua-stack | null |
--
-- lua-LIVR : <http://fperrad.github.com/lua-LIVR/>
--
local pairs = pairs
local require = require
local type = type
local _ENV = nil
return {
nested_object = function (rule_builders, livr)
local new = require'LIVR/Validator'.new
local validator = new(livr):register_rules(rule_builders):prepar... | nilq/small-lua-stack | null |
fx_version 'bodacious'
games { 'gta5' }
author 'Kevin_M16'
description 'Water Control'
version '1.0.0'
replace_level_meta 'meta/gta5'
files {
'meta/gta5.meta',
'meta/water.xml'
} | nilq/small-lua-stack | null |
--------------------------------
-- @module RemoveSelf
-- @extend ActionInstant
-- @parent_module cc
---@class cc.RemoveSelf:cc.ActionInstant
local RemoveSelf = {}
cc.RemoveSelf = RemoveSelf
--------------------------------
--- init the action
---@param isNeedCleanUp boolean
---@return boolean
function RemoveSelf:... | nilq/small-lua-stack | null |
ys = ys or {}
slot1 = ys.Battle.BattleUnitEvent
slot2 = ys.Battle.BattleEvent
slot3 = class("BattleDodgemCommand", ys.Battle.BattleSingleDungeonCommand)
ys.Battle.BattleDodgemCommand = slot3
slot3.__name = "BattleDodgemCommand"
slot3.Ctor = function (slot0)
slot0.super.Ctor(slot0)
end
slot3.Initialize = function (sl... | 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_frmFichaRPGmeister4_svg()
local obj = GUI.fromHandle(_obj... | nilq/small-lua-stack | null |
{
ident=1243001,
sort=1243001000,
group=1243,
features=PALETTE,
name=_("_text_B10tech")_("_bl")_("_text_Hull")_("_bl")_("(SQUARE)"),
blurb=_("_blurb_standardStructue"),
shape=SQUARE,
scale=1,
#include "_T_B10_HullDark.lua"
points=-1,
},
{
ident=1243002,
sort=1243002000,
group=1243,
feat... | nilq/small-lua-stack | null |
PLUGIN.name = "3D Panels"
PLUGIN.author = "Chessnut"
PLUGIN.desc = "Adds web panels that can be placed on the map."
-- List of available panel dislays.
PLUGIN.list = PLUGIN.list or {}
local PLUGIN = PLUGIN
if (SERVER) then
-- Called when the player is sending client info.
function PLUGIN:PlayerInitialSpawn(client)... | nilq/small-lua-stack | null |
include('shared.lua')
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:Draw()
self:DrawModel()
--spin(self)
end
function ENT:DrawTranslucent()
self:Draw()
--spin(self)
end
function ENT:BuildBonePositions( NumBones, NumPhysBones )
end
function ENT:SetRagdollBones( bIn )
self.m_bRagdollSetu... | nilq/small-lua-stack | null |
halloween_skeleton_1 = Creature:new {
customName = "Undead Skeleton",
--objectName = "",
--randomNameType = NAME_GENERIC_TAG,
socialGroup = "halloween",
faction = "halloween",
level = 150,
chanceHit = 15.75,
damageMin = 1070,
damageMax = 2050,
baseXp = 21630,
baseHAM = 208000,
baseHAMmax = 254000,
armor = ... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 6223
-- Item: Cehuetzi snow cone
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- MP +20% (cap 100)
-- INT +5
-- MND +5
-- Magic Atk. Bonus +13
-- Lizard Killer +5
-----------------------------------------
require("scripts/globals/status")
r... | nilq/small-lua-stack | null |
--[[
OEML - REST API
This section will provide necessary information about the `CoinAPI OEML REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a>
The version of the OpenAPI document: v1
Con... | nilq/small-lua-stack | null |
local schema_def = require "kong.plugins.kayaman.schema"
local v = require("spec.helpers").validate_plugin_config_schema
-- describe("Plugin: kayaman (schema)", function()
-- it("empty config validates", function()
-- local config = { }
-- local ok, _, err = v(config, schema_def)
-- assert.truthy(ok)
--... | nilq/small-lua-stack | null |
local ucmd = vim.api.nvim_create_user_command
-- NOTE: remove this after 0.7 release
if not ucmd then
vim.cmd([[
command NavigatorLeft lua require'Navigator'.left()
command NavigatorRight lua require'Navigator'.right()
command NavigatorUp lua require'Navigator'.up()
command Navigato... | nilq/small-lua-stack | null |
local declarative_config = require "kong.db.schema.others.declarative_config"
local topological_sort = require "kong.db.schema.topological_sort"
local pl_file = require "pl.file"
local lyaml = require "lyaml"
local cjson = require "cjson.safe"
local tablex = require "pl.tablex"
local deepcopy = tablex.deepcopy
local ... | nilq/small-lua-stack | null |
PLUGIN.name = "Player Scanners Util"
PLUGIN.author = "Chessnut"
PLUGIN.desc = "Adds functions that allow players to control scanners."
local PICTURE_DELAY = 15
if (SERVER) then
util.AddNetworkString("nutScannerData")
function PLUGIN:createScanner(client, class)
class = class or "npc_cscanner"
if (IsValid(clie... | nilq/small-lua-stack | null |
ITEM.name = "Ring"
ITEM.description = "A dual-ring formation"
ITEM.longdesc = "A very small artifact of found rarely from clusters of electrical anomalies. The outer ring has a high-conductivity and absorbs electrical current from nearby sources, quickly grounding it in the inner ring. This causes the inner ring to spi... | nilq/small-lua-stack | null |
require "resources/mysql-async/lib/MySQL"
function updateHair(player, e, v, t, y)
local hair = e
local hairsec = v
local haircolor = t
local haircolorsec = y
MySQL.Async.execute("UPDATE outfits SET `hair`=@hair WHERE identifier=@user",{['@hair'] = hair, ['@user'] = player})
MySQL.Async.execute("UPDATE outf... | nilq/small-lua-stack | null |
require "sepia.luapage"
require "sss"
module(..., package.seeall)
_AUTHOR = "Rodrigo Cacilhas <batalema@cacilhas.info>"
_COPYRIGHT = "GNU/GPL 2011-2012 (c) " .. _AUTHOR
_DESCRIPTION = "HTTP support for Sepia latimanus"
_NAME = "Sepia HTTP"
_PACKAGE = "sepia.http"
http404 = [[<?xml version="1.0"?>
<!DOCTYPE html
PUB... | nilq/small-lua-stack | null |
function createSafeZone(pos1, pos2)
local rectMin = Vector2(0, 0)
rectMin.x = math.min(pos1.x, pos2.x)
rectMin.y = math.min(pos1.y, pos2.y)
local rectMax = Vector2(0, 0)
rectMax.x = math.max(pos1.x, pos2.x)
rectMax.y = math.max(pos1.y, pos2.y)
local size = rectMax - rectMin
local colShap... | nilq/small-lua-stack | null |
local F, C = unpack(select(2, ...))
C.themes["Blizzard_ScrappingMachineUI"] = function()
F.ReskinPortraitFrame(ScrappingMachineFrame)
F.Reskin(ScrappingMachineFrame.ScrapButton)
local function refreshIcon(self)
local quality = 1
if self.itemLocation and not self.item:IsItemEmpty() and self.item:GetItemName() t... | nilq/small-lua-stack | null |
local function makeConveyor(name, velocity)
local conveyor = scene:getObjects(name)[1];
conveyor.deadbodyAware = true;
local rc = conveyor:findRenderStripeComponents("belt")[1];
local ac = AnimationComponent(rc.drawable);
ac:addAnimation(const.AnimationDefault, "belt1", 12.5 / velocity);
ac:sta... | nilq/small-lua-stack | null |
-- Generate test data from the ACE/MSNBC/AQUAINT datasets by keeping the context and
-- entity candidates for each annotated mention
-- Format:
-- doc_name \t doc_name \t mention \t left_ctxt \t right_ctxt \t CANDIDATES \t [ent_wikiid,p_e_m,ent_name]+ \t GT: \t pos,ent_wikiid,p_e_m,ent_name
-- Stats:
--cat wned-ace2... | nilq/small-lua-stack | null |
Config = {}
Config.RepeatTimeout = 2000
Config.CallRepeats = 10
Config.OpenPhone = 288
-- Configs
Config.Language = 'en' -- You have more translations in html.
Config.Webhook = 'https://discord.com/api/webhooks/825842793998057523/V46j45qRZu-adOySZGoEZIG7GfbrqfRrQASsQL9XDgElLNyvgFnDuXdHbGAnvwJ8qSjr' -- Your Webh... | nilq/small-lua-stack | null |
Global("g_texIcons", {})
Global("g_texCheckState", {})
Global("g_texParty", {})
Global("g_classColors", {})
Global("g_relationColors", {})
Global("FRIEND_PANEL", 1)
Global("NEITRAL_PANEL", 2)
Global("ENEMY_PANEL", 3)
function InitClassIconsTexture()
g_texIcons["DRUID"] = common.GetAddonRelatedTexture("DruidIcon")
g... | nilq/small-lua-stack | null |
require('config.plugins.bootstrap').run()
vim.g["aniseed#env"] = {
module = "config.init",
compile = true
}
-- For some reason setting this in the after/plugin/airline.vim has no effect;
-- setting it here solves it.
vim.g.airline_powerline_fonts = 1
| nilq/small-lua-stack | null |
local colors = {
["0"] = "#000000",
["1"] = "#0000AA",
["2"] = "#00AA00",
["3"] = "#00AAAA",
["4"] = "#AA0000",
["5"] = "#AA00AA",
["6"] = "#AA5500",
["7"] = "#AAAAAA",
["8"] = "#555555",
["9"] = "#5555FF",
["A"] = "#55FF55",
["B"] = "#55FFFF",
["C"] = "#FF5555",
["D"] = "#FF55FF",
["E"] = "#FFFF55",
["... | nilq/small-lua-stack | null |
-- pattern, starting at -x/-z
local data = {
-- x >>
"sdsdsd",
"dsds"
-- z \/
}
local nodes = {
["s"] = "default:stone",
["d"] = "default:dirt"
}
-- coordinate offsets
local x_offset = -5
local y_offset = 2
local z_offset = -5
-- initial start
if event.type == "program" then
mem.line = 1
mem.pos = 1
interr... | nilq/small-lua-stack | null |
// complete copy from https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/fadmin/fadmin/playeractions/teleport/sv_init.lua
// TODO: change this!
local function zapEffect(target)
local effectdata = EffectData()
effectdata:SetStart(target:GetShootPos())
effectdata:SetOrigin(target:GetShootPos())
... | nilq/small-lua-stack | null |
local redis = require("resty.redis-util")
local http_model = require("app.models.http")
local redis_pool = require("app.config.config").redis_pool
local string_model = require("app.models.string")
local list_model = require("app.models.list")
local set_model = require("app.models.set")
local zset_model = require("app.m... | nilq/small-lua-stack | null |
local util = require("spec.util")
describe("%", function()
it("pass", util.check [[
local x = 1
local y = 2
local z = 3
z = x % y
]])
it("fail", util.check_type_error([[
local x = "hello"
local y = "world"
local z = "heh"
z = x % y
]], {
{ msg = "canno... | nilq/small-lua-stack | null |
return {
icons = {rect={0,0,16,16}, count={2,7}},
fg = {rect={32,0,224,160},},
}
| nilq/small-lua-stack | null |
-- @Author: Webster
-- @Date: 2016-01-04 12:57:33
-- @Last Modified by: Administrator
-- @Last Modified time: 2016-12-29 11:13:26
-----------------------------------------------------------------------------------------
-- these global functions are accessed all the time by the event handler
-- so caching them is w... | nilq/small-lua-stack | null |
---
-- @author wesen
-- @copyright 2019 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local TestCase = require "wLuaUnit.TestCase"
---
-- Checks that the ServerEventListener works as expected.
--
-- @type TestServerEventListener
--
local TestServerEventListener = TestCase:extend()
---
-- The require pa... | nilq/small-lua-stack | null |
local Track = {}
Track.progress = {}
Track.proglines = {}
Track.time = 0
local debug = true
function Track.setfinish(x0, y0, x1, y1, width, boxsz)
Track.finish = { x0 = x0, y0 = y0,
x1 = x1, y1 = y1, width = width, boxsz = boxsz }
end
function Track.newprogline(x0, y0, x1, y1)
table.insert(Track.progl... | nilq/small-lua-stack | null |
local lspkind = require('lspkind')
local luasnip = require('luasnip')
local cmp = require('cmp')
local Rule = require('nvim-autopairs.rule')
local npairs = require('nvim-autopairs')
-- copilot settings
vim.g.copilot_no_tab_map = true
vim.g.copilot_assume_mapped = true
local lspkind_opts = {
with_text = true,
... | nilq/small-lua-stack | null |
local OUTPUT = {}
OUTPUT.WATCH_LIST_NOT_VALID = 'WATCH_LIST_NOT_VALID'
OUTPUT.NOTHING_FOR_WATCH = 'NOTHING_FOR_WATCH'
OUTPUT.MAXWAIT_NOT_VALID = 'MAXWAIT_NOT_VALID'
OUTPUT.INTERVAL_NOT_VALID = 'INTERVAL_NOT_VALID'
OUTPUT.INTERVAL_NOT_IN_RANGE = 'INTERVAL_NOT_IN_RANGE'
OUTPUT.MINSIZE_NOT_VALID = 'MINSIZE_NOT_VALID'
OU... | nilq/small-lua-stack | null |
local TallPlatformPattern = require('motras_blueprint_patterns.tall_platform_station')
local WidePlatformPattern = require('motras_blueprint_patterns.wide_platform_station')
local t = require("motras_types")
local Helper = {}
function Helper.getPattern(params, preferIslandPlatforms)
local platformModules =... | nilq/small-lua-stack | null |
local handle_surface_placement = require("__subterra__.scripts.events.building.handle_surface_placement")
local handle_underground_placement = require("__subterra__.scripts.events.building.handle_underground_placement")
--============================================================================--
-- on_robot_built_... | nilq/small-lua-stack | null |
file = "BIGLOG"
topic = "biglog"
autocreat = true
autoparti = false
rawcopy = false
| nilq/small-lua-stack | null |
-- A solution contains projects, and defines the available configurations
solution "CVector"
configurations { "Debug", "Release" }
location "build"
project "cvector"
location "build"
kind "ConsoleApp"
language "C"
files
{
"main.c",
"cvector_tests.c",
"cvector.h",
"cvector_short.h",
... | nilq/small-lua-stack | null |
local pack = require("eden.core.pack")
local path = require("eden.core.path")
local nlsp = require("lspconfig")
local remaps = require("eden.modules.protocol.lsp.remaps")
local filetype_attach = require("eden.modules.protocol.lsp.filetypes")
local premod = "eden.modules.protocol.lsp."
require(premod .. "cosmetics")
re... | nilq/small-lua-stack | null |
return {
arg = 1,
["assert"] = 4,
["collectgarbage"] = 3,
["dofile"] = 4,
["error"] = 1,
["_G"] = 1,
["getmetatable"] = 4,
["ipairs"] = 2,
["load"] = 4,
["loadfile"] = 4,
["next"] = 4,
["pairs"] = 4,
["pcall"] = 4,
["print"] = 1,
["rawequal"] = 1,
["rawget"] = 4,
["rawlen"] = 1,
["ra... | nilq/small-lua-stack | null |
object_tangible_furniture_house_cleanup_cts_naritus_painting = object_tangible_furniture_house_cleanup_shared_cts_naritus_painting:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_house_cleanup_cts_naritus_painting, "object/tangible/furniture/house_cleanup/cts_naritus_painting.iff")
| nilq/small-lua-stack | null |
local L = Apollo.GetPackage("Gemini:Locale-1.0").tPackage:NewLocale("MailHelper", "enUS", true)
L["Here's your stuff!"] = true
L["ButtonTakeAll"] = "Take All"
L["HeaderMailHelperOptions"] = "Mail Helper Options"
L["SubHeaderSettingsTakeAll"] = "Settings for Take All"
L["SubHeaderOtherSettings"] = "Settings for... | nilq/small-lua-stack | null |
return Def.ActorFrame {
InitCommand=cmd(zoom,1.3);
LoadActor("Choice Extended B")..{
InitCommand=cmd(x,50;y,-90;zoom,1);
OnCommand=cmd(diffusealpha,0;linear,0.2;diffusealpha,0);
LoseFocusCommand=cmd(stoptweening;stopeffect;diffusealpha,0;zoom,1;linear,0.05;diffusealpha,1;zoom,1;x,60);
GainFocusCommand=cmd(s... | nilq/small-lua-stack | null |
include "shared.lua"
| nilq/small-lua-stack | null |
local reviced = {}
local ThreadClient = TriggerClientEvent
--/ Tak oto mamy skrypt w server side lecz wywoływany po cliencie dzięki czemu nie zdumpuje nikt ani
--/ nie będzie cheaterów umieszczając tutaj np. jakiś trigger od giveitem, bawcie się dowoli <3
local Client [=[
--/ Przykładowy KOD:
AddEventH... | nilq/small-lua-stack | null |
return {
name = 'TextureType',
description = 'Types of textures (2D, cubemap, etc.)',
constants = {
{
name = '2d',
description = 'Regular 2D texture with width and height.',
},
{
name = 'array',
description = 'Several same-size 2D textu... | nilq/small-lua-stack | null |
local function setup_findplanet(planet_map)
planet_map = planet_map or {}
_G.FindPlanet = setmetatable({}, {
__call = function(t, name)
return planet_map[name]
end
})
_G.FindPlanet.Get_All_Planets = function()
local all_planets = {}
for key, planet in pairs(... | nilq/small-lua-stack | null |
local Event = require('event')
local Logger = require('logger')
local Message = { }
local messageHandlers = {}
function Message.enable()
if not device.wireless_modem.isOpen(os.getComputerID()) then
device.wireless_modem.open(os.getComputerID())
end
if not device.wireless_modem.isOpen(60000) then
device... | nilq/small-lua-stack | null |
local Items = Object:extend()
function Items:new(image,room,x,y,tag)
self.x = x -- w/2
self.y = y -- h/2
self.image = image
self.w = self.image:getWidth()
self.h = self.image:getHeight()
self.room = room
self.tag = tag
self.visible = true
end
function Items:update(dt)
end
function Items:... | nilq/small-lua-stack | null |
setInit(function()
AddObject(Mass_sun * 0.5, 0.1, 'Sun A', ColorFromName('Yellow'), Vector(-3 * Distance_au, 0, 0), Vector(0, -(2 * math.pi * Distance_au) / 3, 0))
AddObject(Mass_sun * 0.5, 0.1, 'Sun B', ColorFromName('Red'), Vector(3 * Distance_au, 0, 0), Vector(0, (2 * math.pi * Distance_au) / 3, 0))
AddObject(Mas... | nilq/small-lua-stack | null |
local xml2lua = require "xml2lua"
local tree = require "xmlhandler.tree"
return {
decode = function(encoded)
encoded = encoded or ""
local decoded = tree:new()
local parser = xml2lua.parser(decoded)
parser:parse(encoded)
return decoded
end,
encode = function(... | nilq/small-lua-stack | null |
TUTORIALS['en'][#TUTORIALS['en'] + 1] = {
name = "Catching Skill",
contents = {
{type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/catching_skill.png"},
{type = CONTENT_TYPES.TEXT, value = "Among other skills of your character, one of them is the catching. This is a skill that you can advanc... | nilq/small-lua-stack | null |
--!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | nilq/small-lua-stack | null |
require("prototypes.entity.underground-belt.underground-belt-6-remnants")
data:extend(
{
{
type = "underground-belt",
name = "underground-belt-6",
icon = "__spicy-teeth-mbt_assets__/graphics/icons/underground-belt-6.png",
icon_size = 32,
flags = {"placeable-neutral", "player-creation"},
minab... | nilq/small-lua-stack | null |
local lib={name="Rec"}
local reqLocations = {"","lib/","libs/","Lib/","Libs/","Base-Libs/","BLibs/","BaseLibs/","base-libs/","blibs/","baselibs/"}
for i = 6,#reqLocations do
for j=2,6 do
table.insert(reqLocations,reqLocations[j].."/"..reqLocations[i])
end
end
local function safeRequire(...)
local v,success,val
fo... | nilq/small-lua-stack | null |
function main()
for f in factions() do
if f.race=="demon" then
f.flags = 2147484672
for u in f.units do
u.building.size = 2
u.building.name = u.region.name .. " Keep"
u.name = "Lord " .. u.region.name
u:add_item("money",... | nilq/small-lua-stack | null |
-------------------------------
--Water Dragon Tool/Suit Thing-
-------------------------------
Being_Dragon = "rigletto"
Riders = {"Person"}
Joints = 30
BrickColor = BrickColor.new("Bright blue")
Transparency = 0
Reflectance = 0
Speed = 2
Gap = 0
Away = 2
Length = 4
Distance = Length/2
Size = Vector3.new(2, 1, Len... | nilq/small-lua-stack | null |
-- prevents requiring the modules outside of runtime
-- a problem for future me to deal with
--local disallowedWhiteSpace = {"\n", "\r", "\t", "\v", "\f"}
--local modules = require(game:GetService("ReplicatedStorage"):WaitForChild("modules"))
--local network = modules.load("network")
return {
--> identifying inform... | 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 {
EscapeInfo = {},
MapPoint = {
{
AreaId = 1,
AreaRadius = 100,
AreaX = 4076,
AreaY = 2445,
AreaZ = 2... | nilq/small-lua-stack | null |
local base = require("ansi.base")
local term = {}
local csi = {
moveUp = "A",
moveDown = "B",
moveBack = "C",
moveFwd = "D",
setPos = "H",
eraseDisplay = "J",
eraseLine = "K",
scrollUp = "S",
scrollDown = "T",
saveCursor = "s",
restoreCursor = "u"
}
term.erase = {
cursorToEnd = 0,
cursorT... | nilq/small-lua-stack | null |
local litcord = require('litcord')
local client = litcord('TOKEN')
client:on('ready', function()
print('Logged in as '..client.user.username)
end)
client:on('messageCreate', function(message)
if message.clean == 'hello world' then
message.channel.sendMessage('Hello, World! litcord!')
end
end)
litcord... | nilq/small-lua-stack | null |
local inside = false
local currentpos = nil
local currentgarage = 0
local garages = {
[1] = { locked = false, camera = {x = -330.945, y = -135.471, z = 39.01, heading = 102.213}, driveout = {x = -350.376,y = -136.76, z = 38.294, heading = 70.226}, drivein = {x = -350.655,y = -136.55, z = 38.295, heading = 249.5... | nilq/small-lua-stack | null |
local sourcenode = nil;
local intelligencenode = nil;
local willpowernode = nil;
local fellowshipnode = nil;
local indicatorwidget = nil;
function onInit()
-- initialize the base class
super.onInit();
-- get the source node
sourcenode = getDatabaseNode();
if sourcenode then
-- get the intel... | nilq/small-lua-stack | null |
#!/usr/bin/env luajit
--[[
rFoldLoadDB.lua
Copyright 2016, 2017 Robert T. Miller
Licensed under the Apache License, Version 2.0 (the "License");
you may not use these files except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0... | nilq/small-lua-stack | null |
id = 'V-38610'
severity = 'low'
weight = 10.0
title = 'The SSH daemon must set a timeout count on idle sessions.'
description = 'This ensures a user login will be terminated as soon as the "ClientAliveCountMax" is reached.'
fixtext = [=[To ensure the SSH idle timeout occurs precisely when the "ClientAliveCountMax" is s... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local sc = require "socketchannel"
local socket = require "socket"
local cluster = require "cluster.core"
local config_name = skynet.getenv "cluster"
local node_address = {}
local function loadconfig()
local f = assert(io.open(config_name))
local source = f:read "*a"
f:cl... | nilq/small-lua-stack | null |
-- Copyright (c) 2017, The OctNet authors
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright
-- notice, this list of ... | nilq/small-lua-stack | null |
function SpawnPoints()
return {
constructionworker = {
{ worldX = 30, worldY = 50, posX = 244, posY = 192, posZ = 0 },
{ worldX = 29, worldY = 46, posX = 117, posY = 127, posZ = 0 },
},
fireofficer = {
{ worldX = 30, worldY = 49, posX = 16, posY = 207, posZ = 0 },
{ worldX = 28, worldY = 46, posX = ... | nilq/small-lua-stack | null |
local Array = require('array')
local function printTable(t)
if type(t[1]) == 'table' then
for _, row in ipairs(t) do
printTable(row)
end
elseif type(t) == 'table' then
print(table.concat(t, "\t"))
else
print(t)
end
end
local function genTable(fillValue, ...)... | nilq/small-lua-stack | null |
module('jam', package.seeall)
function CreateLibJamfile(lib_number, classes)
os.chdir(cppcodebase.lib_name(lib_number))
local handle = io.open("Jamfile", "w")
handle:write ("SubDir TOP lib_" .. lib_number .. " ;\n\n")
handle:write ("SubDirHdrs $(INCLUDES) ;\n\n")
handle:write ("Library lib_" .. li... | nilq/small-lua-stack | null |
vim.cmd[[packadd packer.nvim]]
require('packer').startup({function()
use {'wbthomason/packer.nvim', opt=true}
use {'vim-denops/denops.vim'}
-- completion
use {'Shougo/ddc.vim', tag='v1.0.0',
requires={
{'Shougo/ddc-around'},
{'Shougo/ddc-matcher_head'},
{'Shougo/ddc-sorter... | nilq/small-lua-stack | null |
MoveRootSystem_OnUpdate = function(schedule)
local MoveRoot = function(w, singletons, e, idx, cmpts)
local type0 = Ubpa.UECS.CmptAccessType.new(
"Ubpa::Utopia::Translation",
Ubpa.UECS.AccessMode.WRITE
)
local type1 = Ubpa.UECS.CmptAccessType.new(
"Ubpa::Utopia::WorldTime",
Ubpa.... | nilq/small-lua-stack | null |
local verify = require 'verify'
local cjson = require 'cjson.safe'
local ioe = require 'ioe'
local base = require 'app.base'
local socket = require 'skynet.socket'
local sockethelper = require 'http.sockethelper'
local urllib = require 'http.url'
local restful = require 'eg_http.restful'
local httpd = require 'eg_http.... | nilq/small-lua-stack | null |
local lpeg=require "lpeg"
local uri_lib=require "lpeg_patterns.uri"
describe("URI", function()
local absolute_uri = uri_lib.absolute_uri * lpeg.P(-1)
local uri = uri_lib.uri * lpeg.P(-1)
local ref = uri_lib.uri_reference * lpeg.P(-1)
local path = uri_lib.path * lpeg.P(-1)
local segment = uri_lib.segment * lpeg.P(... | nilq/small-lua-stack | null |
-- Tool for converting :smile: emojis into <i class="twa twa-smile"></i>
function Str (p)
if p.text:find('^:[^:]*:$') then
return pandoc.RawInline("html", "<i class=\"twa twa-"..p.text:sub(2,-2).."\"></i>")
end
end
| nilq/small-lua-stack | null |
PLUGIN.name = "Observer"
PLUGIN.author = "Chessnut"
PLUGIN.description = "Adds on to the no-clip mode to prevent intrusion."
CAMI.RegisterPrivilege({
Name = "Helix - Observer",
MinAccess = "admin"
})
ix.option.Add("observerTeleportBack", ix.type.bool, true, {
bNetworked = true,
category = "Admin Settings",
hidd... | nilq/small-lua-stack | null |
object_tangible_wearables_jacket_jacket_lifeday_figrin_dan = object_tangible_wearables_jacket_shared_jacket_lifeday_figrin_dan:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/smc_female.iff",
"object/creature/player/smc_male.iff",
"object/creature/player/talz_male.if... | nilq/small-lua-stack | null |
group ""
project "Test"
kind "ConsoleApp"
MoonGlare.SetOutputDir("Test")
defines {
}
files {
"**",
"../**Test.*",
}
includedirs {
".",
"%{cfg.objdir}",
}
links {
}
| nilq/small-lua-stack | null |
-- thx Dragon <3
//Input overrides
local origPlayerSendKeyEvent
origPlayerSendKeyEvent = Class_ReplaceMethod("Player", "SendKeyEvent",
function(self, key, down)
local consumed = origPlayerSendKeyEvent(self, key, down)
if not consumed and down then
if GetIsBinding(key, "Weapon6") then
Shared.ConsoleCommand... | nilq/small-lua-stack | null |
Dot = require "dot"
local Shot = Dot:extend()
function Shot:new(x, y, c, colorTab, dir)
self.dir = dir or "up"
self.color = colorTab[c] or {0, 0, 0}
Shot.super.new(self, x, y, 2)
self.fixture:setUserData({typeF = "shot", color = self.color})
end
function Shot:update(dt)
self.body:setY(self.body:getY() - 2... | nilq/small-lua-stack | null |
local MAJOR,MINOR = "GuiSkin-1.0", 1
local GuiSkin, oldminor = LibStub:NewLibrary(MAJOR, MINOR);
local GS =GuiSkin;
if not GuiSkin then return end -- No upgrade needed
local function printTable(t,s)
if s==nil then s=""; end;
for i,v in pairs(t) do
print (s..i.."=",v);
if type... | nilq/small-lua-stack | null |
-- Copyright (C) Dejiang Zhu(doujiang24)
local bit = require("bit")
local request = require("resty.kafka.request")
local setmetatable = setmetatable
local byte = string.byte
local sub = string.sub
local band = bit.band
local lshift = bit.lshift
local arshift = bit.arshift
local bor = bit.bor
local bxor = bit.bxor
l... | nilq/small-lua-stack | null |
local m_cyl = mtrequire("ds2.minetest.vectorextras.is_in_cylinder")
local is_in_cylinder = m_cyl.raw
local test_bounds = function(...)
assert(is_in_cylinder(...))
end
local mkbounds = function(ax, ay, az, bx, by, bz, radius)
local test = function(px, py, pz)
return is_in_cylinder(ax, ay, az, bx, by, bz, radius, px... | nilq/small-lua-stack | null |
project "Crowny"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "off"
characterset ("MBCS")
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
pchheader "cwpch.h"
pchsource "Source/cwpch.cpp"
fi... | nilq/small-lua-stack | null |
-- module for netfilter code
-- will cover iptables, ip6tables, ebtables, arptables eventually
-- even less documentation than for netlink but it does not look too bad...
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error,... | nilq/small-lua-stack | null |
local microtest = require("microtest")
local suite = microtest.suite
local equal = microtest.equal
local test = microtest.test
local wildcards = require("lettersmith.wildcards")
suite("wildcards.parse(wildcard_path_string)", function()
local pattern = wildcards.parse("foo/*.md")
test(string.find("foo/bar.md", pa... | nilq/small-lua-stack | null |
vim.api.nvim_set_keymap("i", "<C-e>", "copilot#Accept('\\<CR>')", { script = true, silent = true, expr = true })
vim.g.copilot_no_tab_map = true
| nilq/small-lua-stack | null |
InventorySlotStyles = {
[InventorySlotHead] = "HeadSlot",
[InventorySlotNeck] = "NeckSlot",
[InventorySlotBack] = "BackSlot",
[InventorySlotBody] = "BodySlot",
[InventorySlotRight] = "RightSlot",
[InventorySlotLeft] = "LeftSlot",
[InventorySlotLeg] = "LegSlot",
[InventorySlotFeet] = "FeetSlot",
[Inve... | nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.