content
stringlengths
5
1.05M
function slib.Animator.RegisterAnimation(name, model, sequence_list) local i, _ = table.WhereFindBySeq(slib.Storage.Animations, function(_, v) return v.name == name end) if i ~= -1 then table.remove(slib.Storage.Animations, i) end table.insert(slib.Storage.Animations, { name = name, model = Model(model), sequ...
--ELF·古森林的白狼 function c1190014.initial_effect(c) -- local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_CHAINING) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e1:SetRange(LOCATION_MZONE) e1:Set...
--[[ This demo is nearly identical to the basic example, except that it has a basic cursor rendering implementation. To render the cursor, we split the text to the parts before and after the cursor, using the LOVE built-in 'Font:getWidth()' method to measure how much text is before the cursor. This doesn't take into a...
ZO_CreateStringId("SI_BUI_INV_ITEM_ALL","|cFF6600Áce|r") ZO_CreateStringId("SI_BUI_INV_ITEM_MATERIALS","Íaòepèaìÿ") ZO_CreateStringId("SI_BUI_INV_ITEM_QUICKSLOT","|cFF6600Consumable|r") ZO_CreateStringId("SI_BUI_INV_ITEM_WEAPONS","Opóæèe") ZO_CreateStringId("SI_BUI_INV_ITEM_APPAREL","Oäeæäa") ZO_CreateStringId("SI_BUI_...
-- imports import("core.project.config") import("core.project.project") -- main entry function main () -- load config config.load() -- print targets local names = {} for name, _ in pairs((project.targets())) do table.insert(names, name) end table.sort(names) for _, name in i...
local llae = require 'llae' function os.isdir(path) local s,err = llae.file.stat(path) return s and s.isdir end function os.mkdir(path) local s,err = llae.file.mkdir(path) print('os.mkdir',s,err) return s,err end
print "testing syntax" -- testing priorities do assert(2 ^ 3 ^ 2 == 2 ^ (3 ^ 2)); assert(2 ^ 3 * 4 == (2 ^ 3) * 4); --assert(2 ^ -2 == 1 / 4 and -2 ^ --2 == --4); 这行在format后不符合语法,不要测试 assert(not nil and 2 and not (2 > 3 or 3 < 2)); assert(-3 - 1 - 5 == 0 + 0 - 9); assert(-2 ^ 2 == -4 and (-2) ^...
require "Window" local InWorldIcon = {} setmetatable(InWorldIcon, { __call = function (cls, ...) return cls.new(...) end, }) function InWorldIcon.new(parent, xmlDoc) local self = setmetatable({}, { __index = InWorldIcon }) self.Enabled = false self.parent = parent self.xmlDoc = xmlDoc self.Ic...
local github = require("cmp_git.github") local gitlab = require("cmp_git.gitlab") local git = require("cmp_git.git") local utils = require("cmp_git.utils") local Source = { config = {}, filetypes = {}, } Source.new = function(overrides) local self = setmetatable({}, { __index = Source, }) ...
object_ship_dunelizard_s02_tier10 = object_ship_shared_dunelizard_s02_tier10:new { } ObjectTemplates:addTemplate(object_ship_dunelizard_s02_tier10, "object/ship/dunelizard_s02_tier10.iff")
require('utils') local item = require("../item"); local image = require("../image") return { name = "Lake Fishing", amount = 25, weight = 1, condition = function (state) return state.knightInvited and state.coins >= 25 end, description = "At your knight friend's invitation, you...
addEvent("kickamemberoption",true) addEventHandler("kickamemberoption",getRootElement( ), function( nickname, razon ) local group = getPlayerGroup( source ) local accountName = getAccountFromName( nickname ) if isAccountOfFounder( accountName, group ) then createNotification("No se puede expulsar al Fu...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.rules.end_turn.update_quest_status", function() local rule = require "game.rules.end_turn.update_quest_status" local quest = require "game.entities.quest" loca...
--[[ Component that wraps its provided children with a store provider, and a ScreenGui. ]] local CorePackages = game:GetService("CorePackages") local Roact = require(CorePackages.Roact) local Rodux = require(CorePackages.Rodux) local RoactRodux = require(CorePackages.RoactRodux) local InspectAndBuyFolder = script.P...
player = {} local player = player setmetatable(player, player) --结构 player.__index = { --类型 type = 'player', --句柄 handle = 0, --id id = 0, --获取id get = function(this) return this.id end, --是否是玩家 isPlayer = function(this) return jass.GetPlayerController(this.handle) == jass.MAP_CON...
-- Copyright (c) 2017-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 in the PATENTS file in the same directory. local argcheck = req...
object_tangible_terminal_terminal_travel_instant_tcg_slave_1 = object_tangible_terminal_shared_terminal_travel_instant_tcg_slave_1:new { } ObjectTemplates:addTemplate(object_tangible_terminal_terminal_travel_instant_tcg_slave_1, "object/tangible/terminal/terminal_travel_instant_tcg_slave_1.iff")
Locales['sv'] = { ['actions'] = 'handling', ['amount'] = 'belopp', ['balance'] = 'balans', ['bank'] = 'bank', ['bill_amount'] = 'räkning belopp', ['billing'] ...
sign = nil CF = nil status = nil Citizen.CreateThread(function() while CF == nil do Citizen.Wait(0) TriggerEvent('cf:getSharedObject', function(obj) CF = obj end) end end) queue = {} function Ticket(_source,Target,amount) local source = _source status = nil l...
module ('content.properties', package.seeall) require 'base.property' require 'content.triggers.mouse_pressedleft' require 'content.triggers.mouse_releasedleft' require 'content.triggers.update' grabbable = base.property:new { requires = { 'visible' } } local function follow_mouse (self) self.visible.pos = lux....
for i=1,270 do local A_1 = "Water" local A_2 = "N9TT-9G0A-B7FQ-RANC" local Event = game:GetService("ReplicatedStorage").GiveTool Event:FireServer(A_1, A_2) wait() local A_1 = "Fanta" local A_2 = "N9TT-9G0A-B7FQ-RANC" local Event = game:GetService("ReplicatedStorage").GiveTool Event:FireServer(A_1, A_2) wait() local A...
local packer = require('packer') local plugins = require('jonz94.plugins') -- initialize packer settings packer.init({ display = { working_sym = ' ', error_sym = ' ', done_sym = ' ', removed_sym = ' ', moved_sym = ' ', open_fn = function() return require('packer.util').float({ bord...
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of this file...
local state = require("prosesitter/state") local log = require("prosesitter/log") local severity_as_int = { error = 4, warning = 3, suggestion = 2, } local function other(linter) if linter == "vale" then return "langtool" else return "vale" end end Issue = {} Issue.__index = Issue function Issue.new() loc...
local object = ' James' .. string.char(20) function string:say_hi() local name = self:sub(1, 8) local age = self:byte(9, 9) print('Hi, my name is ' .. name .. ', I am ' .. tostring(age) .. ' years old.') end object:say_hi() local samanta = ' Samanta' .. string.char(24) samanta:say_hi()
local Symbol = require(script.Parent.Symbol) local Portal = Symbol.named("Portal") return Portal
--[[ Takes a lock Input: KEYS[1] 'lock', ARGV[1] token ARGV[2] lock duration in milliseconds Output: "OK" if lock taken successfully. ]] if redis.call("SET", KEYS[1], ARGV[1], "NX", "PX", ARGV[2]) then return 1 else return 0 end
-- gin local helpers = require 'gin.helpers.common' -- perf local error = error local pairs = pairs local setmetatable = setmetatable -- define error Error = {} Error.__index = Error local function init_errors() -- get app errors local errors = helpers.try_require('config.errors', {}) -- add system erro...
local F, C = unpack(select(2, ...)) tinsert(C.themes["FreeUI"], function() local r, g, b = C.r, C.g, C.b local function moveNavButtons(self) local width = 0 local collapsedWidth local maxWidth = self:GetWidth() - self.widthBuffer local lastShown local collapsed = false for i = #self.navList, 1, -1 do ...
local const = {} const.layer = { map = 1, item = 2, actor = 3 } const.layer.first = const.layer.map const.layer.last = const.layer.actor return const
return { lintCommand = "staticcheck", lintIgnoreExitCode = true, lintFormats = {"%f:%l:%c: %m"}, lintSource = "staticcheck", lintSeverity = 2 }
-- t-util for Lua 5.1 by Loominatrx -- Compatible with Luau and Vanilla Lua. -- Lua's table references local sort = table.sort local insert, remove, move = table.insert, table.remove, table.move local pack, unpack, concat = table.pack, table.unpack, table.concat local random = math.random local foreach, foreac...
-- Base Screen -- local Modern = require 'modern' local Gamestate = Modern:extend() function Gamestate:init(data) self.id = data.id or Util:uuid() self.name = data.name or 'scene' self.controls = Control(data.controls or {}) end -- Tear down -- function Gamestate:destroy() self.controls:destroy() ...
local wibox = require("wibox") local beautiful = require("beautiful") local widget = require("util.widgets") local font = require("utils.font") local mat_text = require("utils.material.text") local icons = require("config.icons") local wifi_root = class() function wifi_root:init(args) self.icon = args.icon or beaut...
addEventHandler("onClientResourceStart", resourceRoot, function( ) createBlip ( -1880.6923, 822.4648, 35.1777, 52, 2, 255, 0, 0, 255, 0, 200.0 ) -- BANK createBlip ( -1605.4726, 711.0009, 13.8671, 30, 2, 255, 0, 0, 255, 0, 200.0 ) -- POLICE STATION createBlip ( -2662.7412, 614.3662, 14.4545, 22, 2, 255, 0, 0, 25...
-- 表排序操作 fruits = {"banana","orange","apple","grapes"} for k, v in ipairs(fruits) do print(k , v) end table.sort(fruits) print("sorted table fruits") for k, v in ipairs(fruits) do print(k , v) end
-- Collection of utilities for handling Components local Component = {} Component.all = {} -- Create a Component class with the specified name and fields -- which will automatically get a constructor accepting the fields as arguments function Component.create(name, fields, defaults) local component = require('nam...
local squadPlayers = {} local isMatchRunning = false local spectatingTimer local function handleLeavingMatch() exports.pb_airdrop:destroyAirDrop() stopSpectating() squadPlayers = {} exports.pb_zones:removeZones() showGameHUD(false) fadeCamera(false, 0) setWeather(0) setTime(12, 0) ...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local ERRORCODE_PB = require("ErrorCode_pb") module('IBBuyItem_pb') IBBUYITEMREQ = protobuf.Descriptor(); local IBBUYITEMREQ_GOODSID_FIELD = protobuf.FieldDescriptor(); local IBBUYITEMREQ_COUNT_FIELD = protobuf.FieldDescriptor(); ...
local if_nil = function(x, y) if x == nil then return y end return x end local native_lua = vim.api.nvim_get_runtime_file("deps/fzy-lua-native/lua/native.lua", false)[1] if not native_lua then error("Unable to find native fzy native lua dep file. Probably need to update submodules!") end local native_lua_mod = ...
-------------------------------------------------------------------------------- -- 81-717 Moscow and SPB electric schemes -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt...
local currentTattoos = {} local cam = -1 local inMenu = false PlayerData = {} 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,...
local B = {} --------------------------------------------- -- Davenge Buffer Constants and Globals -- -- Written by Daniel R. Koris(aka Davenge) -- --------------------------------------------- TOP_FAVOR = 1 BOT_FAVOR = 2 MID_FAVOR = 3 COLOR_CHAR = "#" local color_tab = { --reset n = string.char(27) .. "[0m...
description 'Autokick player in solo session' client_script 'cl_autoKick.lua' server_script 'sr_autoKick.lua'
function example_sandboxed_environment() function pretty_print_table(t, depth) local depth_str = string.rep('\t', depth) for key, value in pairs(t) do if key ~= "_G" then -- _G has a reference to itself, don't recurse forever if type(value) == "table" then ...
--- 导入需求的模块 local app_base = require 'app.base' local client = require 'client_sc' local csv_tpl = require 'csv_tpl' local packet_split = require 'packet_split' local ab_tag_parser = require 'enip.ab.tag.parser' local cip_types = require 'enip.cip.types' --- lua_enip_version: 2020-12-01 --- 注册对象(请尽量使用唯一的标识字符串) local ...
-- Copyright 2011 by Jannis Pohlmann -- -- This file may be distributed and/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 -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/p...
local _, core = ...; local _G = _G; local MonDKP = core.MonDKP; local L = core.L; local players; local reason; local dkp; local formdate = date; local date; local year; local month; local day; local timeofday; local player_table = {}; local classSearch; local playerString = ""; local filter; local c; local maxDisplaye...
function onCreatePost() makeLuaText("message", "mod by soruv ff", 520, 30, 100) setTextAlignment("message", "left") addLuaText("message") makeLuaText("engineText", "horocram - song (pe 0.4.2)", 520, 30, 100) setTextAlignment("engineText", "left") addLuaText("engineText") if getPro...
---@meta ---@class cc.MoveBy :cc.ActionInterval local MoveBy={ } cc.MoveBy=MoveBy ---@overload fun(float:float,vec2_table1:vec3_table):self ---@overload fun(float:float,vec2_table:vec2_table):self ---@param duration float ---@param deltaPosition vec2_table ---@return boolean function MoveBy:initWithDuration (durat...
--[[ Element: Quest Icon Handles updating and toggles visibility based upon the units connection to a quest. Widget QuestIcon - Any UI widget. Notes The default quest icon will be used if the UI widget is a texture and doesn't have a texture or color defined. Examples -- Position and s...
Formation = "claw"; formationSlot({ 0, 0, 0, },{ 0, 0, 1, },{ 0, 1, 0, }) formationSlot({ 1, 1, 0.8, },{ 0, 0, 1, },{ 0, 1, 0, }) formationSlot({ -1, 1, 0.8, },{ 0, 0, 1, },{ 0, 1, 0, }) formationSlot({ 1, -1, 0.8, }...
local pickers = require "telescope.pickers" local finders = require "telescope.finders" local previewers = require "telescope.previewers" local conf = require("telescope.config").values local M = {} local deck = require('tarot.deck').get_deck() M.get_tarots = function() return deck end M.telescope_tarots = functi...
if not modules then modules = { } end modules ['typo-inj'] = { -- was node-par version = 1.001, comment = "companion to typo-inj.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local t...
local restserver_xavante = {} local xavante = require("xavante") local wsapi = require("wsapi.xavante") local function start(self) local rules = {} for path, _ in pairs(self.config.paths) do -- TODO support placeholders in paths rules[#rules + 1] = { match = path, with = wsapi.mak...
ESX = nil local playersProcessingCannabis = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('esx_drugs:pickedUpCannabis') AddEventHandler('esx_drugs:pickedUpCannabis', function() local xPlayer = ESX.GetPlayerFromId(source) local xItem = xPlayer.getInventoryItem('canna...
local Factory = cc.import(".Factory") local NginxWorkerBootstrap = cc.class("NginxWorkerBootstrap") function NginxWorkerBootstrap:ctor(appKeys, globalConfig) self._configs = Factory.makeAppConfigs(appKeys, globalConfig, package.path) end function NginxWorkerBootstrap:runapp(appname) local appConfig = self._c...
--[[ include.lua This file is loaded persistently. Its main purpose is to include dot net namespaces. ]]-- FNA = import 'FNA' Microsoft = luanet.namespace('Microsoft') Microsoft.Xna = luanet.namespace('Microsoft.Xna') Microsoft.Xna.Framework = luanet.namespace('Microsoft.Xna.Framework') RogueElements = impor...
require 'trace' require 'level' require 'properties' Physics = {} local needRefresh = false local pixDt = 0 local currentChunk = nil local x0, y0 = 0, 0 local function physicsUpdateFunction(x, y, r, g, b, a) local changed = false local ox, oy = x0+x, y0+y if a > 0 and a < Properties.Collision...
local cassandra = require "cassandra" local fmt = string.format local _Services = {} local function select_by_service_id(cluster, table_name, service_id, errors) local select_q = fmt("SELECT * FROM %s WHERE service_id = ?", table_name) local res = {} local count = 0 for rows, err...
test_run = require('test_run').new() fiber = require('fiber') -- Temporary table to restore variables after restart. tmp = box.schema.space.create('tmp') _ = tmp:create_index('primary', {parts = {1, 'string'}}) -- -- Check that range splits, compactions, and dumps don't break recovery. -- s = box.schema.space.create(...
PetGuardCommand = { name = "petguard", defaultTime = 0.25, } AddCommand(PetGuardCommand)
/* sv_bonus_ps_points.lua Copyright© Nekom Glew, 2017 */ BonusPSPoints = {} BonusPSPoints.PropWinPointsAlive = 50 BonusPSPoints.PropWinPoints = 20 BonusPSPoints.HunterWinPointsAlive = 40 BonusPSPoints.HunterWinPoints = 15 BonusPSPoints.HunterKillPoints = 5 BonusPSPoints.PointsMultiplier = 2 --[...
-- Generated by github.com/davyxu/tabtoy -- Version: 3.1.0 return { init = function( g ) g.ExampleData = { { ID = 100, Name = "扎克镇", Rate = 3.14, Accuracy = 1.602176, Type = 2, Skill = {3,1,2}, Buff = 100, TagList = {"a","b"}, Multi = {1,3}, }, { ID = 200, Name = "阿努比斯神庙", Rate = 1.2, Accuracy = 3.14159,...
local _={} _.name="Jiraffe" _.new=function(options) local result=BaseEntity.new(options) result.x=0 result.y=0 result.mountX=15 result.mountY=23 result.originX=15 result.originY=23 result.footX=15 result.footY=31 Entity.setSprite(result,"jiraffe") result.isDrawable=true result.aiEnabled=true re...
local class = require("pl.class") local Npc = require("core.Npc") local EntityFactory = require("core.EntityFactory") ---@class MobFactory : EntityFactory local M = class(EntityFactory) function M:create(area, entityRef) local npc = self:createByType(area, entityRef, Npc) npc.area = ...
Object = require "classic" SpaceVampire = require "spacevampire" Claws = SpaceVampire.extend(SpaceVampire) local claws_sprite = love.graphics.newImage("stills/enemy1.png") function Claws.new(self, x, y) Claws.super.new(self, x, y) self.sprite = claws_sprite self.width = self.sprite:getWidth() self.height = ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('ActionFXDecal', { Action = "BlackCubeDemolishBuilding", Color = -14277082, Decal1 = "DecRocketSplatter", FadeOut = 100, Moment = "hit", Scale = 40, ScaleVariation = 10, Target = "ignore", Time = 1200000, }) PlaceObj('ActionFXDecal', ...
object_tangible_loot_simple_kit_legacy_droid_inners = object_tangible_loot_simple_kit_shared_legacy_droid_inners:new { } ObjectTemplates:addTemplate(object_tangible_loot_simple_kit_legacy_droid_inners, "object/tangible/loot/simple/kit/legacy_droid_inners.iff")
--[ esx_rybak - powered by: https://szymczakovv.pl ]-- -- Nazwa: esx_rybak -- Autor: szymczakovv#1937 -- Data: 03/02/2021 -- Wersja: 1.0 resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' client_scripts { 'config.lua', 'client/main.lua' } server_scripts { 'config.lua', '@mysql-async/lib/MySQL....
local castSCDesire = 0; local ReturnDesire = 0; local MoveDesire = 0; local ReturnTime = 0; local npcBot = GetBot(); local abilityW = ""; local abilitySC = ""; local radius = 350; local RB = Vector(-7200,-6666) local DB = Vector(7137,6548) local castReturn = false; print(GetBot():GetUnitName()) function MinionThink(...
slot0 = class("YinDiMainPage", import(".TemplatePage.PreviewTemplatePage")) slot0.OnInit = function (slot0) slot0.bg = slot0:findTF("AD") slot0.btnList = slot0:findTF("btn_list", slot0.bg) end slot0.OnFirstFlush = function (slot0) slot0.super.OnFirstFlush(slot0) onButton(slot0, findTF(slot0.bg, "btn_list/shop"), ...
local openssl = require'openssl' local attr = require'openssl'.x509.attribute local asn1 = require'openssl'.asn1 TestX509attr = {} function TestX509attr:setUp() self.timeStamping = openssl.asn1.new_string('timeStamping',asn1.IA5STRING) self.cafalse = openssl.asn1.new_string('CA:FALSE',asn1.OCTET_ST...
-- Dependencies local Playable = require("engine.Playable") local Sequence = require("engine.Sequence") local Table = require("engine.Table") -- Animation class local Animation = Playable:derive("Animation") -- Constructor function Animation:Animation(sprites, descriptor) self.sprites = sprites -- Sprite sheet...
--[[ Jamba - Jafula's Awesome Multi-Boxer Assistant Copyright 2008 - 2015 Michael "Jafula" Miller License: The MIT License ]]-- -- Create the addon using AceAddon-3.0 and embed some libraries. local AJM = LibStub( "AceAddon-3.0" ):NewAddon( "JambaToon", "JambaModule-1.0", "AceConsole-3.0", "AceEvent-3.0", "Ac...
-- ex: set ro: -- DO NOT EDIT. -- generated by smc (http://github.com/fperrad/lua-Smc) -- from file : src/Smc/Parser/Parser.sm local error = error local tostring = tostring local strformat = require 'string'.format local statemap = require 'statemap' _ENV = nil local ParserState = statemap.State.class() local func...
-- This script generates the cross-product of (the indices of) two -- groups of rows: -- 1) one group of rows at the start of the file -- 2) and all rows following the start group. -- -- For example: -- N:gene1 ex1 ex2 ex3 ... -- N:gene2 ex1 ex2 ex3 ... -- ... -- N:geneM ex1 ex2 ex3 ... -- C:mrkr1 gt1 gt2 gt3 ... -- ...
HUDCombatDebug = HUDCombatDebug or class() function HUDCombatDebug:init() self._is_shown = false end function HUDCombatDebug:build_menu() local ws = managers.hud._saferect self._hud_panel = ws:panel() if self._hud_panel:child("combat_debug_panel") then self._hud_panel:remove(self._hud_panel:child("combat...
local M = {} local ts_configs = require("nvim-treesitter.configs") local ts_spell = require("spellsitter") function M.setup() ts_configs.setup({ ensure_installed = "all", highlight = { enable = true, -- TreeSitter highlighting isn't great for these, -- use regular syntax highlighting inste...
data:extend( { { type = "item", name = "burner-oil-refinery", icon = "__base__/graphics/icons/oil-refinery.png", flags = {"goes-to-quickbar"}, subgroup = "burner-production-machine", order = "d[refinery]", place_result = "burner-oil-refinery", stack_size = 10 }, { type = "reci...
local AceGUI = LibStub("AceGUI-3.0") -------------------------- -- Check Box -- -------------------------- --[[ Events : OnValueChanged ]] do local Type = "CheckBox" local Version = 7 local function OnAcquire(self) self:SetValue(false) self.tristate = nil self:SetHeight(24) self:SetWidth(200) end ...
local bit32 = require("bit") local lshift = bit32.lshift local rshift = bit32.rshift local band = bit32.band local bxor = bit32.bxor local bor = bit32.bor local bnor = bit32.bnor function apply(opcodes, opcode_cycles, z80, memory) local read_at_hl = z80.read_at_hl local set_at_hl = z80.set_at_hl local read_nn =...
local widget = require( "widget" ) local composer = require( "composer" ) local json = require ("json") local myData = require ("mydata") local upgrades = require("upgradeName") local malwareAttackScene = composer.newScene() --------------------------------------------------------------------------------- ------------...
local currentFile local doNotRemoveTheseEvents = { ["d27.lua"] = {501, 376} -- 376 because MMMerge overwrites this event and it cleans up, 501 to fix a bug where game crashes after killing Xenofex } local mappingsFromMM7PromotionAwardsToMergeQBits = -- generated with generateMappingsFromMM7PromotionAwardsToMergeQBits...
--------------------------------------------------------------------------------- -- -- Prat - A framework for World of Warcraft chat mods -- -- Copyright (C) 2006-2018 Prat Development Team -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Licen...
local args = {...} local import_prefix = args[1] if import_prefix then import_prefix = import_prefix:match("^(.-)[^%.]+$") end if not import_prefix then import_prefix = "" end local errormodule = require(import_prefix .. "error") local utilmodule = load_module(import_prefix .. "util", true) local classmodule = load_...
-- merged into mousewheelscroll
local function get_info () local remote_addr = ngx.var.remote_addr local remote_user = ngx.var.remote_user local time_local = ngx.var.time_local local request = ngx.var.request local http_referer = ngx.var.http_referer local http_user_agent = ngx.var.http_user_agent local server_po...
local S = aurum.get_translator() aurum.effects.register("aurum_npcs:mors_vivi_hit", { description = S"Mors Vivi Hit", hidden = true, enchant = false, apply = function(object, level) object:set_breath(0) end, cancel = function(object, level) local box = b.box.new_radius(vector.round(object:get_pos()), 10) f...
require 'uv/ctypes/init' local ffi = require 'ffi' local libuv = require 'uv/libuv' local libuv2 = require 'uv/libuv2' local verify = require 'uv/util/verify' local system = {} function system.free_memory() return libuv.uv_get_free_memory() end function system.total_memory() return libuv.uv_get_total_memory() en...
minetest.register_alias("bat_light:bat_light_cube_white", "mylights:light_cube_120_white") minetest.register_alias("bat_light:bat_light_cube_yellow", "mylights:light_cube_120_yellow") minetest.register_alias("bat_light:bat_light_cube_red", "mylights:light_cube_120_red") minetest.register_alias("bat_light:bat_light_...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' 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...
----------------------------------- -- -- tpz.effect.BARAERO -- ----------------------------------- require("scripts/globals/status") ----------------------------------- function onEffectGain(target,effect) target:addMod(tpz.mod.WINDRES,effect:getPower()) end function onEffectTick(target,effect) end function onE...
local Native = require('lib.stdlib.native') local converter = require('lib.stdlib.enum.converter') ---@class UnitWeaponIntegerField local UnitWeaponIntegerField = { DamageNumberOfDice = 0x75613164, --UNIT_WEAPON_IF_ATTACK_DAMAGE_NUMBER_OF_DICE DamageBase = 0x75613162, --UNIT_WEAPON_IF_ATTACK_DAMAGE_BASE Da...
return{ name = "document", description = "Document", type = "key", info = "An important- looking document", MAX_ITEMS = 1, }
object_tangible_holiday_empire_day_decorative_imperial_cookes = object_tangible_holiday_empire_day_shared_decorative_imperial_cookes:new { } ObjectTemplates:addTemplate(object_tangible_holiday_empire_day_decorative_imperial_cookes, "object/tangible/holiday/empire_day/decorative_imperial_cookes.iff")
local bm = require 'benchmark' local urlencode = require 'urlencode' local reporter = bm.bm(6) -- original code from -> https://gist.github.com/cgwxyz/6053d51e8d7134dd2e30 function encodeURI(str) if (str) then str = string.gsub (str, "\n", "\r\n") str = string.gsub (str, "([^%w ])", functi...
function Run_simulation(initial_state, params, timestep_block, timesteps, samples) local results = {} for sample = 1, samples do local state = initial_state local new_state local history = {} for timestep = 1, timesteps do history[timestep] = {} state.time...
local informationFile = json.fromString(remodel.readFile("RostarData.json")) local initialRojoProject do local success, exists = pcall(remodel.isFile, informationFile.rojoProjectPath) if success and exists then initialRojoProject = json.fromString(remodel.readFile(informationFile.rojoProjectPath)) end end local sh...
--[[ Portuguese Translations By Jaliborc and madcampos --]] local L = LibStub("AceLocale-3.0"):NewLocale("Combuctor", "ptBR") if not L then return end L.Updated = 'Atualizado para a versão %s' --binding actions L.ToggleInventory = "Mostrar/Ocultar mochila" L.ToggleBank = "Mostrar/Ocultar banco" --frame titles L....