content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local name = "car_orange"
local definition = ...
definition.description = "Orange car"
definition.inventory_image = "inv_car_orange.png"
definition.wield_image = "inv_car_orange.png"
definition.textures = {"car_orange.png"}
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
| nilq/small-lua-stack | null |
return function(a, b, c0)
local w = Instance.new("Weld")
w.Part0 = a
w.Part1 = b
w.C0 = c0 or CFrame.new()
w.C1 = CFrame.new()
w.Parent = a
return w
end
| nilq/small-lua-stack | null |
local i18n = require("core.i18n")
i18n.add {
element = {
name = {
starving = "starving",
rotten = "rotten",
fearful = "fearful",
silky = "silky",
_50 = "burning",
_51 = "icy",
_52 = "electric",
_54 = "psychic",
_58 = "numb",
... | nilq/small-lua-stack | null |
target("dakku.filters")
set_kind("shared")
add_defines("DAKKU_BUILD_MODULE=DAKKU_FILTERS_MODULE")
add_includedirs(os.projectdir() .. "/src", {public = true})
add_files("*.cpp")
add_deps("dakku.core") | nilq/small-lua-stack | null |
if myHero.charName ~= "TwistedFate" then return end
function OnLoad()
CardPick()
end
function Print(msg)
print("<font color=\"#5E9C19\">Card Picker ></font><font color=\"#5E9C41\"> "..msg.."</font>")
end
class 'CardPick'
function CardPick:__init()
ToSelectCard = nil
RN = 0
Menu = scriptConfig("Card Picker"... | nilq/small-lua-stack | null |
local shortCutRecharge=
{
name="shortCutRecharge",type=0,typeName="View",time=0,report=0,x=0,y=0,width=0,height=0,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft
}
return shortCutRecharge; | nilq/small-lua-stack | null |
need_boolean(in_site({'config_mode', 'geo_location', 'show_altitude'}), false)
| nilq/small-lua-stack | null |
local class = require 'external.middleclass.middleclass'
local Player = class('Player')
function Player:initialize(input)
--Init player variables.
self.x = 400
self.y = 300
self.speed = 3
self.size = 20
self.origin_x = self.x + (self.size / 2)
self.origin_y = self.y + (self.size / 2)
self.mous... | nilq/small-lua-stack | null |
local function EventHook(listener_id, namespace, group, event, callback)
local lua_listener = obe.Event.LuaEventListener(callback);
Engine.Events:getNamespace(namespace)
:getGroup(group)
:get(event)
:addExternalListener(listener_id, lua_listener);
local hoo... | nilq/small-lua-stack | null |
local CATEGORY_NAME = "MapVote"
------------------------------ VoteMap ------------------------------
function AMB_mapvote( calling_ply, votetime, should_cancel )
if not should_cancel then
MapVote.Start(votetime, nil, nil, nil)
ulx.fancyLogAdmin( calling_ply, "#A called a votemap!" )
else
MapVote.Cancel(... | nilq/small-lua-stack | null |
RGWDebugLog("Post req number of metadata entries is: " .. #Request.HTTP.Metadata)
for k, v in pairs(Request.HTTP.Metadata) do
RGWDebugLog("key=" .. k .. ", " .. "value=" .. v)
--RGWDebugLog("Storage Class Header avail on: " .. Request.Object.Name .. " and storage class: " .. Request.HTTP.Metadata["x-amz-storage-class... | nilq/small-lua-stack | null |
local M = {}
M.controller = require('findr.controller')
function M.init(source, directory)
M.controller.init(source, directory)
end
function M.reset()
M.controller.reset()
end
function M.quit()
M.controller.quit()
end
return M
| nilq/small-lua-stack | null |
local npcConfig = require "config.npcConfig"
local IconFrameHelper = require "utils.IconFrameHelper"
local ItemModule = require "module.ItemModule"
local View = {};
function View:Start(data)
self.view = CS.SGK.UIReference.Setup(self.gameObject)
self.Data = data
local npc_List = npcConfig.GetnpcList()
local npc_Frie... | nilq/small-lua-stack | null |
--[[
This is a basic on/off switch. we could generalize to a multi-state
switch, where this would just be a specialization, but this will
do for now.
The switch will change state based on doing a mouseUp within
its frame. mousedown and drag have no effect.
It will signal with:
self, "cha... | nilq/small-lua-stack | null |
-- HttpServer.lua
local SocketServer = require("SocketServer")
local NativeSocket = require("NativeSocket")
local NetStream = require("NetStream");
local WebRequest = require("WebRequest");
local WebResponse = require("WebResponse");
local URL = require("url");
local Functor = require("Functor")
local HttpServer = {}... | nilq/small-lua-stack | null |
--- The main module, which exports the Wonderful class.
-- @module wonderful
local component = require("component")
local event = require("event")
local class = require("lua-objects")
local document = require("wonderful.element.document")
local display = require("wonderful.display")
local geometry = require("wonderf... | nilq/small-lua-stack | null |
-- Make such a thing
minetest.register_tool("durapick:steel_pick", {
description = "Durable Steel Pickaxe",
inventory_image = "durapick_steel.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=(durapick_durabilit... | nilq/small-lua-stack | null |
BaseVerletModel = class("BaseVerletModel")
BaseVerletModel.ctor = function (slot0)
slot0.m_fXPosVerlet = 0
slot0.m_fYPosVerlet = 0
slot0.m_fTempXVerlet = 0
slot0.m_fTempYVerlet = 0
slot0.m_fPreXVerlet = 0
slot0.m_fPreYVerlet = 0
end
BaseVerletModel.updateVerlet = function (slot0)
slot0.m_fTempXVerlet = slot0.m... | nilq/small-lua-stack | null |
local System = require('eccles.System')
local band = (require('bit')).band
local pluralize
pluralize = function(word)
local _exp_0 = string.sub(word, -1, -1)
if 'y' == _exp_0 then
return string.sub(word, 1, -2) .. 'ies'
elseif 's' == _exp_0 or 'c' == _exp_0 or 'ch' == _exp_0 or 'sh' == _exp_0 then
return ... | nilq/small-lua-stack | null |
local API_NPC = require(script:GetCustomProperty("API_NPC"))
local API_DS = require(script:GetCustomProperty("APIDifficultySystem"))
local API_P = require(script:GetCustomProperty("APIProjectile"))
local API_D = require(script:GetCustomProperty("APIDamage"))
local API_RE = require(script:GetCustomProperty("APIRelia... | nilq/small-lua-stack | null |
---
-- SpecialDialogues.lua - Chat sound handler
--
local module = {}
local DEBRIS = game:GetService("Debris")
local PhysicsService = game:GetService("PhysicsService")
local alphabet = {
a = "rbxassetid://6467913316",
b = "rbxassetid://6467913731",
c = "rbxassetid://6467913902",
d = "rbxassetid://6467914139",
e... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local mysql = require "mysql"
local socket = require "skynet.socket"
Fight = {}
function Fight.start(cID, account, name, job)
socket.write(cID, "ok")
math.randomseed(os.time())
local o_cID, o_name, o_job
local str
local db = mysql.connect()
local res = db:query("select cID from a... | nilq/small-lua-stack | null |
local EasyDelete = WUI:NewModule("EasyDelete")
function EasyDelete:OnInitialize()
end
function EasyDelete:OnEnable()
if WUI.db.profile.easydelete then
StaticPopupDialogs.DELETE_GOOD_ITEM=StaticPopupDialogs.DELETE_ITEM
end
end
function EasyDelete:OnDisable()
end | nilq/small-lua-stack | null |
-- MV extractor
local S = technic.getter
minetest.register_craft({
output = 'technic:mv_extractor',
recipe = {
{'technic:stainless_steel_ingot', 'technic:lv_extractor', 'technic:stainless_steel_ingot'},
{'pipeworks:tube_1', 'technic:mv_transformer', 'pipeworks:tube_1'},
{'technic:stainless_steel... | nilq/small-lua-stack | null |
local function setRoomStartTime(roomId, startTime, playersStarting)
return {
type = script.Name,
roomId = roomId,
startTime = startTime,
playersStarting = playersStarting
}
end
return setRoomStartTime
| nilq/small-lua-stack | null |
local log = require 'log'
local utils = require 'st.utils'
local capabilities = require 'st.capabilities'
local HEATING = capabilities.thermostatOperatingState.thermostatOperatingState.heating()
---@class SwitchState
---@field public is_on boolean?
local SwitchState = {}
function SwitchState.all()
return {
... | nilq/small-lua-stack | null |
local M = {}
function __TRACEBACK__(message)
print(debug.traceback(message))
end
M.DUMMY_STR = '<dummy str>'
M.FUNC = function () return M.PROXY end
M.FUNC_STR = function () return "<proxy table>" end
M.FUNC_NUM = function () return 1, 1, 1, 1 end
M.PROXY = setmetatable({}, {
__index = M.FUNC,
__tostring... | nilq/small-lua-stack | null |
function OnWorldPostUpdate()
if _rogue_vision_main then _rogue_vision_main() end
end
function OnPlayerSpawned( player_entity )
dofile("data/roguevision/roguevision.lua")
end | nilq/small-lua-stack | null |
logger = import 'LrLogger'('AspectRatioFilter')
| nilq/small-lua-stack | null |
local sailor = require "sailor"
local conf = require "conf.conf"
describe("Testing Sailor core functions", function()
local base_path
local parms = {id = 5, name = 'a_test'}
it("should create URLs accordingly without friendly urls", function()
conf.sailor.friendly_urls = false
local url = sailor.m... | nilq/small-lua-stack | null |
-- This is a part of uJIT's testing suite.
-- Copyright (C) 2015-2019 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
jit.off()
local N = 100
local src = setmetatable({}, {__index = function(_, k) return "src" .. k end})
local dst = {}
for i = 1, N do
if i < N / 2 then
src[i] = "src" .. i
else
src[i] = nil
end... | nilq/small-lua-stack | null |
require("rrpg.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
function newfrmL5A3_svg()
__o_rrpgObjs.beginObjectsLoading();
local obj = gui.fromHandle(_obj_newObject("form"));
local self = obj;
local s... | nilq/small-lua-stack | null |
local insert = table.insert
local remove = table.remove
local max = math.max
local min = math.min
local Cursor = required("Cursor")
local Window = required("Window")
local LayoutManager = {}
local instances = {}
local stack = {}
local active = nil
local function get_window_bounds()
local win_x, win_y, win_w, win_h... | nilq/small-lua-stack | null |
slot0 = class_C("MotionPath", ClassLoader:aquireClass("MotionController"))
slot0.onCreate = function (slot0, slot1, slot2, slot3)
slot0.super.onCreate(slot0, slot3)
slot0.gameConfig = ClassLoader:aquireSingleton("GameConfig")
if slot0.gameConfig.PLATFORM_ANDROID then
slot0._pathFunc, slot0._pathData = slot0:get... | nilq/small-lua-stack | null |
-- MODERNGADGETS SETTINGS BACKUP SCRIPT
--
-- This script makes backups of the settings files every two hours, which
-- prevents them from being lost when updating the suite.
debug = false
function Initialize()
dofile(SKIN:GetVariable('scriptPath') .. 'Utilities.lua')
fileNames = { 'GlobalSettings.inc',
... | nilq/small-lua-stack | null |
local INVOICES_DATA_PROVIDER_LAYOUT ={
{
headerTemplate = "AuctionatorStringColumnHeaderTemplate",
headerText = AUCTIONATOR_L_NAME,
headerParameters = { "itemName" },
cellTemplate = "AuctionatorStringCellTemplate",
cellParameters = { "itemNamePretty" },
width = 300,
},
{
headerTemplate... | nilq/small-lua-stack | null |
vt = voxtrees
vr = voxrnd
vs = voxsdl
function init (ctx)
--[[
Build tree from a raw file 'skull.dat' in voxvision's system-wide data directory.
read_raw_data_ranged() is like faster read_raw_data() with test function checking
min <= sample < max (in current example sample >= 40)
]]--
print ... | nilq/small-lua-stack | null |
--- Snackbars provide lightweight feedback on an operation
-- at the base of the screen. They automatically disappear
-- after a timeout or user interaction. There can only be
-- one on the screen at a time.
-- @classmod Snackbar
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
... | nilq/small-lua-stack | null |
-- Neuron is a World of Warcraft® user interface addon.
-- Copyright (c) 2017-2021 Britt W. Yazel
-- Copyright (c) 2006-2014 Connor H. Chenoweth
-- This code is licensed under the MIT license (see LICENSE for details)
local DB
local L = LibStub("AceLocale-3.0"):GetLocale("Neuron")
function Neuron:Startup()
DB = Neu... | nilq/small-lua-stack | null |
local lang = {
police = "Salário Policia Militar: R${1}",
--zero = "",
emergency = "Salário Samu: R${1}",
taxi = "Salário adicional: R${1}",
repair = "Salário adicional: R${1}",
delivery = "Salário adicional R${1}",
bankdriver = "Salário adicional R${1}",
player = "Benefícios de desempregado: ... | nilq/small-lua-stack | null |
local present, twilight = pcall(require, "twilight")
if not present then
return
end
local config = {
dimming = {
alpha = 0.2,
color = { "Normal", "#ffffff" },
inactive = true,
},
context = 1,
treesitter = true,
expand = {
"function",
"method",
... | nilq/small-lua-stack | null |
local KefuView = {}
function KefuView:initialize()
end
function KefuView:layout()
self.MainPanel = self.ui:getChildByName('MainPanel')
self.MainPanel:setPosition(display.cx,display.cy)
local black = self.ui:getChildByName('black')
black:setContentSize(cc.size(display.width,display.height))
local sc = cc.S... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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 |
--[[---------------------------------------------------------------------------
JungleTrain Radio created by Foul Play with the help of Scardigne and Harmelodic.
http://steamcommunity.com/id/LordZombie/
http://steamcommunity.com/id/scardigne/
http://steamcommunity.com/id/Harmelodic/
Please do not modify with out prog... | nilq/small-lua-stack | null |
--[[
getset.lua
A library for adding getters and setters to Lua tables.
Copyright (c) 2011 Josh Tynjala
Licensed under the MIT license.
]]--
local function throwReadOnlyError(table, key)
error("Cannot assign to read-only property '" .. key .. "' of " .. tostring(table) .. ".");
end
local function throwNotExtensib... | nilq/small-lua-stack | null |
-- For use with Lua Macros
--- assign logical name to macro keyboard
lmc_assign_keyboard('MACROS');
-- Application/Script variables --
local browser = "C:\\Users\\Admin\\AppData\\Local\\Mozilla Firefox\\firefox.exe"
local win_run = "C:\\\\Scripts\\macro_keyboard_companion.py"
-- define callback for whole device
lmc_s... | nilq/small-lua-stack | null |
ITEM.name = "Accuracy International AWM"
ITEM.description = "A Large and bulky Bolt action Sniper rifle."
ITEM.model = "models/weapons/w_ins2_warface_awm.mdl"
ITEM.class = "tfa_ins2_warface_awm"
ITEM.weaponCategory = "primary"
ITEM.classes = {CLASS_EMP, CLASS_EOW}
ITEM.flag = "v"
ITEM.width = 5
ITEM.height = 2
ITEM.bDr... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- func: promote
-- desc: Promotes the player to a new GM level.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "si"... | nilq/small-lua-stack | null |
local util = require("polarmutex.colorschemes.utils")
local M = {}
--base00 - Default Background
--base01 - Lighter Background (Used for status bars, line number and folding marks)
--base02 - Selection Background
--base03 - Comments, Invisibles, Line Highlighting
--base04 - Dark Foreground (Used for status bars)
--ba... | nilq/small-lua-stack | null |
local Root = script.Parent.Parent
local CorePackages = game:GetService("CorePackages")
local PurchasePromptDeps = require(CorePackages.PurchasePromptDeps)
local Rodux = PurchasePromptDeps.Rodux
local RequestAssetPurchase = require(Root.Actions.RequestAssetPurchase)
local RequestBundlePurchase = require(Root.Actions.R... | nilq/small-lua-stack | null |
pg = pg or {}
pg.effect_offset = {
bossguangxiao = {
mirror = false,
y_scale = false,
container_index = 3,
top_cover_offset = false,
offset = {
0,
0,
0
}
},
bossguangxiaobig = {
mirror = false,
y_scale = false,
container_index = 3,
top_cover_offset = false,
offset = {
-1.14,
0,
... | nilq/small-lua-stack | null |
local moonScale,sunScale = GetConVarNumber("sf_moonscale",6),30
local clamp,abs,max,min = math.Clamp,math.abs,math.max,math.min
timer.Create("SF_MoonWatcher",1,0,function()
moonScale = GetConVarNumber("sf_moonscale",6)
sunScale = StormFox.GetData("SunSize", 30) or 30
end)
-- render.OverrideBlendFunc is to be replac... | nilq/small-lua-stack | null |
local miniGameName = "virus";
local miniGamePath = "miniGames/virus/";
--utils:log(miniGameName, "Loaded");
local miniGameBase = require("miniGames.miniGameBase");
local scene = miniGameBase:newMiniGameScene(miniGameName);
-- Game instructions.
scene.instructions =
"Virus? Why Virus? Well, so that it wasn't gems or ... | nilq/small-lua-stack | null |
local conveyor_belt = "conveyor_belts:conveyor_belt_off"
local conveyor_belt_on = "conveyor_belts:conveyor_belt_on"
local belt = "conveyor_belt_top.png"
local belt_on = "conveyor_belt_top_on.png"
local panel = "conveyor_belt_side.png"
local panel_on = "conveyor_belt_side_on.png"
local movement_rules = {}
for facedir =... | nilq/small-lua-stack | null |
return "3.4.0-master"
| nilq/small-lua-stack | null |
--爱莎-虚无之力
function c60150801.initial_effect(c)
--cannot remove
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_HAND)
e3:SetCountLimit(1,60150801)
e3:SetCondition(c60150801.rmcon)
e3:SetCost(c60150801.rmcost)
e3:SetOperation(c60150801.rmop)
c:Re... | nilq/small-lua-stack | null |
local current_working_directory = require 'current_working_directory'
local requester_path = require 'requester_path'
local file_exists = require 'file_exists'
local function get_directories(path)
local directories = {}
while path and path ~= '' do
table.insert(directories, path)
path = path:match('^(.*/)[... | nilq/small-lua-stack | null |
--
-- Please see the readme.txt file included with this distribution for
-- attribution and copyright information.
--
stackcolumns = 2;
stackiconsize = { 47, 27 };
stackspacing = { 0, 0 };
stackoffset = { 5, 2 };
dockiconsize = { 91, 86 };
dockspacing = 4;
dockoffset = { 10, 9 };
stackcontrols = {};
dockcontrols =... | nilq/small-lua-stack | null |
--------------------------------
-- Constrint Satisfiction Problem (CSP)
-- Author: Shuo Li
-- Date: 2012/11/26
--------------------------------
require "Object"
require "Ulti"
--------------------------------
--[[ Constraint class ]]
--------------------------------
Constraint = Object
Constraint.ClassName = "Constr... | nilq/small-lua-stack | null |
local shopName={
{name="新手村.杂货店",pic="场景.商店",music="音乐.城市3",},
{name="洛阳.商店.新手",pic="场景.商店",music="音乐.城市3",},
{name="洛阳.商店",pic="场景.商店",music="音乐.城市3",},
{name="洛阳.商店.神秘",pic="场景.商店",music="音乐.城市3",},
{name="长安.商店",pic="场景.商店2",music="音乐.武侠进行",},
{name="武道大会.VIP1",pic="地图.比武场",music="音乐.武侠进行",},
{name="武道大会.VIP2"... | nilq/small-lua-stack | null |
-- Put functions in this file to use them in several other scripts.
-- To get access to the functions, you need to put:
-- require "AlgoLua.Api.Indexer"
-- in any script using the functions.
-- Indexer API reference: https://developer.algorand.org/docs/rest-apis/indexer/
local http_client = require("AlgoLua.Api.HttpCl... | nilq/small-lua-stack | null |
local _class = {
_name = 'CustomerService',
_version = '1.0'
}
---@public
function _class:new()
local o = {}
setmetatable(o, { __index = self })
self.dataList = Array()
self.pageIndex = 1
self.type = 1
return o
end
---优先加载其他辅助文件
---@private
function _class:loadExtensions()
require(... | nilq/small-lua-stack | null |
local tests = torch.TestSuite()
local precision = 1e-3
function tests.ErrorCriterionRelative_testDefaults()
local criterion = nnst.ErrorCriterionRelative()
tester:eq(1, criterion.alpha)
tester:eq(0.2, criterion.beta)
end
function tests.ErrorCriterionRelative_testDefaultsBeta()
local criterion = nnst... | nilq/small-lua-stack | null |
yavin4_kliknik_herd_neutral_none = Lair:new {
mobiles = {{"kliknik_warrior",1},{"kliknik_scout",1},{"kliknik_worker",1},{"kliknik_defender",1},{"kliknik_hatchling",1}},
spawnLimit = 15,
buildingsVeryEasy = {},
buildingsEasy = {},
buildingsMedium = {},
buildingsHard = {},
buildingsVeryHard = {},
buildingType = "... | nilq/small-lua-stack | null |
package.path = "../?.lua;"..package.path
local ffi = require("ffi")
local enum = require("wordplay.enum")
local cctype = require("wordplay.cctype")
local isdigit = cctype.isdigit
local isalpha = cctype.isalpha
local isalnum = cctype.isalnum
local isspace = cctype.isspace
local octetstream = require("wordplay.octetst... | nilq/small-lua-stack | null |
include("/scripts/behaviors/shared.lua")
function init(root)
local prio = node("Priority")
prio:AddNode(stayAlive())
prio:AddNode(rezzAlly())
prio:AddNode(avoidSelfDamage())
prio:AddNode(damageSkill())
prio:AddNode(checkEnergy())
prio:AddNode(defend())
prio:AddNode(wander())
root:AddNo... | nilq/small-lua-stack | null |
pathfinder = {}
--[[
minetest.get_content_id(name)
minetest.registered_nodes
minetest.get_name_from_content_id(id)
local ivm = a:index(pos.x, pos.y, pos.z)
local ivm = a:indexp(pos)
minetest.hash_node_position({x=,y=,z=})
minetest.get_position_from_hash(hash)
start_index, target_index, current_index
^ Hash of position... | nilq/small-lua-stack | null |
local Directions = assert(foundation.com.Directions)
local mesecon_hub_node_box = {
type = "fixed",
fixed = {
{-0.375, -0.5, -0.375, 0.375, -0.3125, 0.375}, -- NodeBox1
{-0.25, -0.5, -0.5, 0.25, -0.375, 0.5}, -- NodeBox2
{-0.5, -0.5, -0.25, 0.5, -0.375, 0.25}, -- NodeBox3
}
}
local function hub_afte... | nilq/small-lua-stack | null |
local equipment = script:FindAncestorByType("Equipment")
local propSocket = script:GetCustomProperty("Socket") or "right_prop"
local propSecondaryEquipment = script:GetCustomProperty("SecondaryEquipment")
local newEquipRef = nil
local function OnEquipped(whichEquipment, player)
if propSecondaryEquipment and not ... | nilq/small-lua-stack | null |
return {
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetHarmNearest",
targetAniEffect = "",
arg_list = {
weapon_id = 69441
}
}
}
},
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "... | nilq/small-lua-stack | null |
function onSay(cid, words, param, channel)
if(param ~= '') then
doWaypointAddTemporial(param, getCreaturePosition(cid))
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Temporial waypoint saved.")
return true
end
local str = ""
for i, waypoint in ipairs(getWaypointList()) do
str = str .. waypoi... | nilq/small-lua-stack | null |
class("WorldItemUseCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot2 = slot1:getBody()
pg.ConnectionMgr.GetInstance():Send(33301, {
id = slot2.itemID,
count = slot2.count,
arg = slot2.args
}, 33302, function (slot0)
if slot0.result == 0 then
nowWorld.GetInventoryProxy(slot2).RemoveItem(... | nilq/small-lua-stack | null |
-- Natural Selection League Plugin
-- Source located at - https://github.com/xToken/NSL
-- lua/NSL/captains/shared.lua
-- - Dragon
| nilq/small-lua-stack | null |
ITEM.name = "Utenos Porteris, 500ml"
ITEM.description = "A can of beer"
ITEM.longdesc = "Heineken is a full-bodied premium lager with deep golden color, light fruity aroma, a mild bitter taste and a balanced hop aroma leaving a crisp, clean finish for ultimate refreshing taste.\nThe only beer enjoyed in 192 countries. ... | nilq/small-lua-stack | null |
pcall(require, 'luasql.sqlite3')
-- handle luacurl and Lua-cURL
pcall(require, 'curl')
pcall(require, 'luacurl')
assert(curl, "curl library not found (luacurl or Lua-cURL)")
-- optional iconv
pcall(require, 'iconv')
-- optional compression
pcall(require, 'bz2')
-- optional html tidy
pcall(require, 'tidy')
-- Chars... | nilq/small-lua-stack | null |
--[[ Copyright (c) 2009 Peter "Corsix" Cawley
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, dis... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "technology",
name = "bulldozer",
icon = "__bulldozer__/graphics/icons/bulldozer.png",
effects =
{
{
type = "unlock-recipe",
recipe = "bulldozer"
},
},
prerequisites = {"automobilism"},
unit =
{
count = 150,
ingredient... | nilq/small-lua-stack | null |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by warfacez.
--- DateTime: 25.10.20 6:01
--- | nilq/small-lua-stack | null |
function vRP.save_idle_custom(player,custom)
local r_idle = {}
local user_id = vRP.getUserId(player)
if not user_id then return r_idle end
local data = vRP.getUserDataTable(user_id)
if not data then return end
if data.cloakroom_idle == nil then
data.cloakroom_idle = custom
end
for k,v in pairs(data.cloakroom... | nilq/small-lua-stack | null |
return (function(self, button, down)
local ud = u(self)
if ud.enabled and not ud.beingClicked then
ud.beingClicked = true
local b = button or 'LeftButton'
api.RunScript(self, 'PreClick', b, down)
api.RunScript(self, 'OnClick', b, down)
api.RunScript(self, 'PostClick', b, down)
ud.beingClicke... | nilq/small-lua-stack | null |
return {
['Accuracy Bonus'] = {
name = "Accuracy Bonus",
spells = {
{ name = "Dimensional Death", points = 4, cost = 5, id = 589 },
{ name = "Frenetic Rip", points = 4, cost = 3, id = 560 },
{ name = "Disseverment", points = 4, cost = 5, id = 611 },
{... | nilq/small-lua-stack | null |
-- add target
target("core")
-- add the dependent target
add_deps("gbox")
-- make as a binary
set_kind("binary")
-- add defines
add_defines("__tb_prefix__=\"demo\"")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add links directory
add_linkdirs("$(b... | nilq/small-lua-stack | null |
local F, C, L = unpack(select(2, ...))
local INFOBAR = F:GetModule('Infobar')
local format, min = string.format, math.min
local sort, wipe = table.sort, table.wipe
local FreeUIStatsButton = INFOBAR.FreeUIStatsButton
local memory
local _, _, home, world = GetNetStats()
local addons = {}
local n, total = 0, 0
local l... | nilq/small-lua-stack | null |
-- Author: Lupus590
-- License: Unlicense
function confirmLoop(...)
local prompt = {...}
if #prompt > 1 then error("Too many args",2) end
prompt = prompt[1] or ""
if type(prompt) ~= "string" then error("Bad arg, expected string",2) end
print(prompt.." (Y/N)")
local input
repeat
local _, i = os.pul... | nilq/small-lua-stack | null |
-- Copyright (c) 2015 Adobe Systems Incorporated. All rights reserved.
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the r... | nilq/small-lua-stack | null |
return function (filename)
if file.open(filename) then
file.close()
return true
end
return false
end
| nilq/small-lua-stack | null |
return function(config, on_attach)
config.json.setup {
on_attach = on_attach,
}
end
| nilq/small-lua-stack | null |
NDefines.NMilitary.BASE_DIVISION_BRIGADE_GROUP_COST = 1;
NDefines.NMilitary.BASE_DIVISION_BRIGADE_CHANGE_COST = 1;
NDefines.NMilitary.BASE_DIVISION_SUPPORT_SLOT_COST = 1;
| nilq/small-lua-stack | null |
-----------------------------------
-- Area: Ifrit's Cauldron
-- NM: Foreseer Oramix
-----------------------------------
mixins = {require("scripts/mixins/job_special")}
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
| nilq/small-lua-stack | null |
local uv = require "lluv"
local chunk_size = 10
local file_name = "test.txt"
local function on_close()
print("Close:", file_name)
os.remove(file_name)
print("Remove:", file_name)
end
local offset = 0
local function on_read_data(file, err, buf, size)
print("Read:", err or (size==0) and "EOF" or size)
-- e... | nilq/small-lua-stack | null |
-- Variables
local lastSpectateCoord = nil
local isSpectating = false
-- Events
RegisterNetEvent('qb-admin:client:inventory')
AddEventHandler('qb-admin:client:inventory', function(targetPed)
TriggerServerEvent("inventory:server:OpenInventory", "otherplayer", targetPed)
end)
RegisterNetEvent('qb-admin:client:spe... | nilq/small-lua-stack | null |
local atlases = require("atlases")
local utils = require("utils")
local drawing = require("utils.drawing")
local drawableSpriteStruct = {}
local drawableSpriteMt = {}
drawableSpriteMt.__index = {}
function drawableSpriteMt.__index:setJustification(justificationX, justificationY)
self.justificationX = justificati... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Telemetry writer
--------------------------------------------------------------------------------
Metrostroi.DefineSystem("Telemetry")
function TRAIN_SYSTEM:Initialize()
self.SubIterations = 16 -- Use many sub-iterations to reco... | nilq/small-lua-stack | null |
return PlaceObj("ModDef", {
"title", "Christmas Mars",
"version", 2,
"version_major", 0,
"version_minor", 2,
"image", "Preview.jpg",
"id", "ChoGGi_ChristmasMars",
"steam_id", "1497717990",
"pops_any_uuid", "e34e2c88-94ba-45c1-94f9-4426238315c1",
"author", "ChoGGi",
"lua_revision", 1001569,
"code", {
"Code/... | nilq/small-lua-stack | null |
local modes = {}
modes['Sprint'] = true
local checkpoints
function onMapStart(mapInfo, mapOptions, gameOptions)
for i, player in ipairs(getElementsByType("player")) do
triggerClientEvent(player, "deleteSigns" ,root)
end
if not modes[exports.race:getRaceMode()] then return false end
checkpoints = exports.ra... | nilq/small-lua-stack | null |
------------------------------------------------------------
-- Copyright (c) 2016 tacigar. All rights reserved.
-- https://github.com/tacigar/maidroid
------------------------------------------------------------
maidroid = {}
maidroid.modname = "maidroid"
maidroid.modpath = minetest.get_modpath(maidroid.modname)
do... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------
-- FILE: luaotfload-embolden.lua
-- DESCRIPTION: part of luaotfload / embolden
-----------------------------------------------------------------------
assert(luaotfload_module, "This is a part of luaotfload and should not be loaded inde... | nilq/small-lua-stack | null |
local name, CLM = ...;
local CM = LibStub("AceConfig-3.0")
local LOG = CLM.LOG
function CM:Initialize()
LOG:Info("Config Manager initialized")
self.options = { type = "group", args = {}}
end
function CM:Register(options, slashcmd)
LOG:Info("Registering new option")
if type(table) ~= "table" then
... | nilq/small-lua-stack | null |
ITEM.name = "Стальная палица"
ITEM.desc = "Небольшая дубинка, отлитая из стали, что придает ей солидную массу."
ITEM.class = "nut_club_steel"
ITEM.weaponCategory = "secondary"
ITEM.price = 300
ITEM.category = "Оружие"
ITEM.model = "models/morrowind/steel/club/w_steel_club.mdl"
ITEM.width = 3
ITEM.height = 1
ITEM.iconCa... | nilq/small-lua-stack | null |
local M = {}
local Runner = torch.class('Runner', M)
function Runner:__init()
end
function Runner:computeScore(output, target, nCrops)
if nCrops > 1 then
-- Sum over crops
output = output:view(output:size(1) / nCrops, nCrops, output:size(2))
--:exp()
:sum(2):squeeze(2)
end
-- Coputes the to... | 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.