content
stringlengths
5
1.05M
data.raw["train-stop"]["train-stop"].fast_replaceable_group = "train-stop"
DefineClass.TrainingBuilding = { __parents = {"ShiftsBuilding", "Holder", "DomeOutskirtBld"}, properties = { {template = true, id = "max_visitors", name = T(823, "Max visitors per shift"), default = 5, category = "TrainingBuilding", editor = "number", min = 1, modifiable = true}, {template...
local Region = require("refactoring.region") local eq = assert.are.same local vim_motion = require("refactoring.tests.utils").vim_motion local function setup() vim.cmd(":new") vim.api.nvim_buf_set_lines(0, 0, -1, false, { "foo", "if (true) {", " bar", "}", }) end describ...
require("prototypes.entities")
local to_json to_json = require("lapis.util").to_json local AttachedServer AttachedServer = require("lapis.cmd.attached_server").AttachedServer local CqueuesAttachedServer do local _class_0 local _parent_0 = AttachedServer local _base_0 = { start = function(self, env, overrides) local thread = require("...
-- Override digilines.transmit and digilines.receptor_send to add more functionality -- Mostly copied from https://github.com/minetest-mods/digilines/blob/master/internal.lua local function queue_new() return {nextRead = 1, nextWrite = 1} end local function queue_empty(queue) return queue.nextRead == queue.nextWr...
-- Local instances of Global tables -- local PA = PersonalAssistant local PAC = PA.Constants local PAHF = PA.HelperFunctions -- --------------------------------------------------------------------------------------------------------------------- local function _updateSavedVarsVersion(savedVarsVersion) local PAISa...
-- -- -- ---------------------------------------------------------- -- Mosaic | OF Visual Patching Developer Platform -- -- Copyright (c) 2019 Emanuele Mazza aka n3m3da -- -- Mosaic is distributed under the MIT License. This gives everyone the -- freedoms to use Mosaic in any context: commercial or non-commercial, -- ...
--DO NOT EDIT OR REUPLOAD THIS FILE AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "cl_init.lua" ) include("shared.lua") function ENT:SpawnFunction( ply, tr, ClassName ) if not tr.Hit then return end local ent = ents.Create( ClassName ) ent:SetPos( tr.HitPos + tr.HitNormal * 120 ) ent:Spawn() ent:Activate() retu...
-- --BEAVER -- local S, modpath, mg_name = ... local pet_name = "beaver" local mesh = nil local scale_beaver = 1.2 local textures = {} local collisionbox = {} local fixed = {} local tiles = {} local spawn_nodes = {} if mg_name == "valleys" then spawn_nodes = {"default:river_water_source"} else spawn_nodes = {"de...
require "class.tile" Island = Class {} function Island:init(x, y) self.x = x self.y = y self.xmin = 0 self.xmax = 0 self.ymin = 0 self.ymax = 0 self.h = 1 self.tiles = {} for i=0,5 do for j=0,5 do self:addTile(i, j, Tile()) end end self:re...
--[[ 索引管理器 --]] local THIS_MODULE = ... local C_LOGTAG = "IndexManager" local cjson = cc.safe_require("cjson") local IndexManager = class("IndexManager") -- 获得单例对象 local instance = nil function IndexManager:getInstance() if instance == nil then instance = IndexManager:create() end return instance end -- 构造函数 ...
ITEM.name = "FN F2000" ITEM.desc = "Бельгийский автоматно-гранатомётный комплекс, выполненный в компоновке «булл-пап». Оснащён компьютеризованным прицелом и подствольным гранатомётом. Встречается только у ветеранов и мастеров в экзоскелетах. \n\nБоеприпасы 5.56х45" ITEM.price = 66112 ITEM.model = "models/wick/weapon...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' client_script 'client.lua' exports { 'OpenStorage' }
---@class Void : java.lang.Void ---@field public TYPE Class|Unknown Void = {}
-- example HTTP POST script which demonstrates setting the -- HTTP method, body, and adding a header wrk.method = "POST" wrk.body = '{"text":"This was the biggest hit movie of 1971"}' wrk.headers["Content-Type"] = "application/json"
--[[ Copyright 2016 Adobe Systems Incorporated. All rights reserved. This file is licensed to you 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 Unl...
local api = require("api") local irc = {} function irc.connect(server, port) local srv = server or "irc.freenode.net" local prt = port or 6667 api.connect(srv, prt) end function irc.sendUser(username, hostname, server, realname) api.sendf( "USER %s %s %s :%s", username, hostname...
-- ------------------------------------------------------------------------------------- -- Including Standard Awesome Libraries local awful = require("awful") local wibox = require("wibox") local gears = require("gears") local naughty = require("naughty") local beautiful = require("beautiful").startscreen.alarm -- -...
-- 修改:SomeBlu local E, L, V, P, G = unpack(ElvUI) -- Import Functions/Constants, Config, Locales local WT = E:GetModule("WindTools") local AB = E:NewModule('Wind_AutoButton', 'AceEvent-3.0') local _G = _G local setglobal = setglobal local wipe = table.wipe local tinsert, strmatch = table.insert, strmatch local tonumb...
local CorePackages = game:GetService("CorePackages") local Action = require(CorePackages.AppTempCommon.Common.Action) return Action("SET_VIDEO_RECORDING", function (recording) return { recording = recording, } end)
-- base da quantidade de materiais cobblestone = 80 stick = 25 tnt = 12 enderpearls = 10 function packConvert(x) -- Conversor da quantindade de itens, em packs local packs = math.floor(x / 64) local itens = x % 64 local msg = packs .. " packs + " .. itens return msg end function quantItens(quant) -- Calcula a...
-- Texture utilities package.path = package.path..";../?.lua" local gl = require("moongl") local glmath = require("moonglmath") local mi = require("moonimage") local random = require("common.random") ------------------------------------------------------------------------------- local function load_texture(filename) ...
local ok, cmp = pcall(require, "cmp") if not ok then vim.notify "Could not load cmp" return end local ok, luasnip = pcall(require, "luasnip") if not ok then vim.notify "Could not load luasnip" return end local ok, lspkind = pcall(require, "lspkind") if not ok then vim.notify "Could not load lspkind" retur...
function lang_switch_keys(lang) local in_lang = {} local langs = { [1] = {lang_key = "tr", lang_name = "Türkçe", script_name = "Satır Çoğalt", sub_menu = "Satır/Çoğalt"}, [2] = {lang_key = "en", lang_name = "English", script_name = "Duplicate Lines", sub_menu = "Lines/Duplicate"} } local lang_list ...
local Parallel, parent = torch.class('nn.Parallel', 'nn.Module') function Parallel:__init(inputDimension,outputDimension) parent.__init(self) self.modules = {} self.size = torch.LongStorage() self.inputDimension = inputDimension self.outputDimension = outputDimension end function Parallel:add(module) ...
---@class CS.FairyEditor.ProcessUtil ---@type CS.FairyEditor.ProcessUtil CS.FairyEditor.ProcessUtil = { } function CS.FairyEditor.ProcessUtil.LaunchApp() end ---@return string ---@param path string ---@param args String[] ---@param dir string ---@param waitUntilExit boolean function CS.FairyEditor.ProcessUtil.Start(pa...
return { { effect_list = { { type = "BattleBuffHOT", trigger = { "onUpdate" }, arg_list = { time = 3, number = 6 } }, { type = "BattleBuffCastSkill", trigger = { "onRemove" }, arg_list = { skill_id = 101123, target = "TargetSelf" } } ...
--[[ #module Input **TODO:** -[ ] repeated? -[ ] multikeys -[/] mouse inputs -[ ] multitouch ]]-- Input = {} Input.keys = {} Input.mouse = {} Input.mouseX = 0 Input.mouseY = 0 Input.mouseDx = 0 Input.mouseDy = 0 function Input:trigger(key) if self.keys[key] then if self.keys[key].state == "trigger" then return tr...
object_tangible_component_weapon_lightsaber_lightsaber_module_blackwing_crystal = object_tangible_component_weapon_lightsaber_shared_lightsaber_module_blackwing_crystal:new { } ObjectTemplates:addTemplate(object_tangible_component_weapon_lightsaber_lightsaber_module_blackwing_crystal, "object/tangible/component/weapo...
local repl = game:GetService('ReplicatedStorage') local players = game:GetService('Players') local FetchToken = repl.FetchToken local CheckClient = repl.CheckClient local TokenService = require(script.Parent.Modules.TokenService) local TOKEN_SETTINGS = { FETCH = FetchToken, CHECK = CheckClient } local ANTI_SETTING...
-- usage example -- -- first we require the module local INPUT = require 'input' local CONFIGURE = require 'input.configure' local USE_JSON, JSON = pcall(require, 'dkjson') local USE_TOML, TOML = pcall(require, 'toml') -- it also needs to be set up with a virtual mapping; -- that's specific to your game local DIGIT...
--- -- Lua JSON-RPC module. -- -- I want to be JSON-RPC 2.0 compliant. -- -- @module jsonrpc -- @author t-kenji <protect.2501@gmail.com> -- @license MIT -- @copyright 2020 t-kenji local json = require('json') local errors = require('jsonrpc.errors') local _M = { _VERSION = "JSON-RPC 0.1.0", ...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- B E N C H M A R K T O O L -- -----------------------------------------------------------------------------...
local traject = { __VERSION = 'traject 0.1.0', __AUTHOR = 'Pablo Ariel Mayobre' __DESCRIPTION = 'A library to create complex easing animations easily for Lua and LÖVE', __URL = 'https://github.com/Positive07/Traject', __LICENSE = [[ -------------- Copyright (c...
--------------------- -- Local variables -- --------------------- local g_Tab = nil local g_Input, g_Output local g_FromLang, g_ToLang local g_TranslateBtn, g_SayBtn local g_ChatMsgCb local g_ChatMsg = {} local g_MsgCount = 0 local g_Langs = { 'en' } local g_LangNames = { en = "English" } local g_Timer = ...
object_tangible_loot_creature_loot_kashyyyk_loot_varactyl_claw_01 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_varactyl_claw_01:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_varactyl_claw_01, "object/tangible/loot/creature_loot/kashyyyk_loot/varactyl_claw_01.iff")
local main = require("ido.main") local options = require("ido.config").options -- @module event The event loop of Ido local event = {} -- Timer event.timer = vim.loop.new_timer() -- Helper function for starting asynchronous jobs -- @param action The function to execute -- @return true function event.async(action) ...
#!/usr/bin/env lua print(arg[0])
AddCSLuaFile( ) DEFINE_BASECLASS("base_aperture_ent") local WireAddon = WireAddon or WIRE_CLIENT_INSTALLED ENT.PrintName = "Base Aperture Turret" ENT.IsAperture = true ENT.TurretSoundFound = "" ENT.TurretSoundSearch = "" ENT.TurretSoundFizzle = "" ENT.TurretSoundPickup = "" ENT.TurretDrawLaserbeam ...
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
local sailor = require "sailor" local M = {} function M.index(page) local categorys = sailor.model("category"):find_all() page:render('index',{categorys = categorys}) end function M.create(page) local category = sailor.model("category"):new() local saved if next(page.POST) then category:get_post(page.POST) ...
local module = {} local function receive(socket, data) node.input(data) if socket == nil then print("connection terminated") end end local function disconnection(socket) node.output(nil) end function module.start() server = net.createServer(net.TCP, 600) server:listen(23, function(socket) local function se...
return {'breeveertien','bretoen','bretoens','bretons','break','breakbeat','breakdance','breakdancen','breakdancer','breakdown','breakpoint','breed','breedband','breedbandig','breedbandinternet','breedbandnetwerk','breedbandtechnologie','breedbandverbinding','breedbeeld','breedbeeldscherm','breedbeeldtelevisie','breedbl...
---@class TranslatedString local TranslatedString = LeaderLib.Classes["TranslatedString"] local function sortupgrades(a,b) return a:upper() < b:upper() end local upgradeInfoEntryColorText = TranslatedString:Create("ha4587526ge140g42f9g9a98gc92b537d4209", "<font color='[2]' size='18'>[1]</font>") local upgradeInfoEnt...
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
-- Light minetest.register_node("tardis:light_wall", { description = "Tardis Wall (non-craftable)", tiles = {"tardis_wall.png"}, diggable = false, groups = {not_in_creative_inventory = 1}, }) minetest.register_node("tardis:light_wall_craftable", { description = "Tardis Wall", tiles = {"tardis_w...
local function create( ... ) local tFns = table.pack(...) local tCos = {} for i = 1, tFns.n, 1 do local fn = tFns[i] if type( fn ) ~= "function" then error( "bad argument #" .. i .. " (expected function, got " .. type( fn ) .. ")", 3 ) end tCos[i] = co...
iron_claw_rear_up = class({}) LinkLuaModifier( 'iron_claw_rear_up_modifier', 'encounters/iron_claw/iron_claw_rear_up_modifier', LUA_MODIFIER_MOTION_NONE ) function iron_claw_rear_up:OnSpellStart() --- Get Caster, Victim, Player, Point --- local caster = self:GetCaster() local caster_loc = caster:GetAbsOrigin() ...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. if (SERVER) then util.AddNetworkString("player_equip_item") util.AddNetworkString("player_pony_cm_send") --util.AddNetworkString( "player_pony_set_charpars" ) net.Receive("player_equip_item", function(len, ply)...
AddCSLuaFile( "cl_init.lua" ) -- Make sure clientside AddCSLuaFile( "shared.lua" ) -- and shared scripts are sent. include('shared.lua') local Length = 4 local Width = 1 local Height = 1 local MaxHealth = 300 local Constraintable = true ENT.OurHealth = MaxHealth function Connector() end function ENT:Initialize()...
--[[function list_iter (t) local i = 0 local n = table.getn(t) return function() i = i + 1 if i <= n then return t[i] end end end --]] --[[t = {10,20,30} iter = list_iter(t) while true do local element = iter() if element == nil then break end print(element) end --]] --[[t =...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- Copyright (C) 2014 Daurnimator -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local valid_roles = { "none", "visito...
-- Expertcoder2 -- Created: 26/03/2021 -- Updated: 28/03/2021 client = nil service = nil return function(data) local window = client.UI.Make("Window",{ Name = "OnlineFriends"; Title = "Online Friends"; Size = {390, 320}; MinSize = {180, 120}; AllowMultiple = false; }) do local function locationTyp...
--[[ @Description This is the base component that all other components can be derived from. @Interface [table] new([table] self, [varArg?] properties) This clones the table and intializes it. [table] extend([table] self) [nil] destroy([table] self) Calls self.maid:cleanUp() by default. [nil] redraw...
local box = require("box") local json = require("json") local log = require("log") local os = require("os") local fiber = require('fiber') local tnt_kafka = require('kafka') local consumer = nil local errors = {} local logs = {} local rebalances = {} local function create(brokers, additional_opts) local err e...
--[[ death_messages - A Minetest mod which sends a chat message when a player dies. Copyright (C) 2016 EvergreenTree This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, ...
--local Attrs = GetFileConfig(OUTPUTBASE.."server/setting/hero_attribute.lua").ConstInfo["人物职业"] return function(Data) local RetTbl = {} local List = Split(Data, "|") for _,Value in ipairs(List) do --assert(Attrs[Value], "在人物属性表中找不到".. Value .. "这个职业") table.insert(RetTbl, Value) end return RetTbl end
local a = require("plenary.async").tests local Path = require("plenary.path") local debug = require("refactoring.debug") local scandir = require("plenary.scandir") local utils = require("refactoring.utils") local test_utils = require("refactoring.tests.utils") local async = require("plenary.async") local Config = requi...
object_mobile_dressed_tatooine_opening_reimos = object_mobile_shared_dressed_tatooine_opening_reimos:new { } ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_opening_reimos, "object/mobile/dressed_tatooine_opening_reimos.iff")
--[[ Nodes in the `combustable` group will sometimes spotaneously combust when exposed to `air` A node can define a `on_combust(pos :: vector, node :: NodeDef) :: boolean` callback to handle the pre-combustion, if true is returned, then the node is swapped for fire else, nothing happens. ]] minetest.register_abm({ n...
--DoitCar Ctronl Demo --ap mode --Created @ 2015/05/14 by Doit Studio --Modified: null --http://www.doit.am/ --http://www.smartarduino.com/ --http://szdoit.taobao.com/ --bbs: bbs.doit.am print("\n") print("ESP8266 Started") local exefile="DoitCarControl" local luaFile = {exefile..".lua"} for i, f in ipairs(luaFile) d...
TEST [[ X.<!y!> = 1 local t = X print(t.<?y?>) ]] TEST [[ X.x.<!y!> = 1 local t = X.x print(t.<?y?>) ]] TEST [[ X.x.<!y!> = 1 local t = X print(t.x.<?y?>) ]]
require('base.plugins') require('base.keybinds') require('base.commands') require('base.settings')
--[[ -- This is a replay dumper test / example. Simply set your starcraft to open a -- replay. Then, run -- th dump_replay -t $SC_IP ]] require 'torch' torch.setdefaulttensortype('torch.FloatTensor') require 'sys' require 'sys' local lapp = require 'pl.lapp' local params = lapp [[ Tests replay dumping / reloading -t,-...
return {'gyrokompas','gyroscoop','gyroscopisch','gyros','gyroscopen','gyroscopische','gyrokompassen'}
load("moduleA/2.0")
translations.ru = { name = "ru", -- Сообщения об ошибках corrupt_map = "<r>Поврежденная карта. загрузите другую.", corrupt_map_vanilla = "<r>[ОШИБКА] <n>Не удается получить информацию о карте.", corrupt_map_mouse_start = "<r>[ОШИБКА] <n>Карта должна иметь начальную позицию (точку появления мыши).", corrupt_map_n...
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_void_spir...
--[[ Copyright (C) 2013 simplex This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that ...
if Bottlepass == nil then Bottlepass = Bottlepass or class({}) end function Bottlepass:SendEndGameStats() local xpInfo = {} local players = {} for i = 0, PlayerResource:GetPlayerCount() - 1 do players[i] = PlayerResource:GetPlayer(i) end for k, v in pairs(players) do -- local level = Bottlepass:Get...
local module = {} module.SSID = {} module.SSID["Your WiFi Name"] = "WiFi Password" return module
c = Instance.new("Hint") --SHUT IT DOWN NO NAMES NEEDED just run it c.Text = "SEVER SHUTDOWN." c.Parent = game.Workspace text = {"SEVER SHUTDOWN, PREPARE. CRASHING. Crashing in, 3, 2, 1", "", "", ""} while wait(5) do if not game.Players:FindFirstChild("NAME") then local m = Instance.new("Message") m.Parent = W...
--[[this script serves to determine what system will be used to perform the underlying computations. --currently does not have gpu acceleration so all computations use the came backend TODO: add opencl backend (possibly add cuda backend too?) as high backends (i.e. backends for especially large computations for which t...
getglobal game getfield -1 Workspace getfield -1 ServerEvents getfield -1 SetStat getfield -1 FireServer pushvalue -2 pushstring Bounty pushnumber AMMOUNT pcall 3 1 0
local Objects = { createObject ( 10946, 2881.4004, 2223.2002, 12.5, 0, 179.995, 270 ), createObject ( 6959, 2899.8, 2183.1001, 14.1 ), createObject ( 6959, 2899.8, 2223.1001, 14.1 ), createObject ( 6959, 2899.8, 2263.1001, 14.1 ), createObject ( 11353, 2858, 2147.3999, 18.6 ), createObject ( 11353, 2858, 2256, 18.6 ), ...
blips = {} keyPressed = false hudShowing = false Citizen.CreateThread(function() TriggerServerEvent('playerpoint:loadBlips') end) RegisterNetEvent("playerpoint:loadBlips") AddEventHandler("playerpoint:loadBlips", function(playerData) if playerData ~= nil then for k,v in pairs(playerData) do local blipNa...
local fennel = require "fennel" table.insert(package.loaders or package.searchers, fennel.searcher) require "raymarching"
-- An iterator that steps through every non-empty substring of a given string. function subs(s) function iter(state, ix) local h = state.head local t = state.tail + 1 local m = state.max -- If tail has moved past the end advance head and reset tail if t > m then h = h + 1 t = h ...
-- << Services >> -- local MarketplaceService = game:GetService("MarketplaceService") local TweenService = game:GetService("TweenService") local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local CollectionService = game:GetService("CollectionService") -- << Constant...
--Lua syntax parser --Lua Keywords local keywords = { "and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while" } --Lua escapable characters local escapable = {"a", "b", "f", "n", "r", "t", "v", "\\"...
local L = BigWigs:NewBossLocale("Master Snowdrift", "ptBR") if not L then return end if L then -- Quando eu era filhote, eu mal conseguia dar uns soquinhos, mas após anos de treinamento eu consigo muito mais! L.stage3_yell = "era filhote" end
--[[ ä Name: Advanced Questbook By: Crypton ]] if (AQB_ITEM_STRINGS == nil) then AQB_ITEM_STRINGS = { ["AQB_LC"] = TEXT("Sys202939_name") or TEXT("Sys202939_name_plural"), ["AQB_IC"] = TEXT("Sys202940_name") or TEXT("Sys202940_name_plural"), ["AQB_TC"] = TEXT("Sys202941_name") or TEXT("Sys202941_name_plural"...
local reports = require "kong.reports" local redis = require "resty.redis" local kong = kong local null = ngx.null local shm = ngx.shared.kong_rate_limiting_counters local fmt = string.format local EMPTY_UUID = "00000000-0000-0000-0000-000000000000" local EXPIRATION = 10*60 local function is_present(str) return s...
function shift(a) local out = a << 9 shift(out) end shift(1)
-------------------------core------------------------- package.preload["core/sceneLoader"] = function() return require('editorRT/sceneLoader') end package.preload["core/http"] = function() return require('network/http') end package.preload["core/shaderManager"] = function() return require('cor...
-- Note: This file is loaded by lsunit.lua print("-- LuaSkinTests testinit.lua loaded")
local syntaxTable = { ["s"] = "#00a8ff[Melancia]#ffffff ", ["e"] = "#e84118[Melancia]#ffffff ", ["w"] = "#fbc531[Melancia]#ffffff ", } addEvent("skinshop-system:buySkin", true) addEventHandler("skinshop-system:buySkin", root, function(player, skinID, price) if exports["mrp_global"]:hasMoney(player, tonumber(pric...
local Util = require("vlua.util") local Watcher = require("vlua.watcher") local pairs = pairs local warn, isRef = Util.warn, Util.isRef local xpcall = xpcall local tinsert, tpop = table.insert, table.remove ---@class Binder ---@field children Binder[] ---@field events table<string, fun():nil> local Binder = Util.class...
-- -- THIS FILE HAS BEEN GENERATED AUTOMATICALLY -- DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING -- -- GENERATED USING @colyseus/schema 1.0.0-alpha.58 -- local schema = require 'colyseus.serialization.schema.schema' local PlayerV2 = require 'test.schema.BackwardsForwards.PlayerV2' local StateV2 = sc...
local key = KEYS[1] local id = ARGV[1] local ms = ARGV[2] local current_id = redis.call('GET', key) if (id == current_id) then redis.call('PEXPIRE', key, ms) return 1 else return 0 end
--[=============================================================================[ The MIT License (MIT) Copyright (c) 2014 RepeatPan 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 restri...
local _, MySlot = ...; local L = MySlot.L; local crc32 = LibStub:GetLibrary("CRC32-1.0"); local base64 = LibStub:GetLibrary("BASE64-1.0"); local pblua = LibStub:GetLibrary('pblua') local _MySlot = pblua.load_proto_ast(MySlot.ast) local MYSLOT_AUTHOR = "T.G. <farmer1992@gmail.com>" local MYSLOT_VER = 24 loc...
-- binds to configured LDAP server -- -------------------------------------------------------------------------- -- omit arguments for anonymous bind -- -- arguments: -- dn: the distinguished name to be used fo binding (string) -- password: password credentials (string) -- -- returns: -- ldap: in case of success,...
ardour { ["type"] = "EditorAction", name = "Bulk Rename Regions", license = "MIT", author = "David Healey", description = [[Rename selected regions]] } function factory () local bulk_rename_regions_input_values --Persistent variable (session lifespan) return function () -- Define dialog ...
local id=0 local function new() id=id+1; return id end return {new=new}
--test_procfs_procids.lua package.path = "../?.lua;"..package.path; local procfs = require("lj2procfs.procfs") local fun = require("lj2procfs.fun") local Decoders = require("lj2procfs.Decoders") local function printTable(name, tbl, indent) indent = indent or "" --print("TABLE: ", #mapped) print(string.format("%s['...
function BWMessenger_OnEnterCombat(Unit,Event) Unit:FullCastSpellOnTarget(35570,Unit:GetClosestPlayer()) end RegisterUnitEvent(21244, 1, "BWMessenger_OnEnterCombat")
laser = class:new() function laser:init(x, y) self.i = 0 self.x = x self.y = y end function laser:update(dt) local oldi = self.i self.i = self.i + dt*5 if self.i > 1 then return true end if enemies then for i, v in pairs(enemies) do if v:checkcol(self.x + oldi*100, self.y, self.x + self.i*100) then...