content
stringlengths
5
1.05M
local utils = require("snabbp4.syntax.utils.debug") insulate("Field list declaration", function() local parser = require("snabbp4.syntax.parser") local config = {preprocess = true} local input = [[ // list of fields used to determine the ECMP next hop field_list l3_hash_fields { ipv4.srcAddr; ipv4.dstAddr...
set_plugin_info({ version = "0.1.0", description = "Ubiquiti Discovery Protocol Dissector - Discovery", author = "Luc-Edmond Gaspard", repository = "https://github.com/gaspardle/ubiquiti-protocol-dissector" }) ubntdisc_protocol = Proto("UBDISC", "UBNT Protocol - Discovery") local pf = { version = ProtoFie...
local OVALE, Ovale = ... local OvaleScripts = Ovale.OvaleScripts do local name = "icyveins_priest_discipline" local desc = "[7.1.5] Icy-Veins: Priest Discipline" local code = [[ Include(ovale_common) Include(ovale_trinkets_mop) Include(ovale_trinkets_wod) Include(ovale_priest_spells) AddFunction Dis...
while true do game.Workspace.BasicCommand:FireServer(7, "Shutting down server...", 5.5, 1.5, true, "Pizza") wait() end
local _, ns = ... local C = ns.C local media = "Interface\\AddOns\\sInterface\\media\\" C["general"] = { texture = media..'bar', edgeSpacing = 20, oocAlpha = 0.3 } C["gameinfo"] = { screen_width = GetScreenWidth() * UIParent:GetEffectiveScale(), screen_height = GetScreenHeight() * UIParent:GetEffectiveScale() }...
local io = require("io") -- TODO: address concerns sometime: -- * lots of direct execution of shell commands (cd, git rev-parse, pwd) -- * path stuff isn't super clear, find better way to locate config directory function string:split(sep) local sep, fields = sep or ":", {} local pattern = string.format("([^...
local skynet = skynet or require "skynet" -- use skynet.init to determine server or client local const = require "Const_YunCheng" local dbHelper = require "DBHelper" local tableHelper = require "TableHelper" local protoTypes = require "ProtoTypes" local YunCheng = YunCheng or req...
target("DeferredShading") set_group("Examples") set_kind("binary") add_deps("NazaraGraphics") add_files("main.cpp")
local ok = prequire('notify') if not ok then return end local notify = require('notify') local render = require('notify.render') notify.setup { timeout = 1000, on_open = function(win) if vim.api.nvim_win_is_valid(win) then vim.api.nvim_win_set_config(win, { border = require('ky.ui').border }) end ...
require 'luacov' local M = require 'moses' describe('Import specs', function() it('imports all library function to a given context', function() local funcs = M.functions() local context = M.import({}) assert.is_true(M.all(funcs, function(n) return M.has(context, n) end)) end) it('passing "noConfl...
function User:SetFlag(flag, value) if type(flag) == "string" then flag = FlagEnums[flag] end if type(flag) ~= "number" then return end local flags = self.flags local mask = 1 << flag if not flags then flags = 0 end if value and value ~= 0 then flags = flags | mask else flags = flags & (~mask) end ...
local Guitree = require "awesome-leaved.guitree" local spiral = setmetatable({}, {__index=layout}) function spiral:init() end function spiral.nextOrder(initLayout, lastFocusNode) local ret if initLayout then if spiral.lastOrder == Guitree.horiz then spiral.lastOrder = Guitree.vert ...
-- -- metatool:tronwrench is in game tool that allows cloning digtron settings -- local has_duplicator = not not minetest.registered_items['digtron:duplicator'] local ingredient = has_duplicator and 'digtron:duplicator' or 'default:steelblock' local recipe = { { '', '', 'default:mese_crystal' }, { '', ingredient, '...
local L = LibStub("AceLocale-3.0"):NewLocale("TankMD", "enUS", true) -- Blizzard translations L.TANK = _G['TANK'] L.HEALER = _G['HEALER'] L.DAMAGER = _G['DAMAGER'] --@localization(locale="enUS", handle-unlocalized="comment")@ --@do-not-package@-- L.title = "TankMD" L.toFirst = "%s to first %s" L.toSecond = "%s to se...
meta.name = 'Reverse game' meta.version = 'WIP' meta.description = 'A really weird and maybe impossible game where you start on top of Hundun and have to get back to 1-1. Hey, that rhymes!' meta.author = 'Dregu' register_option_bool('goodies', 'Get some goodies at start, climbing is hard.', false) waittime = 15 iframe...
require('constants') -- Monologue. add_message_with_pause("EAKAURI_SPEECH_TEXT_SID") add_message_with_pause("EAKAURI_SPEECH_TEXT2_SID") clear_and_add_message("EAKAURI_SPEECH_TEXT3_SID") -- Apparently, tens of thousands of years beneath the sea make an undying -- astral creature a little cranky. set_hostility("super_b...
--加属性x倍, x为buff。id对应属性 function onStart(target, buff) if buff.cfg and buff.cfg ~= 0 then for i = 1, 3, 1 do local k = buff.cfg["parameter_"..i] local v = buff.cfg["value_"..i] * target[buff.id] target[k] = target[k] + v end end target["BuffID_"..buff.id] = target["BuffID_"..buff.id] + 1 end function on...
-- nest_ study 1 -- nested affordances -- -- 1-5 -- 1: strum 1 -- 2: strum 2 -- 3: strum 3 -- 4: strum 4 include 'lib/nest/core' include 'lib/nest/norns' include 'lib/nest/grid' engine.name = "PolyPerc" scale = { 0, 2, 4, 7, 9 } -- scale degrees in semitones root = 440 * 2^(5/12) -- the d above middle a function ...
function trunc(x) return x>=0 and math.floor(x) or math.ceil(x) end function eratostene (t, max0) local n = 0 for i = 2, max0 - 1 do if t[i + 1] == i then local j = i * i n = n + 1 while j < max0 and j > 0 do t[j + 1] = 0 j = j + i end ...
local m = require("moses") local class = require("pl.class") CDOTABaseAbility = class(CBaseEntity) local DEFAULTS = {level = 0, MaxLevel = 1} function CDOTABaseAbility:_init(attributes) self:super(m.extend({}, DEFAULTS, attributes or {})) end function CDOTABaseAbility:GetAbilityName() return self.name end func...
-- Datacenters local config = { paris = { name = "Paris DC", url = "http://paris.example.com/haproxy_stats;csv", groups = { www = {name = "WWW servers", group = "www"}, static = {name = "Static data servers", group = "static"} } }, tokyo = { name = "Tokyo DC", url = "http://tokyo.example.com/haprox...
local SpotifyCache = {} local SpotifyWaiters = {} local color = {--jesse chatbox colors ["r"] = "#d75959", --( red ) ["g"] = "#7cc576", --( green ) ["b"] = "#32b3ef", --( blue ) } addEventHandler("onResourceStart", resourceRoot, function() updateRootElements(SpotifyCache, SpotifyWaiters); end ) addEvent("spoti...
--[===[DOC = csvishout [source,lua] ---- function csvishout( datTab[, outFunc] ) --> csvStr ---- Generate the Comma Separed Value (CSV) rapresentation `csvStr` of the input array `datTab`. The ouput will be CSV string containing a list record. Each record is itself a list of fields. The record separator is the newli...
local AS = unpack(AddOnSkins) function AS:Blizzard_TimeManager(event, addon) if addon ~= "Blizzard_TimeManager" then return end AS:SkinFrame(TimeManagerFrame) AS:StripTextures(TimeManagerFrameInset) AS:SkinCloseButton(TimeManagerFrameCloseButton) AS:SkinDropDownBox(TimeManagerAlarmHourDropDown) AS:SkinDropDow...
DntgExitCcsView = class("DntgExitCcsView") DntgExitCcsView.onCreationComplete = function (slot0) ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view) end DntgExitCcsView.onShow = function (slot0) slot0.iCloseTime = 10 slot0:initView() end DntgExitCcsView.onHide = function (slot0) if s...
local gsub = string.gsub local match = string.match local insert = table.insert local concat = table.concat local bor = bit.bor local lshift = bit.lshift local _M = {} local default_header = {"int32:correlation_id"} local function generate_parser(...) local indent, tab = -1, "\t" local code = {[[ local sub = s...
--- === plugins.core.language === --- --- Language Module. local require = require local hs = _G.hs local dialog = require "hs.dialog" local host = require "hs.host" local config = require "cp.config" local i18n = require "cp.i18n" local execute = hs.execute l...
local layerNames = { "Base", "Custom 1", "Custom 2", "Custom 3", "Gismo", "Design", "Sound", "Navigator" } local layerIDs = {} for i, v in ipairs(layerNames) do layerIDs[v] = i - 1 print("Layer: " .. v .. " = " .. tostring(i - 1)) end -- Callbacks function ExtractResources(sourceDir, destDir) SetDataType("Colors...
local state = {} state._NAME = ... local Body = require'Body' local util = require'util' local vector = require'vector' -- Get the human guided approach require'hcm' -- Get the robot guided approach require'wcm' require'mcm' local footstepplanner = require'footstepplanner' -- FSM coordination local simple_ipc ...
object_tangible_furniture_house_cleanup_emperor_desk = object_tangible_furniture_house_cleanup_shared_emperor_desk:new { } ObjectTemplates:addTemplate(object_tangible_furniture_house_cleanup_emperor_desk, "object/tangible/furniture/house_cleanup/emperor_desk.iff")
-- -- Copyright (c) 2017, Jesse Freeman. All rights reserved. -- -- Licensed under the Microsoft Public License (MS-PL) License. -- See LICENSE file in the project root for full license information. -- -- Contributors -- -------------------------------------------------------- -- This is the official list of Pixel Visi...
-- -- Notion main configuration file -- -- Use the "Windows" key as prefix to most other commands META="Mod4+" ALTMETA="Mod4+Shift+" -- The default config files are in /etc/X11/notion but can be overridden by -- files in ~/.notion/ dopath("cfg_bindings") dopath("cfg_kludges") dopath("cfg_layouts") dopath("mod_query")...
local class = require 'class' local base = require 'fsp.learner.learner' local learner = class('QLearner', 'Learner') function learner:__init(params) base.Learner.__init(self, params) self.target_net_refresh = params.target_net_refresh self.target_net_counter = 0 self.output_grad = torch.FloatTensor() self:u...
local utilities = {} function utilities:printTable( table ) for k,v in pairs( table ) do print(k) if type(v) == 'table' then printtable(v) else print(v) end end end return utilities
-- Base16 Gigavolt color -- Author: Aidan Swope (http://github.com/Whillikers) -- to be use in your theme.lua -- symlink or copy to config folder `local color = require('color')` local M = {} M.base00 = "#202126" -- ---- M.base01 = "#2d303d" -- --- M.base02 = "#5a576e" -- -- M.base03 = "#a1d2e6" -- - M.base04 = "#ca...
Config = Config or {} -- Config -- Config.Bail = 250 Config.MyLevel = 1 Config.MaxReputation = 200 Config.Locations = { ["take"] = { coords = vector4(38.74, -1005.49, 29.47, 264.5), }, ["spawn"] = { coords = vector4(38.15, -1001.65, 29.44, 342.5), }, } Config.Stock = { ["exotic"...
-- Adds the chat command(s) minetest.register_chatcommand("credits", { privs = { shout = true }, description = "The base command for credits, see /credits help", func = function (name, param) local words = credits.split(param, ' ') if words[1] == "bal" then return cr...
local g = vim.g local map = vim.api.nvim_set_keymap local bufmap = vim.api.nvim_buf_set_keymap g.mapleader = ' ' -- Disable F1 help binding. map('', '<f1>', '<cmd><cr>', {}) -- Toggle numbers. map('n', '<leader>n', '<cmd>set nu!<cr>', {}) -- Move between splits with ctrl + [hjkl] map('n', '<c-h>', '<cmd>wincmd h<cr...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local config = require "game.config" local s_sub = string.sub local cjson = require "include.cjson" local _M = {} _M.data = config.template.vip _M.type = { spirit_max = 1, battle_max=2, buylegi...
-- This is the scriptlet that is defined in PARAMETERS as -- -- {another-scriptlet-file, teardown, 'helps charm to teardown'} -- Juju might also define custom functions to be used in scriptlets JUJU.helpers['juju_help_me_teardown'](3,4)
local export = {} local tt = { ["א"] = "q", ["אָ"] = "o", ["אַ"] = "a", ["בּ"] = "b", ["ב"] = "b", ["בֿ"] = "v", ["גּ"] = "g", ["ג"] = "g", ["גֿ"] = "g", ["דּ"] = "d", ["ד"] = "d", ["דֿ"] = "d", ["ה"] = "H", ["ו"] = "w", ["וּ"] = "u", ["וו"] = "v", ["װ"] = "v", ["וי"] = "oy", ["ױ"] = "oy", ["ז"] = ...
local computer = require("computer") local component = require("component") local oop = require("oop") local config_api = require("brgc/config") local turbineState = require("brgc/turbine_state") local gRPMDanger = 1950 local gRPMMax = 1850 local gRPMMin = 750 local gRPMSkipHigh = 1450 local gRPMSkipLow = 980 local g...
-- todo: implement local _={} _.name="CharacterScreen" _.new=function() local r=BaseEntity.new() r.isUiDrawable=true r.editorVisible=false Entity.register(r) return r end --new _.drawUi=function(bar) end --drawUi _.keypressed=function(entity,key,unicode) end -- keypressed return _
------------------------------------------------------------------------------- -- ElvUI Chat Tweaks By Crackpot (US, Thrall) -- Based on functionality provided by Prat and/or Chatter ------------------------------------------------------------------------------- local Module = ElvUI_ChatTweaks:NewModule("Group Say Com...
--初始化日志模块 Debug.LogInit("logger/ChatRoom","ChatRoom",true); --初始化协议模块 local ProtoType={ Json=0, Protobuf=1, }; ProtoManager.Init(ProtoType.Protobuf,"F:\\Projects\\unity\\Moba\\Server\\apps\\lua_test\\scripts\\ChatRoom\\Const"); --如果是Protobuf协议,还需要注册映射表 if ProtoManager.ProtoType()==ProtoType.Protobuf then lo...
-- Franchises (for Education) -- v 0.1 (February 4, 2017) -- -- Contains: art for branding shops in a 'commercial' looking way -- -------------- --mmm -- signs minetest.register_node("franchises:mmm32", { description = "mmm 32x32", drawtype = "signlike", tiles = {"mmm32.png",}, inventory_image = "mmm3...
Class = require 'hump/class' require 'settings' require 'utils' local SCOREBOARD_FONT = love.graphics.newFont(16) Scoreboard = Class{ init = function(self, x, y, getPlayer) self.getPlayer = getPlayer self.x = x self.y = y end; draw = function(self) local player = self.getP...
dofile("app0:/common/FPSController.lua") dofile("app0:/input/InputModule.lua") local WHITE = Color.new(255, 255, 255) local BLACK = Color.new(0, 0, 0) FPSDrawController = {} function FPSDrawController.pipeline() Graphics.debugPrint(5, 5, "FPS: " .. FPSController.getFPS(), BLACK) Graphics.debugPrint(5, 524, "...
love.graphics.setDefaultFilter("nearest", "nearest") local Player = require("player") local Coin = require("coin") local Spike = require("spike") local Stone = require("stone") local Enemy = require("enemy") local GUI = require("gui") local Camera = require("camera") local Map = require("map") --local Music = require("...
--[[ Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru> 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...
--[[ Write a modification of getvarvalue (Listing 24.1), called getallvars, that returns a table with all variables that are visible at the calling function. (The returned table should not include environmental variables; instead, it should inherit them from the original environment.) ]] rdebug = require 'rdebug' x ...
require("entity") require("animation") Plate = {} function Plate:new(pos, action, deaction) local plate = setmetatable({}, {__index = Entity:new(pos, 16, 16, true)}) plate.type = "plate" plate.action = action or function()end plate.deaction = deaction or function()end plate:setOrigin(plate.width/2...
FFF_RecentFactions = { "Council of Exarchs", -- [1] "Arakkoa Outcasts", -- [2] "Steamwheedle Preservation Society", -- [3] "Knights of Draenor", -- [4] "Guild", -- [5] } FFF_LastTabardID = nil
--[[ 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_impl class local pipeline_impl = {} local pipeline_impl_mt = { __name = "pipeline_...
CodexDB["objects"]["enUS"]={ [4]="Bonfire Damage", [31]="Old Lion Statue", [32]="Sunken Chest", [33]="Locked Chest", [34]="Old Jug", [35]="Captain\'s Footlocker", [36]="Broken Barrel", [37]="Eliza\'s Tombstone", [38]="Captain Sanders Chest", [41]="Ambassador\'s Locker", [47]="Wanted: Lieutenant Fangore", [52]="Fall of ...
object_draft_schematic_chemistry_enhancer_enhancer_nutrientinjection = object_draft_schematic_chemistry_enhancer_shared_enhancer_nutrientinjection:new { } ObjectTemplates:addTemplate(object_draft_schematic_chemistry_enhancer_enhancer_nutrientinjection, "object/draft_schematic/chemistry/enhancer/enhancer_nutrientinjec...
-- redis_scriptd.lua -- Created by wugd -- 负责竞技场相关的功能模块 -- 声明模块名 REDIS_SCRIPTD = {} setmetatable(REDIS_SCRIPTD, {__index = _G}) local _ENV = REDIS_SCRIPTD script_folder = "server/redis_scripts/" cache_hashs = {} cache_full_path = {} script_slot = {} function load_script(name, slot) local hash_value = load_redis_...
--[[-------------------------------------------------------------------------- * * Mello Trainer * (C) Michael Goodwin 2017 * http://github.com/thestonedturtle/mellotrainer/releases * * This menu used the Scorpion Trainer as a framework to build off of. * https://github.com/pongo1231/ScorpionTrainer * (C) Emre ...
local player = game.Players.LocalPlayer local character = player.Character Player = game:GetService("Players").LocalPlayer Cha = Player.Character mouse = game.Players.LocalPlayer:GetMouse() local humanoidRootPart = character.HumanoidRootPart:Clone() local leftArm = character["Left Arm"] local rightArm = character["R...
resource_manifest_version "77731fab-63ca-442c-a67b-abc70f28dfa5" client_scripts { "config.lua", "client/main.lua" } server_scripts { "@vrp/lib/utils.lua", "config.lua", "server/main.lua" }
--Kill all cTriggerDmg = os.clock() function System_OnUpdateState(obj, elapsedTime) if os.clock() - cTriggerDmg > 0.1 then cTriggerDmg=os.clock() local myself = ObjMgr:GetCurrentPlayer() for i = 0, 500 do local enm = ObjMgr:FindByUID(i) if ObjMgr:IsFriend(enm, myself)==false then DirectHostEvent(enm, E...
----------------------------------- -- Area: Ship_bound_for_Selbina -- NPC: Map -- !pos 0.278 -14.707 -1.411 220 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(1024); end; function onEventUpdate(player,csid,option) end; function onEv...
-- two library -- two ui bgfx renderer module function two_ui_vg() includedirs { path.join(TWO_NANOVG_DIR, "src"), path.join(TWO_3RDPARTY_DIR, "stb"), } end function uses_two_ui_vg() includedirs { path.join(TWO_3RDPARTY_DIR, "vg-renderer", "include"), } defines { ...
local state = require("../state") local music = require("../music") local event = require("../event") local coin = require("../coin") local image = require("../image") local font = require("../font") local savefile = require("../savefile") local mainMenu = {} local track1 = love.audio.newSource("music/bgm.mp3", "strea...
--[[-------------------------------------------------------------------- PhanxChat Reduces chat frame clutter and enhances chat frame functionality. Copyright (c) 2006-2018 Phanx <addons@phanx.net>. All rights reserved. https://www.wowinterface.com/downloads/info6323-PhanxChat.html https://www.curseforge.com/wow/a...
return {'zeboe','zebra','zebracode','zebrahout','zebrapad','zebrastreep','zebravink','zebedeus','zeb','zebregs','zeboes','zebras','zebraatje','zebraatjes','zebrapaden','zebrastrepen','zebracodes','zebravinken','zebs'}
require "luci.sys" local api = require "luci.model.cbi.passwall.api.api" local var = api.get_args(arg) local FLAG = var["-FLAG"] local SMARTDNS_CONF = var["-SMARTDNS_CONF"] local LOCAL_GROUP = var["-LOCAL_GROUP"] local REMOTE_GROUP = var["-REMOTE_GROUP"] local REMOTE_FAKEDNS = var["-REMOTE_FAKEDNS"] local TUN...
--[[-------------------------------------------------------------------------- -- -- File: UTMain.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: April 21, 2010 -- ----------------------------------------------...
local class = class("MsgBox") class.__index = class local Constants = require("Constants") local SoundApp = require("SoundApp") local Settings = require("Settings") local protoTypes = require("ProtoTypes") function class.extend(target) local t = tolua.getpeer(target) if not t then t = {} tolua...
return function() local ReplicatedStorage = game:GetService("ReplicatedStorage") local Packages = ReplicatedStorage.Packages local Llama = require(Packages.Llama) local Set = Llama.Set local map = Set.map it("should validate types", function() local args = { { 0 }, { {}, 0 }, { 0, funct...
local Class = {} Class._index = Class return Class
function Bolt:delete_temp_permission(player, perm_id) if player.record.temp_permissions then for k, v in pairs(player.record.temp_permissions) do if v.permission_id == perm_id then v:destroy() end end end local perm_table = player:get_temp_permissions() perm_table[perm_id] = nil ...
local PlayerNumber = ... assert( PlayerNumber ) local bpm_text_zoom = 1 local song_bpms= {} local bpm_text= "??? - ???" local function format_bpm(bpm) return ("%.0f"):format(bpm) end -- Courses don't have GetDisplayBpms. if GAMESTATE:GetCurrentSong() then song_bpms= GAMESTATE:GetCurrentSong():GetDisplayBpms() son...
SSID="MY_SSID" PWD="MY_PASSWORD"
-- history.lua -- Implements undo-redo commands. function HandleUndoCommand(a_Split, a_Player) local State = GetPlayerState(a_Player) local IsSuccess, Msg = State.UndoStack:Undo(a_Player:GetWorld()) if (IsSuccess) then a_Player:SendMessage(cChatColor.LightGray .. "Reversed your previous edit.") else a_Player:S...
--[[ Author: tochonement Email: tochonement@gmail.com 23.07.2021 --]] whoi.round = whoi.round or {} whoi.round.votes = whoi.round.votes or {} local round = whoi.round local function getRandomExceptOne(tbl, exception) local filtered = {} for _, item in ipairs(tbl) do if item ~= exception then ...
RocketTypeNames = { Passenger = T(1116, "Passenger Rocket"), Cargo = T(1115, "Cargo Rocket"), Trade = T(8029, "Trade Rocket"), Refugee = T(8123, "Refugee Rocket"), ForeignAid = T(11194, "Foreign Aid Rocket"), Lander = T(13616, "Asteroid Lander"), Fallback = T(1685, "Rocket"), } DefineClass.FXRocket = { __paren...
-- VARIABLES =================================================================== -- settings -- gameobjects / components local GO = nil local TRANSFORM = nil local rayData = nil local startpt = Vector3() local endpt = Vector3() ...
function divisor_count(n) local total = 1 -- Deal with powers of 2 first while (n & 1) == 0 do total = total + 1 n = n >> 1 end -- Odd prime factors up to the square root local p = 3 while p * p <= n do local count = 1 while n % p == 0 do count = ...
require "ISUI/ISPanel" require "ISUI/ISButton" require "ISUI/ISInventoryPane" require "ISUI/ISResizeWidget" require "ISUI/ISMouseDrag" require "defines" ---@class ISCollapsableWindow : ISPanel ISCollapsableWindow = ISPanel:derive("ISCollapsableWindow"); --ISCollapsableWindow.viewList = {}; --***********************...
return { { input = { config = { controls = { left = { 'key:left', 'key:a', 'axis:leftx-', 'button:dpleft' }, right = { 'key:right', 'key:d', 'axis:leftx+', 'button:dpright' }, up = { 'key:up', 'key:w', 'axis:lefty-', 'bu...
local GuiService = game:GetService("GuiService") local InGameMenu = script.Parent.Parent local SetMenuOpenAction = require(InGameMenu.Actions.SetMenuOpen) local SendAnalytics = require(InGameMenu.Utility.SendAnalytics) local Constants = require(InGameMenu.Resources.Constants) local SetCurrentPage = require(InGameMenu....
commands = { { command = "autocheat", description = i18n("autocheat_desc", {default = "Provides automatic /cheat for commands that need it."}), exec = function(command, cmdParts) autoCheat = not autoCheat if autoCheat then Spring.Echo(i18n("autocheat_enabled", { default = "AutoCheat enabled."})) els...
local TLink = {} local TLinkMT = {__index = TLink} function TLink.new(List, Value, Prev, Next) local Link = { List = List, Value = Value, Previous = Prev, Next = Next, } if Prev then Prev.Next = Link end if Next then Next.Prev = Link end return setmetatable(Link, TLinkMT) end function TLink:Remove(...
--[[ The function io.tmpfile returns a stream over a temporary file, open in read/write mode. This file is automatically removed (deleted) when the program ends. The function flush executes all pending writes to a file. Like the function write, we can call it as a function —io.flush()— to flush the current output strea...
--region BaseLoad.lua --Date 2019/03/30 --Author NormanYang --基础加载类 --endregion local setmetatable = setmetatable local ResourceManager = ResourceManager BundleType = --Bundle包类型(父目录) { Base = 'base', --基础包(无) UI = 'ui', --UI类型 Atlas = 'atlas', --Atlas类型 Soldiers = 'soldiers', --士兵类型 Audios = ...
local fc = require("swig_fc") local result = fc.FcInit() print(result) local config = fc.FcConfigGetCurrent(); fc.FcConfigSetRescanInterval(config, 0); local pat = fc.FcPatternCreate(); local os = fc.FcObjectSetBuild3(fc.FC_FAMILY, fc.FC_STYLE, fc.FC_FILE); local fs = fc.FcFontList(config, pat, os); print(string.format...
object_tangible_loot_npc_loot_jellyfish_generic = object_tangible_loot_npc_loot_shared_jellyfish_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_jellyfish_generic, "object/tangible/loot/npc/loot/jellyfish_generic.iff")
-- Copyright 2007-2021 Mitchell. See LICENSE. local M = {} --[[ This comment is for LuaDoc. --- -- Language debugging support for Textadept. -- -- All this module does is emit debugger events. Submodules that implement debuggers listen -- for these events and act on them. -- -- Install this module by copying it into ...
----------------------------------------------------------------------------- -- Implements Versium API over a generic key-value storage system. -- -- (c) 2009 Yuri Takhteyev (yuri@freewisdom.org) -- License: MIT/X, see http://sputnik.freewisdom.org/en/License ----------------------------------------------------------...
local BaseMesh = require("classes.BaseMesh") --------------------------------------------------------------------------------- -- -- @type AssimpMesh -- --------------------------------------------------------------------------------- local AssimpMesh = Class(BaseMesh, "AssimpMesh") function AssimpMesh:init() Base...
local K, C, L = unpack(select(2, ...)) local Module = K:GetModule("Auras") local _G = _G local next = _G.next local pairs = _G.pairs local table_insert = _G.table.insert local unpack = _G.unpack local CreateFrame = _G.CreateFrame local GetSpellInfo = _G.GetSpellInfo local GetSpellTexture = _G.GetSpellTextu...
-- See LICENSE for terms GlobalVar("g_IdiotMonument", false) DefineClass.IdiotMonument = { __parents = { "Building", }, entity = "IceSet_05", } function IdiotMonument:GameInit() -- if there's already one replace with new one if IsValid(g_IdiotMonument) then g_IdiotMonument:OnDemolish() end g_IdiotMonument...
-- Copied because its local and 'UpdateClientEffects' calls this local function UpdatePoisonedEffect(self) local feedbackUI = ClientUI.GetScript("GUIPoisonedFeedback") if self.poisoned and self:GetIsAlive() and feedbackUI and not feedbackUI:GetIsAnimating() then feedbackUI:TriggerPoisonEffect() ...
--[[ A simple sanity test with some already known ModBus transactions. ]] local sprintf = string.format local function str_to_hex(str) local ret = '' local sep = '' for i = 1, #str do ret = ret .. sprintf('%s%02X', sep, str:byte(i)) sep = ' ' end return ret end local mb = require('lmodbus') ...
--!A cross-platform build utility based on Lua -- -- 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...
local PlayerPowerBarAlt = _G.PlayerPowerBarAlt if not PlayerPowerBarAlt then return end local _, Addon = ... local Dominos = LibStub('AceAddon-3.0'):GetAddon('Dominos') local EncounterBar = Dominos:CreateClass('Frame', Dominos.Frame) function EncounterBar:New() local f = EncounterBar.proto.New(self, 'encounter') f...
---@class CS.UnityEngine.ParticleSystem.LightsModule : CS.System.ValueType ---@field public enabled boolean ---@field public ratio number ---@field public useRandomDistribution boolean ---@field public light CS.UnityEngine.Light ---@field public useParticleColor boolean ---@field public sizeAffectsRange boolean ---@fie...
return function () end
minetest.override_chatcommand("notify", { privs = { kick = true, ban = false } })