content
stringlengths
5
1.05M
local x = 100000000 local k = 1 --local o = function (a) k = k + a end while (k < x) do -- o(1) k = k + 1 end print(tostring(os.clock()* 1000) .. " ms")
local PlayerLightningTarget = Class(function(self, inst) self.inst = inst end) function PlayerLightningTarget:CanBeHit() for k,v in pairs (self.inst.components.inventory.equipslots) do if v.components.dapperness and v.components.dapperness.mitigates_rain then return false end ...
local kernel = {} kernel.language = "glsl" kernel.category = "filter" kernel.name = "sharpenLuminance" kernel.vertexData = { { name = "sharpness", default = 0, min = 0, max = 1, index = 0, -- v_UserData.x }, } kernel.fragment = [[ P_COLOR vec4 FragmentKernel( P_UV vec2 texCoord ) { P_COLOR float unit_...
--保留关键定: id(默认,可以通过加载文件时传入,空格分格多个关键字), is_array, _data --数组用 id 可以转为数值则为索引, 如果有重复的child.tag 则自动转为数组 --如果有 is_array 字段则属性数据为数组,顺序重左到右为1.2.3.4... 否则就是一个table, 属性值为键值 --is_array 必须放在tag 后的第一们位置 --<test>xxx</test> xxx的值用test._data 来取,如果xxx是数字则自动转为数值, --自动把可以转为数值的值转为数值,如果不想转则用str_ 开头 local lom = require("lom...
local collider = {} local mtl1 = { with = function(self, w) self.collides_with[w] = true return({ f = self.collides_with, w = w, does = function(self, func) self.f[w] = func end } ) end } mtl...
--- -- The Store provides storage for all of the configuration settings pushed in by the -- user scripts, and methods to query those settings for use by the actions and -- exporters. --- local Block = require('block') local Condition = require('condition') local Stack = require('stack') local Type = require('type') l...
--[[ Sets options panel --]] local ADDON, Addon = ... local Panel = Addon:NewPanel('Sets') local L = LibStub('AceLocale-3.0'):GetLocale('Combuctor') local Sets = Combuctor('Sets') local selected, items = {}, {} local frame local MAX_ITEMS = 14 local HEIGHT = 26 local sendMessage = function(msg, ...) Sets:Send(ms...
local ObjectManager = require("managers.object.object_manager") local QuestManager = require("managers.quest.quest_manager") require("utils.helpers") FsCrafting4Theater = GoToTheater:new { -- Task properties taskName = "FsCrafting4Theater", -- GoToTheater properties minimumDistance = 60, maximumDistance = 100, ...
local _G = _G local tinsert = tinsert local wipe = wipe local gsub = gsub local hooksecurefunc = hooksecurefunc local GetNumQuestLogEntries = GetNumQuestLogEntries local GetQuestLogTitle = GetQuestLogTitle local IsQuestComplete = IsQuestComplete local C_QuestLog = C_QuestLog local MAX_NUM_QUESTS = MAX_NUM_QUESTS local ...
local a=module("_core","libs/Tunnel")local b=module("_core","libs/Proxy")emP=a.getInterface("hpp_trucker")local c=false;local d=0;local e=""local f=false;local g=nil;local h=1257.29;local i=-3180.40;local j=5.80;local k=0.0;local l=0.0;local m=0.0;local n=nil;Citizen.CreateThread(function()while true do Citizen.Wait(5*...
local w, h = term.getSize() term.clear() term.setCursorPos(1, 1) local t = { } for i = 1, 8 do table.insert(t, '---') end for i = 1, 255 do table.insert(t, string.format('%d %c', i, i)) end textutils.pagedTabulate(t)
local menu = require('projects/guessing game/modules/menu') local plr = require('projects/guessing game/modules/player') player = plr:new("Player", 0) diff = 1 main = function() os.execute("cls") choice = 0 if menu.fileExists("projects/guessing game/data/config.cfg") == false then local file = io.open("projects...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BsePickGold_pb', package.seeall) local BSEPICKGOLD = protobuf.Descriptor(); local BSEPICKGOLD_GOLD_FIELD = protobuf.FieldDescriptor(); BSEPICKGOLD_GOLD_FIELD.name = "gold" BSEPICKGOLD_GOLD_FIELD.full_name = ".com.xinqihd.sns.games...
#!/usr/bin/env texlua -- Generate the documentation with implementation. local input_file_name = arg[1] local output_file_name = arg[2] local code_doc_str = "%<!--CODEDOC-->" local code_doc_len = string.len(code_doc_str) input_file = io.open(input_file_name, "r") output_file = io.open(output_file_name, "w") for...
local _, ns = ... local oUF = oUF or ns.oUF if not oUF then return end local playerClass = select(2,UnitClass("player")) local CanDispel = { PRIEST = { Magic = true, Disease = true }, SHAMAN = { Magic = false, Curse = true }, PALADIN = { Magic = false, Poison = true, Disease = true }, DRUID = { Magic = false, Cur...
local copas = require("copas") local http = require("copas.http") local url = assert(arg[1], "missing url argument") print("Testing copas.http.request with url " .. url) local switches, max_switches = 0, 1000000 local done = false copas.addthread(function() while switches < max_switches do copas.sleep(0) sw...
local ffi = require("ffi") local Context = require("udev.context") local Device = require("udev.device") local libudev = require("udev.libudev") local lib = libudev.lib ---@class UDevMonitor ---@field context UDevContext ---@field udev_monitor udev_monitor local Monitor = {} ---@overload fun(self, from: "'netlink'"...
-------------------------------------------------------------------------------- -- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" -----------------------------------------------------------------...
local ffi = require 'ffi' local success, lib = pcall( ffi.load, 'Mfplat' ) if not success then return false end local com = require 'exports.mswindows.com' local guids = require 'exports.mswindows.guids' require 'exports.mswindows.automation' com.predef 'IMFSample' com.predef 'IMFCollection' ffi.cdef [[ typede...
local Concord = require("lib.concord") local Cpml = require("lib.cpml") local Mesh = Concord.component(function(e, mesh) e.mesh = mesh end) local GetProperties, SetProperties = {}, {} Mesh.__mt.__index = function(e, key) return GetProperties[key] and GetProperties[key](e) or Mesh[key] end Mesh.__mt.__newin...
-- Copyright 2016 by Malte Skambath -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @library local evolving -- Library name -- Load dependencies: r...
Talk(0, "哇!这里这么多人,干什么这么热闹,可少不了小侠我.我说名门正派又怎么样,还不是一样赶尽杀绝,跟魔教又有什么两样,只不过藉口好听一点罢了.", "talkname0", 1);Talk(14, "都是你这个兔崽子,打伤了鹰王和我,", "talkname14", 0); Talk(11, "还有我.", "talkname11", 0); Talk(14, "害我们只剩下范右使应战,寡不敌众.....", "talkname14", 0); Talk(0, "既然如此,我就帮你们打发这些人,当是陪罪好了.", "talkname0", 1); Talk(70, "少侠非魔教人士,还请速速离去,以免受池鱼之殃.", "...
--[[ Jogo Cobra # Tentar a ideia de manter todo o corpo no corpo, ou seja, sem a separação da cabeça e corpo. ]]-- require "cobra" require "comida" function love.load(arg) if arg[#arg] == "-debug" then require("mobdebug").start() end -- Debug para ZeroBrane Studio IDE Utilize; Argumento - arg esta dis...
-- army.lua Army = Object:extend() function Army:new() self.transform = Transform(0, 0, 1, 1) self.troops = {} -- spawn points self.points = {} self.points.top = Transform( love.graphics.getWidth() / 2, -32, 1, 1 ).position self.points.bottom = Transform( love.graphics.getWidth() ...
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- columnlistarea class local newobject = loveframes.NewObject("columnlistarea", "loveframes_object_columnlistarea", true) ...
-- conf.lua -- -- @about Describes the configuration of the game. -- @brief Config function called before any other function. -- @param t Table holding configuration settings. function love.conf(t) -- misc t.version = "11.2" -- LÖVE version this game was made for t.console = false t.gammacorrect = false -- audi...
local status_ok, lightspeed = pcall(require, "lightspeed") if not status_ok then vim.notify("lightspeed not found") return end lightspeed.setup({ ignore_case = false, exit_after_idle_msecs = { unlabeled = 1000, labeled = nil }, --- s/x --- jump_to_unique_chars = { safety_timeout = 400 }, match_only_the_s...
-- Attempt to map the monadic DSL style to Lua. -- -- The basic idea is to implement a "pure" DSL that represents a -- dataflow network. I've used two approaches for this in the past: a -- Monadic DSL in Haskell, and an Erlang implementation with an effect -- handler. For Lua it seems the simplest approach is to dupl...
-- Convert degrees to radians. local function radians(d) return math.pi / 180 * d end -- Convert radians to degrees. local function degrees(r) return 180 / math.pi * r end -- Module exports. return { radians = radians, degrees = degrees }
regularization = {} function regularization.applyregularization(rbm) if rbm.sparsity > 0 then -- rbm.db:add(-rbm.sparsity) -- db is bias of visible layer rbm.dc:add(-rbm.sparsity) -- dc is bias of hidden layer -- rbm.dd:add(-rbm.sparsity) -- dd is bias of "labe...
object_tangible_furniture_all_frn_all_lamp_tbl_s02 = object_tangible_furniture_all_shared_frn_all_lamp_tbl_s02:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_lamp_tbl_s02, "object/tangible/furniture/all/frn_all_lamp_tbl_s02.iff")
--[[ This file is part of halimede. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/pallene/halimede/master/COPYRIGHT. No part of halimede, including this file, may be copied, modified, propagated, or distributed exc...
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
------------------------------------------------------------------------ -- ContentLoss ------------------------------------------------------------------------ local ContentLoss, parent = torch.class('nn.ContentLoss', 'nn.Module') function ContentLoss:__init(strength, target, normalize) parent.__init(self) self....
require("custom.utils") local map = require("core.utils").map vim.cmd("nnoremap <silent> <leader> :WhichKey '<Space>'<CR>") map("n", "<leader>cc", ":Telescope <CR>") map("n", "<leader>q", ":wqa <CR>") map("n", "<leader>1", ":BufferLineGoToBuffer 1<CR>") map("n", "<leader>2", ":BufferLineGoToBuffer 2<CR>") map("n", "...
----------------------------------- -- Area: Lower Jeuno (245) -- NPC: Mertaire -- Starts and Finishes Quest: The Old Monument (start only), A Minstrel in Despair, Painful Memory (BARD AF1) -- !pos -17 0 -61 245 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") r...
-- This is the v1.1 if CLIENT then surface.CreateFont("Default_font", { font = "Roboto", extended = false, size = 16 }) surface.CreateFont("NameWeapon_font", { font = "Roboto", extended = false, size = 12 }) end print("[SSHUD] Loading of cl_hud.lua compl...
-- -- Addon _fiu_inventory.lua -- Author marcob@marcob.org -- StartDate 02/05/2017 -- local addon, cD = ... function cD.scanInventories() local itemBase = {} -- scan Inventory Bags local invBags = Inspect.Item.List(Utility.Item.Slot.Inventory()) for slotId, itemId in pairs(invBags) do ...
include("dualstick360/globals.lua") include("dualstick360/bullet.lua") include("dualstick360/utils.lua") Player = {} Player.__index = Player --[[ Create a new Player object ]] function Player.new() local self = setmetatable({}, Player) self.go = GameObjectManager:createGameObject("PlayerOne") return self end --[[...
function Buy(ply, price) local pmoney = ply:GetValue("ZMoney") if (pmoney and pmoney >= price) then ply:SetValue("ZMoney", pmoney - price, true) return true end end Package.Export("Buy", Buy) function AddMoney(ply, added) local pmoney = ply:GetValue("ZMoney") if pmoney then ...
slot0 = class("GuildBossFormationShipCard") slot0.Ctor = function (slot0, slot1) slot0._go = slot1 tf(slot1).pivot = Vector2(0.5, 0) tf(slot1).sizeDelta = Vector2(200, 300) tf(slot1).localScale = Vector3(0.6, 0.6, 0.6) end slot0.RefreshPosition = function (slot0, slot1, slot2) slot0.soltIndex = slot1 if slot2 ...
#!/usr/bin/env luajit local unpack = unpack or require'table'.unpack -- math.randomseed(123) local rrt = require'rrt' local grid = require'grid' -- Go from 0,0 to 1,1 local interval_x = {-1, 1} local interval_y = {-1, 1} local planner = rrt.new({ intervals = {interval_x, interval_y} }):set_system{ is_collision = ...
local composer = require( "composer" ) local scene = composer.newScene() physics = require ("physics" ) local function gotoMenu() composer.gotoScene("menu") return true end function scene:create ( event ) local sceneGroup = self.view local camerEngine = require ("ssk2.loadSSK") _G.ssk.init() display.setDefault(...
local VisualAIPlan = class.class("VisualAIPlan") local CoIter = require("mod.visual_ai.api.CoIter") local utils = require("mod.visual_ai.internal.utils") function VisualAIPlan:init() self.blocks = {} self.subplan_true = nil self.subplan_false = nil self.parent = nil end function VisualAIPlan:current_block...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_medusa_ma...
require 'torch' require 'libsvmutil' require 'svmsgd' require 'liblinear' require 'libsvm' include('data.lua')
-- This script flips the squawk code between 1200 and 7000 -- to set the transponder for a VFR flight. As the VFR code -- is 7000 in Europe, we can't simply do this: create_positive_edge_trigger(13, "sim/cockpit/radios/transponder_code", 0, 1200); -- Instead we use the flip command to set it to 1200 or 7000: create_...
function f1(a: number, b: string) if a > 100 then return a else return b end end let a = f1(100, 'abc') let b: number = f1(100, 'abc')
/*============================================================================= Expression-Advanced TextEditor Author: Oskar Credits: Andreas "Syranide" Svensson for making the E2 editor =============================================================================*/ local math_max = math.max local math_min ...
--[[ TheNexusAvenger Visual indicator for the end of aiming. --]] local BEACON_SPEED_MULTIPLIER = 2 local Workspace = game:GetService("Workspace") local NexusVRCharacterModel = require(script.Parent.Parent.Parent.Parent) local NexusObject = NexusVRCharacterModel:GetResource("NexusInstance.NexusObject") local Bea...
function FG_DrawBackgroundBlur( panel, starttime, blur ) local matBlurScreen = Material( "pp/blurscreen" ) local Fraction = 1 if ( starttime ) then Fraction = math.Clamp( (SysTime() - starttime) / 1, 0, 1 ) end local x, y = panel:LocalToScreen( 0, 0 ) DisableClipping( true ) surface.SetMat...
require("config") require("module") require("common") require("cameraTracker") package.path=package.path..";../Samples/FlexibleBody/lua/?.lua" --;"..package.path require("test/IguanaIKSolverLua") require("RigidBodyWin/subRoutines/CollisionChecker") useGraph=true background="terrain" --background="plane" showHighMesh=fa...
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("UnitFrames") local _, ns = ... local oUF = RayUF or oUF local utf8sub = function(string, i, dots) local bytes = string:len() if (bytes <= i) then ...
local nest = require('nest') -- register groups name via which-key and apply via nest local register_groups = function(maps) for _, map in pairs(maps) do nest.applyKeymaps(map) end end local escapes = { { mode = "i", { "jk", "<Esc>" } }, { mode = "t", { "jk", "<C-\\><C-N>" } }, } local leader...
function start (song) print("Song: " .. song .. " @ " .. bpm .. " downscroll: " .. downscroll) followDadXOffset = -75 end local defaultHudX = 0 local defaultHudY = 0 local defaultWindowX = 0 local defaultWindowY = 0 local lastStep = 0 local floatShit = 0 local dadMidpointX = 0 local dadMidpointY = 0 function ...
local errorinfo_list = { [1] = "技能还在冷却中", [2] = "能量不足", [3] = "血量不足", [4] = "没有目标", [5] = "封印状态下无法使用该技能", [6] = "没有阵亡队友", [7] = "技能释放失败", [8] = "只有队长可以进行此操作", [9] = "全员自动中,无法进行此操作", } function showErrorInfo(id) root.view.battle.Canvas.ErrorInfo:SetActive(true); root.view.bat...
function OnAlarm(timer) --local pickupEntity = timer:getEntity() timer.currentTrigger:setEnabled(true) local app = Phyre.PApplication.GetApplicationForScript() local controller = timer:getEntity():getComponentType(Phyre.PQuarryComponent):getEntity():getComponent(Phyre.PPhysicsCharacterControllerComponent) if c...
require("neoscroll").setup({ mappings = { "<C-u>", "<C-d>", "zt", "zz", "zb" }, })
-- Places a node within a 3x3x3 around the main node local make_ore = function (pos, elapsed) local meta = minetest.get_meta(pos) --oreveins.tools.log("make_ore "..minetest.serialize(oreveins._internal.oreos[meta:get_string("id")])) local ore = oreveins._internal.oreos[meta:get_string("id")]["nodes"][math....
-- Taken from bb template if PointsManager == nil then Debug.EnabledModules['points:*'] = false DebugPrint ( 'Creating new PointsManager object.' ) PointsManager = class({}) end local WinnerEvent = Event() local ScoreChangedEvent = Event() local LimitChangedEvent = Event() PointsManager.onWinner = WinnerEvent.l...
--[[ ExtendedExportFilter.lua --]] local ExtendedExportFilter, dbg, dbgf = ExportFilter:newClass{ className='ExtendedExportFilter', register=true } --- Constructor for extending class. -- function ExtendedExportFilter:newClass( t ) return ExportFilter.newClass( self, t ) end --- Constructor for new ...
local PLUGIN = PLUGIN --[[PLUGIN.itemDrops = { drop = { {items = {"food_ruchkasamodrochka8"}, chance = 55, class = "npc_mutant_boar"}, {items = {"food_ruchkasamodrochka7"}, chance = 55, class = "npc_bloods"}, {items = {"food_ruchkasamodrochka2"}, chance = 55, class = "npc_zombies"}, {items = {"food_ru...
ENT.Type = "anim" ENT.Base = "base_entity" ENT.PrintName = "Thrown smoke grenade" ENT.Author = "Spy" ENT.Information = "Thrown smoke grenade" ENT.Spawnable = false ENT.AdminSpawnable = false
class "RenderTargetBinding" RenderTargetBinding.MODE_IN = 0 RenderTargetBinding.MODE_OUT = 1 RenderTargetBinding.MODE_COLOR = 2 RenderTargetBinding.MODE_DEPTH = 3 function RenderTargetBinding:__getvar(name) if name == "id" then return Polycode.RenderTargetBinding_get_id(self.__ptr) elseif name == "name" then re...
require('prototypes.custom-input') require('prototypes.gui-style') require('prototypes.item')
ele.register_tool("elepower_wireless:wireless_porter", { description = "Wireless Porter", inventory_image = "elewireless_wireless_porter.png", on_use = function (itemstack, player, pointed_thing) local meta = itemstack:get_meta() local storage = ele.tools.get_tool_property(itemstack, "storage") ...
local glue = require'glue' local pp = require'pp' local fs = require'fs' assert(fs.chdir(fs.exedir()..'/../../tests')) local function tostr(s) return pp.format(s) end local function _test(t1, t2, prefix, level) if type(t1)=='table' and type(t2)=='table' then --for k,v in pairs(t1) do print('>t1',k,v) end --fo...
noise_sprite_offset = 120 terrain_1 = {} -- spike mountains terrain_2 = {} -- level mountains terrain_1_start = 64 terrain_2_start = 86 terrain_height = 64 terrain_unit = terrain_height / 15 base_map_offset_x = 120 base_map_offset_y = 16 base = {} base_parts = { 45, 46, 61, 62, 63 } spaceship_parts...
#!/usr/local/bin/lua print("Hello, World") sum = 0 num = 1 while num <= 100 do sum = sum + num num = num + 1 end print("sum =",sum) local age = io.read() if age == 40 and sex =="Male" then print("男人四十一枝花") elseif age > 60 and sex ~="Female" then print("old man without country!") elseif age < 20 then...
local tablex = require('tablex') local sf = string.format local til = tablex.is_list local type = type local has_lspconfig, _ = pcall(require, 'lspconfig') if not has_lspconfig then print('‼ Tried loading lspconfig for omnisharp ... unsuccessfully.') return has_lspconfig end --- Recursively flatten a table...
----------------------------------- -- Ability: Elemental Siphon -- Drains MP from your summoned spirit. -- Obtained: Summoner level 50 -- Recast Time: 5:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/pets") requ...
local MINIMUM_PLAYERS = 1 local MAXIMUM_PLAYERS = 8 function givePositionFeedback(playerPosition) -- Checking if the player's position is a valid number if playerPosition >= MINIMUM_PLAYERS and playerPosition <= MAXIMUM_PLAYERS then -- Getting correct message based on player's position ...
package.path = "../?.lua;"..package.path; require("p5") local gestureCommands = { [1] = "GID_BEGIN"; [2] = "GID_END"; [3] = "GID_ZOOM"; [4] = "GID_PAN"; [5] = "GID_ROTATE"; [6] = "GID_TWOFINGERTAP"; [7] = "GID_PR...
-------------------------------- --- DUPLICATOR -------------------------------- local Duplicator = {} MR.Duplicator = Duplicator local dup = { -- Force to stop the current loading to begin a new one forceStop = false, -- Get the recreated table format version recreateTableSaveFormat, -- Controls the timer from ...
object_building_kashyyyk_poi_kash_rryatt_lvl2_far_tree_a1 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl2_far_tree_a1:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl2_far_tree_a1, "object/building/kashyyyk/poi_kash_rryatt_lvl2_far_tree_a1.iff")
Particle = require("entities.core.particle") WalkingDust = class("Particle", Particle) WalkingDust.spritesheet = SpriteSheet:new("sprites/dust2.png", 32, 32) function WalkingDust:initialize() Particle.initialize(self) self.scale = 1 self.velx = 0 self.vely = 0 self.lifetime = 0.5 end function W...
function appInclude() includedirs { "$(SolutionDir)", "$(SolutionDir)ThirdParty", } end function appResourceFiles() files { "./Assets/Icon/Resource.rc", "./Applications/Resource.h" } end workspace "Rockcat" location "./" configurations { "Debug", "Release" } objdir "$(SolutionDir)Ou...
-- Called when chat message sent function ChatControl(args) -- Set the weather if args.text:sub(0,8) == "/weather" then -- Grab the weather value local wea = args.text:sub(10,args.text:len()) -- Check weather words if wea == "sunny" then DefaultWorld:SetWeatherSeverity(0) Chat:Broadca...
C_Club = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_Club.AcceptInvitation) ---@param clubId string function C_Club.AcceptInvitation(clubId) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_Club.AddClubStreamChatChannel) ---@param clubId string ---@param streamId string function C_Club.A...
------------------------------------------------------------------------------ -- MultiBox class ------------------------------------------------------------------------------ local ctrl = { nick = "multibox", parent = iup.BOX, subdir = "elem", creation = "-", funcname = "MultiBox", callback = {} } functi...
local localization = { --- Settings menu entries --- ATT_STR_GENERAL = "Allgemein", ATT_STR_SHOW_WINDOW_ON_MAIL = "Zeige Fenster im Postfach", ATT_STR_SHOW_WINDOW_ON_GUILDSTORE = "Zeige Fenster im Gildenladen", ATT_STR_SHOW_WINDOW_ON_...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0) combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) function onGetFormulaValues(player, level, maglevel) return 4, 7 end...
--[[ File: game.lua Author: Daniel "lytedev" Flanagan Website: http://dmf.me The gamestate in charge of managinplayer... well... the game. ]]-- local Game = Gamestate.new() local pairs = pairs function Game:init() self.pixelFont = love.graphics.newFont("assets/fonts/pf_tempesta_seven_condensed.ttf", 8) worl...
package("memorymapping") set_homepage("https://github.com/NimbusKit/memorymapping") set_description("fmemopen port library") set_urls("https://github.com/NimbusKit/memorymapping.git") add_versions("2014.12.21", "79ce0ddd0de4b11e4944625eb866290368f867c0") on_install("android", "macosx", "iphoneos...
--[[ Collection of functions to detect if a line hits a shape Special thanks to Rayco "XeNMaX" Hernandez García for his BIG help. ]] local ZERO_TOLERANCE = 0.000001 Vector3D = { new = function(self, _x, _y, _z) local newVector = { x = _x or 0.0, y = _y or 0.0, z = _z or 0.0 } return setmetatable(ne...
local Decay = Class(function(self, inst) self.inst = inst self.maxhealth = 100 self.decayrate = 1 self.currenthealth = self.maxhealth end) function Decay:DoDelta(amount) local oldhealth = self.currenthealth self.currenthealth = self.currenthealth + amount if self.currenthealth <=...
local treesitter = require'nvim-treesitter.configs' local function init() treesitter.setup{ ensure_installed = { 'bash', 'css', 'go', 'graphql', 'html', 'json', 'lua', 'python', 'rust', 'tsx', 'typescript', 'yaml', }, highlight = { ...
local IInput = require("api.gui.IInput") local IUiLayer = require("api.gui.IUiLayer") local InputHandler = require("api.gui.InputHandler") local UiTheme = require("api.gui.UiTheme") local UiWindow = require("api.gui.UiWindow") local Draw = require("api.Draw") local ColorEditorMenuList = require("mod.extra_config_option...
local _, ns = ... local B, C, L, DB, P = unpack(ns) P.Changelog = [[ v1.4.1 [鼠标提示] 地下城信息显示超时颜色 [易用性] 添加刻希亚稀有逃跑的荒蚺助手 v1.4.0 [主要] 更新支持9.1 [美化] 更新部分插件美化 [鼠标提示] PvE进度信息添加新版本数据,地下城信息由副本次数更新为暴雪副本评分和最高层数 [易用性] 添加暂离界面 [易用性] 修复复制幻化 [易用性] 移除顿号转斜杠 v1.3.11 [美化] 修复WeakAurasOptions报错 v1.3.10 [报错] 修复一个加载错误 v1.3.9 [美化] 兼容旧版Meetin...
iron = {} iron.blocks = {} function iron:load() iron.spr = love.graphics.newImage("/assets/iron.png") iron:new(0, 15, 31, 1) iron:new(-15, 0, 1, 31) iron:new(15, 0, 1, 31) iron:new(0, -15, 31, 1) -- Starting block iron:new(0,3, 4, 2) iron:new(10,-5, 2, 10) iron:new(7, 10, 3, 2)...
local World = {} World.__index = World local beginContact = function(a, b, coll) if (a:getUserData() == "MainCharacter" and b:getUserData() == "Ground") or (a:getUserData() == "Ground" and b:getUserData() == "MainCharacter") then gameDirector:getMainCharacter().inGround = true end local bulletFixt...
--[[ This Lua script is to override timestamp with integer/float epoch time. https://github.com/fluent/fluent-bit/issues/662 sample input is [XXXXX.XXXXX, {"KEY_OF_TIMESTAMP"=>1530239065.807368, "data"=>"sample"}] expected output is [1530239065.807368040, {"KEY_OF_TIMESTAMP"=>1530239065.807368, "...
------------------------------------------ --- G6HotFix 的加载,用于加载整个Lua系统 ------------------------------------------ -- -- G6采用Require来加载Lua文件,以提供HotFix支持, -- 所以在加载其他Lua文件之前,要先将HotFix加载 -- -- Load HotFix print("Load HotFix..."); local hotfix_func,err = UELoadLuaFile("G6Hotfix.lua"); if (hotfix_func) and type(hotfix_...
local Behavior = CreateAIBehavior("InVehicleTranquilized", "Dumb", { Exclusive = 1, Constructor = function(self,entity,data) AI.ModifySmartObjectStates(entity.id,"Busy"); entity:InsertSubpipe( AIGOALPIPE_HIGHPRIORITY, "cv_tranquilized", nil, -190 ); entity:TriggerEvent(AIEVENT_SLEEP); AI.SetIgnorant(entit...
require("telescope").setup { defaults = { mappings = { i = { ["<C-k>"] = "move_selection_previous", ["<C-j>"] = "move_selection_next", }, n = { ["<C-k>"] = "move_selection_previous", ["<C-j>"] = "move_selection_next", }, }, prompt_prefix = "❯ ", ...
local wezterm = require'wezterm' local fennel = require'fennel' --watch_path = wezterm.config_dir .. "config.fnl" local value = wezterm.config_dir .. "/config.fnl" --print("string" .. value) wezterm.add_to_config_reload_watch_list(value) fennel.path = (wezterm.config_dir .. "/?.fnl;" .. fennel.path) --package.path = (w...
bgNPC:SetStateAction('zombie', 'danger', { update = function(actor) local enemy = actor:GetNearEnemy() if not IsValid(enemy) then return end local npc = actor:GetNPC() local data = actor:GetStateData() data.delay = data.delay or 0 if enemy:IsPlayer() and enemy:InVehicle() then enemy = enemy:GetVehicl...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { { CondList = { { API = "参与天数", CompCount = 1, Desc = "Play Bakugo's Challenge for 1 days.", ...
-------------------------------------------------------------------------------- -- Control panel handler -------------------------------------------------------------------------------- local HTTP_Return = { "HTTP/1.1 302 OK", "Location: /\n" } --------------------------------------------------------------------...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local datetime = require "util.datetime"; local jid_split = require "util.jid".split; local offline_mess...