content
stringlengths
5
1.05M
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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...
local _M = {} local mt = { __index = _M } local select = select local setmetatable = setmetatable local str_find = string.find local str_gsub = string.gsub local tab_concat = table.concat local modf = math.modf local ceil = math.ceil local function tab_append(t, idx, ...) local n = select("#", ...) for i = 1,...
if (not Bagnon) then return end if (function(addon) for i = 1,GetNumAddOns() do local name, title, notes, loadable, reason, security, newVersion = GetAddOnInfo(i) if (name:lower() == addon:lower()) then local enabled = not(GetAddOnEnableState(UnitName("player"), i) == 0) if (enabled and loadable) then ...
local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) local condition = Condition(CONDITION_INVISIBLE) condition:setParameter(CONDITION_PARAM_TICKS, 200000) combat:addCondition(condition) local spell = Spell("instant") function spell...
local token = redis.call('lpop',KEYS[1]) local curtime = tonumber(KEYS[2]) if token ~= false then if ( tonumber(token)/1000 > tonumber(KEYS[2]) ) then redis.call('lpush',KEYS[1],token) return 1 else return tonumber(token) end else return 0 end
-- Applies damage if the weapon projectile hits a player -- Attach this script to weapons that can take damage -- Add "Damage" custom property on the weapon object -- Getting custom properties on the weapon local WEAPON = script.parent local DAMAGE = WEAPON:GetCustomProperty("Damage") local function OnWeaponInteracti...
#!/usr/bin/env lua local exec = require "tek.lib.exec" local c = exec.run(function() local exec = require "tek.lib.exec" exec.sleep() end) exec.sleep(100) error "something went wrong." --[[ lua: bin/task/case32.lua:8: something went wrong. stack traceback: [C]: in function 'error' bin/task/case32.lua...
PLUGIN.name = "Strength" PLUGIN.author = "Chessnut" PLUGIN.desc = "Adds a strength attribute." if (SERVER) then function PLUGIN:PlayerGetFistDamage(client, damage, context) if (client:getChar()) then -- Add to the total fist damage. context.damage = context.damage + (client:getChar():getAttrib("str", 0) * 1.5...
--[[ button.lua Copyright (C) 2016 Kano Computing Ltd. License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2 Button consistent on text and action ]]-- local Colour = require 'system.colour' local Locale = require 'system.locale' local Utils = require 'system.utils' local love = love local g = love.graphics lo...
return {'rit','ritalin','ritardando','rite','ritenuto','ritme','ritmebox','ritmeester','ritmegevoel','ritmeren','ritmesectie','ritmiek','ritmisch','ritmus','ritnaald','ritornel','ritoverwinning','ritprijs','rits','ritselaar','ritselen','ritseling','ritsen','ritser','ritsig','ritsijzer','ritssluiting','ritten','rittenad...
-- initial for props functions util.AddNetworkString("ResetHull") util.AddNetworkString("SetBlind") util.AddNetworkString("SetHull") util.AddNetworkString("PlayFreezeCamSound") util.AddNetworkString("PlayerSwitchDynamicLight") util.AddNetworkString("DisableDynamicLight") util.AddNetworkString("PH_ShowTutor") util.AddN...
-- Start Vehicle thread Threads.Start(Vehicle) -- Vehicle Class Functions function Vehicle.Initialize() DecorRegister('fuel', 1) -- float DecorRegister('owner', 3) -- int DecorRegister('hotwired', 3) -- int DecorRegister('silentsirens', 3) -- int DecorRegister('neonlayout', 3) -- int end functio...
-- Parse the generic MsdFile (used for SSC and SM files). -- Translated directly from the source here: -- https://github.com/stepmania/stepmania/blob/master/src/MsdFile.cpp#L32 -- The original MSD format is simply: -- #PARAM0:PARAM1:PARAM2:PARAM3; -- #NEXTPARAM0:PARAM1:PARAM2:PARAM3; -- (The first field is typicall...
local dfhack = dfhack local _ENV = dfhack.BASE_G local buildings = dfhack.buildings local utils = require 'utils' -- Uninteresting values for filter attributes when reading them from DF memory. -- Differs from the actual defaults of the job_item constructor in allow_artifact. buildings.input_filter_defaults = { ...
-- Code heavily modified but started from Slipstream_2.0.0 by Degraine / James Brooker (MIT License 2014) require "util" function math_round(x) return x>=0 and math.floor(x+0.5) or math.ceil(x-0.5) end function tableToString(t) local str = "{ " for i,v in pairs(t) do str = str .. tostring(i) .. ":" .. tost...
---@class RDSSpecificProfession : zombie.randomizedWorld.randomizedDeadSurvivor.RDSSpecificProfession ---@field private specificProfessionDistribution ArrayList|Unknown RDSSpecificProfession = {} ---@public ---@param arg0 BuildingDef ---@return void function RDSSpecificProfession:randomizeDeadSurvivor(arg0) end
local canvas = require("hs.canvas") local screen = require("hs.screen") local module = {} local cos = {} local sin = {} for i = 0, 360, 0.5 do sin[i] = math.sin(math.rad(i)) cos[i] = math.cos(math.rad(i)) end local rehoboam = nil module.undraw = function() if rehoboam then rehoboam:delete() ...
require 'class' local json = require 'lunajson' local Stat = torch.class('Stat') function Stat:__init(labelSize, batchSize, maxSeq) self.labelSize = labelSize self.batchSize = batchSize self.maxSeq = maxSeq -- init confusion matrix (correct label (size) * predict label (size)) self.confus = self:initMat(lab...
type array = { any } local function copy(tbl: array, deep: boolean?): array if not deep then return table.move(tbl, 1, #tbl, 1, table.create(#tbl)) end local new = table.create(#tbl) for index, value in ipairs(tbl) do if typeof(value) == "table" then new[index] = copy(value, true) else new[index] = v...
local tasks = require'tasks' local screenWidth = 640 local screenHeight = 480 local bumperSpeed = 400 local bumperWidth = 15 local bumperHeight = 80 local bumper1X = bumperWidth local bumper1Y = (screenHeight - bumperHeight) / 2 local bumper2X = screenWidth - 2 * bumperWidth local bumper2Y = bumper1Y local ballSpeed...
function createATM(thePlayer, commandName) if (exports.global:isPlayerLeadAdmin(thePlayer)) and ( getElementDimension(thePlayer) > 0 or exports.global:isPlayerScripter(thePlayer) ) then local dimension = getElementDimension(thePlayer) local interior = getElementInterior(thePlayer) local x, y, z = getElement...
local ffi = require("ffi") ffi.cdef[[ typedef void (*xmlValidityErrorFunc) (void *ctx, const char *msg, ...); typedef void (*xmlValidityWarningFunc) (void *ctx, const char *msg, ...
local ffi = require("ffi") ffi.cdef([[ int getpid(); ]]) local helper = {} function helper.getProcessId() return ffi.C.getpid() end return helper
local obj = {} obj._box = nil -- Show a message in oncscree textbox function obj:show(message, pos) if obj._box ~= nil then obj._box:delete() end if pos == nil then local res = hs.window.focusedWindow():screen():frame() pos = { x = 50, y = res.h - 300, w = res.w - 100, h = 15...
local i18n = require 'i18n' local fun = require 'lib.fun' local Codes = { const = { attribute = { EARTH = 0x1, WATER = 0x2, FIRE = 0x4, WIND = 0x8, LIGHT = 0x10, DARK = 0x20, DIVINE = 0x40, ALL = 0x7F }, race = { WARRIOR = 0x1, SPELLCASTER = 0x2...
local skynet = require "skynet" local sprotoloader = require "sprotoloader" local sprotoparser = require("sprotoparser") local socket = require "skynet.socket" local boylib = require("boylib") local function readCrc32(crc32Str) local b = crc32Str local byte=string.byte local ret = byte(b,4) | byte(b,3)<<8 | byte(b,...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by xuanc. --- DateTime: 2020/2/1 下午3:32 --- Description: 推送任务 --- -- function: log local function log(str) redis.log(redis.LOG_VERBOSE, '[LUA] ' .. str); end -- function: string split local function split(str, reps) local resultStrList = {} ...
--- --- Generated by MLN Team (http://www.immomo.com) --- Created by MLN Team. --- DateTime: 2019-09-05 12:05 --- local _class = { _name = 'HomeCommonCell', _version = '1.0' } ---@public function _class:new() local o = {} setmetatable(o, { __index = self }) return o end ---@public function _class...
extensions("abcpy/2.1") help([[ This is the help message for python3 3.7 ]])
require('lspsaga').init_lsp_saga{ -- default value use_saga_diagnostic_sign = true, error_sign = '', warn_sign = '', hint_sign = '', infor_sign = '', code_action_icon = ' ', diagnostic_header_icon = '  ', code_action_prompt = { enable = true, sign = false, virtual_text = false, },...
mapFields = require "lib/mapFields" target.field = mapFields.getID("SilentSwamp")
-------------------------------------------------------------------------------- -- 81-714 Moscow and SPB electric schemes -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.tx...
------------------------------------------------------------------------ --- @file headers.lua --- @brief C struct definitions for all protocol headers and respective --- additional structs for instance addresses. --- Please check the source code for more information. --------------------------------------------------...
--[[ $Id: CallbackHandler-1.0.lua 1131 2015-06-04 07:29:24Z nevcairiel $ ]] local MAJOR, MINOR = "CallbackHandler-1.0", 6 local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR) if not CallbackHandler then return end -- No upgrade needed -- Lua APIs local tconcat, tinsert, tgetn, tsetn = table.concat, table.insert, ...
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.1.2-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] -- pipeline_step_impl class local pipeline_step_impl = {} local pipeline_step_impl_mt = { __na...
function onEvent(name, value1, value2) if name == 'FlipUI' then doTweenAngle('bruh', 'camHUD', 180, 0.1, 'linear') end end
Graphics.init() alttpTileset = Graphics.loadImage("Assets/Graphics/alttp.png") tileSizeX = 16 tileSizeY = 16 mapOffsetX =2 mapOffsetY =2 board = { {1,2,1,1,1}, {1,0,0,0,1}, {1,0,0,0,1}, {1,0,0,0,1}, {1,1,1,1,1} } boardSize=5; function getTileCo...
RegisterNetEvent("vrp_wallet:setValues") AddEventHandler("vrp_wallet:setValues", function(wallet, bank) SendNUIMessage({ wallet = wallet, bank = bank }) end) Citizen.CreateThread(function() while true do Citizen.Wait(0) if IsControlJustPressed(1, 244) then TriggerServerEvent('vrp...
local function some(dictionary, predicate) local predicateType = type(predicate) assert(predicateType == "function", "expected a function for second argument, got " .. predicateType) for k, v in pairs(dictionary) do if predicate(v, k) then return true end end return false end return some
-- Time-based One-time Password (RFC 6238) implementation -- Part of the libotp library for ComputerCraft -- https://github.com/UpsilonDev/libotp local oath = require("libotp.oath.common") local gen = oath.generate local totp = {} function totp.generate(s, d, l) local e = math.floor(os.epoch("utc") / 1000 / (d or ...
slot0 = class("BattleDodgemResultLayer", import(".BattleResultLayer")) slot0.didEnter = function (slot0) setText(slot0._levelText, pg.expedition_data_template[slot0.contextData.stageId].name) slot0._gradeUpperLeftPos = rtf(slot0._grade).localPosition rtf(slot0._grade).localPosition = Vector3(0, 25, 0) pg.UIMgr.G...
-- "KittyCaT-Sonata" function update(elapsed) camShenigans() end function beatHit(beat) if (beat > 12 and beat < 231) or (beat > 394 and beat < 547) then if math.fmod(beat, 3) == 0 then cameraZoom = 0.76 camHudAngle = 2 * camVar else cameraZoom = 0.73 camHudAngle = 1 * camVar end elseif (beat > 2...
local awful = require("awful") local beautiful = require("beautiful") local naughty = require("naughty") -- Themes define colours, icons, font and wallpapers. beautiful.init(awful.util.getdir("config") .. "/themes/default/theme.lua") config.layouts = { -- awful.layout.suit.floating, awful.layout.suit.tile, ...
local BehaviorBase = import(".BehaviorBase"); ---组件工厂类 local behaviorsClass = { } local BehaviorFactory = {} function BehaviorFactory.typeof( obj,classObj ) -- body if obj.__supers then local isType isType = function (objData,name) -- body ...
local bind = require('utility.keybinding') local map_cr = bind.map_cr local map_cu = bind.map_cu local map_cmd = bind.map_cmd local keymap = {} keymap.set_mapleader = function() vim.g.mapleader = ' ' -- use <space> as <leader> end keymap.init = function() keymap.set_mapleader() local t = function(str) ...
local _M = {_VERSION="0.1.11"} local table_insert = table.insert local table_concat = table.concat function _M.getTime() return ngx and ngx.time() or os.time() end function _M.addParamToUrl(urlString, paramName,paramValue) if urlString==nil then urlString="" end if paramValue==nill then paramValue="" end ...
--[[ Classical Game of Life using Cell Families ]] ------------ -- Interface ------------ -- Number of Mobile Agents Interface:create_slider('N_Mobiles', 0, 10, 1, 5) ----------------- -- Setup Function ----------------- SETUP = function() -- We don't reset everything to reuse the grid of cells between sim...
slot2 = "BaseGameBattleView" BaseGameBattleView = class(slot1) BaseGameBattleView.ctor = function (slot0, slot1, slot2) if not slot2 and slot0.btnMenu then slot8 = 80 slot0.controller.adjustSlimWidth(slot4, slot0.controller, slot0.btnMenu, UIConfig.ALIGN_LEFT_UP) end if not slot2 and slot0.btnMenu1 then slo...
-- config.lua -- config = {} config.ssid = "a2:20:a6:12:52:f6" config.pwd = "IIIlll111" config.host = "192.168.4.1" config.port = 11272 -- timeout = timeout * 5 s config.timeout = 10 return config
-- https://github.com/rxi/lite/blob/master/src/main.c#L129 -- https://github.com/rxi/lite/blob/master/data/core/init.lua#L77 -- https://github.com/rxi/lite/blob/master/data/core/init.lua#L451 core = {} function core.init() print('core.init') end function core.run() print('core.run') end return core
require 'modshogun' require 'load' traindat = load_dna('../data/fm_train_dna.dat') testdat = load_dna('../data/fm_test_dna.dat') parameter_list = {{traindat,testdat,3},{traindat,testdat,20}} function kernel_weighted_degree_string_modular (fm_train_dna,fm_test_dna,degree) --feats_train=modshogun.StringCharFeatures(...
function BetterScreenScale() return math.Clamp(ScrH() / 1080, 0.6, 1) end function EasyLabel(parent, text, font, textcolor) local dpanel = vgui.Create("DLabel", parent) if font then dpanel:SetFont(font or "DefaultFont") end dpanel:SetText(text) dpanel:SizeToContents() if textcolor then dpanel:SetTextColor(t...
bf_orig_y = 0 bf_orig_x = 0 gf_orig_y = 0 gf_orig_x = 0 function start (song) bf_orig_y = getActorY("boyfriend") bf_orig_x = getActorX("boyfriend") gf_orig_y = getActorY("girlfriend") gf_orig_x = getActorX("girlfriend") print("Song: " .. song .. " @ " .. bpm .. " donwscroll: " .. downscroll) end function update...
Include 'THlib\\UI\\uiconfig.lua' Include 'THlib\\UI\\font.lua' Include 'THlib\\UI\\title.lua' Include 'THlib\\UI\\sc_pr.lua' LoadTexture('boss_ui', 'THlib\\UI\\boss_ui.png') LoadImage('boss_spell_name_bg', 'boss_ui', 0, 0, 256, 36) SetImageCenter('boss_spell_name_bg', 256, 0) LoadImage('boss_pointer', 'boss_ui', 0, ...
local args = {...} return function () local createServer = require('coro-net').createServer local uv = require('uv') local httpCodec = require('http-codec') local websocketCodec = require('websocket-codec') local wrapIo = require('coro-websocket').wrapIo local log = require('log').log local makeRemote = ...
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('ServerHop') then return end function AS:ServerHop() local hopAddOn = _G["ServerHop"] local hopFrame = hopAddOn.hopFrame AS:SkinFrame(hopFrame) AS:SkinButton(hopFrame.buttonHop, true) hopFrame.buttonHop:SetPoint("LEFT", 20, 0) AS:SkinCloseButton(hopAddOn.closeB...
--- `:augroup` support. -- -- Provides overrides that allow you to specify a callable -- as the second parameter to `bex.cmd.augroup`. It will -- be invoked after entering the augroup and generate -- an `:augroup END` automatically afterwards. This allows -- usage like: -- -- local cmd = require('bex.cmd') -- -- ...
-- Workaround for the map canvas pins, which behave as buttons -- using OnMouseDown, making the interface cursor dismiss the objects as -- regular unclickable frames. local _, db = ... db.PLUGINS['Blizzard_MapCanvas'] = function(self) local NodeMixin, pins, maps, nodes = {}, {}, {}, {} local Mixin = db.table.mixin...
-- Automatically generated by build.lua, do not edit return [[ 048D ; Changes_When_Titlecased # L& CYRILLIC SMALL LETTER SEMISOFT SIGN 048F ; Changes_When_Titlecased # L& CYRILLIC SMALL LETTER ER WITH TICK 0491 ; Changes_When_Titlecased # L& CYRILLIC SMALL LETTER GHE WITH UP...
------------------------------------------------------------------------------ -- Config class ------------------------------------------------------------------------------ local ctrl = { nick = "config", parent = iup.WIDGET, creation = "", funcname = "Config", callback = { recent_cb = "", }, includ...
local tonumber = tonumber local tostring = tostring local error = error module('tango.utils.socket_message') local send = function(socket,message) -- send length of the string as ascii line local sent,err = socket:send(tostring(#message)..'\n') if not sent then error(err) end ...
local function CanSafelyEnterGameplayCourse() for pn in ivalues(GAMESTATE:GetEnabledPlayers()) do if GAMESTATE:GetCurrentTrail(pn) == nil and GAMESTATE:IsPlayerEnabled(pn) then return false,"Trail for "..pname(pn).." was not set."; end end; if not GAMESTATE:GetCurrentCourse() then return false,"No course wa...
local types = require "resty.nettle.types.common" local context = require "resty.nettle.types.serpent" local lib = require "resty.nettle.library" local ffi = require "ffi" local ffi_new = ffi.new local ffi_copy = ffi.copy local ffi_str = ffi.string local ceil = math.ceil local setmetatable = setmetatable local serpent...
local kRagdollTime = 9.5 function Ragdoll:OnCreate() Entity.OnCreate(self) local now = Shared.GetTime() self.dissolveStart = now self.dissolveAmount = 0 if Server then self:AddTimedCallback(Ragdoll.TimeUp, kRagdollTime) end self:SetUpdates(true) InitMixin(...
require("ffi").cdef[[ typedef struct ImFontAtlasCustomRect ImFontAtlasCustomRect; typedef struct ImDrawCmdHeader ImDrawCmdHeader; typedef struct ImGuiStoragePair ImGuiStoragePair; typedef struct ImGuiTextRange ImGuiTextRange; typedef struct ImVec4 ImVec4; typedef struct ImVec2 ImVec2; typedef struct ImGuiWindowClass Im...
--[[ Name: "sv_player.lua". Product: "nexus". --]] nexus.player = {}; nexus.player.property = {}; nexus.player.sharedVars = {}; -- A function to get whether a player is noclipping. function nexus.player.IsNoClipping(player) if ( player:GetMoveType() == MOVETYPE_NOCLIP and !player:InVehicle() ) then return true; ...
Events:Subscribe('Extension:Loaded', function() WebUI:Init() end) NetEvents:Subscribe('hit', function(damage, isHeadshot) if damage <= 0 then return end WebUI:ExecuteJS(string.format('addHit(%d, %s)', math.floor(damage), tostring(isHeadshot))) end)
require 'nn' require 'sys' require '../SparseLinearX.lua' local sparseLinearX_test = {} function wrapUT(fuUT, strName) fuUT() print("PASS " .. strName) end function getTestInputCSparse() return { nBatchSize = 10, --rowid, startId, length teOnes = torch.LongTensor({{1, 3, 5}...
panel_color_number_to_upper = {"A", "B", "C", "D", "E", "F", "G", "H",[0]="0"} panel_color_number_to_lower = {"a", "b", "c", "d", "e", "f", "g", "h",[0]="0"} panel_color_to_number = { ["A"]=1, ["B"]=2, ["C"]=3, ["D"]=4, ["E"]=5, ["F"]=6, ["G"]=7, ["H"]=8, ["a"]=1, ["b"]=2, ["c"]=3, ["d"]=4, ["e"]=5, ["f"]=6, ["g"...
-- Creator: -- AltiV - August 17th, 2019 LinkLuaModifier("modifier_item_imba_aether_specs", "components/items/item_aether_specs", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_imba_aether_specs_ward", "components/items/item_aether_specs", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_imba_aether...
local bind = require "binder.skill".skill local root = GRoot.inst local M = {} function M:start(view) view:MakeFullScreen() root:AddChild(view) bind(M, view) end function M:stop() end return M
local ADDON = ... local L = Wheel("LibLocale"):NewLocale(ADDON, "frFR")
package.path = './data/lua/?.lua;' .. package.path require("io/jbio/defs") require("iop/input-state") require("screen/attract/defs") local function __init() -- stub end local function __activate() -- stub end local function __deactivate() -- stub end local function __process(src, src_prev) local...
function shuffle(tbl) for i = #tbl, 2, -1 do local j = math.random(i) tbl[i], tbl[j] = tbl[j], tbl[i] end return tbl end function playOptimal() local secrets = {} for i=1,100 do secrets[i] = i end shuffle(secrets) for p=1,100 do local success = false local ch...
local K, C, L = unpack(select(2, ...)) if C.ActionBar.Enable ~= true then return end -- Lua API local _G = _G -- Wow API local hooksecurefunc = _G.hooksecurefunc local PetActionBar_HideGrid = _G.PetActionBar_HideGrid local PetActionBar_ShowGrid = _G.PetActionBar_ShowGrid local PetActionBar_UpdateCooldowns = _G.PetAct...
local currencies = {} table.insert(currencies, { name = "Деньги", image = "money.pic", id = "customnpcs:npcMoney", dmg = 0 }) --table.insert(currencies, { -- name = "Светопыль", -- image = "glowstone_dust.pic", -- id = "minecraft:glowstone_dust", -- dmg = 0, -- max = 100 --}) --table.i...
object_building_general_station_starport = object_building_general_shared_station_starport:new { gameObjectType = 521, planetMapCategory = "starport", childObjects = { {templateFile = "object/tangible/terminal/terminal_travel.iff", x = -10, z = 0, y = 0, ox = 0, oy = 0, oz = 0, ow = 0, cellid = 8, containmentType...
local old_DLCSOC_init = CrimeSpreeTweakData.init function CrimeSpreeTweakData:init(tweak_data) old_DLCSOC_init(self, tweak_data) self.crash_causes_loss = false end
return Polygon.new({ }).points
function onCreate() --background boi makeLuaSprite('stage', 'back1', 0, 0) setLuaSpriteScrollFactor('stage', 0.6, 0.6) addLuaSprite('stage', false) makeLuaSprite('stage2', 'back11', 0, 0) setLuaSpriteScrollFactor('stage', 0.6, 0.6) addLuaSprite('stage2', false) makeLuaSprite( 'stage3', 'back2', 0, 0) setLua...
game.ReplicatedStorage.NetworkRemoteEvent:FireServer("SellBubble", "Sell") _G.samsbubbleloop = true while _G.samsbubbleloop == true do for i=1,25 do game.ReplicatedStorage.NetworkRemoteEvent:FireServer("BlowBubble") wait(1.5) if i == 25 then game.ReplicatedStorage.NetworkRemoteEvent:FireServer("SellB...
--- Creates a new class with a constructor function. -- @return Class table. local function Class() local class = {} local class_mt = {} setmetatable(class, class_mt) class.__index = class --- Implements call function to create an instance. function class_mt.__call(_, ...) local instance = {} se...
--[[ This module was modified to handle results of the 'typeof' function, to be more lightweight. The original source of this module can be found in the link below, as well as the license: https://github.com/rojo-rbx/rojo/blob/master/plugin/rbx_dom_lua/EncodedValue.lua https://github.com/rojo-rbx/rojo/blob/master/...
local DataLayer = require(script.Parent.DataLayer) local MigrationLayer = {} function MigrationLayer._unpack(value, migrations) value = value or { generation = #migrations; data = nil; } local data = value.data local generation = value.generation if generation < #migrations then for i = generation + 1, #...
--[[ Keywords.lua --]] local Keywords, dbg, dbgf = Object:newClass{ className = 'Keywords' } --- Constructor for extending class. -- function Keywords:newClass( t ) return Object.newClass( self, t ) end local kwFromPath --- Constructor for new instance. -- function Keywords:new( t ) local o = ...
-- dash1090 -- -- Copyright (C) 2015 John C Kha -- -- This file listens for messages and colates them into statistics local _d = require "tek.lib.debug" local exec = require "tek.lib.exec" local Stat = {} --...
workspace "Erin" architecture "x64" startproject "Sandbox" configurations { "Debug", "Release" } -- Get cur dir helper for windows? -- print("Working Dir: " .. io.popen"cd":read'*l') outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Include directories relative to...
function Schema:OnCharacterCreated(client, character) local inventory = character:GetInventory() if (inventory) then local items = {} if (character:GetFaction() == FACTION_LONERS) then items = { --"kit_newchar", --"knife_1", } end local i = 1 for k, v in pairs(items) do timer.Simple...
-- holostorage Network -- Some code borrowed from Technic (https://github.com/minetest-mods/technic/blob/master/technic/machines/switching_station.lua) holostorage.network = {} holostorage.network.networks = {} holostorage.network.devices = {} holostorage.network.redundant_warn = {} function holostorage.get_or_load_n...
--vim: filetype=lua ts=2 sw=2 sts=2 et : return { synopsis = [[ ,-_|\ keys / \ (c) Tim Menzies, 2021, unlicense.org \_,-._* Cluster, then report just the v deltas between nearby clusters. ]], usage = "./keys", author = "Tim Menzies", copyright= "(c) Tim Menzies, 2021, unlicense.org",...
local tasks = {} local threads = {} local watch = {} function async(func) return function(...) coroutine.resume(coroutine.create(func), ...) end end local function asyncTaskSetDispose( task, dispose, ... ) task.dispose = dispose task.param = {...} end local function asyncTaskSetLink( thread, taskid, task ) ta...
---@class WorldMarkers : zombie.iso.WorldMarkers ---@field private CIRCLE_TEXTURE_SCALE float ---@field public instance WorldMarkers ---@field private NextGridSquareMarkerID int ---@field private NextHomingPointID int ---@field private gridSquareMarkers List|Unknown ---@field private homingPoints WorldMarkers.PlayerHom...
local class = require("pl.class") local AccountManager = require("core.AccountManager") local BehaviorManager = require("core.BehaviorManager") local AreaFactory = require("core.AreaFactory") local AreaManager = require("core.AreaManager") local AttributeFactory = require...
--all enemy stuff --foe layout, {tileLocation, type, hp, bool flag} require("constants") require("astar") types = {BASIC = 1, ALT_BASIC = 2, ADVANCED = 3, FAST = 4, ALT_FAST = 5, ADVANCED_FAST = 6} -- TODO, then file -> maps, then UI polish stuff function doFoeStuff(foes, p1, p2, tiles, walls) for i, foe in ipairs(f...
return function(button_list, stepstype, skin_parameters) local ret= {} local rots= { Left= 90, Down= 0, Up= 180, Right= 270, UpLeft= 90, UpRight= 180, DownLeft= 0, DownRight= 270, Center= 0 } local tap_redir= { Left= "down", Right= "down", Down= "down", Up= "down", UpLeft= "DownLeft", UpRight= "DownLef...
local mysql_connector = require("melon.mysql.mysql_connector") local logger_factory = require("melon.utils.logger") local logger = logger_factory:get_logger("base_dao.lua",context) local table_utils = require("melon.utils.table_utils") local json = require("cjson") local _M = {} local mt = { __index = _M } function ...
--------------------------------------------------------------------------------------------------- -- User story: Smoke -- Use case: DeleteCommand -- Item: Happy path -- -- Requirement summary: -- [DeleteCommand] SUCCESS: getting SUCCESS from VR.DeleteCommand() and UI.DeleteCommand() -- -- Description: -- Mobile appli...
local _, ns = ... local B, C, L, DB, P = unpack(ns) local S = P:GetModule("Skins") local _G = getfenv(0) local tinsert, ipairs = table.insert, ipairs -- Compatible with MerInspect, alaGearMan, CharacterStatsTBC. local addonFrames = {} local lastTime = 0 function S:UpdatePanelsPosition(force) if (not force and GetT...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by qiurunze. --- DateTime: 2018/12/22 18:20 --- --- 释放锁 if redis.call('get',KEY[1] == ARGV[1]) then return redis.call('del',KEY[1]) else return 0 end --- 加锁 local key = KEY[1] local content = KEY[2] local ttl = AVG[1] local lockSet = redis.c...
-- strings a = 'one string' b = string.gsub(a, 'one', 'another') print(a,'--', b) print('len of a:', #a) -- long strings, heredoc page = [[ line 1 line 2 line 3 ]] print(page) print(10 .. 20) print('10' + 11) -- tables (dicts) d = {} print(d) k = 'x' d[k] = 10 print(d[k], d['x']) for i = 1, 1000 do d[i] = i * ...