content
stringlengths
5
1.05M
---- -*- Mode: Lua; -*- ---- ---- throw.lua ---- ---- AUTHOR: Jamie A. Jennings local co = require "coroutine" function catch(f, ...) local c = co.create(f) local results = { co.resume(c, ...) } if results[1] then -- no errors ...
function StageSelectScene_CB(itemtag, toplayer, toptag, sublayertag, selgrouptag, selitemtag, dataindex) if sublayertag == CCSTL_Debug then return Debug_AddReloadMenu_Callback(selitemtag, toplayer, toptag); -- Main menu elseif sublayertag == CCSSSTL_Menu then if selgrouptag == CCSSSTM_Menu_Main then ...
type array = { any } local function map(tbl: array, callback: (any, number?, array?) -> (any)): array local new_tbl = table.create(#tbl) for index, value in ipairs(tbl) do table.insert(new_tbl, callback(value, index, tbl)) end return new_tbl end return map
local brute = require "brute" local creds = require "creds" local shortport = require "shortport" local stdnse = require "stdnse" local rsync = stdnse.silent_require "rsync" description = [[ Performs brute force password auditing against the rsync remote file syncing protocol. ]] --- -- @usage -- nmap -p 873 --scrip...
function onCreate() -- background shit makeLuaSprite('lolbackground', 'lolbackground', -600, -300); setLuaSpriteScrollFactor('lolbackground', 0.9, 0.9); makeLuaSprite('lolstagefront', 'lolstagefront', -650, 600); setLuaSpriteScrollFactor('lolstagefront', 0.9, 0.9); scaleObject('lolstagefront', 1.1, 1.1);...
function table_find (tbl, index, value) for i, v in ipairs (tbl) do if v[index] == value then return i; end end end
--機械天使の絶対儀式 bustrix function c84327330.initial_effect(c) --indestrutible local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(2,84327330) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetValue(1) c:RegisterEffect(e1) ...
function doSilence(target, rounds, effect, check) --Sistema de 'Silence' if not isCreature(target) then return true end if getPlayerStorageValue(target, 21099) >= 1 then return true end --reflect if getPlayerStorageValue(target, 32698) >= 1 and rounds ~= -1 then return true end if check and check ~= getPlayer...
PLUGIN.name = "ArcCW compatibility" PLUGIN.author = "STEAM_0:1:29606990" PLUGIN.description = "" if (!ArcCW) then return end -- ProcessNPCSmoke very expensive on MP servers PLUGIN.ProcessNPCSmoke = false local pairs, ipairs, net = pairs, ipairs, net ix.arccw_support = ix.arccw_support or {} ix.arccw_support.free_at...
--- @module TextEditor -- A multiline text editor -- @option retval string Text content -- @option caption string -- @option pad number Padding between text and the textbox's edges -- @option color string|table A color preset -- @option captionBg string|table A color preset -- @option bg string|table A color preset -- ...
-- The chat and UI colors EventSystem.Config.Color = Color(155, 0, 255) -- Chat command to open event menu EventSystem.Config.EventCommand = { ["!event"] = true, ["!gamemaster"] = true, ["!gm"] = true, } EventSystem.Config.TeamNames = { "Odin", "Thor", "Loki", "Frigg", "Sif", "Idunn", "Balder", "Forseti", ...
data:extend( { { type = "technology", name = "electric-trains", icon = "__theMod__/graphics/icons/e-train.png", effects = { { type = "unlock-recipe", recipe = "e-train" }, }, prerequisites = {"rail-signals"}, unit = { count = 200, ...
--%%name="API1" function QuickApp:test2() setTimeout(function() self:debug("Async2") os.exit() end,0) self:debug("C") fibaro.getValue(3,"value") self:debug("D") end function QuickApp:onInit() setTimeout(function() self:debug("Async1") self:test2() end,0) self:debug("A") api.get("/devices/3") self:de...
local testname = ... project(testname) kind "ConsoleApp" language "C" debugdir "../.." debugcommand "%{cfg.buildtarget.directory}../../../bin/%{cfg.buildtarget.name}" includedirs "../PGTA/include" links "PGTALib" defines { "SDL_MAIN_HANDLED", "_REENTRANT" } file...
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ return function(loveframes) ---------- module start ---------- -- closebutton class local newobject = loveframes.newObject(...
return require("on_failed")
MenuState = GameState:new() function MenuState:getName() return 'menu' end function MenuState:update(dt) Background:update(dt) Menu:update(dt) AI:update(dt) end function MenuState:draw() Menu:draw() Coins:draw() AI:draw() end function MenuState:onMousePressed(mousePosition) if Menu.p...
object_draft_schematic_instrument_instrument_downey_box = object_draft_schematic_instrument_shared_instrument_downey_box:new { } ObjectTemplates:addTemplate(object_draft_schematic_instrument_instrument_downey_box, "object/draft_schematic/instrument/instrument_downey_box.iff")
object_tangible_borrie_wall_cave_rock_damp_wall = object_tangible_borrie_wall_shared_cave_rock_damp_wall:new { } ObjectTemplates:addTemplate(object_tangible_borrie_wall_cave_rock_damp_wall, "object/tangible/borrie/wall/cave_rock_damp_wall.iff")
if nil ~= require then require "fritomod/OOP-Class"; require "fritomod/StateDispatcher"; require "fritomod/Monitor"; require "fritomod/Metatables-StyleClient"; require "fritomod/currying"; require "fritomod/Callbacks"; require "fritomod/CombatObjects-Spell"; require "fritomod/Lists"; require "fritomod/UI-Icon"...
require("common/uiFactory"); require("uiex/urlImage"); require("core/constants"); math.randomseed(tostring(os.time()):reverse():sub(1, 10)) --@kellyLiu --飘雪效果 AnimSnow = class(); AnimSnow.ctor = function(self) self.updateCount = 0; self.m_snows = {}; end AnimSnow.dtor = function(self) --...
local it = require("iptool") -- validate_ip() -- return: bool print(it.validate_ip("192.168.51.20")) -- true print(it.validate_ip("192.168.10.0/24")) -- true print(it.validate_ip("192.168.380.0/24")) -- false print(it.validate_ip("192.168.10.0/36")) -- false print(it.validate_ip("wrongip")) -...
local menu = menu local sw,sh = ScrW(),ScrH() local w,h = 600, 420 local x,y = sw / 2 - w / 2, sh / 2 - h / 2 function OpenFactionsMenu() if (!IsValid(menu)) then menu = vgui.Create("DFrame") menu:SetSize(w,h) menu:SetTitle("Faction Menu") menu:SetDraggable(true) menu:SetDeleteOnClose(false) menu:MakeP...
local cmd = vim.cmd local o_s = vim.o local map_key = vim.api.nvim_set_keymap local del_key = vim.api.nvim_del_keymap local function opt(o, v, scopes) scopes = scopes or {o_s} for _, s in ipairs(scopes) do s[o] = v end end local function map(modes, lhs, rhs, opts, desc) desc = desc or rhs opts = opts or...
-- vim: ts=4 sw=4 noet ai cindent syntax=lua function conky_hello_world() return "Hello world!" end
local U = require "togo.utility" local P = require "Pickle" local M = require "core/Section" local function grid_class(grid_modifier, grid_width, heading_fix) if grid_width < 10 then grid_width = grid_width * 10 end return string.format( "%sgrid-%s grid-%s", heading_fix and ("heading-fix ") or "", grid_mod...
require("bin.gstate") bgc = 0255, 0, 0 bstate = Gstate.New("Battle state") function bstate.load() end function bstate.update(dt) end function bstate.draw() love.graphics.setBackgroundColor(bgc, 128) end
local Macros = require("rrpgMacros.dlua"); -- Macros code local ataqText = "local indice = tonumber(arg[1]);local texto = \"\";local filter = arg[2];local personagem = sheet;if filter == \"all\" or filter == \"pc\" or filter == \"pcOnline\" or filter==\"npc\" then personagem = getCharacterSheet(chooseCharacter(\"Qual ...
minetest.register_on_mods_loaded(function() --TODO: this shouldn't work... (removing items while in the ipairs loop) -- disable various abm's for i, abm in ipairs(minetest.registered_abms) do if abm.mod_origin == "default" then table.remove(minetest.registered_abms, i) elseif abm.mod_origin == "farming" the...
local __exports = LibStub:NewLibrary("ovale/GUID", 80000) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local __Debug = LibStub:GetLibrary("ovale/Debug") local OvaleDebug = __Debug.OvaleDebug local __Ovale = LibStub:GetLibrary("ovale/Ovale") local Ovale = __Ovale.Ovale local aceE...
--- === plugins.core.tangent.manager.named === --- --- Provides common functions for 'named' Tangent nodes --- --- Tables with `named` in it's metatable chain will have `name` methods added --- as described below. local require = require -- local log = require "hs.logger" .new "named" local c...
local spec = require 'spec.spec' local cjson = require 'cjson' describe("xml-to-json", function() it("transforms an xml response into json, sets the appropiate content-type header", function() local backend_xml = '<list><a foo="bar">hello</a><b foo="bar">bye</b></list>' local xml_to_json = spec.middlewa...
require("freedesktop.utils") require("freedesktop.menu") require("freedesktop.desktop") module("freedesktop")
-- implements MPD commands local stack_lib = require'resty.mpd.stack' local unpack = unpack or table.unpack local insert = table.insert local commands = {} commands.__index = commands -- captures: errnum, linenum, cmd, msg local MPD_ERROR_PATTERN = '^ACK %[([^@]+)@([^%]]+)%] %{([^%}]*)%} ([^\n]+)' local replay_gain_m...
--[[ 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 configs = require 'lspconfig/configs' local util = require 'lspconfig/util' configs.solang = { default_config = { cmd = { 'solang', '--language-server' }, filetypes = { 'solidity' }, root_dir = util.root_pattern '.git', }, docs = { description = [[ Solang provides the following: See [docs]...
-- Require statements local ReplicatedStorage = game:GetService("ReplicatedStorage") local Resources = require(ReplicatedStorage:WaitForChild("Resources")) local Color = Resources:LoadLibrary("Color") local PseudoInstance = Resources:LoadLibrary("PseudoInstance") local GroupService = game:GetService("GroupService") lo...
package.path = package.path..";../?.lua" local ffi = require("ffi") local bit = require("bit") local band = bit.band local lshift, rshift = bit.lshift, bit.rshift local pixman = require("pixman")() local pixlib = pixman.Lib_pixman; local ENUM = ffi.C local utils = require("utils") local save_image = utils.save_image;...
function remote_init(manufacturer, model) -- defining control surface items local items = { -- 1 {name="Custom Knob 1", input="value", output="value", min=0, max=127}, {name="Custom Knob 2", input="value", output="value", min=0, max=127}, {name="Custom Knob 3", input="value", output="value", min=0, max=127},...
local wgu = require("webgate/jwt-util") local jwt = require "luajwt" local cjson = require "cjson" local template = require "resty.template" function table_dump(o) if type(o) == 'table' then local s = '{ ' for k,v in pairs(o) do if type(k) ~= 'number' then k = '"'..k..'"' end s = s .. '['..k..'...
if mods["bobwarfare"] then data.raw["artillery-turret"]["bob-artillery-turret-2"].localised_name = {"override-item-name.bob-artillery-turret-2"} data.raw["artillery-turret"]["bob-artillery-turret-3"].localised_name = {"override-item-name.bob-artillery-turret-3"} data.raw.item["bob-artillery-turret-2"].localised_name...
-- implementation based on tercom v6 perl ----------------------- DEFAULT PARAMETERS ----------------------- -- standard costs local MATCH_COST = 0 local INSERT_COST = 1 local DELETE_COST = 1 local SUB_COST = 1 local SHIFT_COST = 1 -- Super high value used to mark an impossible path local INF = 99999999999 -- Maxim...
local jailPoints = { {1535.93, -1670.89, 13, "LS1"}, {638.95, -571.69, 15.81, "LS2"}, {-2166.05, -2390.38, 30.04, "LS3"}, {-1606.34, 724.44, 11.53, "SF1"}, {-1402.04, 2637.7, 55.25, "SF2"}, {2290.46, 2416.55, 10.3, "LV1"}, {-208.63, 978.9, 18.73, "LV2"} } local timing = {} local prisoners = {} local count = 0 local cou...
-- AnimatedStatusBarTest: core -- zork, 2016 ----------------------------- -- Local Variables ----------------------------- local A, L = ... local mediapath = "interface\\addons\\"..A.."\\media\\" ----------------------------- -- Init ----------------------------- local function Round(number, decimals) return (...
local solidown=Class{} solidown:include(gt_widget) function solidown:init(editor, x, y, id) gt_widget.init(self, editor, x, y, id, "make object more transparent") self.weight=5 self:add_button(editor, "solidown.png") end function solidown:mouse_pressed(editor) editor.sys.map.objects[editor.selected.e...
return { version = "1.5", luaversion = "5.1", tiledversion = "1.5.0", orientation = "orthogonal", renderorder = "right-down", width = 270, height = 132, tilewidth = 32, tileheight = 32, nextlayerid = 21, nextobjectid = 158, properties = {}, tilesets = { { name = "MineColor2@64x64", ...
txd = engineLoadTXD("turismo.txd") engineImportTXD(txd, 451) dff = engineLoadDFF("turismo.dff", 451) engineReplaceModel(dff, 451)
--[[ Name: sv_needs.lua For: TalosLife By: TalosLife ]]-- GM.Needs = (GAMEMODE or GM).Needs or {} GM.Needs.m_tblNeeds = (GAMEMODE or GM).Needs.m_tblNeeds or {} function GM.Needs:Initialize() self:RegisterNeed( "Hunger", "You died of hunger!", "You are dying of hunger!", 500, 2, 1, 50 ) self:RegisterNeed( "Thirs...
---- -- @file JsonJLIBuilder ---- Brief description. -- <#Description#> -- @return <#return value description#> function JsonJLIBuilder:calculateSerializeBufferSize() end ---- Brief description. -- @author James Folk, 16-02-11 15:02:22 -- <#Description#> -- @param dataBuffer <#dataBuffer description#> -- @param btS...
-- this file gets called on crash! -- do recovery/dump in here. OnLoad = function() print( "crash.lua -- onload\n" ); print( "\n" ); print( "Something went horribly wrong.\n" ); print( "Sorry.\n" ); end
PLUGIN.name = "Container Item Spawner" PLUGIN.author = "gumlefar" PLUGIN.desc = "Spawns items in containers." ix.config.Add("containerSpawnChanceFlat", 1, "How many percent to spawn with zero players on the server.", nil, { data = {min = 0, max = 100}, category = "Containers" }) ix.config.Add("containerSpawnChanceS...
if not vRP.modules.survival then return end local Luang = module("vrp", "lib/Luang") local Survival = class("Survival", vRP.Extension) function Survival:__construct() vRP.Extension.__construct(self) self.in_coma = false -- flag self.coma_left = vRP.cfg.coma_max_duration*60 -- seconds self.luang = Luang() ...
local AM = luajava.bindClass("com.theincgi.advancedMacros.AdvancedMacros") local mc = AM:getMinecraft() hackGUI = hackGUI or {} local drawn = 20 if NO_FALL or FLY_ENABLE then if hackGUI.nofall then hackGUI.nofall.disableDraw() end hackGUI.nofall = hud2D.newText("NoFall", 5, drawn) hackGUI.nof...
local punishlist = { } local sx, sy = guiGetScreenSize( ) window = guiCreateWindow( ( sx / 2 - 759 / 2 ), ( sy / 2 - 455 / 2 ), 759, 455, "My Punishments", false) guiWindowSetSizable(window, false) window.visible = false tabpanel = guiCreateTabPanel(10, 27, 739, 370, false, window) tab1 = guiCreateTab("Punishments b...
local _test = clnn._test local times = _test.times local clnntest = _test.clnntest local x_clnntest = _test.x_clnntest local nloop = _test.nloop local precision_forward = 0.01 local precision_backward = 0.01 function clnntest.LookupTable_forward() local nVocab = 10000 local nDim = 100 local nInput = 1000 ...
local af = Def.ActorFrame{} af[#af+1] = LoadActor("./bg.png")..{ InitCommand=function(self) self:diffuse(0,0,0,0) end, ShowCommand=function(self) self:smooth(2):diffuse(1,1,1,1) end, FadeOutCommand=function(self) self:visible(false) end } af[#af+1] = LoadActor("./topbar.png")..{ InitCommand=function(self) self:di...
-- lua script can use variables, strings append methods -- is better than txt config files a = "common_value" is_on_platform_windows=(package.config:sub(1,1)=="\\") -- in c code, if we give luaL_dofile() a relative path, then the -- path_directory_current_script is a relative path, not abspath. path_directory_current...
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. local async = require 'lualine.utils.async' local utils = require 'lualine.utils.utils' local highlight = require 'lualine.highlight' -- variable to store git diff stats local git_diff = nil -- accumulates async output to process in ...
require("librotate") rc = rotate("abc",nil) os.exit(rc)
--Lua 网络 --使用示例,网络先要知道结构,知道发送的命令字和push消息的命令字 --[[ local login=skdProtocols():qryIdProtocol(skdCmds().JSQY_LG_USR_LOGIN);--获取结构 login.m_nProtocolVersion=20111017;--修改数据 login.m_szName="name"; login.m_szPwd="pass"; login.m_szServer="szServer"; local function logincallback(cmdid,data) --回调函数 if (cmdid==skdCmds().JSQ...
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Diff LPeg lexer. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) -- Text, separators, and file headers. local index = token(l.COMMENT, '...
--[[ Name: drugs_tobacco.lua For: TalosLife By: TalosLife ]]-- local Item = {} Item.Name = "Cigarettes" Item.Desc = "A pack of cigarettes" Item.Type = "type_drugs" Item.Model = "models/boxopencigshib.mdl" Item.Weight = 1 Item.Volume = 1 Item.CanDrop = true Item.CanUse = true Item.Illegal = true Item.LimitID = "ciga...
-- Example plugin that demonstrates the objects available to a -- plugin, as well as the methods that a plugin should make use -- of -- Adding methods and properties to the repl object adds them to -- the REPL object loading the plugin. If such a method or property -- already exists, the current plugin will fail to l...
measure = {"m\(^3\)","dm\(^3\)","cm\(^3\)","mm\(^3\)"} numb = {0, 0, 0, 0} ind1 = math.random(3) ind2 = ind1 + math.random(4 - ind1) max = ind2 - ind1 + 1 if (max == 4) then ind2 = ind2 - 1 max = max - 1 end factor = math.random(30) value = 0 for i = ind1,ind2 do if(i == ind1) then numb[i] = mat...
local base64 = require "base64" local bin = require "bin" local http = require "http" local match = require "match" local nmap = require "nmap" local package = require "package" local stdnse = require "stdnse" local table = require "table" local url = require "url" _ENV = stdnse.module("ajp", stdnse.seeall) --- -- A b...
local Stretcher = Class(function(self, inst) self.inst = inst self.target = nil self.restinglength = 1 self.widthratio = 1 end) function Stretcher:SetRestingLength(length) self.restinglength = length end function Stretcher:SetWidthRatio(ratio) self.widthratio = ratio end function Stretcher:Se...
local fade = {} function fade.draw() if fade.state then love.graphics.setColor(0,0,0, fade.alpha) love.graphics.rectangle("fill", 0, 0, window.w, window.h) love.graphics.setColor(255,255,255,255) end end function fade.start_fade(state, time, gui_based) local tween, target fade.state = state if...
--------------------------------------------------- -- Abyssal Drain -- Deals dark damage to a single target. Additional effect: Drain -- Type: Magical -- Utsusemi/Blink absorb: 1 shadow -- Range: Melee --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/sta...
require "resty.nettle.types.ecdsa" local random = require "resty.nettle.random" local hogweed = require "resty.nettle.hogweed" local dsa = require "resty.nettle.dsa" local ecc = require "resty.nettle.ecc" local setmetatable = setmetatable local sig = dsa.signature.new() local keypair = {} function keypair.new(c) ...
local quote_sql_str = ngx.quote_sql_str local Property = require('orm.class.property') _G.asc = Property({ parse = function (self) return "`" .. self.__table__ .. "`.`" .. self.colname .. "` ASC" end }) _G.desc = Property({ parse = function (self) return "`" .. self.__table__ ...
PFH_DB_BOSSES = { [9736] = { name = "Quartermaster Zigris" }, [10596] = { name = "Mother Smolderweb" }, [11982] = { name = "Magmadar" }, [11988] = { name = "Golemagg the Incinerator" }, [12017] = { name = "Broodlord Lashlayer" }, [12098] = { name = "Sulfuron Harbinger" }, [12435] = { name =...
include '../utils/shortcut.lua' local ReplaceConllxField = {} function ReplaceConllxField.replace(infile, outfile, index, value) local fin = io.open(infile) local fout = io.open(outfile, 'w') while true do local line = fin:read() if line == nil then break end line = line:trim() if line:len() ~=...
Macro { area="Shell"; key="CtrlIns"; flags="EmptyCommandLine NoPluginPanels"; description="If CtrlIns was pressed while on .. and command line is empty then copy to clipboard the path of the current folder"; action = function() if APanel.Bof and not APanel.Selected and not APanel.Root then Keys('F7 CtrlShift[ Ctrl...
--[[ This required script returns a table of functions for use in another script. --]] local API = {} function API.GetEaseInValue(t, value) t = t^value return t end function API.GetEaseOutValue(t, value) t = t^value return t end function API.GetSCurveValue(t, value) t = (t^value)/((t^value) +((1-t)^value)) ...
module:set_global(); local loggingmanager = require "core.loggingmanager"; local format = require "util.format".format; local pposix = require "util.pposix"; local rb = require "util.ringbuffer"; local queue = require "util.queue"; local default_timestamp = "%b %d %H:%M:%S "; local max_chunk_size = module:get_option_...
-- Copyright © 2016 Silv3r <silv3r@openmailbox.org> -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICENSE file for more details. name = "Leveling: Route 7 (near Celadon)" author = ...
-- -- User: hybridtupel -- Date: 14.05.16 -- Time: 15:00 -- function fibonacci() local m = 1 local n = 1 while true do coroutine.yield(m) m, n = n, m + n end end generator = coroutine.create(fibonacci) for i = 1, 10 do succeeded, value = coroutine.resume(generator) print(valu...
--Sky texture code / Ported from BeardLib. core:import("CoreClass") core:import("CoreEnvironmentHandler") core:import("CoreEnvironmentFeeder") core:module("CoreEnvironmentManager") EnvironmentManager = EnvironmentManager or CoreClass.class() Hooks:PostHook(EnvironmentManager, "init", "BLT.EnvironmentManager.Init"...
include("shared.lua") function ENT:Draw() self:DrawModel() local ang = self:GetAngles() ang:RotateAroundAxis(ang:Up(), 1) self:SetAngles(ang) end net.Receive( "UrbanWeaponSpawnsOpenMenu", function() local ent = net.ReadEntity() local weapon = weapons.Get(ent:GetNWString("weapon")) local frame = vgui.Create...
local default_test_cases = require("export_test_cases") local common = require("Quadtastic.common") local exporters = require("Quadtastic.exporters") local libquadtastic = require("Quadtastic.libquadtastic") local verbose = false -- Test whether the exporter declares that it can export the specified -- project, and i...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by seletz. --- DateTime: 18.02.18 12:23 --- Director = Object:extend() local function chanceList(...) return { chance_list = {}, chance_definitions = {...}, next = function(self) if #self.chance_list == 0 then...
// Wildfire Black Mesa Roleplay // File description: BMRP shared ranks script. // Copyright (c) 2022 KiwifruitDev // Licensed under the MIT License. //********************************************************************************************* // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ...
local localPlayer = getLocalPlayer() local show = false local width, height = 570,100 local woffset, hoffset = 0, 0 local sx, sy = guiGetScreenSize() local content = {} local timerClose = getTickCount() local cooldownTime = 5 --seconds local toBeDrawnWidth = 0 local function removeRender() if show then removeEventH...
-------------------------- --记录视图类 -- @author 郑灶生 zss9309@qq.com -- Creation 2014-12-16 local viewConfig={ [1]="SimpleView", [2]="ArmatureView", [3]="FramesArmatureView" } --------------------------- --设置视图的子类 --@function [parent=#src.zframework.viewConfig] setViewConfig --@param viewTpye string 视图类型...
library 'Areas' local stored = Areas.stored or {} local callbacks = Areas.callbacks or {} local types = Areas.types or {} local top = Areas.top or 0 Areas.stored = stored Areas.callbacks = callbacks Areas.types = types Areas.top = top function Areas.all() return stored end function Areas.set_stored(stored_table) ...
print("II") local testSystem = {} testSystem.registers = {} testSystem.unregisters= {} testSystem.registers["A"]=function(entity) print(entity) end testSystem.unregisters["A"]=function(entity) print(entity) end sys = require("efs/construct")() sys:addFilter("HOI", {"position"}) j ={name="HENK"} sys:addEntity(j)...
-- -- Created by IntelliJ IDEA. -- User: Administrator -- Date: 2017/6/14 -- Time: 10:08 -- To change this template use File | Settings | File Templates. --首先在未排序序列中找到最小元素,存放到排序序列的起始位置 再从剩余未排序元素中继续寻找最小元素,然后放到已排序序列的末尾。 重复第二步,直到所有元素均排序完毕。 local function selectionSort(arr) for i = 1,#arr-1 do local idx = i ...
require "config" require "fucore.lib.modules" local function createFusionBeltItemUpdate() if config.fubelts.extendedBelts==true then local item = { type = "item", name = "fusion-underground-belt-extended", icon = "__fupower__/graphics/icons/fusion-underground-belt-extended.png", flags...
local ab = require 'core' local JSON = require "JSON" ab_struct = ab.init_ab("My_Config") local ab_tbl = {} ab_tbl['factor'] = 2 out_json = ab.sum_ab(ab_struct, JSON:encode(ab_tbl)) out_tbl = JSON:decode(out_json) for i, v in pairs(out_tbl) do print(i, v) end ab.print_ab(ab_struct) ab.free_ab(ab_struct) print("====...
-- Creator: -- EarthSalamander, October 3rd, 2019 LinkLuaModifier("modifier_imba_broodmother_spawn_spiderlings", "components/abilities/heroes/hero_broodmother.lua", LUA_MODIFIER_MOTION_NONE) imba_broodmother_spawn_spiderlings = imba_broodmother_spawn_spiderlings or class({}) function imba_broodmother_spawn_spiderli...
-------------------------------- -- @module EventFocus -- @extend Event -- @parent_module cc ---@class cc.EventFocus:cc.Event local EventFocus = {} cc.EventFocus = EventFocus -------------------------------- --- Constructor. --- param widgetLoseFocus The widget which lose focus. --- param widgetGetFocus The widget ...
local RestConnector = require("App42-Lua-API.RestConnector") local App42Service = require("App42-Lua-API.App42Service") local App42API = require("App42-Lua-API.App42API") local App42Log = require("App42-Lua-API.App42Log") local Util = require("App42-Lua-API.Util") local JSON = require("App42-Lua-API.JSON") local Email...
object_mobile_npc_dressed_collection_npc_female_human_01 = object_mobile_shared_npc_dressed_collection_npc_female_human_01:new { } ObjectTemplates:addTemplate(object_mobile_npc_dressed_collection_npc_female_human_01, "object/mobile/npc_dressed_collection_npc_female_human_01.iff")
local F = require("ffi") -- XXX: Temporary global until we have convenience aliases for all -- symbols from ljsyscall. S = require("syscall") -- Mark a local variable for collection by assigning it a special wrapped value. -- -- Collected locals will be assigned a table of values gathered from all worker -- Lua ...
local m = require "lpeglabel" local peg = require "peg-parser" local eg = require "errorgen" local s = require "stack" -- create stack for tokens inside captures. nil - not inside capture, 0 - inside capture, 1 - token found inside capture local tokenstack = s.Stack:Create() local subject, errors, errorfunc -- Lua...
return { "000_base_rate_limiting", --"001_14_to_15", --"002_15_to_10", --"003_10_to_112", }
--- Can mass-produce produce any item/element. -- -- Element class: IndustryUnit -- <ul> -- <li>IndustryUnit: Transfer Unit</li> -- <li>Industry1: Basic Industry Units</li> -- <li>Industry2: Uncommon Industry Units</li> -- <li>Industry3: Advanced Industry Units</li> -- <li>Industry4: Rare Industry Units</li> ...
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KDB = KUI:GetModule("KuiDatabars") local EDB = E:GetModule("DataBars") local function UpdateExperience(self) local bar = self.expBar local status = bar.statusBar local rested = bar.rested local xpColor = E.db.KlixUI.databars.experienceBar.xpColor ...
local parse = require 'kong.plugins.graphql-depth-limit.parse' local depthLimit = require 'kong.plugins.graphql-depth-limit.depthLimit' local plugin = require("kong.plugins.base_plugin"):extend() -- Priority is set to execute this plugin after the rate limiting plugin plugin.PRIORITY = 910 plugin.VERSION = "0.0.1" ...
-------------------------------------------------------------------------------- --<[ Внутренние события ]>------------------------------------------------------ -------------------------------------------------------------------------------- addEvent( "Dimension.onServerRegistryResponse", true ) -- Начальная заг...