content
stringlengths
5
1.05M
AuctionatorShoppingTabRecentsContainerMixin = {} function AuctionatorShoppingTabRecentsContainerMixin:OnLoad() self.Tabs = {self.ListTab, self.RecentsTab} self.numTabs = #self.Tabs Auctionator.EventBus:RegisterSource(self, "List Search Button") Auctionator.EventBus:Register(self, { Auctionator.ShoppingLis...
-- local DeskView = class("DeskView", function() -- bg = ccui.ImageView:create("DowneyTang/koprokdice/bet/koprok_dice_bet.png") -- return bg -- end) local DeskView = class("DeskView",cc.load("boyaa").mvc.BoyaaView); local BehaviorExtend = cc.load("boyaa").behavior.BehaviorExtend; BehaviorExtend(DeskView); f...
FrenchRP.addPlayerGesture = FrenchRP.stub{ name = "addPlayerGesture", description = "Add a player gesture to the FrenchRP animations menu (the one that opens with the keys weapon.). Note: This function must be called BOTH serverside AND clientside!", parameters = { { name = "anim", ...
-- function init() self.energyCost = config.getParameter("energyCost", 10) self.initialEnergyCost = config.getParameter("initialEnergyCost", self.energyCost) self.drainBoost = 0 end function update(args) -- if not self.specialLast and args.moves["special"] == 1 then tryActivate() end self.spec...
--@name cpuTime Example --@author INP - Radon + Sparky --@client -- This function helps us check if we can run. -- Use a mixture of quotaUsed() and quotaAverage() -- quotaUsed() returns the value of the current buffer. -- quotaAverage() gives the cpuTime average across the whole buffer. -- Your chip will throw an erro...
-- a version of pairs()-like iteration over a table, -- which doesn't leak a reference to the table itself. -- this can be useful to prevent unwanted modification to the table. -- next :: Table -> Maybe Key -> Maybe (Key, Value) local nextkey = next -- pairs :: Table -> Iterator (Key, Value) local f = function() retu...
local collisionFixtures = {} function init(b2worldProxy) end function loadMapObject(objectName, mapObject) end function getFixturesInterestedInCollisions() return collisionFixtures end function update() end function beginCollision(b2Contact) end function endCollision(b2Contact) end
--# Monster converted using Devm monster converter #-- local mType = Game.createMonsterType("Draken Elite") local monster = {} monster.description = "a draken elite" monster.experience = 4200 monster.outfit = { lookType = 362, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0...
--[[ Author: tochonement Email: tochonement@gmail.com 12.03.2021 --]] function gfconsole.show() if IsValid(gfconsole.frame) then return end gfconsole.frame = vgui.Create("GFConsole") end function gfconsole.reload_frame() local frame = gfconsole.frame if IsValid(frame) then fra...
return require('lib.oop.generated.timerdialog')
local ObjectManager = require("managers.object.object_manager") buff = ScreenPlay:new { numberOfActs = 1, questString = "buff", questdata = Object:new { activePlayerName = "initial", } } registerScreenPlay("buff", true) function buff:start() self:spawnActiveAreas() end function buff:spaw...
//----------------------------------------------------------------------------- // Name: CC_StringToChars // Desc: Converts a string or a single character into the appropriate character // codes, can output as a list of codes or a packet for the E-Gate. //------------------------------------------------------...
-------------------------------------------------------------------------------- -- 81-717 Moscow controller panel -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for add...
require 'torch' require 'image' require 'paths' require 'nn' require 'inn' require 'image' require 'xlua' require 'nn' require 'loadcaffe' local gp = require 'gpath' local nn_utils = {} nn_utils.mean = torch.Tensor({129.67, 114.43, 107.26}) nn_utils.nmean = nn_utils.mean:clone():div(255) ----------...
local exp_requirement_for_levelup={} for i=1,100 do exp_requirement_for_levelup[i]=200*i end local player=class() function player:ctor() self.class_name="player" self.name="angus" self.icon=nil self.money=2000 self.level=1 self.exp=0 self.story=0 self.ship=_ship[1].new() self.itembox={[...
local null_ls = require("null-ls") local helpers = require("null-ls.helpers") return helpers.make_builtin({ name = "sqlfluff", meta = { url = "https://github.com/sqlfluff/sqlfluff", description = "A SQL linter and auto-formatter for Humans", notes = { "SQLFluff needs a manda...
require "common/class" require "Entity" Camera = buildClass(Entity) function Camera:_init( ) Entity._init(self) -- auto-calculated values self.scale = 1 self.offset = {} self.offset.x = 0 self.offset.y = 0 self.width = 1 self.height = 1 self.subject = nil self.bound = {} self.bound.xmin = 0 s...
------------------------ -- Graphics functions. -- @util graphics local graphics = {} local lg = love.graphics -- http://love2d.org/forums/viewtopic.php?f=4&t=77599 function graphics.roundRectangle(mode, x, y, w, h, rd, s) local r, g, b, a = lg.getColor() local rd = rd or math.min(w, h)/4 local s = s or 32 local ...
-------------------------------------------------------------------------------- -- ZASM2 compatible syntax -------------------------------------------------------------------------------- -- Syntax lookup for vector definitions local VectorSyntax = { FLOAT = { {} }, SCALAR = { {} }, VECTOR1F = { {"x"} }...
ESX = nil local PlayerLoaded = false vip = false Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end PlayerLoaded = true ESX.PlayerData = ESX.GetPlayerData() end) RegisterNetEvent('esx:playerLoaded') AddEventHandler('esx:pla...
include("shared.lua") -- Define GM12 fonts for compatibility surface.CreateFont("DefaultBold", { font = "Tahoma", size = 13, weight = 1000 }) surface.CreateFont("TabLarge", { font = "Tahoma", size = 13, weight = 700, shadow = true, antialias = false }) surface.CreateFont("Trebuchet22", { font = "Trebuchet MS"...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by heyqule. --- DateTime: 9/6/2021 1:34 AM --- local Table = require('__stdlib__/stdlib/utils/table') local ErmConfig = require('__enemyracemanager__/lib/global_config') local ErmForceHelper = require('__enemyracemanager__/lib/helper/force_helper') ...
local image_component = { image_component = "image", load_image = function(self, name) self._image = love.graphics.newImage(name) self._image:setFilter("nearest", "nearest") end, draw_image = function(self, x, y) love.graphics.draw(self._image, x, y) end, image_width = function(self) return se...
-- Run this test with :source % local idx = 1 local cases = { { prompt = "Complete file: ", completion = "file", }, { prompt = "Complete cmd: ", completion = "command", }, { prompt = "Complete custom: ", completion = "custom,CustomComplete", }, { prompt = "Complete customlist:...
local function doTransformCoalBasins(cbPos) local tile = Position(cbPos):getTile() if tile then local thing = tile:getItemById(1485) if thing then thing:transform(1484) end end end local config = { [0] = 50015, [1] = 50016, [2] = 50017, [3] = 50018, [4] = 50019, coalBasins = { {x = 32214, y = 31850...
local LoginSelectRoleView = BaseClass() function LoginSelectRoleView:DefaultVar( ) require("Game/Login/LoginSceneBgView"):SetActive(true) return { UIConfig = { prefab_path = "Assets/AssetBundleRes/ui/login/LoginSelectRoleView.prefab", canvas_name = "Normal", components = { {UI.HideOtherView}, {UI....
function orcworg_OnCombat(pUnit, event) pUnit:RegisterEvent("orcworg_Transform",1000,0) end function orcworg_Transform(pUnit, event) if pUnit:GetHealthPct() < 45 then pUnit:RemoveEvents() pUnit:FullCastSpell(14202) pUnit:SetModel(11419) pUnit:SetScale(2) end end function orcworg_OnDied(pUnit, event) pUnit:Remove...
return { dice = { grims = 0, tomes = 0, bonus = 0 }, short_title = "", title_placement = "after", difficulty_levels = { "easy", "normal", "hard", "harder", "hardest", "survival_hard", "survival_harder", "survival_hardest" }, incompatible_with_all = false, com...
return {'aan','aanaarden','aanaarding','aanaardploeg','aanbakken','aanbaksel','aanbedene','aanbeeld','aanbeeldsblok','aanbehoren','aanbelanden','aanbelang','aanbelangen','aanbellen','aanbenen','aanberming','aanbesteden','aanbesteder','aanbesteding','aanbestedingsbeleid','aanbestedingsprocedure','aanbestedingsregel','aa...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local factory = require "game.rules.character.factory" return { actions = require "game.rules.character.actions", attributes = require "game.rules.character.attributes", ...
#!/usr/bin/env texlua -- Build script for "biblatex-ext" files -- Identify the bundle and module module = "biblatex-ext" unpackfiles = { } -- Install biblatex style files and use these as the sources installfiles = {"*.cbx", "*.bbx", "*.def", "*.sty", "blxextdoiapi.lua"} sourcefiles = installfiles typesetfiles = ...
-- Author : Bobby -- Create Date : 8/5/2012 4:28:09 PM BobsActionBars = BobbyCode:CreateFrame("BobsActionBarsFrame", UIParent); local UnitEventHandlers = {}; function BobsActionBars:Initialize() for eventname, _ in pairs(UnitEventHandlers) do BobsActionBars:RegisterEvent(eventname); end BobsActionBars:C...
----------------------------------------------------------------------------- -- configuration values which you can adjust according to your liking ----------------------------------------------------------------------------- -- set to false if you do not want to have any villages spawning mg_villages.ENABLE_VILLAGES =...
object_tangible_furniture_all_uber_desk_map_table = object_tangible_furniture_all_shared_uber_desk_map_table:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_uber_desk_map_table, "object/tangible/furniture/all/uber_desk_map_table.iff")
local Plugin = SS.Plugins:New("Block") // When player spawns function Plugin.PlayerSpawn(Player) Player:SetCollisionGroup(11) end Plugin:Create()
the_curse_of_agony_the_curse_modifier = class({}) function the_curse_of_agony_the_curse_modifier:OnCreated( kv ) self.duration = self:GetAbility():GetSpecialValueFor("duration") end function the_curse_of_agony_the_curse_modifier:GetState( kv ) self.duration = self:GetAbility(...
local example = {} example.title = "Slider" example.category = "Object Demonstrations" function example.func(loveframes, centerarea) local frame = loveframes.create("frame") frame:setName("Slider") frame:setSize(300, 275) frame:centerWithinArea(unpack(centerarea)) local slider1 = loveframes.create("slider", ...
local M = {} function M.get_colors() return require("catppuccin.core.color_palette") end return M
-- Note -- the prime factorization really needs to be made -- much more efficient. This is good enough for this problem -- but it lags far behind Python (sympy.factorint). -- -- It would help if the division only used prime numbers -- instead of trying every odd value -- -- I improved it in fermat2.lua which uses prim...
function love.load() math.randomseed(os.time()) highscores = {} love.graphics.setDefaultFilter("linear", "nearest") require "load.rpc" require "load.graphics" require "load.fonts" require "load.sounds" require "load.bgm" require "load.save" require "load.bigint" require "load.version" loadSave() require "f...
--ナチュル・レディバグ function c19605133.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(19605133,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetConditio...
depends_on("Dependency/5.6")
deepboof = {} local function log10(n) if math.log10 then return math.log10(n) else return math.log(n) / math.log(10) end end -- Converts the confusion matrix into an easy to parse string function deepboof.confusionToString( confusion ) confusion:updateValids() local str = {''} local ncla...
local skynet = require "skynet" local mt19937 = require "extlib.mt19937" skynet.start(function() -- random seed mt19937.init(tostring(os.time()):reverse():sub(1, 6)) -- random integer of range [1, 1000) for i = 1, 10 do print(mt19937.randi(1, 1000)) end -- random real of range [0, 1) ...
gl.setup(1024, 768) local interval = 5 local json = require "json" util.loaders.json = function(filename) return json.decode(resource.load_file(filename)) end util.auto_loader(_G) local stats = { function () bold:write(10, 150, "GSM", 150, 1,1,1,1) regular:write(10, 350, gsm.active_subscrib...
--- fs operations implemented with third-party tools for Windows platform abstractions. -- Download http://unxutils.sourceforge.net/ for Windows GNU utilities -- used by this module. local tools = {} local fs = require("luarocks.fs") local dir = require("luarocks.dir") local cfg = require("luarocks.core.cfg") local ...
local function test1() local function plus(a, b) return a + b end local function varargs(a, ...) return a + plus(...) end return varargs(1, 2, 3) == 6 end local function test2() local function varargs(a, b, ...) local i, j, k, l = a, b, ... return i + j + k + l ...
local K, _, L = unpack(KkthnxUI) local Module = K:GetModule("AurasTable") if K.Class ~= "ROGUE" then return end local list = { ["Player Aura"] = { -- 玩家光环组 { AuraID = 1784, UnitID = "player" }, -- 潜行 { AuraID = 115191, UnitID = "player" }, -- 潜行 { AuraID = 2983, UnitID = "player" }, -- 疾跑 { AuraID = 36554, ...
local bmp_exporter = require "bmp_exporter" local CHIP_PICTURE_DEFS = {} local NUM_COLORS_PER_PALETTE = 16 function convert_gba_to_argb(gba_color) local red = bit.lshift(bit.band(gba_color, 31), 3) local green = bit.lshift(bit.band(bit.rshift(gba_color, 5), 31), 3) local blue = bit.lshift(bit.band(bit.rs...
local Settings = { --Should the scoreboard draw wanted level? ["WantedStars"] = false, --Should the scoreboard draw player ID? ["PlayerID"] = true, --Should the scoreboard draw voice indicator? ["VoiceIndicator"] = true, --Display time in milliseconds ["DisplayTime"] = 5000, --Keys that will a...
turtles = {} local modpath = minetest.get_modpath("turtle") -- Database handler (for turtles and floppies) dofile(modpath .. "/db.lua") -- Initial computer state: bootloader dofile(modpath .. "/computer_memory.lua") -- Data for the forth floppy, created from forth.fth file by f.py dofile(modpath .. "/forth_floppy.l...
local row_mgmt = system_load("wm.lua")() -- 'mini-WM' system_load("cells/shared/base.lua")() -- basic interface for a cell return function(anchor, conf) local ctx = row_mgmt(anchor, conf) ctx:add_cell_type("cli", system_load("cells/cli.lua")()) ctx:add_cell_type("terminal", system_load("cel...
------------------------------------------------- -- Controller hints/input handler for ConsolePort ------------------------------------------------- -- This file manages support for controller input -- using ConsolePort, providing input handler and -- displaying on-screen hints. --------------------------------------...
-- -- hammerspoon.lua -- hammerspoon basic keybindings -- local helpers = require("helpers") local hyper = require("modules.hyper") -- ============================================================================= -- Definitions -- ============================================================================= -- reloa...
-- Helper module for 200_to_210 migration operations. -- -- Operations are versioned and specific to a migration so they remain -- fixed in time and are not modified for use in future migrations. -- -- If you want to reuse these operations in a future migration, -- copy the functions over to a new versioned module. l...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterServerCallback('esx_roubarnpc:giveMoney', function(source, callback) local xPlayer = ESX.GetPlayerFromId(source) local money = math.random(Config.MinMoney, Config.MaxMoney) xPlayer.addMoney(money) callback(money) en...
local require = using("BodyEditor.Script") local CCScene = require("CCScene") local oVec2 = require("oVec2") local oContent = require("oContent") local CCScheduler = require("CCScheduler") local oWorld = require("oWorld") local CCDirector = require("CCDirector") local CCNode = require("CCNode") local CCMenu = require("...
-- Copyright (c) Jérémie N'gadi -- -- All rights reserved. -- -- Even if 'All rights reserved' is very clear : -- -- You shall not use any piece of this software in a commercial product / service -- You shall not resell this software -- You shall not provide any facility to install this particular software in a c...
--scripts/modtools/transform-unit.lua --author expwnent --based on shapechange by Putnam --[[=begin modtools/transform-unit ======================= Transforms a unit into another unit type, possibly permanently. Warning: this will crash arena mode if you view the unit on the same tick that it transforms. If ...
function onCreate() -- background shit makeLuaSprite('black', 'black', -600, -300); setScrollFactor('black', 0.9, 0.9); addLuaSprite('black', false); close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage end
object_tangible_food_spice_spice_yarrock_01 = object_tangible_food_spice_shared_spice_yarrock_01:new { } ObjectTemplates:addTemplate(object_tangible_food_spice_spice_yarrock_01, "object/tangible/food/spice/spice_yarrock_01.iff")
--[[ Copyright (c) 2019 igor725, scaledteam released under The MIT license http://opensource.org/licenses/MIT ]] local sc = { global = true } function sc:load() registerSvPacket(0x1A, '>bbc64hhhhhhhhhh') registerSvPacket(0x1B, 'bb') end function sc:create(player, id, label, p1, p2, r, g, b, a) if not player:is...
-- not sure how to approach this local m = {} m.data = { ["CVarDocumentation.lua"] = { GetCVar = {ParamType = "Arguments", Index = 1, Type = "CVar"}, GetCVarBitfield = {ParamType = "Arguments", Index = 1, Type = "CVar"}, GetCVarBool = {ParamType = "Arguments", Index = 1, Type = "CVar"}, GetCVarDefault = {Para...
--[[ Copyright (c) 2014 Francisco Zamora-Martinez (pakozm@gmail.com) 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 ...
--- Secure wrapper for raw cdata buffers. -- -- Note: This is very experimental. -- -- See `RawBuffer`. -- -- @module dslib:raw_buffer -- TODO: fill, memcpy, memmove, write_and_append_buf -- TODO: string buffers (read and copy from) -- TODO: fixed-size buffer with faster, non-atomar functions local load_vars = ... l...
local t = ...; assert( type(t) == "table" ); return t .. { InitCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'InitCommand'); MissCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'MissCommand'); NoneCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'NoneCommand'); HitMineCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'HitMineC...
function apply_target(keys) local caster = keys.caster local modifier = "berserker_ignite_target" local ability = keys.ability local level = (ability:GetLevel()-1) local duration_d = ability:GetLevelSpecialValueFor("duration_target", level) local target = keys.target ability:ApplyDataDrivenModifier(caster, targ...
--Designed by Donrskbb-- Config = {} Config.Locale = 'en' --EN is the Dutch Translated Version. Would you like the English Version,replace the EN with EN-EN version and rename it-- Config.green = 56108 Config.grey = 8421504 Config.red = 16711680 Config.orange ...
--------------------------------------------------------------------------- -- DPI detection code. -- --------------------------------------------------------------------------- local capi = {screen = screen} local gtable = require("gears.table") local grect = re...
if AkDebugLoad then print("[#Start] Loading ak.data.AkSlotNamesParser ...") end local SlotNamesParser = {} local function isModuleAvailable(name) if package.loaded[name] then return true else for _, searcher in ipairs(package.searchers) do local loader = searcher(name) i...
local local0 = 0.3 local local1 = 0.3 - local0 local local2 = 0.3 - local0 local local3 = 0.3 - local0 local local4 = 0.3 - local0 local local5 = 3.4 - local0 local local6 = 0.3 - local0 local local7 = 4.2 - local0 local local8 = 0.3 - local0 local local9 = 0.3 - local0 local local10 = 0.3 - local0 local local11 = 6.6 ...
Variable = class() function Variable:GetValue() return -1; end function Variable:GetMinValue() return 0; end function Variable:GetMaxValue() return -1; end function Variable:OnActivate(variableId) --Debug.Log(variableId); --if( self.VariableRequestBusHandler == nil ) then -- self.VariableRequestBusHandler = ...
----------------------------------- -- -- Zone: Ship bound for Selbina Pirates (227) -- ----------------------------------- local ID = require("scripts/zones/Ship_bound_for_Selbina_Pirates/IDs") require("scripts/globals/zone") ----------------------------------- function onInitialize(zone) end function onZoneIn(pla...
return { joiner_marker = '■', joiner_marker_substitute = '■', feat_marker = '│', feat_marker_substitute = '│' }
local hop = Instance.new("HopperBin") script.Parent = hop for i, v in pairs(game:service("Players").LocalPlayer.Backpack:children()) do if v.className == "HopperBin" and v.Name == "Spanner" then v:remove() end end bin = Instance.new("HopperBin") bin.Name = "Spanner" bin.Parent = game:service("Players").LocalP...
--[[----------------------------------------------------------------------- * | Copyright (C) Shaobo Wan (Tinywan) * |------------------------------------------------------------------------ * | Author: Tinywan * | Date Time : 2019/5/28 16:25 * | Email: Overcome.wan@Gmail.com * |-----------------------------...
return { id = "FUYINGYINGHUA3", mode = 2, once = true, fadeType = 1, fadein = 1.5, scripts = { { expression = 4, side = 2, actor = 306070, nameColor = "#a9f548", dir = 1, say = "诸位,请留步。", bgm = "story-4", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'ESX Borrmaskin' server_scripts { 'server/main.lua' } client_scripts { 'client/main.lua' }
VIRUS.Name = "Malaria" VIRUS.Chance = 60 VIRUS.Infectious = true VIRUS.Nausea = true VIRUS.Vomiting = true VIRUS.Diarrhea = true VIRUS.Weakness = true VIRUS.Cold = true
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/blues_pharm/book.mdl") self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) local physics = self:GetPhysicsObject() if (physics:IsValid...
local map = vim.api.nvim_set_keymap map('n', '<Space>cf', '<cmd>Clap files<cr>', { noremap = true, silent = true }) map('n', '<Space>cg', '<cmd>Clap grep<cr>', { noremap = true, silent = true }) map('n', '<Space>cd', '<cmd>Clap grep ++query=<cword><cr>', { noremap = true, silent = true }) map('n', '<Space>cb', '<cmd>C...
-- -- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved. -- -- Code, data for a expandable (horizontally) titlebar -- -- Broken off from interface_util.lua for better encapsulation -- fnSetSize for a TitleBar's Skin. Pulled out so its -- implementation could be properly shared (refcounted) among ...
-------------------------------- -- @module EventKeyboard -- @extend Event -- @parent_module cc -------------------------------- -- Constructor.<br> -- param keyCode A given keycode.<br> -- param isPressed True if the key is pressed.<br> -- js ctor -- @function [parent=#EventKeyboard] EventKeyboard -- @param self -...
local filter = EasyDestroyFilterCriteria:New("Ignore BOE Items By Quality", "boequality", 65) function filter:GetItemInfo(itemLink, bag, slot) local itemLoc = ItemLocation:CreateFromBagAndSlot(bag, slot) local isBound = C_Item.IsBound(itemLoc) return isBound end -- There's no reason a filter should show u...
-- -- Created by IntelliJ IDEA. -- User: kavraham -- Date: 2/9/2016 -- Time: 9:56 AM -- To change this template use File | Settings | File Templates. -- local windowsOS = {} local _helper = require('pluginHelper') local apacheProperties = {} local apache_exe_path = nil local apache_root_directory = nil local serverVe...
Network:Subscribe( 'DamageObject', function( WNO, sender ) if not sender or not IsValid( sender ) then return end if not WNO or not IsValid( WNO ) then return end local obj = IM.items_id[WNO:GetId()] if not obj then return end -- if you tracked player ammo server side, you would do -- an ammo check here to v...
-- -- MobDebug -- Lua remote debugger -- Copyright 2011-15 Paul Kulchenko -- Based on RemDebug 1.0 Copyright Kepler Project 2005 -- -- use loaded modules or load explicitly on those systems that require that local require = require local io = io or require "io" local table = table or require "table" local string = str...
local class = require 'class' local greedy = class('GreedyPolicy') function greedy:__init(params) self.net = params.net self.actionDim = params.actionDim end function greedy:evaluate() self.net:evaluate() end function greedy:training() self.net:training() end function greedy:action(obs) local q = self.ne...
local options = { backup = false, clipboard = "unnamedplus", cmdheight = 2, completeopt = { "menu", "menuone", "noselect", "noinsert" }, conceallevel = 0, fileencoding = "utf-8", hlsearch = true, ignorecase = true, mouse = "a", pumheight = 10, showmode = false, showtablin...
local Suite=CreateTestSuite("wow/api/Frame"); function Suite:TestCreateFrame() assert(CreateFrame("Frame"), "CreateFrame must return a value for valid frame types"); Assert.Exception("CreateFrame must throw on zero-args", CreateFrame); Assert.Exception("CreateFrame must throw on unknown type", CreateFrame, "unknown...
--- @module DragUI 枪械模块:拖动UI --- @copyright Lilith Games, Avatar Team --- @author RopzTao local DragUI, this = {}, nil ---屏幕参数 local VPX, VPY, X_2000, Y_1000, PixelX, PixelY = nil, nil, nil, nil, nil, nil ---UIanchors的x和y值 local function AnchorsXY(_tarUI) return Vector2(_tarUI.AnchorsX.x, _tarUI.AnchorsY.y) end ...
-- -- main.lua -- Main entry-point for the file. -- -- ======================== -- -- GLOBAL LIBRARIES/CLASSES -- -- ======================== Class = require('vendor/nomoon/class') Set = require('vendor/nomoon/set') JSON = require('vendor/dkjson') SLAXML = require('vendor/slaxml/slaxdom') Sfxr = require('...
XYZParty.Core.Parties = XYZParty.Core.Parties or {} XYZParty.Core.Passwords = XYZParty.Core.Passwords or {} hook.Add("PlayerSay", "xyz_party_chat_command", function(ply, msg) if string.lower(msg) == "!party" then if not table.HasValue(XYZShit.Jobs.Government.Police, ply:Team()) then net.Start("xyz_party_open") ...
local class = require "utils.class" local M = class(); function M:_init_(duration) self.duration = duration or 0; self.timeout_tick = nil; self.last_timeout_tick = nil; end function M:Serialize() return {self.timeout_tick} end function M:DeSerialize(data) self.timeout_tick = data[1] end functi...
return function(player) return Def.ActorFrame { LoadFont("Common Normal") .. { InitCommand=cmd(x,-35;y,5;horizalign,left); ComboCommand=function(self, param) local oldMaxCombo = tonumber(string.match( self:GetText(),"%d+")) or 0 local newMaxCombo = pa...
function fact(x) if x <= 1 then return 1 else return x * fact(x - 1) end end print(fact(5))
--[[ Boss - Priestess Delrissa Adds AI.lua This script was written and is protected by the GPL v2. This script was released by BrantX of the Blua Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation commUnity. ~~End of License Agreement -- Azolex, ...
-- cutitout: automatically cut silence from videos -- Copyright (C) 2020 Wolf Clement -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published -- by the Free Software Foundation, either version 3 of the License, or -- (at your o...
-- arcify -- test script -- -- go to the PARAMS page to assign -- params to your Arc engine.name = "TestSine" -- create Arcify class and arcify object Amotion = include("lib/amotion") function init () params:add_number("demo_param", "Demo Param", 0, 100, 50) local amotion = Amotion.new() end
local mod = RegisterMod("StageAPI", 1) --[[ FUNCTIONALITY Basic Features: Commands: cstage or customstage <StageName> -- Warps to new stage. nstage or nextstage -- Warps to next stage. extraroom <ExtraRoomName> -- Warps to extra room extraroomexit -- Cleanly exits extra room to previous room. creseed -- Akin to rese...