content
stringlengths
5
1.05M
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, ...
local hits = {} -- Table of nightstick hits on certain criminals local hitTimers = {} -- Table of timers for nightstick hits on certain criminals and when the hits are to be removed local arrests = {} -- Table of players arrested by a certain cop, all of whom are pending jail -- Handle giving nightstick function onPla...
VERSION = "0.0.3" local micro = import("micro") function init() linter.makeLinter("verilog", "verilog", "yosys", {"-q" ,"%f"}, "%f:%l:.+: %m") end
module("LoginSystem", package.seeall) setmetatable(LoginSystem, {__index=XEventModule}) function new(szName) local login = { } setmetatable(login, {__index=LoginSystem}) login:Init(szName) return login end function Init(self, szName) XEventModule.Init(self, szName) -- init system data entity o...
module(..., package.seeall) function versionCompare(version1, version2) return helper:compareVersion_withVersion_(version1, version2) end function tojson(str) return helper:tojson(str) end function navigateURL(urlString) return helper:navigateURL(urlString) end function urlencode(str) return helper:...
GhostMove = {} GhostMove.e = {} ------------------------------------------------------ -- System events ------------------------------------------------------ function GhostMove:new() local u = {} setmetatable(u, self) self.__index = self return u end function GhostMove:onConnect(opt) self.enabled = true ...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
--------------------------------------------------- -- Condemnation -- Deals damage in a threefold attack to enemies within a fan-shaped area of effect. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") ---------...
local function Notify(txt) game.StarterGui:SetCore("ChatMakeSystemMessage", { Text = txt, Color = Color3.fromRGB(255, 255, 255), Font = Enum.Font.Code, FontSize = Enum.FontSize.Size48 }) end Notify("Thanks for using ixHub! We are a free hub, so if you bought this, please tell us from who! This is free!"); l...
--[[---------------------------------------------------------------------------- Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found...
spider_web_tier5 = class( AbilityBaseClass ) LinkLuaModifier( "modifier_spider_web", "modifiers/modifier_spider_web", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_spider_web_effect", "modifiers/modifier_spider_web_effect", LUA_MODIFIER_MOTION_NONE ) ------------------------------------------------------------...
return {'phagwa','phaedra','phara','pharrell','phaff','pham','phan','phaedras','pharas','pharrells'}
#!/usr/bin/env lua local unpack = unpack or require'table'.unpack require'math'.randomseed(1) local kdtree = require'kdtree' local kd = assert(kdtree.create(3)) print(kd) local threshold = 0.5 -- assert(kd:insert{1,2,3}) -- assert(kd:insert{4,5,6}) -- assert(kd:insert{7,8,9}) -- local set = assert(kd:nearest{5, 6, 7...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local FORMATTING = methods.internal.FORMATTING return h.make_builtin({ name = "golines", meta = { url = "https://pkg.go.dev/github.com/segmentio/golines", description = "Applies a base formatter (eg. goimports or g...
local game = require "game" local menu = require "menu" function love.load() menu.load() end function love.update(dt) menu.update(dt) end function love.draw() menu.draw() end
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.PrintName = "MAC10" SWEP.Author = "Darkspider" SWEP.Slot = 1 SWEP.SlotPos = 1 end SWEP.Base = "darkland_base" SWEP.HoldType = "ar2" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.ViewModel = "models/weapons/v_smg_...
local RunService = game:GetService("RunService") RunService.RenderStepped:Connect(function() -- check if the script is in the players character if script.Parent:IsA("Model") and script.Parent:FindFirstChild("Humanoid") then if not script.Parent:FindFirstChild("deletemesh") and not script.Parent:FindFirstChild("CL_...
local diff = { ["keyDiffs"] = { ["d3001pnilu3001cd16vd1vpnilvu0"] = { ["name"] = "FAST ERECT Button", ["removed"] = { [1] = { ["key"] = "F", ["reformers"] = { [1] = "LShift", [2] = "LAlt", }, }, }, }, ["d3003pnilunilcd11vd0vpnilvunil"] = { ["added"] = { [1] = { ...
local cmd = vim.cmd local map = vim.api.nvim_set_keymap local g = vim.g g.mapleader = ' ' -- disable annoying man pages map('n', 'K', '<nop>', { noremap = true }) map('n', '<c-h>', '<c-w>h', { noremap = true }) map('n', '<c-j>', '<c-w>j', { noremap = true }) map('n', '<c-k>', '<c-w>k', { noremap = true }) map('n', '...
package.path = package.path .. ";data/scripts/lib/?.lua" require ("utility") require ("randomext") require ("faction") local ShopAPI = require ("shop") local UpgradeGenerator = require("upgradegenerator") -- Don't remove or alter the following comment, it tells the game the namespace this script lives in. If you remov...
--[[ A* algorithm for LUA Ported to LUA by Altair 21 septembre 2006 --]] function CalcMoves(mapmat, px, py, tx, ty) -- Based on some code of LMelior but made it work and improved way beyond his code, still thx LMelior! --[[ PRE: mapmat is a 2d array px is the player's current x py is the player's current y tx is the t...
--多久执行一次定时任务,单位为秒,如不写默认为60*60秒,即一小时 time_scheduled = 5 ------------------------------- -- 在此处添加自定义函数 -- 函数中的第一个参数必须为srcFilePath 代表的是要监控的目录 ------------------------------- -- 监控Downloads文件夹 function watchDownloads(srcFilePath,files) ---- send nzb and torrent files to the transfer directory --if data.ext == '...
hasCL = findOpenCL_AMD() hasDX11 = findDirectX11() if (hasCL) then project "OpenCL_DX11_radixsort_benchmark_AMD" initOpenCL_AMD() if (hasDX11) then initDirectX11() end language "C++" kind "ConsoleApp" targetdir "../../../../bin" includedirs {"..","../.."} links { "OpenCL" }...
local RSA_C = dbConnect("sqlite", "rsa.db") dbExec(RSA_C, "CREATE TABLE IF NOT EXISTS rsa(accountName TEXT, level INT)") dbExec(RSA_C, "CREATE TABLE IF NOT EXISTS logs(action TEXT, victim TEXT, date TEXT, line TEXT)") dbExec(RSA_C, "CREATE TABLE IF NOT EXISTS bannedP(action TEXT, victim TEXT, date TEXT, reason TEXT)") ...
----------------------------------- -- Area: Dynamis-Windurst_[D] ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.DYNAMIS_WINDURST_D] = { text = { }, mob = { }, npc = { }, } return zones[tpz...
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false) local ShadowOrbs = IceCore_CreateClass(IceClassPowerCounter) function ShadowOrbs.prototype:init() ShadowOrbs.super.prototype.init(self, "ShadowOrbs") self:SetDefaultColor("ShadowOrbsNumeric", 218, 231, 31) self.numericColor = "ShadowOrbsNumeric...
if SL.Global.GameMode == "Casual" then return LoadActor(THEME:GetPathB("", "_shared background normal")) else return Def.ActorFrame { Def.Quad { InitCommand = function(self) if ThemePrefs.Get("RainbowMode") then self:Center():FullScreen():diffuse(Color.White) else self:visible(false) end ...
local lk = love.keyboard local JOINT_SELECT_SLOP = 4 -- max distance a joint can be selected from local Mode = require 'class' () function Mode:init (editor) self.editor = editor end function Mode:destroy () end function Mode:keypressed () end function Mode:textentered () end function Mode:mousepressed () en...
-- Copyright 2016 Google Inc, NYU. -- -- Licensed 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 -- -- Unless required by applicable law or agree...
local sw, sh = guiGetScreenSize ( ) local gui = { } localPlayer = getLocalPlayer() function frames_showTexGUI ( ) local interiorID = getElementDimension ( localPlayer ) if interiorID >= 1 or (exports.mrp_integration:isPlayerSeniorAdmin(localPlayer) and exports.mrp_global:isAdminOnDuty(localPlayer)) or exports.mrp_...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { __is_kind_of = "XLabel", group = "PreGame", id = "PropValue", PlaceObj('XTemplateWindow', { '__class', "XLabel", 'Id', "idValue", 'Dock', "right", 'TextFont', "PGListItem", 'TextColor', RGBA(221, 215, 170, 255), '...
local Teleport = class("Teleport", Entity) local BoxCollider = require("BoxCollider") function Teleport:initialize(x, y, width, height, destx, desty, dir) Entity.initialize(self, x, y, 0, "teleport") self.collider = BoxCollider(width, height, width/2, height/2) self.destx = destx self.desty = desty self.dir = ...
local _M = {} function _M.str2bool(s) local ret = nil if s == "false" then ret = false elseif s == "true" then ret = true end return ret end return _M
VERSION = "2.0.2" local micro = import("micro") local config = import("micro/config") local shell = import("micro/shell") local buffer = import("micro/buffer") -- outside init because we want these options to take effect before -- buffers are initialized config.RegisterCommonOption("go", "goimports", false) config.Re...
local Enemy = require 'nodes/enemy' local gamestate = require 'vendor/gamestate' local Timer = require 'vendor/timer' local sound = require 'vendor/TEsound' return { name = 'alien', height = 51, width = 51, damage = 30, jumpkill = true, bb_width = 51, bb_height = 51, bb_offset = {x=0, y=0}, velocity ...
function debug() print "begin" require("mobdebug").start() print "end" end return debug
return {--[[ #PVF_File ]] ["[player number]"]={2,8}, ["[pvp start area]"]={0,0,0,0,0,0,0,0,0,0,0,0}, ["[dungeon]"]={3,}, ["[type]"]="[normal]", ["[greed]"]="CC CC", ["[tile]"]={"Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOverUnder...
-- -- simplified version of the one in durden -- -- still rather old and murky and well within the rights of a redesign -- when it comes to ugroups, uniform invalidations, settings persistance -- and the likes -- local names = {} if (SHADER_LANGUAGE == "GLSL120") then local old_build = build_shader; function build_sh...
class("LargeMessage") -- This class, on construction, will fancily draw large text near the center of the screen for a -- specified duration. LargeMessage.messageCount = 0 function LargeMessage:__init(message , durationSeconds) ; EGUSM.SubscribeUtility.__init(self) -- Fix for SubscribeUtility.Destroy. self.De...
Fonts = Fonts or require "fonts" UTIL = UTIL or require "util" Modules = Modules or require "modules" local Key = Modules.Key --* Option Table local function newOption(text, class) return { text = text, class = class } end --* Menu Class local Menu = { options = { newOption("Jogar...
-- required package is one directory up package.path = package.path .. ";../?.lua;../?.config" require "rotations" require "common_lua" -- Need to declare matrix locally local matrix = require 'matrix' c30 = math.cos(math.rad(30)) s30 = math.sin(math.rad(30)) rx90_ref = matrix{{1, 0, 0}, {0, 0, -1}, {0, 1, 0}} rx30_...
#!/bin/sh _=[[ . "${0%/*}/regress.sh" exec runlua -r5.2 "$0" "$@" ]] local unix = require"unix" local regress = require"regress".export".*" local name = check(unix.getprogname()) info("progname: %s", name) say"OK"
--[[ ClassicCamera - Classic Roblox camera control module 2018 Camera Update - AllYourBlox Note: This module also handles camera control types Follow and Track, the latter of which is currently not distinguished from Classic --]] -- Local private variables and constants local ZERO_VECTOR2 = Vector2.new(0,0) loca...
ITEM.name = "AR15 9mm" ITEM.description= "An American combat rifle chambered for 9x19mm." ITEM.longdesc = "An AR-15 platform with a 9x19mm receiver assembly. Some benefits of this rechambering include cheaper ammunition, low recoil and excellent ability to be suppressed compared to a rifle firing a full size cartridge ...
local Map = require "maps.map" local Hideout = Map:new() function Hideout:new(o, control) o = o or Map:new(o, control) setmetatable(o, self) self.__index = self return o end function Hideout:create() Map.create(self) self.data.mirrors = 5 end function Hideout:enter() Map.enter(self) if self.control...
--[[ HTTP protocol implementation for LuCI - date handling (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed 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....
function playSound(name, ...) if type(name) ~= "string" then return false end return Sound("sounds/" .. name, ...) end
local ADDON_NAME, ADDON = ... local eventManager = ADDON.eventManager local core = {} local function migrate() -- V 0.76 or less must reset settings if (DJBags_DB == nil or not DJBags_DB.VERSION or DJBags_DB.VERSION < 0.76) then DJBags_DB = { VERSION = 0.8, categories...
return { name = "james2doyle/parseurl", version = "0.0.1", description = "Parse a URL with memoization", tags = { "parse", "url" }, license = "MIT", author = { name = "James Doyle", email = "james2doyle@gmail.com" }, homepage = "https://github.com/james2doyle/lit-parseurl", dependencies = {}, files = ...
-- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local lualine_require = require('lualine_require') local modules = lualine_require.lazy_require { highlight = 'lualine.highlight', utils = 'lualine.utils.utils', } local M = lualine_require.require('lualine.component'):extend() local ...
object_tangible_loot_generic_usable_stim_medium_generic = object_tangible_loot_generic_usable_shared_stim_medium_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_stim_medium_generic, "object/tangible/loot/generic/usable/stim_medium_generic.iff")
--[[ graphical text system ]] local path = (...) local base = require(path:gsub("text_system", "base")) local text_component = class({ name = "text_component" }) function text_component:new(args) local font = args.font or love.graphics.getFont() self.font = font self.text = love.graphics.newText(font, "") self...
local meta = FindMetaTable("Player") function meta:ClassExceedLimit(class) local e = IsClassSpawnable(class) if (!e) then return true end local c = 0 for k,v in pairs(ents.FindByClass(class)) do if (!v:IsWeapon() and v:GetCreator() == self) then c = c + 1 end end return c >= e.Limit end
ENT.Type = "anim" ENT.PrintName = "Horizontal Lift Station Signalling" ENT.Category = "Metrostroi (utility)" ENT.Spawnable = false ENT.AdminSpawnable = false -------------------------------------------------------------------------------- function ENT:SetupDataTables() self:NetworkVar("Int", 0, "ActiveSignals"...
require"imlua" require"imlua_process" local infilename = "lena.jpg" local outfilename = "sobel_lena.png" local image = im.FileImageLoad(infilename) -- turn it to a gray image local gray = im.ImageCreate(image:Width(), image:Height(), im.GRAY, im.BYTE) im.ProcessConvertColorSpace(image, gray); -- use ...
local relabel = require "drelabel" local lpeg = require "lpeglabel" local function read_file(path) local f = assert(io.open(path, "r")) local data = f:read("*a") f:close() return data end local RePreProcess = {} RePreProcess.__index = RePreProcess local errors = {} local defs = { esc_t = "\t", nl = lpeg.P'\...
local K, C, L, _ = select(2, ...):unpack() if C.Tooltip.Enable ~= true then return end -- Clean ruRU tooltip(snt_rufix by Don Kaban, edited by ALZA) if K.Client ~= "ruRU" then return end GUILD_ACHIEVEMENT = "Уведомл. для гильдии" local ttext local replace = { ["красного цвета"] = "|cffFF4040красного цвета|r", ["с...
-- Disable stealth kill addEventHandler( "onClientPlayerStealthKill", localPlayer, function () cancelEvent() end ) addEventHandler("onClientPlayerDamage", localPlayer, function (attacker, weapon, bodypart, loss) if (attacker and isElement(attacker) and attacker:getType() == "player") then -- Disable nigh...
LinkLuaModifier("modifier_cherub_flower_garden_barrier", "heroes/hero_cherub/modifiers/modifier_cherub_flower_garden_barrier", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_cherub_flower_garden_tracker", "heroes/hero_cherub/modifiers/modifier_cherub_flower_garden_tracker", LUA_MODIFIER_MOTION_NONE) function Crea...
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKS...
local itemDatas = {} local names = {} local defaultItemData = API.ItemData('????????', '????????', 0.1) function API.getItemDataFromId(id) return itemDatas[id] or defaultItemData end function API.getItemDataFromName(name) if names[name] ~= nil then return itemDatas[names[name]] or defaultItemData ...
--[==[ Copyright ©2022 Samuel Thomas Pain The contents of this addon, excluding third-party resources, are copyrighted to their authors with all rights reserved. This addon is free to use and the authors hereby grants you the following rights: 1. You may make modifications to this addon for private use only, you ...
return { get_left_child = function(parent_index, tree) return tree[parent_index * 2], parent_index * 2 end, get_right_child = function(parent_index, tree) return tree[(parent_index * 2) + 1], (parent_index * 2) + 1 end }
function DrawZone(coords, type, size, colour, faceConstantly) local face = false if faceConstantly then face = faceConstantly end DrawMarker( type, coords.x, coords.y, coords.z + 0.03, -- x, y, z 0, 0, 0, -- Direction vector x, y, z 0, 0, 0, -- Rotation x, y, z ...
require("gameData/gameData"); local CityData = class(GameData); CityData.getCityData = function(self) local data = require("hall/userInfo/data/cityDefaultData"); return data; end return CityData;
els_patterns = {} canaryClient = true function getNumberOfPrimaryPatterns() local count = 0 for k,v in pairs(els_patterns.primarys) do if (v ~= nil) then count = count + 1 end end return count end function getNumberOfSecondaryPatterns() local count = 0 for k,v in pairs(els_patterns.secondarys) do if (...
local RFC1918 = { "10%.%d+%.%d+%.%d+", "192%.168%.%d+%.%d+", "172%.16%.%d+%.%d+", "127%.%d+%.%d+%.%d+", } local IPv4 = 0 local IPv6 = 1 function getIPFromAddr(addr) local result = string.match(addr,":?(%d+%.%d+%.%d+%.%d+):?") if result then return result end local first = str...
lualandmg = {} local mod_path = minetest.get_modpath("lualandmg") -- Default noise params lualandmg.np_base = { offset = 0, scale = 1, spread = {x=256, y=256, z=256}, octaves = 5, seed = 42692, persist = 0.5 } lualandmg.np_mountains = { offset = 0, scale = 1, spread = {x=256, y=256, z=256}, octaves = 5, se...
local threads = require 'threads' local t = threads.Threads(1) -- PUC Lua 5.1 doesn't support coroutine.yield within pcall if _VERSION == 'Lua 5.1' then print('Unsupported test for PUC Lua 5.1') return 0 end local function loop() t:addjob(function() return 1 end, coroutine.yield) t:addjob(function() return 2...
local client = {} local bstream = require("snet.bstream") client.address = "127.0.0.1" client.port = 13322 client.status = SNET_DISCONNECTED client.unique_id = 0 client.last_ids = {} client.events = {} client.packets = {} function client:add_event_handler(event, callback) table.insert(self.events, {even...
require "ratchet" local common = require "ratchet.http.common" ratchet.http = ratchet.http or {} ratchet.http.server = {} ratchet.http.server.__index = ratchet.http.server -- {{{ ratchet.http.server.new() function ratchet.http.server.new(socket, from, handlers) local self = {} setmetatable(self, ratchet.http...
--[[ The MIT License (MIT) Copyright (c) 2015 gsick Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
-- Default custom dictionary, taken from: -- http://wipe.guildwork.com/forum/threads/5039eb67205cb26e261f6988-japaneseenglish-guide-ffxi local dict = { -- Party Chat section {en="BRB",ja="りせき"}, {en="Congratulations",ja="おめでとうー"}, --Excuse Me, WC for 2 Minutes || sumimasen, 2 pun hodo toile ittekimasu ...
-- Copyright (C) Jinhua Luo require("ljio.core.coroutine") local C = require("ljio.cdef") local ffi = require("ffi") local epoll = require("ljio.core.epoll") local timer = require("ljio.core.timer") local signal = require("ljio.core.signal") local logging = require("ljio.core.logging") local shdict = require("ljio.cor...
local present, bufferline = pcall(require, 'bufferline') if not present then return end bufferline.setup({ options = { numbers = 'none', buffer_close_icon = '', modified_icon = '', close_icon = '', left_trunc_marker = '', right_trunc_marker = '', max_name_length = 18, max_prefi...
---@meta --=== pulsecnt === ---@class pulsecnt ---@field PCNT_COUNT_DIS integer ---@field PCNT_COUNT_INC integer ---@field PCNT_COUNT_DEC integer ---@field PCNT_MODE_KEEP integer ---@field PCNT_MODE_REVERSE integer ---@field PCNT_MODE_DISABLE integer pulsecnt = {} ---@class pulsecntObj local pulsecntObj = {} ---Cre...
-- Alessandro Carvalho Silva <AlephC>, 2019 for Droid Spot desktop game - Windows version © local push = require "push" local gameWidth, gameHeight = 1080, 720 --fixed game resolution local windowWidth, windowHeight = love.window.getDesktopDimensions() push:setupScreen(gameWidth, gameHeight, windowWidth, win...
webqueue_recorded_response_times = {} webqueue_queueing_mode_enabled = false webqueue_max_allowed_queue_no = 0 webqueue_latest_issued_queue_no = 0 webqueue_jwt_signing_secret = "secret" WEBQUEUE_TICKET_COOKIE_NAME = "webqueue_ticket" WEBQUEUE_SESSION_COOKIE_NAME = "khongguan" WEBQUEUE_ENTRY_TICKET_EXPIRY_SECS = 15 * 6...
-- Flames.lua, contributed by pmprog in the OpenPandora board. -- See http://boards.openpandora.org/index.php?/topic/7405-here-is-a-pnd-for-load81/ function setup() local x, y, l MaxFlames = 150 FlameLife = 40 FlameSize = 10 refreshCount = 0 skipCount = 0 Flames = { } for i=1,MaxFlame...
-- config.lua -- created: 2013-11-02 -- -- Ingemar Bergmark -- www.swipeware.com application = { content = { width = 768, height = 1024, scale = "letterbox", fps = 60, antialias = false, xalign = "center", yalign = "center" } }
-- If IO is disabled, it's not possilbe to load a lua module from a file. print(runtime.callcontext({flags="iosafe"}, pcall, require, "testlib.foo")) --> ~done\tfalse\t.*: missing flags: iosafe
-- This is a free software, use it under GNU General Public License v3.0. -- Created By ImmortalWrt -- https://github.com/immortalwrt module("luci.controller.unblockneteasemusic-mini", package.seeall) function index() if not nixio.fs.access("/etc/config/unblockneteasemusic-mini") then return end local page pag...
--[[ ba.lua A bag button object --]] local Bag = Combuctor:NewClass('Button') Combuctor.Bag = Bag --local bindings local L = LibStub('AceLocale-3.0'):GetLocale('Combuctor') local InvData = Combuctor:GetModule('InventoryData') --[[ Constructor/Destructor ]]-- local g_currAPIBagID = nil; --暂存当前点击的背包系...
local acid_nwr = require("acid.nwr") local strutil = require("acid.strutil") local tableutil = require("acid.tableutil") local chash_redis = require("acid.chash_redis") local aws_auth = require("acid.aws_auth") local http_resp = require("acid.http_resp") local _M = { _VERSION = "0.1" } local mt = { __index = _M } loc...
local BuilderPinger = require './BuilderPinger' local function builder_can_build(builder, build) if builder.busy then return false end for _, label in ipairs(build.labels) do if not builder.labels[label] then return false end end return true end return function() local pending_builds = {} lo...
os_properties = { windows = { dir = 'win32', pkg_dirs = {"cmn", "win32"}, pythondir = 'windows' }, macosx = { dir = 'osx', pkg_dirs = {"cmn", "unix"}, pythondir = 'osx' }, linux = { dir = 'linux', pkg_dirs = {"cmn", "unix"}, pythondir = 'linux' }, } ----------------------------------------------------------------...
local addonName, addon = ... -- The reminder should only be shown when it's not inconvenient to the player. local function AllowReminder() local inCinematic = InCinematic() or IsInCinematicScene() local inCombat = addon.inCombat local inPvP = C_PvP.IsArena() or C_PvP.IsBattleground() local isBu...
local L = WeakAuras.L -- Options translation L["1 Match"] = "1 Match" L["Actions"] = "Actions" L["Activate when the given aura(s) |cFFFF0000can't|r be found"] = "Activate when the given aura(s) |cFFFF0000can't|r be found" L["Add a new display"] = "Add a new display" L["Add Dynamic Text"] = "Add Dynamic Text" L["Addon...
local addonName, addonScope = ... local data = addonScope.data local AL = addonScope.AL local ALIL = addonScope.ALIL local NORMAL_DIFF = addonScope.NORMAL_DIFF local ALLIANCE_DIFF = addonScope.ALLIANCE_DIFF local HORDE_DIFF = addonScope.HORDE_DIFF local LOAD_DIFF = addonScope.LOAD_DIFF local NORMAL_ITTYPE = addonScope....
local p = require 'nextprime' local sqrmod = p.sqrmod local mulmod = p.mulmod local isprime = p.isprime local abs = math.abs local floor = math.floor local random = math.random local function gcd(a, b) -- optimized for speed while b ~= 0 do a = a % b if a == 0 then return b end ...
local M = {} local function is_screenshot(filepath) local file = io.open(filepath, 'r') if file~=nil then io.close(file) return true else return false end end local function send_to_cwd(filepath, currentDirectory) local ssDirectory = vim.g.markdown_image_paste local filename = filepath:gsub(ssDirector...
if not nuclear.technology then nuclear.technology = {} end -- @ recipes: Table<String> -- return Table<Effect> local function _tableToEffects(recipes) local effects = {} for _, name in pairs(recipes) do table.insert(effects, {type = "unlock-recipe", recipe = name}) end return effects end -- @ effects: Tab...
function DiseaseCloudStartSound( keys ) local caster = keys.caster local sound = "Hero_Pudge.Rot" StartSoundEvent(sound, caster) Timers:CreateTimer( function() if not caster:HasModifier("abomination_disease_cloud_debuff_modifier") then DiseaseCloudStopSound(sound, caster) else re...
print "Hello from Lua" local ffi = require('ffi') ffi.cdef([[ void test_ffi(); ]]) local C = ffi.C C.test_ffi()
warden_vinzel_haylon_missions = { { missionType = "escort", primarySpawns = { { npcTemplate = "prisoner_quest_vinzel", npcName = "Ezker 'The Brain' Kennin" } }, secondarySpawns = { }, itemSpawns = { }, rewards = { { rewardType = "faction", faction = "imperial", amount = ...
local Root = script:FindFirstAncestor("BarrierCreator") local Roact = require(Root.dependencies.Roact) local e = Roact.createElement local Dictionary = require(Root.dictionary) local StudioPluginContext = require(script.Parent.studioPluginContext) local StudioToolbarContext = require(script.Parent.studioToolbarContext...
-- -- (C) 2021 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require =coroutine,packa...
Config = {} Config.UseQuickPed = true -- Use this Script to Spawn First Ped when spawning in | true or false Config.StartModel = 'A_M_M_ARMTOWNFOLK_01' -- Ped you want to spawn first in when you log in | Config.UseQuickPed = true Config.UseDeathScript = true -- true or false | /revive to respawn
local AiCommon = require("AiCommon") local localFunc = {} data = { ["repeatTime"] = 0, ["banned"] = {}, ["samegendertimes"] = {}, ["speakingTo"] = "", ["groupSpoken"] = {}, ["recvContent"] = {}, ["recvContentNotReplyed"] = {}, ["lastSent"] = "", ["lastRecv"] = "", ["outoftime"] = false, ["outoftimeDay"...
return { version = "1.5", luaversion = "5.1", tiledversion = "1.7.2", orientation = "orthogonal", renderorder = "right-down", width = 24, height = 15, tilewidth = 32, tileheight = 32, nextlayerid = 4, nextobjectid = 1, properties = {}, tilesets = { { name = "Outdoor", firstgid ...