content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local mod_active = (mods and mods["underground-pipe-pack"]) or (game and game.active_mods["underground-pipe-pack"])
if not mod_active then
return function() end -- mod not enabled, do nothing
end
local variants = {
"one-to-one-forward",
"one-to-two-perpendicular",
"one-to-three-forward",
"one... | nilq/small-lua-stack | null |
PlayerInfoMgr = {}
-- ๅๅงๅๅฝๆฐ
function PlayerInfoMgr:Init()
self.PlayerInfoMap = Map:new();
end
function PlayerInfoMgr:GetPlayerInfo( _uid )
return self.PlayerInfoMap:Find(_uid);
end
function PlayerInfoMgr:SetPlayerInfo( _uid, _playerinfo )
if _uid ~= _playerinfo.UID then assert() end;
self.Pl... | nilq/small-lua-stack | null |
_M={}
local _mt={__index=_M}
function _M.upper(str)
return string.upper( str )
end
return _M | nilq/small-lua-stack | null |
function bind3(func,arg3)
return function(arg1,arg2)
return func(arg1,arg2,arg3)
end
end
function bind34(func,arg3,arg4)
return function(arg1,arg2)
return func(arg1,arg2,arg3,arg4)
end
end | nilq/small-lua-stack | null |
--[[
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
]]--
-----------------------------------------
-- Na... | nilq/small-lua-stack | null |
return function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local lib = ReplicatedStorage.lib
local Llama = require(lib.Llama)
local List = Llama.List
local removeValue = List.removeValue
it("should return a new table", function()
local a = {
"cool",
}
local b = removeValue(a, "c... | nilq/small-lua-stack | null |
local Escher = require "escher"
local EscherFactory = require "kong.plugins.escher.escher_factory"
describe("escher factory", function()
describe("#create", function()
it("should create a new Escher instance with default parameters", function()
local escher = Escher({
debugInfo... | nilq/small-lua-stack | null |
--BRAINWASH the fortress. For when that one lost sheep haunts their thoughts FOREVER.
function brainwashfortress()
--readapted From siren.lua on April 7 2015
function add_thought(unit, emotion, thought)
unit.status.current_soul.personality.emotions:resize(0)
unit.status.current_soul.perso... | nilq/small-lua-stack | null |
--- Provides a collection of basic color names and their RGB values.
-- Plus a function for creating new color objects.
--
-- Colorswatches provides a collection of RGB values keyed by color name.
-- Specialized collections of color names are provided as submodules.
--
-- @module colorswatches
-- @author Matthew M. Bur... | nilq/small-lua-stack | null |
local Lustache = require "lustache"
return {
id = function (what)
return Lustache:render ("ardoises:id:{{{what}}}", { what = what })
end,
lock = function (what)
return Lustache:render ("ardoises:lock:{{{what}}}", { what = what })
end,
user = function (user)
return Lustache:render ("ardoises:user:... | nilq/small-lua-stack | null |
-- GAMESHELL KEYMAP --
-- See here: https://github.com/clockworkpi/Keypad/blob/master/keymaps.png
local keys = {}
-- A, B, X, Y
keys.Y = 'i'
keys.X = 'u'
keys.A = 'j'
keys.B = 'k'
-- D-Pad
keys.DPad_up = 'up'
keys.DPad_down = 'down'
keys.DPad_right = 'right'
keys.DPad_left = 'left'
-- Special Keys
keys.Start = 'r... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "item",
name = "sodium-hydroxide",
icon = "__Engineersvsenvironmentalist__/graphics/icons/chemicals/sodium-hydroxide.png",
flags = {"goes-to-main-inventory"},
subgroup = "aluminium-processing",
order = "f[sodium-hydroxide]",
stack_size = 1000
},
}
) | nilq/small-lua-stack | null |
local UIMain = Class(UIPanel)
function UIMain:Awake()
self.super.Awake(self)
Log.Trace("UIMain Awake")
self.title.text = "asdfasd"
self.btn.onClick:AddListener(function()
UIPanelManager.OpenUI(UIPanelDef.MessageBox, {
Title = "ๅ
ๅผ",
Content = "ๅ
ๅผ648ๅคง็คผๅ
",
... | nilq/small-lua-stack | null |
--************************
--name : SINGLE_DEL_TT_02.lua
--ver : 0.1
--author : Kintama
--date : 2004/09/09
--lang : en
--desc : terminal mission
--npc :
--************************
--changelog:
--2004/09/09(0.1): Added description
--************************
function DIALOG()
NODE(0)
... | nilq/small-lua-stack | null |
function quaternion_multiply(x1,y1,z1,w1, x2,y2,z2,w2)
return
w1*x2 + x1*w2 + y1*z2 - z1*y2,
w1*y2 - x1*z2 + y1*w2 + z1*x2,
w1*z2 + x1*y2 - y1*x2 + z1*w2,
w1*w2 - x1*x2 - y1*y2 - z1*z2
--[[
local A = (w1 + x1) * (w2 + x2)
local B = (z1 - y1) * (y2 - z2)
local C = (x1 - w1) * (y2 + z2)
local D = (y1 + z1) *... | nilq/small-lua-stack | null |
---
-- The 'DisplayObject' class is the base class for all objects that can
-- be placed on the screen.
--
-- @module DisplayObject
local M = Class(EventDispatcher)
---
-- Creates a new display object.
--
-- @function [parent=#DisplayObject] new
-- @param width (number) The width of the display object in pixels.
-- @p... | nilq/small-lua-stack | null |
data.raw["item"]["coal"].fuel_value = nil
data.raw["item"]["solid-fuel"].fuel_value = nil
data.raw["item"]["rocket-fuel"].fuel_value = nil
| nilq/small-lua-stack | null |
--- This lua script prints the content of var1, and sets var2 to be "Hello World, I was set in Lua!"
print (var1)
var2 = "Hello World, I was set in Lua!" | nilq/small-lua-stack | null |
local utils = require("../miscUtils")
local muteUtils = require("../muteUtils")
local commandHandler = require("../commandHandler")
return {
name = "mute",
description = "Mute a user.",
usage = "mute <ping or id> [length (e.g. 2d4h, 5m, 1w2d3h4m)] [| reason]",
visible = true,
permissions = {"manageRoles"... | nilq/small-lua-stack | null |
--[=[
Hi-level thread primitives based on pthread and luastate.
Written by Cosmin Apreutesei. Public Domain.
THREADS
thread.new(func, args...) -> th create and start a thread
th:join() -> retvals... wait on a thread to finish
QUEUES
thread.queue([maxlength]) -> q create a synchroni... | nilq/small-lua-stack | null |
CollectionatorRecipeCacheFrameMixin = {}
function CollectionatorRecipeCacheFrameMixin:OnLoad()
FrameUtil.RegisterFrameForEvents(self, {
"VARIABLES_LOADED",
"TRADE_SKILL_DATA_SOURCE_CHANGED",
})
end
function CollectionatorRecipeCacheFrameMixin:OnEvent(event, ...)
if event == "VARIABLES_LOADED" then
s... | nilq/small-lua-stack | null |
local MILESTONE_NAME = "STONECRATER_BIGHOLE"
function get_players()
local name = get_entity_name(get_player_id(0))
if (name == "egbert") then
egbert = get_player_id(0)
frogbert = get_player_id(1)
bisou = get_player_id(2)
elseif (name == "frogbert") then
frogbert = get_player_id(0)
bisou = get_player_id(1... | nilq/small-lua-stack | null |
Locales['en'] = {
['Discord do servidor'] = 'Server discord',
['Site do Servidor'] = 'Server website',
['Servidor'] = 'Server',
}
| nilq/small-lua-stack | null |
-- vim: nu et ts=2 sts=2 sw=2
local module = {}
local pl = {}
pl.pretty = require("pl.pretty")
pldump = pl.pretty.dump
local phaseMove = {}
local joystick1 = nil
local joystick1Conf = nil
function module.load()
local joysticks = love.joystick.getJoysticks()
joystick1 = joysticks[1]
if joystick1 then
... | nilq/small-lua-stack | null |
--[[
Name: "init.lua".
Product: "nexus".
--]]
local function ParticleCollides(particle, position, normal)
util.Decal("Blood", position + normal, position - normal);
end;
-- Called when the effect has initialized.
function EFFECT:Init(data)
local particleEmitter = ParticleEmitter( data:GetOrigin() );
local velocity... | nilq/small-lua-stack | null |
if mechanics == nil then
mechanics = {}
end
mechanics.dungeon = {} | nilq/small-lua-stack | null |
--
-- (C) 2013 Kriss@XIXs.com
--
-- This file is distributed under the terms of the MIT license.
-- http://en.wikipedia.org/wiki/MIT_License
-- Please ping me if you use it for anything cool...
--
local math=require("math")
local table=require("table")
local string=require("string")
local unpack=unpack
local getmet... | nilq/small-lua-stack | null |
--imports--
local cqueues = require"cqueues"
local util = require"novus.util"
local promise = require"cqueues.promise"
local interposable = require"novus.client.interposable"
local debugger,traceback = debug.debug, debug.traceback
local xpcall = xpcall
local ipairs = ipairs
local insert = table.insert
local sleep = cq... | nilq/small-lua-stack | null |
local mod = DBM:NewMod(1235, "DBM-Party-WoD", 4, 558)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15007 $"):sub(12, -3))
mod:SetCreatureID(81297, 81305)
mod:SetEncounterID(1749)
mod:SetZone()
mod:SetBossHPInfoToHighest(false)
mod:RegisterCombat("combat")
mod:SetBossHealthInfo(81297)
... | nilq/small-lua-stack | null |
local packages = script.Parent.Parent.Parent
local synthetic = require(script.Parent.Parent)
local util = require(script.Parent.Parent:WaitForChild("Util"))
local fusion = util.initFusion(require(packages:WaitForChild('fusion')))
local maidConstructor = require(packages:WaitForChild('maid'))
local typographyConstructor... | nilq/small-lua-stack | null |
---------------------------------
--! @file OutPortPullConnector.lua
--! @brief Pullๅ้ไฟกOutPortConnectorๅฎ็พฉ
---------------------------------
--[[
Copyright (c) 2017 Nobuhiko Miyamoto
]]
local OutPortPullConnector= {}
--_G["openrtm.OutPortPullConnector"] = OutPortPullConnector
local OutPortConnector = require "openrtm... | nilq/small-lua-stack | null |
-- Copyright (c) 2019 Cable Television Laboratories, Inc.
-- 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 la... | nilq/small-lua-stack | null |
require("button")
require("stringfuncs")
require("finger")
require("windialog")
local graph = love.graphics
local wstart = winw*0.03
local hstart = winh*0.1
local wend = winw*0.97
local hend = winh*0.8
local wbox = winw-wstart-(winw-wend)
local hbox = winh-hstart-(winh-hend)
local createblock = function(c)
local t ... | nilq/small-lua-stack | null |
slot0 = class("ShoppingCommand", pm.SimpleCommand)
slot0.execute = function (slot0, slot1)
slot4 = slot1:getBody().count
slot5 = pg.shop_template[slot1.getBody().id]
slot7 = getProxy(PlayerProxy).getData(slot6)
slot8 = getProxy(NavalAcademyProxy)
if not slot1.getBody().id then
pg.TipsMgr.GetInstance():ShowTips... | nilq/small-lua-stack | null |
local check = require("jnet.check")
local util = require("jnet.util")
local BITS = 16
local COMPMAX = 1 << BITS
local COMPMASK = COMPMAX - 1
local FORMAT = "%04x"
local net_i = {}
local net_m = { __index = net_i, jnet_type__ = "jnet.net" }
function net_i:promote_(other, netwb)
local mt = getmetatable(self)
if getm... | nilq/small-lua-stack | null |
return {
postgres = {
up = [[
-- If migrating from 1.x, the "path_handling" column does not exist yet.
-- Create it with a default of 'v1' to fill existing rows.
DO $$
BEGIN
ALTER TABLE IF EXISTS ONLY "routes" ADD "path_handling" TEXT DEFAULT 'v1';
EXCEPTION WHEN DUPLICATE_CO... | nilq/small-lua-stack | null |
local on = mp.get_opt('images-statusbar') == 'yes'
local msg1 = mp.get_property('options/osd-msg1')
function update_statusbar()
if on == true then
mp.set_property('options/osd-msg1', msg1)
else
mp.set_property('options/osd-msg1', '')
end
end
function toggle_statusbar()
on = not on
... | nilq/small-lua-stack | null |
-------------------------------- ELEMENTS FUNCTIONS ------------------------------
-- Create an element --
function createElement(name, atNumber, type, color)
eI = {}
eI.name = name
eI.type = type
eI.icon = "__Mobile_Factory_Graphics__/graphics/elements/" .. name .. ".png"
eI.icon_size = 89
eI.order = t... | nilq/small-lua-stack | null |
include("dualstick360/globals.lua")
include("dualstick360/utils.lua")
include("utils/stateMachine.lua")
include("dualstick360/player.lua")
include("dualstick360/bullet.lua")
include("dualstick360/enemy.lua")
include("dualstick360/healthpack.lua")
include("dualstick360/level1.lua")
--[[ Initialize the first game object... | nilq/small-lua-stack | null |
-- local variables for API functions. any changes to the line below will be lost on re-generation
local client_log, client_set_event_callback, entity_get_player_name, globals_tickinterval, math_floor, table_concat, ui_get, ui_reference = client.log, client.set_event_callback, entity.get_player_name, globals.tickinterva... | nilq/small-lua-stack | null |
local _hxClasses = {}
Int = (function() _hxClasses.Int = _hx_o({__fields__={__name__=true},__name__={"Int"}}); return _hxClasses.Int end)();
Dynamic = (function() _hxClasses.Dynamic = _hx_o({__fields__={__name__=true},__name__={"Dynamic"}}); return _hxClasses.Dynamic end)();
Float = (function() _hxClasses.Float = _hx_e... | nilq/small-lua-stack | null |
require('plugins')
require('config/notify')
require('config/keybindings')
require('config/colorscheme')
require('config/treesitter')
require('config/lualine')
require('completion')
require('config/go')
require('config/python')
require('rust')
require('config/ruby')
require('config/telescope')
require('config/options... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- Mob Framework Settings Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allowed to pretend you have written it.
--
--! @file init.lua
--! @brief se... | nilq/small-lua-stack | null |
return function()
local Knit = require(game:GetService("ReplicatedStorage").Knit)
local Streamable = require(Knit.Util.Streamable)
local instanceFolder
local function CreateInstance(name)
local folder = Instance.new("Folder")
folder.Name = name
folder.Archivable = false
folder.Parent = instanceFolder
r... | nilq/small-lua-stack | null |
--[[
Authors: Alberto and Ricardo Romanach
GitHub page: https://github.com/rawii22/PlayerStatus
Notes: In order to understand some terminology in the comments, I'll describe some stuff here.
Scenario 1: non-dedicated non-caves
Scenario 2: non-dedicated with caves
Scenario 3: dedicated non-caves
Scenario 4:... | nilq/small-lua-stack | null |
identitycontrols = {};
function setCurrent(name)
local idctrl = identitycontrols[name];
if idctrl then
-- Deactivate all identities
for k, v in pairs(identitycontrols) do
v.setCurrent(false);
end
-- Set active
idctrl.setCurrent(true);
end
end
function addIdentity(name, isgm)
loca... | nilq/small-lua-stack | null |
local function build_color(r, g, b)
if not r then
r = 0
end
if not g then
g = 0
end
if not b then
b = 0
end
local res = fill_surface(32, 32, r, g, b)
if not res then
return BADID
end
return {"image", res}
end
return function(types)
return {
handler = build_color,
args = {types.FACTORY, types.... | nilq/small-lua-stack | null |
vim.cmd([[
augroup general
autocmd!
autocmd TermOpen term://* startinsert
autocmd FocusGained * :checktime
autocmd Filetype lua nnoremap <silent><leader>nv <cmd>lua require'telescope.builtin'.find_files{ cwd = "~/.config/nvim" }<CR>
augroup END
]])
vim.cmd([[
autocmd FileType lua lua re... | nilq/small-lua-stack | null |
local State = require("Lutron/State/State")
local StateMachine
do
local _class_0
local stateNameIndex, currentStateName
local _base_0 = {
addState = function(self, state)
if state.name == nil then
state.name = stateNameIndex
stateNameIndex = stateNameIndex + 1
end
self.states... | nilq/small-lua-stack | null |
project "glfw"
kind "StaticLib"
language "C"
staticruntime "on"
targetdir ("bin/%{cfg.buildcfg}")
objdir ("bin-obj/")
filter "system:windows"
systemversion "latest"
files
{
"include/GLFW/glfw2.h",
"include/GLFW/glfw2native.h",
"src... | nilq/small-lua-stack | null |
function gadget:GetInfo()
return {
name = "No Self-D on share",
desc = "Prevents self-destruction when a unit changes hands or a player leaves",
author = "quantum, Bluestone",
date = "July 13, 2008",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = t... | nilq/small-lua-stack | null |
local Model = require("lapis.db.model").Model
local schema = require("lapis.db.schema")
local types = schema.types
local lapis = require("lapis")
local db = require("lapis.db")
local uuid = require("uuid")
-- Localize
local cwd = (...):gsub('%.[^%.]+$', '') .. "."
local oss_options = require(cwd .. "GameDbUrls").get... | nilq/small-lua-stack | null |
--waf_cookie.lua
| nilq/small-lua-stack | null |
local ctx = reaper.ImGui_CreateContext('Drum Humanizer')
local size = reaper.GetAppVersion():match('OSX') and 12 or 14
local font = reaper.ImGui_CreateFont('sans-serif', size)
reaper.ImGui_AttachFont(ctx, font)
widgets = {}
widgets.multi_component = {
vector = reaper.new_array({ 1.0,1.0,1.0,1.0 })
}
funct... | nilq/small-lua-stack | null |
--- Type-checking functions.
-- Functions and definitions for doing a basic lint check on files
-- loaded by LuaRocks.
--module("luarocks.type_check", package.seeall)
local type_check = {}
package.loaded["luarocks.type_check"] = type_check
local cfg = require("luarocks.cfg")
local deps = require("luarocks.deps")
type... | nilq/small-lua-stack | null |
Ocean = Class{}
function Ocean:init()
self.width = VIRTUAL_WIDTH
self.height = 200
self.x = 0
self.y = VIRTUAL_HEIGHT - 49
end
function Ocean:collides(obstacle)
if self.x + self.width >= obstacle.x and self.x <= obstacle.x + obstacle.width then
if (self.y) + (self.height) >= obstacle.y a... | nilq/small-lua-stack | null |
-- Do not load actual QoS functionality at all, add noop wrapper with annoying messages.
-- After loading this file mod should stop doing anything else.
-- Reset QoS
QoS = {}
local function wrapper(_, arg1)
print("QoS control is disabled for " .. tostring(minetest.get_current_modname()))
print("curl_parallel_limit... | nilq/small-lua-stack | null |
DarkRP.ENTITY.keysLock = DarkRP.stub{
name = "keysLock",
description = "Lock this door or vehicle.",
parameters = {
},
returns = {
},
metatable = DarkRP.ENTITY
}
DarkRP.ENTITY.keysUnLock = DarkRP.stub{
name = "keysUnLock",
description = "Unlock this door or vehicle.",
parameters = {
},
returns = {
},
me... | nilq/small-lua-stack | null |
---@module GunMagazine ๆชๆขฐๆจกๅ๏ผๅผนๅคนๅบ็ฑป
---@copyright Lilith Games, Avatar Team
---@author Sharif Ma
local GunMagazine = class('GunMagazine')
---GunMagazine็ฑป็ๆ้ ๅฝๆฐ
---@param _gun GunBase
function GunMagazine:initialize(_gun)
---ๅผนๅคน่ฃ
่ฝฝ็ๆญฆๅจ
self.gun = _gun
---ๅผนๅคน็id
self.id = _gun.magazineUsed
---ๅผนๅคน้
็ฝฎๅๅงๅ
Gun... | nilq/small-lua-stack | null |
--[[
This class was made special for The Elements of Rainbow discord server
]]
local emb = require("./embed.lua")
local party = {}
party.text = {
[[ะฅะพัั ะฟะพะถะตะปะฐัั, ััะพะฑั ะถะธะทะฝั ะฑัะปะฐ ะฟะพะปะฝะฐ ะฟัะธััะฝัะผะธ ัะพะฑััะธัะผะธ, ะฑะปะตััััะธะผะธ ะธะดะตัะผะธ ะธ ะฝะฐััะพััะธะผะธ ะฟะพะฑะตะดะฐะผะธ! ะัััั ัะฒะพั ะดััะฐ ัะฒะตัะธััั ะพั ะฟะพะทะธัะธะฒะฐ ะธ ั
ะพัะพัะตะณะพ ะฝะฐัััะพะตะฝะธ... | nilq/small-lua-stack | null |
local path = '/home/lib';
local os = require('os');
local codeURL = os.getenv('ROBOSERVER_CODE');
local fileName = '/downloadCode.lua'
os.execute('wget -f ' .. codeURL .. fileName .. ' ' .. path .. fileName);
local dl = require("downloadCode");
dl.downloadAll(path);
local config = require("config");
config.easy(config.... | nilq/small-lua-stack | null |
local hooks = {}
module(..., package.seeall)
-- register
-- Adds a new hook to the global table so it can be broadcast.
-- Returns whether a new hook was registered (same name cannot be registered twice)
function register(hookName)
if (hooks[hookName]) return false end
hooks[hookName] = {}
return true
... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Grandmaster Vorpil", 555, 546)
if not mod then return end
mod:RegisterEnableMob(18732)
-- mod.engageId = 1911 -- no boss frames
-- mod.respawnTime = 0 -- resets, doesn't respawn
-... | nilq/small-lua-stack | null |
giant_mutant_bark_mite = Creature:new {
objectName = "@mob/creature_names:mutant_bark_mite_giant",
socialGroup = "mite",
faction = "",
level = 16,
chanceHit = 0.31,
damageMin = 170,
damageMax = 180,
baseXp = 1102,
baseHAM = 4100,
baseHAMmax = 5000,
armor = 0,
resists = {5,5,5,110,110,-1,-1,-1,-1},
meatType... | nilq/small-lua-stack | null |
PROJECT_NAME = path.getname(os.getcwd())
minko.project.library("minko-plugin-" .. PROJECT_NAME)
files {
"src/**.hpp",
"src/**.cpp",
"include/**.hpp"
}
includedirs {
"include",
"src",
"lib/opengl/include",
}
configuration { "android or ios or html5" }
minko.plugin.enable("sensors")
configuration ... | nilq/small-lua-stack | null |
modifier_wearable = class({})
function modifier_wearable:CheckState()
local state = {
[MODIFIER_STATE_STUNNED] = true,
[MODIFIER_STATE_NO_HEALTH_BAR] = true,
[MODIFIER_STATE_NO_UNIT_COLLISION] = true,
[MODIFIER_STATE_NOT_ON_MINIMAP] = true,
[MODIFIER_STATE_INVULNERABLE] = true,
[MODIFIER_STATE_UNSELECTAB... | nilq/small-lua-stack | null |
--A lot of Thanks to iUltimateLP and his mod SimpleTeleporters for inspiration and for the use of His Code and graphics
data:extend(
{
{
type = "energy-shield-equipment",
name= "Personal-Teleporter",
sprite =
{
filename = "__PersonalTeleporter__/graphics/Personal_Teleport_equipment.png",
width = 48,... | nilq/small-lua-stack | null |
horse_spawn = {
cast = async(function(player)
local magic = 30
if (not player:canCast(1, 1, 0)) then
return
end
if (player.magic < magic) then
player:sendMinitext("You do not have enough mana.")
return
end
player:spawn(8, player.x, player.y, 1)
player:setAether("horse_spawn", 30000)
end),
re... | nilq/small-lua-stack | null |
local matcher = require "util.matching"
local typeMatcher = require "util.matching.type"
local propertyInstance = require "util.Component.property_instance"
local groupInstance = require "util.Component.group_instance"
local propertyMethods = {}
function propertyMethods:setMatcher(m)
if type(m) == "function" or mat... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------------
-- Client Lua Script for NoisyQ
-- Created by boe2. For questions/comments, mail me at apollo@boe2.be
-----------------------------------------------------------------------------------------------
require "Window"
require "... | nilq/small-lua-stack | null |
ZOMGBuffsDB = {
["namespaces"] = {
["BlessingsManager"] = {
["profiles"] = {
["Default"] = {
["templates"] = {
["current"] = {
["HUNTER"] = {
"BOM", -- [1]
"BOK", -- [2]
"BOW", -- [3]
"SAN", -- [4]
},
["WARRIOR"] = {
"BOK", -- [1]
... | nilq/small-lua-stack | null |
fprp.PLAYER.addshekel = fprp.stub{
name = "addshekel",
description = "Give shekel to a player.",
parameters = {
{
name = "amount",
description = "The amount of shekel to give to the player. A negative amount means you're substracting shekel.",
type = "number",
optional = false
}
},
returns = {
},
... | nilq/small-lua-stack | null |
local BasePlugin = require "kong.plugins.base_plugin"
local body_filter = require "kong.plugins.response-transformer.body_transformer"
local header_filter = require "kong.plugins.response-transformer.header_transformer"
local is_body_transform_set = header_filter.is_body_transform_set
local is_json_body = header_filte... | nilq/small-lua-stack | null |
local t = My.Translator.translate
local f = string.format
local shipHail = function(ship, player)
if ship:hasTag("mute") then
return t("generic_comms_ship_static")
elseif ship:isFriendly(player) then
return t("comms_generic_hail_friendly_ship", ship:getCaptain())
elseif ship:isEnemy(player)... | nilq/small-lua-stack | null |
numb1 = math.random(9);
numb2 = math.random(10);
if (numb2 == 10) then
value = numb1*10
reply = "answer == '" .. tens[numb1] .. "' ";
ans = "answer = '" .. tens[numb1] .. "' ";
else
value = numb1*10 + numb2;
reply = "answer == '" .. tens[numb1] .. ones[numb2] .. "' ";
ans = "answer... | nilq/small-lua-stack | null |
wind_harpy_tornado_damage_modifier = class({})
function wind_harpy_tornado_damage_modifier:OnCreated( kv )
self.damage = self:GetAbility():GetSpecialValueFor("damage")
end
function wind_harpy_tornado_damage_modifier:DeclareFunctions()
local funcs = {
MODIFIER_PROPERTY_TOOLTIP,
}
return fu... | nilq/small-lua-stack | null |
return {'sciencefiction','sciencefictionfilm','sciencefictionroman','sciencefictionschrijver','sciencefictionserie','sciencepark','sciopticon','scientisme','sciencefictionverhaal','scipio','sciarone','scientologen','sciencefictionfilms','sciencefictionromans','sciencefictionschrijvers','scienceparken','sciopticons','sc... | nilq/small-lua-stack | null |
--RasPegacy v0.1
--Main Node
gl.setup(720, 486)
local curView = " "
--local font = resource.load_font("Exo2.otf")
-- Watch the view.json file to see which display the user wants
local json = require "json"
util.file_watch("view.json", function(content)
Vson = json.decode(content)
VC = Vson.view
curView =... | nilq/small-lua-stack | null |
local out = io.open("../Data/3_0/Misc.lua", "w")
out:write('local data = ...\n')
local evasion = ""
local accuracy = ""
local life = ""
local allyLife = ""
local damage = ""
for i = 0, DefaultMonsterStats.maxRow do
local stats = DefaultMonsterStats[i]
evasion = evasion .. stats.Evasion .. ", "
accuracy = accuracy .... | nilq/small-lua-stack | null |
AddCSLuaFile()
if (CLIENT) then
SWEP.PrintName = "Crowbar"
SWEP.Slot = 1
SWEP.SlotPos = 2
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
SWEP.Author = "Zenolisk"
SWEP.Instructions = "Primary Fire: Strike"
SWEP.Purpose = "Hitting things."
SWEP.Base = "reb_melee_base"
SWEP.HoldType = "melee"
SWEP.Category ... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- This is a class that defines the type of event.
--
-- <h4>Extends:</h4>
-- <ul>
-- <li><a href="flower.Event.html">Event</a><l/i>
-- </ul>
--
-- @author Makoto
-- @release V3.0.0
-----------------------------------... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies]: User consent storage in LocalPT (OnAppPermissionConsent without appID)
-- [HMI API] OnAppPermissionConsent notification
--
-- Description:
-- 1. Used preconditions:
-- SDL and HMI are run... | nilq/small-lua-stack | null |
local shell = require("shell")
local devfs = require("devfs")
local comp = require("component")
local args, options = shell.parse(...)
if #args < 1 then
io.write("Usage: label [-a] <device> [<label>]\n")
io.write(" -a Device is specified via label or address instead of by path.\n")
return 1
end
local filter = ... | nilq/small-lua-stack | null |
return {'sok','sokkel','sokkerig','sokophouder','sokkenwol','sokjes','sokkels','sokkeltje','sokkeltjes','sokken','sokophouders','sokje'} | nilq/small-lua-stack | null |
local propBreakSound = script:GetCustomProperty("BreakSound")
local propBreakEffect = script:GetCustomProperty("BreakEffect")
local BreakSpeed = script:GetCustomProperty("BreakSpeed")
local propGlass = script:GetCustomProperty("Glass"):WaitForObject()
local propDebris = script:GetCustomProperty("Debris"):WaitForObject(... | nilq/small-lua-stack | null |
-- Copyright 2021 Kafka-Tarantool-Loader
--
-- 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... | nilq/small-lua-stack | null |
mature_snorbal_male = Creature:new {
objectName = "@mob/creature_names:mature_snorbal_male",
socialGroup = "snorbal",
faction = "",
level = 32,
chanceHit = 0.4,
damageMin = 305,
damageMax = 320,
baseXp = 3188,
baseHAM = 8600,
baseHAMmax = 10200,
armor = 0,
resists = {135,135,20,-1,-1,-1,-1,20,-1},
meatType... | nilq/small-lua-stack | null |
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Mine_Base");
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#FFFFFFFF");effectcolor2,color("#FFFFFF22");effectclock,"bgm";effectperiod,2);
}
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectc... | nilq/small-lua-stack | null |
local tds = require 'tds'
local N = 10000000
require 'torch'
torch.manualSeed(1111)
local timer = torch.Timer()
local perm = torch.randperm(N)
local tbl
if arg[1] == 'lua' then
print('using lua tables!')
tbl = {}
else
print('using tds tables!')
tbl = tds.Vec()
end
print('filling up')
timer:reset()
for ... | nilq/small-lua-stack | null |
DATA = {}
function add4d(f) DATA[#DATA+1] = f end
loadToolData 'street-decoration'
dofile(scriptDirectory..'/tool-four-directions.lua')
| nilq/small-lua-stack | null |
require 'torch'
require 'image'
torch.setdefaulttensortype('torch.FloatTensor')
----------------------------------------------------------------------
print '==> define parameters'
local histClasses = opt.datahistClasses
local classes = opt.dataClasses
---------------------------------------------------------... | nilq/small-lua-stack | null |
local tableofmaterials = tableofmaterials or {}
local materialused = false
resource.AddWorkshop( "1115073625" )
resource.AddFile( "resource/fonts/prime.ttf" )
resource.AddFile( "models/rgngs_vend1/snack.mdl" )
resource.AddFile( "materials/rgngs_vend1/Material__53.vmt" )
resource.AddFile( "materials/rgngs_vend1/Materia... | nilq/small-lua-stack | null |
Ext.Require("Mimicry_d9cac48f-1294-68f8-dd4d-b5ea38eaf2d6", "LLMIME_StatOverrides.lua")
local LeaderLib = Mods["LeaderLib"]
function SaveFacingDirection(uuid)
local character = Ext.GetCharacter(uuid)
local rot = character.Stats.Rotation
Ext.Print("Rotation: ", LeaderLib.Common.Dump(rot))
Osi.LLMIME_Skills_SaveFac... | nilq/small-lua-stack | null |
--- === plugins.finalcutpro.tangent.video ===
---
--- Final Cut Pro Video Inspector for Tangent
local require = require
--local log = require "hs.logger".new "tangentVideo"
local fcp = require "cp.apple.finalcutpro"
local i18n = require "cp.i18n"
loc... | nilq/small-lua-stack | null |
-- bradcush/base16-nvim (https://github.com/bradcush/base16-nvim)
-- by Bradley Cushing (https://github.com/bradcush)
-- Github scheme by Defman21
-- Based on existing work with references below
-- base16-vim (https://github.com/chriskempson/base16-vim)
-- by Chris Kempson (http://chriskempson.com)
-- RRethy/nvim-base1... | nilq/small-lua-stack | null |
--local Entity = require("__stdlib__/stdlib/entity/entity")
local Csv =
{
_csvs = {},
__call = function(self, ...)
return self.get(...)
end,
__index = Csv
}
setmetatable(Csv, Csv)
function Csv.get(...)
local filename = ...
return Csv._csvs[filename] or Csv.new(...)
end
function Csv.new(... | nilq/small-lua-stack | null |
hook.Add( "OnEntityCreated", "_simf_trailer_addons_hook_929503203509295983925928529385", function(ent)--maded by SupinePandora43 (ะะฝะดััั
ะฐ!!)
if ( ent:GetClass() == "gmod_sent_vehicle_fphysics_base" ) then--ะผะพะน ะฝะตะฑะพะปััะพะน ัะบัะธะฟั ะฝะฐ ะฟะพะดะดะตัะถะบั Trailers Base for simfphys
timer.Simple( 2, function()
if not IsValid(e... | nilq/small-lua-stack | null |
-- 1st param, ipAddress
-- 2nd param, permanent
-- AddIpAddress("127.0.0.1", true); | nilq/small-lua-stack | null |
fx_version 'adamant'
game 'gta5'
dependencies {
'main',
}
shared_scripts {
'shared/config.lua',
'shared/main.lua',
'shared/users.lua',
'shared/flags.lua',
}
client_scripts {
'client/main.lua',
'client/users.lua',
'client/flags.lua',
}
server_scripts {
'@utils/server/database.lua',
'server/config.lua',
's... | nilq/small-lua-stack | null |
--- === ClipboardTool ===
---
--- Keep a history of the clipboard for text entries and manage the entries with a context menu
---
--- Originally based on TextClipboardHistory.spoon by Diego Zamboni with additional functions provided by a context menu
--- and on [code by VFS](https://github.com/VFS/.hammerspoon/blob/mas... | 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.