content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
PLUGIN.name = "Item Spawn Menu"
PLUGIN.author = "Robot"
PLUGIN.description = "Adds an item spawn menu for SuperAdmin usage."
if (CLIENT) then
function PLUGIN:InitializedPlugins(client)
RunConsoleCommand("spawnmenu_reload")
end
end | nilq/small-lua-stack | null |
local module = {}
local function biter(t, i)
i -= 1
local v = t[i]
if v ~= nil then
return i, v
end
end
local function msiter(t, i)
i += 1
local arr = {}
for j = 1, t.n do
local v = t.args[j][i]
if v == nil then
return
end
arr[j] = v
end... | nilq/small-lua-stack | null |
local cjson = require("core.utils.json")
local IO = require "core.utils.io"
local _M = {}
local env_ngr_conf_path = os.getenv("NGR_CONF_PATH")
_M.default_ngr_conf_path = env_ngr_conf_path or ngx.config.prefix() .."/conf/ngr.json"
function _M.load(config_path)
config_path = config_path or _M.default_ngr_conf_pat... | nilq/small-lua-stack | null |
--[[
Copyright 2021 Todd Austin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | nilq/small-lua-stack | null |
-- Load credentials, 'SSID' and 'PASSWORD' declared and initialised in there
local app = require "application"
require "config"
-- Define WiFi station event callbacks
wifi_connect_event = function(T)
if DEBUG then
print("[d] Connection to AP ("..T.SSID..") established!")
print("[d] Waiting for IP a... | nilq/small-lua-stack | null |
SB.Include(Path.Join(SB.DIRS.SRC, 'view/fields/field.lua'))
--- BooleanField module.
--- BooleanField class.
-- @type BooleanField
BooleanField = Field:extends{}
function BooleanField:Update(source)
-- if source ~= self.checkBox then
-- if self.checkBox.checked ~= self.value then
-- self.che... | nilq/small-lua-stack | null |
require('telescope').setup{
defaults = {
mappings = {
i = {
["<C-k>"] = require('telescope.actions').move_selection_previous,
["<C-j>"] = require('telescope.actions').move_selection_next,
["<esc>"] = require('telescope.actions').close,
}
}
},
pickers = {},
extensions ... | nilq/small-lua-stack | null |
object_ship_firespray_tier7 = object_ship_shared_firespray_tier7:new {
}
ObjectTemplates:addTemplate(object_ship_firespray_tier7, "object/ship/firespray_tier7.iff")
| nilq/small-lua-stack | null |
-- not really required, but makes it obvious it is loaded
-- so we can copy ngx object and compare it later to check modifications
require('resty.core')
-- so test can't exit and can verify the return status easily
ngx.exit = function(...) return ... end
local busted = require('busted')
local misc = require('resty.co... | nilq/small-lua-stack | null |
local SETTINGS_CONFIG = {
MeshSettings = {
forceLod = 0,
globalLodScale = 1000,
shadowDistanceScale = 1000
},
WorldRenderSettings = {
shadowmapResolution = 4096,
shadowmapViewDistance = 500,
shadowmapQuality = 0
},
VegetationSystemSettings = {
... | nilq/small-lua-stack | null |
local key = love.keyboard
local can_play = false
sound_bounce = love.audio.newSource('bounce.wav')
sound_loss = love.audio.newSource('loss.wav')
-- Load some default values for our rectangle.
function love.load()
big_font = love.graphics.newFont(32)
score_pos = 10
score_linePos = 30+32
score_height = ... | nilq/small-lua-stack | null |
local present, packer = pcall(require, "plugins.packerInit")
if not present then
return false
end
local get_plugins_list = function()
local list = {}
local tmp = vim.split(vim.fn.globpath(__editor_global.modules_dir, "*/plugins.lua"), "\n")
for _, f in ipairs(tmp) do
list[#list + 1] = f:sub(#__editor_globa... | nilq/small-lua-stack | null |
fysiks.ContactConstraint = fysiks.Constraint:new()
fysiks.ContactConstraint.__index = fysiks.ContactConstraint
function fysiks.ContactConstraint:new(jacobian, bias, a, b, con)
local c = setmetatable(fysiks.Constraint:new(jacobian, bias, a, b), self)
c.clampTop = false
c.clampTopVal = 0
c.clampBottom = true
c.clam... | nilq/small-lua-stack | null |
registerGlobalSignals ( {
"ui.viewmapping.change"
} )
| nilq/small-lua-stack | null |
-- invalid code
-- rename(old="temp.lua", new="temp1.lua")
--valid
--rename{old="temp.lua", new="temp1.lua"}
function rename (arg)
return os.rename(arg.old, arg.new)
end
| nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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 |
--
-- This is file `lualibs-basic.lua',
-- generated with the docstrip utility.
--
-- The original source files were:
--
-- lualibs.dtx (with options: `basic')
-- This is a generated file.
--
-- Copyright (C) 2009--2021 by
-- PRAGMA ADE / ConTeXt Development Team
-- The LaTeX Project Team
... | nilq/small-lua-stack | null |
Ship = Ship or {}
--- mark that a ship is part of a fleet
--- @internal
--- @param self
--- @param ship CpuShip
--- @param fleet Fleet
--- @return CpuShip
Ship.withFleet = function(self, ship, fleet)
if not isEeShip(ship) then error("Expected ship to be Ship, but got " .. typeInspect(ship), 2) end
if Ship:hasF... | nilq/small-lua-stack | null |
print('testing i/o')
assert(io.input(io.stdin) == io.stdin)
assert(io.output(io.stdout) == io.stdout)
assert(type(io.input()) == "userdata" and io.type(io.output()) == "file")
assert(io.type(8) == nil)
local a = {}; setmetatable(a, {})
assert(io.type(a) == nil)
local a, b, c = io.open('xuxu_nao_existe')
assert(not ... | nilq/small-lua-stack | null |
--MoveCurve
--H_Yuzuru/curve_Attack2_1 curve_Attack2_1
return
{
filePath = "H_Yuzuru/curve_Attack2_1",
startTime = Fixed64(0) --[[0]],
startRealTime = Fixed64(0) --[[0]],
endTime = Fixed64(92274688) --[[88]],
endRealTime = Fixed64(1107296) --[[1.056]],
isZoom = false,
isCompensate = false,
curve = {
[1] = {
... | nilq/small-lua-stack | null |
LIMIT = 100
for i = 1, LIMIT do
if i % 15 == 0 then
io.write("FizzBuzz")
elseif i % 3 == 0 then
io.write("Fizz")
elseif i % 5 == 0 then
io.write("Buzz")
else
io.write(i)
end
if i < LIMIT then
io.write(", ")
end
end
print()
| nilq/small-lua-stack | null |
-----------------------------------
--
-- tpz.effect.AGGRESSOR
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower()
target:addMod(tpz.mod.ACC, power)
target:addMod(tpz.mod.EVA, -powe... | nilq/small-lua-stack | null |
local function check(condition, ...)
if condition then return condition end
io.stderr:write(string.format(...), "\n")
os.exit(1)
end
check(#arg >= 1, "usage:\n "..arg[0].." <topic> [<server> [<port> [<username> [<password>]]]]")
local mq = require"mosquitto"
io.stderr:write("libmosquitto version "..table.conca... | nilq/small-lua-stack | null |
package("hiredis")
set_homepage("https://github.com/redis/hiredis")
set_description("Minimalistic C client for Redis >= 1.2")
set_license("BSD-3-Clause")
add_urls("https://github.com/redis/hiredis/archive/refs/tags/$(version).tar.gz",
"https://github.com/redis/hiredis.git")
add_versio... | nilq/small-lua-stack | null |
local module = {Name = "Null"}
local WeaponDataBase = {
{
ID = 1,
WeaponName = "Proof of Awakening",
Description = "The idea of awakening is conceptual. There is no physical form to show.",
Rarity = 1,
LevelReq = 1,
MaxUpgrades = 0,
MaxEnchantments = 0,
SellPrice = 0,
Model = nil,
Skills = { --up ... | nilq/small-lua-stack | null |
--
-- Created by David Lannan
-- User: grover
-- Date: 6/03/13
-- Time: 12:07 AM
-- Copyright 2013 Developed for use with the byt3d engine.
--
------------------------------------------------------------------------------------------------------------
-- State - Editor main icon panel
--
-- Decription: Displays the n... | nilq/small-lua-stack | null |
object_tangible_collection_col_force_shui_table_03 = object_tangible_collection_shared_col_force_shui_table_03:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_col_force_shui_table_03, "object/tangible/collection/col_force_shui_table_03.iff") | nilq/small-lua-stack | null |
T = require( "t" )
Pack = require( "t.Pack" )
Buffer = require( "t.Buffer" )
utl = T.require( "t_pck_utl" )
-- >I3 <i2 b B >I5 <I4 h
-- aBc De ü HiJkL mNoP ö
expect = { 6373987, 25924, -61, 188, 311004130124, 1349471853, -18749... | nilq/small-lua-stack | null |
package("pkgconf")
set_kind("binary")
set_homepage("http://pkgconf.org")
set_description("A program which helps to configure compiler and linker flags for development frameworks.")
add_urls("https://distfiles.dereferenced.org/pkgconf/pkgconf-$(version).tar.xz")
add_versions("1.7.4", "d73f32c248a459... | nilq/small-lua-stack | null |
local metric = {}
function metric.new(spec)
local instance = spec.metric or { counts = {}, sets = {} }
spec.metric = instance
instance.count = function(name, inc)
instance.counts[name] = (instance.counts[name] or 0) + (inc or 1)
end
instance.set = function(name, value)
instance.sets[name] = value
... | nilq/small-lua-stack | null |
function main()
local all=0
local t=os.clock()
for i=1,100000000 do
all=all+i
end
print(os.clock()-t,all)
end
main() | nilq/small-lua-stack | null |
---------------------------------------------------------------------------
--- Timer objects and functions.
--
-- @usage
-- -- Create a widget and update its content using the output of a shell
-- -- command every 10 seconds:
-- local mybatterybar = wibox.widget {
-- {
-- min_value = 0,
-... | nilq/small-lua-stack | null |
-- Vps Blocker
local http = minetest.request_http_api()
assert(http ~= nil, "You need to add vps_blocker to secure.http_mods")
local kick_message = minetest.settings:get("vps_kick_message") or "You are using a proxy, vpn or other hosting services, please disable them to play on this server."
vps_blocker = {}
local ... | nilq/small-lua-stack | null |
local API_NPC = require(script:GetCustomProperty("API_NPC"))
local API_D = require(script:GetCustomProperty("APIDamage"))
local RANGE = 220.0
local COOLDOWN = 11.0
local SMASH_RANGE = 2000.0
local DAMAGE = 110.0
function GetPriority(npc, taskHistory)
return 1.0
end
function OnTaskStart(npc, threatTable)... | nilq/small-lua-stack | null |
-- painting - in-game painting for minetest
local items =
{
wood = "default:wood",
stick = "default:stick",
brush_head = "farming:cotton",
canvas_source = "default:paper",
}
if minetest.get_modpath("mcl_core") then
items.wood = "mcl_core:wood"
items.stick = "mcl_core:stick"
items.brush_head = "mcl_mobitems:str... | nilq/small-lua-stack | null |
if _G.f_debug ~= nil then _G.f_debug.more_info("Preconditions test scripts run.") end
| nilq/small-lua-stack | null |
map_editor = {
cast = function(player)
map_editor.enter(player)
end,
click = function(player, npc)
player.dialogType = 0
local opts = {}
if player.registry["map_editor"] == 0 then
table.insert(opts, "Edit Mode")
else
table.insert(opts, "Quit Editor")
table.insert(opts, "Save Map")
end
txt = ... | nilq/small-lua-stack | null |
-- this module defines the types with metatypes that are always common, so do not get errors redefining metatypes
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs,... | nilq/small-lua-stack | null |
-- Project: OiL - ORB in Lua
-- Release: 0.6
-- Title : Server-side LuDO Protocol
-- Authors: Renato Maia <maia@inf.puc-rio.br>
local _G = require "_G"
local select = _G.select
local tonumber = _G.tonumber
local tostring = _G.tostring
local array = require "table"
local unpack = array.unpack
local table = require ... | nilq/small-lua-stack | null |
Locales['fr'] = {
['left_instance'] = 'vous avez quitté l\'instance',
['invite_expired'] = 'invitation expirée',
['press_to_enter'] = 'appuyez sur ~INPUT_CONTEXT~ pour entrer dans l\'instance',
['entered_instance'] = 'vous êtes entré dans l\'instance',
['entered_into'] = '%s est entré dans l\'instance',
['l... | nilq/small-lua-stack | null |
local value = false
local t = 0
local dt = 0
local r_curr = 1
local r_prev = 1
function but_cb(dt)
value = not value
if value == false then
led(1023)
else
led(512)
end
end
tmr.alarm(tmr_but, 50, 1, function()
r_curr = gpio.read(io_but)
if r_curr == 0 and r_prev == 1 then
t = tmr.now()
r_prev = r_curr
e... | nilq/small-lua-stack | null |
--
-- created with TexturePacker - https://www.codeandweb.com/texturepacker
--
-- $TexturePacker:SmartUpdate:cadcfe307a1eb19417de4d4c0dcda166:1e2a9027e60fc70d48b2e90cb500a164:1784b3470aad1b82bb9f03684bcf642d$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheet... | nilq/small-lua-stack | null |
-- tl_ops_cookie
-- en : get balance cookie config list
-- zn : 获取路由cookie配置列表
-- @author iamtsm
-- @email 1905333456@qq.com
local cjson = require("cjson");
cjson.encode_empty_table_as_object(false)
local snowflake = require("lib.snowflake");
local cache = require("cache.tl_ops_cache"):new("tl-ops-cookie");
local tl... | nilq/small-lua-stack | null |
test = require 'u-test'
common = require 'common'
function TestMPTransferCpp_Handler()
print("TestMPTransferCpp_Handler")
session1, hr = MultiplayerSessionCreateCpp("00000000-0000-0000-0000-000076029b4d", "MinGameSession", "", 0)
session2, hr = MultiplayerSessionCreateCpp("00000000-0000-0000-0000-000076029... | nilq/small-lua-stack | null |
-- www.pubnub.com - PubNub realtime push service in the cloud.
-- https://github.com/pubnub/pubnub-api/tree/master/lua-corona - lua-Corona Push API
-- PubNub Real Time Push APIs and Notifications Framework
-- Copyright (c) 2010 Stephen Blum
-- http://www.pubnub.com/
-- -----------------------------------
-- PubNub 3.... | nilq/small-lua-stack | null |
---------------------------------
--! @file OutPortPushConnector.lua
--! @brief Push型通信OutPortConnector定義
---------------------------------
--[[
Copyright (c) 2017 Nobuhiko Miyamoto
]]
local OutPortPushConnector= {}
--_G["openrtm.OutPortPushConnector"] = OutPortPushConnector
--local oil = require "oil"
local OutPort... | nilq/small-lua-stack | null |
local function registerCommands (_)
SILE.registerCommand("debug", function (options, _)
for k, v in pairs(options) do
SILE.debugFlags[k] = SU.boolean(v, true)
end
end)
SILE.registerCommand("disable-pushback", function (_, _)
SILE.typesetter.pushBack = function() end
end)
end
return {
reg... | nilq/small-lua-stack | null |
--
-- premake5 file to build RecastDemo
-- http://premake.github.io/
--
require "lib"
local action = _ACTION or ""
local outdir = action
WorkSpaceInit "dbproxy"
Project "dbproxy_svr"
IncludeFile {
"../external/",
"../external/protobuf/include/",
"../external/mysql_connector/include/",
... | nilq/small-lua-stack | null |
-- module Data.Semiring
local exports = {}
exports.intAdd = function (x)
return function (y)
return math.floor(x + y)
end
end
exports.intMul = function (x)
return function (y)
return math.floor(x * y)
end
end
exports.numAdd = function (n1)
return function (n2)
return n1 + n2
end
end
exports... | nilq/small-lua-stack | null |
AddCSLuaFile()
local DbgPrint = GetLogging("MapScript")
local MAPSCRIPT = {}
MAPSCRIPT.PlayersLocked = false
MAPSCRIPT.DefaultLoadout =
{
Weapons = {},
Ammo = {},
Armor = 30,
HEV = false,
}
MAPSCRIPT.EntityFilterByClass =
{
}
MAPSCRIPT.EntityFilterByName =
{
}
MAPSCRIPT.InputFilters =
{
["train... | nilq/small-lua-stack | null |
local copas = require "copas"
local now = require("socket").gettime
local Semaphore = require "copas.semaphore"
local Queue = require "copas.queue"
--local log = require("logging").defaultLogger()
local _M = {}
--- waits for a task to complete. Does exponential backoff while waiting.
-- @tparam function check should ... | nilq/small-lua-stack | null |
--- Quickstart script.
-- Creates a quickstart world for testing mods.
-- <p>This module requires the use of stdlib's @{Event} module for player creation interactions.
-- <p>config settings should be a created in a table retured from `config-quickstart.lua`
-- @script quickstart
-- @usage
-- if DEBUG then
-- require(... | nilq/small-lua-stack | null |
function getRun(i, param)
local i = i
local param = param
return function ()
--print("test");
--[[if i == 1 then
i = 0
print "aqui"
print(io.read())
end]]
--luajava.bindClass("java.lang.String")
print("teste2 "..i);
--luajava.bindClass("java.lang.Thread"):sleep(100)
luajava.newInstance("java.lang.String", "lalala");
-... | nilq/small-lua-stack | null |
fx_version 'adamant'
game 'gta5'
ui_page 'html/index.html'
files {
'html/index.html',
'html/sounds/*.ogg'
}
client_scripts {
'cl_sound.lua',
}
server_scripts {
'@utils/server/players.lua',
'sv_sound.lua',
} | nilq/small-lua-stack | null |
-- Inofficial Tezos Extension for MoneyMoney
-- Fetches Tezos quantity for address via https://tzkt.io/ API
-- Fetches Tezos price in EUR via cryptocompare API
-- Returns cryptoassets as securities
--
-- Username: Tezos Adresses comma seperated
-- Password: anything
-- MIT License
-- Copyright (c) 2021 Mate Steinfort... | nilq/small-lua-stack | null |
local function oscillate(self)
local phDiff = self.freq / self.data:getSampleRate() * math.pi
for i = 0, self.data:getSampleCount() - 1 do
local v = math.sin(self.ph)
self.data:setSample(i, v)
self.ph = self.ph + phDiff
end
end
local function play(self)
love.audio.play(self.sour... | nilq/small-lua-stack | null |
local CATEGORY_NAME = "Discord"
function ulx.mute(calling_ply, target_plys, duration, should_unmute)
if (should_unmute) then
for i=1, #target_plys do
hook.Run("UnmutePlayer", target_plys[ i ])
end
ulx.fancyLogAdmin( calling_ply, "#A unmuted #T", target_plys )
else
for i=1, #target_plys do
... | nilq/small-lua-stack | null |
DebuffMe = DebuffMe or {}
local DebuffMe = DebuffMe
DebuffMe.DebuffList = {
[1] = "None",
[2] = zo_strformat(SI_ABILITY_NAME, GetAbilityName(38541)), --Taunt
[3] = zo_strformat(SI_ABILITY_NAME, GetAbilityName(17906)), --Crusher
[4] = zo_strformat(SI_ABILITY_NAME, GetAbilityName(75753)), --Alkosh
[5] = zo_strfo... | nilq/small-lua-stack | null |
--[[Author: Pizzalol
Date: 26.09.2015.
Creates a dummy at the target location that acts as the Chronosphere]]
function Chronosphere( keys )
-- Variables
local caster = keys.caster
local ability = keys.ability
local target_point = keys.target_points[1]
-- Special Variables
local duration = ability:GetLevelSpeci... | nilq/small-lua-stack | null |
-- Calculate probabilities from meps with area and time averaging
--
local MISS = missingf
local mask = matrixf(33, 33, 1, MISS)
mask:Fill(1)
function produceProbabilities(sourceparam, targetparam, op, limit)
local datas = {}
local producer = configuration:GetSourceProducer(0)
local ensemble_size = tonumber(r... | nilq/small-lua-stack | null |
CodexDB["meta-tbc"]={
["chests"]={
[-300405]="_",
[-300404]="_",
[-300403]="_",
[-300402]="_",
[-300401]="_",
[-300400]="_",
[-187072]=0,
[-186750]=0,
[-186748]=0,
[-186744]=0,
[-186741]=0,
[-186740]=0,
[-186739]=0,
[-186736]=0,
[-186734]=0,
[-186302]=0,
[-186263]=0,
[-185169]=0,
[-185168]=0,
[-185032]=0,
[-184941]=0,
... | nilq/small-lua-stack | null |
local unpack = unpack
local Logo_GUI = {
{type = "texture", texture = "Interface\\AddOns\\Nerdpack-Kleei-2.0\\media\\assassin.blp", width = 160, height = 160, offset = 125, y = -60, align = "center"},
}
local GUI = {
unpack(Logo_GUI),
{type = "header", size = 16, text = "Keybinds", align = "center"},
{type = ... | nilq/small-lua-stack | null |
--[[
Input:bind('keyboard', 'released', function(key, scan_code)
print('keyreleased', key, scan_code)
end)
Input:bind('keyboard', 'textinput', function(char)
print('textinput', char)
end)
Input:bind('mouse', 'released', function(x, y, button)
print('mousereleased', x, y, button)
end)
]]
local Emitter = require ... | nilq/small-lua-stack | null |
GHI_ContainerData = {
}
GHI_ItemData = {
}
GHI_CooldownData = {
}
GHI_MiscData = {
["allow_camera_move"] = false,
["BackpackPos"] = {
269.000001592562, -- [1]
1058.00002397224, -- [2]
},
["block_area_buff"] = false,
["hide_mod_att_tooltip"] = false,
["UI_Themes"] = {
["Current"] = {
["d... | nilq/small-lua-stack | null |
function AttachOrbs(keys)
local hero = keys.caster
local origin = hero:GetAbsOrigin()
local particleName = "particles/blood_mage/exort_orb.vpcf"
hero.orbs = {}
for i = 1, 3 do
hero.orbs[i] = ParticleManager:CreateParticle(particleName, PATTACH_OVERHEAD_FOLLOW, hero)
ParticleManager:SetParticle... | nilq/small-lua-stack | null |
-- Smartab
-- MIT © 2019 Arthur Corenzan
-- More on https://github.com/haggen/wow
| nilq/small-lua-stack | null |
local class = require 'middleclass'
-- 基底クラス
local Repository = require 'repository.Repository'
-- リポジトリ:クラス
local CharacterClassRepository = class('CharacterClassRepository', Repository)
-- モジュール
local CharacterClass = require 'entities.CharacterClass'
-- 初期化
function CharacterClassRepository:initialize(t)
Re... | nilq/small-lua-stack | null |
-- XEP-0257: Client Certificates Management implementation for Prosody
-- Copyright (C) 2012 Thijs Alkemade
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local jid_split = require "util.jid".split;
local xmlns_saslcert = "urn:xmpp:saslcert:1";
local dm... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Sobol quasi random number generator module.
--
-- Copyright (C) 2011-2014 Stefano Peluchetti. All rights reserved.
--
-- Features, documentation and more: http://www.scilua.org .
--
-- Credit: this implementation is based on the ... | nilq/small-lua-stack | null |
local modname = minetest.get_current_modname()
local test_box = modname .. ":test_box"
local textures = {}
for index = 1, 6 do
textures[index] = modname .. "_test_box.png"
end
minetest.register_entity(test_box, {
initial_properties = {
physical = false,
pointable = true,
visual = "cube",
visual_size = { x ... | nilq/small-lua-stack | null |
MqttConventionPrototype = {
type = "'type' needs to be overriden",
mqtt = "MQTT connection must be established first"
}
function MqttConventionPrototype:getLastWillMessage()
error("function is mandatory for implementation")
end
function MqttConventionPrototype:onConnected()
error("function is manda... | nilq/small-lua-stack | null |
local GAMEMODE = PIS:GetGamemode()
GAMEMODE:SetName("Backup")
GAMEMODE:SetID("backup")
GAMEMODE:SetDetectionCondition(function()
return false
end)
GAMEMODE:SetPlayers(function(author)
local tbl = {}
for i, v in pairs(player.GetAll()) do
if (v == author) then continue end
table.insert(tbl, v)
end
return tbl... | nilq/small-lua-stack | null |
do
local _ENV = _ENV
package.preload[ "alfons.env" ] = function( ... ) local arg = _G.arg;
local style
style = require("ansikit.style").style
local setfenv = setfenv or require("alfons.setfenv")
local fs = require("filekit")
local unpack = unpack or table.unpack
local ENVIRONMENT
ENVIRONMENT = {
_VERSION = _VERSION,
... | nilq/small-lua-stack | null |
-- example of printing Moose:RANGE scores to discord.
-- Requires:
-- Mist
-- Moose
-- HypeMan
assert(loadfile("C:/HypeMan/mist.lua"))()
assert(loadfile("C:/HypeMan/Moose.lua"))()
assert(loadfile("C:/HypeMan/HypeMan.lua"))()
assert(loadfile("C:/HypeMan/target_range/target_range.lua"))()
| nilq/small-lua-stack | null |
--[[
NetStream - 2.1.0
Alexander Grist-Hucker
http://www.revotech.org
Credits to:
thelastpenguin for pON.
https://github.com/thelastpenguin/gLUA-Library/tree/master/pON
--]]
local net = net
local ErrorNoHalt = ErrorNoHalt
local pairs = pairs
local pcall = pcall
local type = type
local util = ut... | nilq/small-lua-stack | null |
#!/usr/bin/env texlua
--------------------------------------------------------------------------------
-- FILE: cyrillicnumbers.lua
-- USAGE: called by t-cyrillicnumbers.mkvi
-- DESCRIPTION: part of the Cyrillic Numbers module for ConTeXt
-- REQUIREMENTS: recent ConTeXt MkIV and LuaTeX
-- AUTH... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------
-- UDP sample: daytime protocol client
-- LuaSocket sample files
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require"socket"
host = host or "127.0.0.1"
port = port or 13
... | nilq/small-lua-stack | null |
return {
name = "Copper",
desc = "",
sprite = 'copper',
usage = 'wall'
}
| nilq/small-lua-stack | null |
-- Skybox alternative v0.46 by Ren712
-- Based on GTASA Skybox mod by Shemer
-- knoblauch700@o2.pl
local sphereObjScale=100 -- set object scale
local sphereShadScale={1,1,0.9} -- object scale in VS
local makeAngular=true -- set to true if you have spheric texture
local sphereTexScale={1,1,1} -- scale the texture in P... | nilq/small-lua-stack | null |
if SERVER then
AddCSLuaFile()
AddCSLuaFile("pam/sh_init.lua")
AddCSLuaFile("pam/client/cl_init.lua")
AddCSLuaFile("pam/client/cl_pam.lua")
AddCSLuaFile("pam/sh_extension_handler.lua")
AddCSLuaFile("pam/client/cl_networking.lua")
AddCSLuaFile("pam/client/cl_commands.lua")
include("pam/sh_init.lua")
... | nilq/small-lua-stack | null |
tutorial = {}
tutMap = {}
tutMap.width = 5
tutMap.height = 5
for i = 0, tutMap.width+1 do
tutMap[i] = {}
end
tutMap[1][1] = "C"
tutMap[2][1] = "C"
tutMap[2][2] = "C"
tutMap[2][3] = "C"
tutMap[3][2] = "C"
tutMap[4][2] = "C"
tutMap[5][2] = "C"
tutorialSteps = {}
currentStep = 1
currentStepTitle = ""
currentTutBo... | nilq/small-lua-stack | null |
local inventories = {
defines.inventory.character_main,
defines.inventory.character_guns,
defines.inventory.character_ammo,
defines.inventory.character_armor,
defines.inventory.character_vehicle,
defines.inventory.character_trash,
}
return inventories
| nilq/small-lua-stack | null |
--System objects
| nilq/small-lua-stack | null |
-- the season was spring
-- and that day it was raining
-- the day I met Her
--
-- Her hair, and mine, too
-- were dense with humidity
-- and the scent of rain
--
-- the earth continued
-- quietly turning with us
-- aboard, unknowing
--
-- our bodies losing
-- heat peacefully to other
-- spaces, darknesses
--
-- on tha... | nilq/small-lua-stack | null |
-- Convers Hex Color Codes To RGB
local function hex2rgb (hex)
local hex = hex:gsub("#","")
local R,G,B
if hex:len() == 3 then
R = (tonumber("0x"..hex:sub(1,1))*17)/255
G = (tonumber("0x"..hex:sub(2,2))*17)/255
B = (tonumber("0x"..hex:sub(3,3))*17)/255
else
R = tonumber("0x"..hex:sub(1,2))/255
... | nilq/small-lua-stack | null |
local M = {}
--- Is windows
M.is_windows = false
if vim.fn.has("win32") == 1 then
M.is_windows = true
end
return M
| nilq/small-lua-stack | null |
require("prototypes/items/steel-exoskeleton") | nilq/small-lua-stack | null |
data:extend({
{
type = "technology",
name="mining-speed-1",
icon = "__5dim_infiniteresearch__/graphics/icon/mining-speed.png",
icon_size = 128,
effects =
{
{
type = "character-mining-speed",
modifier = 0.2,
}
},
unit =
{
count_formul... | nilq/small-lua-stack | null |
local tab =
{
andy = 45,
ss = "dd"
}
_G.GetTable = function()
return tab
end
_G.SetTable = function(t)
tab = t
end
function PrintMyAnswer()
_G.PrintGlobalTable("table",tab)
end
| nilq/small-lua-stack | null |
local updateXpBar = game.ReplicatedStorage.events:WaitForChild("updateXpBar")
local gui = require(game.ReplicatedStorage:WaitForChild("modules").client.gui)
local makeChatMessage = game.ReplicatedStorage.events:WaitForChild("makeChatMessage")
local openClientNote = game.ReplicatedStorage.events:WaitForChild("openClient... | nilq/small-lua-stack | null |
Ai = { }
function Ai:new (o)
o = o or { }
setmetatable(o, self)
self.__index = self
return o
end
Ais = { }
function Ais:addAiTemplate(obj, file)
if (obj == nil) then
print("null template specified for " .. file)
else
addAiTemplate(file, obj)
end
end
function getAiTemplate(crc)
return Ais[crc]
end
| nilq/small-lua-stack | null |
----------------------------------
-- Area: Bastok Markets [S]
-- NPC: Karlotte
-- Type: Item Deliverer
-- !pos -191.646 -8 -36.349 87
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets_[S]/IDs")
-----------------------------------
function onTrade(player,npc,trade)
end;
function on... | nilq/small-lua-stack | null |
require( "components/cavern/encounters/encounter_trap_base" )
if encounter_trap_mines == nil then
encounter_trap_mines = class({},{}, encounter_trap_base)
end
LinkLuaModifier( "modifier_trap_techies_land_mine", "components/cavern/modifiers/modifier_trap_techies_land_mine", LUA_MODIFIER_MOTION_NONE )
---------------... | nilq/small-lua-stack | null |
project "lua_bullet"
language "C++"
files {
"src/Bullet3Common/**" ,
"src/Bullet3Geometry/**" ,
"src/Bullet3Serialize/**" ,
"src/BulletDynamics/**" ,
"src/BulletSoftBody/**" ,
"src/Bullet3Collision/**" ,
"src/Bullet3Dynamics/**" ,
"src/BulletCollision/**" ,
"src/BulletInverseDynamics/**" ,
"src/LinearMath/*... | nilq/small-lua-stack | null |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage.common
local util = common.util
local by = require(util.by)
local catagories = {
{
id = "weapon",
name = "Weapon",
icon = "",
},
{
id = "armor",
name = "Armor",
... | nilq/small-lua-stack | null |
local BasePlugin = require "kong.plugins.base_plugin"
local ExternalAuthHandler = BasePlugin:extend()
local http = require "resty.http"
local kong = kong
ExternalAuthHandler.VERSION = "1.0.0"
ExternalAuthHandler.PRIORITY = 900
local function is_ignore_path(request_path, paths)
if paths then
for i, path in ipa... | nilq/small-lua-stack | null |
local lookUpTable = {}
-- lookUpTable["block"] = 1
lookUpTable["wall"] = {21,31}
lookUpTable["wall_edge"] = 22
lookUpTable["wall_top"] = 35
lookUpTable["band_edge"] = 33
lookUpTable["band"] = 34
lookUpTable["slope"] = 3
lookUpTable["slope2Bot"] = 4
lookUpTable["slope2Top"] = 5
lookUpTable["corner"] = 13
lookUpTable["... | nilq/small-lua-stack | null |
require("gldef")
require("StockModels")
--create a local transform as example geometry
local teapot = Transform{
StockModels.Teapot(),
}
--create a clipplane osg object
local clipplane = osg.ClipPlane()
--set direction of plane clipping (-z)
clipplane:setClipPlane(0.0,0.0,-1.0,0.0)
--set plane number (us... | nilq/small-lua-stack | null |
--[[
https://github.com/yongkangchen/poker-server
Copyright (C) 2016 Yongkang Chen lx1988cyk#gmail.com
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but... | nilq/small-lua-stack | null |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New("alcohol_base");
ITEM.name = "ItemWhiskey";
ITEM.uniqueID = "whiskey";
ITEM.cost = 13;
ITEM.model = "models/props_junk/garbage_glassbottle002a.mdl";
ITEM.weight =... | 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.