content
stringlengths
5
1.05M
pg = pg or {} pg.enemy_data_statistics_373 = { [209102] = { cannon = 7, reload = 150, speed_growth = 0, cannon_growth = 576, base = 248, air = 0, durability_growth = 60000, dodge = 26, antiaircraft = 25, speed = 33, luck = 0, reload_growth = 0, dodge_growth = 320, battle_unit_type = 50, a...
local mockagne = require 'mockagne' local when = mockagne.when local any = mockagne.any local verify = mockagne.verify describe('server - main', function() setup(function() _G.unpack = table.unpack _G.Config = {Formulas = {moneyPerLevel = function(level) return 5 * level end}} _G.Wrapper =...
-- "full" for full path like collapses home directory local pathTypeFull = "full" -- "folder" for folder name only like System32 local pathTypeFolder = "folder" local function pathReplace(path, leader, replace) local gsub = string.gsub -- anchor to the start and escape any special pattern chars lea...
object_tangible_loot_creature_loot_collections_shattered_shard_unknown_06 = object_tangible_loot_creature_loot_collections_shared_shattered_shard_unknown_06:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_shattered_shard_unknown_06, "object/tangible/loot/creature/loot/collections/sh...
--[[----------------------------------------------------------------------------- * Infected Wars, an open source Garry's Mod game-mode. * * Infected Wars is the work of multiple authors, * a full list can be found in CONTRIBUTORS.md. * For more information, visit https://github.com/JarnoVgr/InfectedWars * * Inf...
if not vim.g.loaded_telescope then return end local opts = { noremap = true, silent = false } local actions = require('telescope.actions') vim.api.nvim_set_keymap('n', '<leader><space>', '<cmd>Telescope find_files<cr>', opts) vim.api.nvim_set_keymap('n', '<leader>b', '<cmd>Telescope buffers<cr>', opts) -- close te...
-------------------------------------------------------------------------- -- Lmod License -------------------------------------------------------------------------- -- -- Lmod is licensed under the terms of the MIT license reproduced below. -- This means that Lmod is free software and can be used for both academic -...
local DateUtil = require "dateutil" DateUtil:__test_entry(true)
require("plugins.bufferline.setting") require("plugins.bufferline.keymap")
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { __is_kind_of = "XLayer", group = "Layers", id = "PGVideoBackground", PlaceObj('XTemplateWindow', { '__class', "XLayer", 'ZOrder', -1, 'Background', RGBA(0, 0, 0, 255), }, { PlaceObj('XTemplateWindow', { '__class',...
local M = {} M.config = function() require("zen-mode").setup { window = { backdrop = 1, height = .85, -- height of the Zen window options = { signcolumn = "no", -- disable signcolumn number = false, -- disable number column ...
---Extensions to the Lua standard math library. ---@module extensions.math ---@alias ext_math local floor, min, max = math.floor, math.min, math.max local ext_math = {} for k, v in pairs(math) do ext_math[k] = v end ---A value that is never equal to itself. ---@see isnan ext_math.nan = 0 / 0 ---Returns `num` clamp...
local oop = require 'minioop' local style = oop.class() local function hex_to_rgb(hex) hex = hex:gsub("#", "") return tonumber(hex:sub(1,2), 16), tonumber(hex:sub(3,4), 16), tonumber(hex:sub(5,6), 16), #hex > 7 and tonumber(hex:sub(7,8) or 255) or 255 end function style:new() local...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] InventorySelectedItem = nil InventoryData = {} local currentU...
local _, CLM = ... CLM.LOG = { verbose = true } local Logger = CLM.LOG local function print(...) _G.print("|cffebb434CLM:|r", ...) end local SEVERITY = { DEBUG = "DEBUG", INFO = "INFO", WARNING = "WARNING", ERROR = "ERROR", FATAL = "FATAL" } local LogEntry = { severity = nil, message = n...
require('telescope').load_extension('dap') -- nvim-dap-ui require("dapui").setup() require("nvim-dap-virtual-text").setup() require('dbg.python') require('dbg.javascript') vim.api.nvim_set_keymap('n', '<leader>dct', '<cmd>lua require"dap".continue()<CR>', {}) vim.api.nvim_set_keymap('n', '<leader>dsv', '<cmd>lua requi...
local ADDON_NAME, Private = ... do local name = "Nerien's Ovale Scripts" local ovale = LibStub and LibStub:GetLibrary("ovale") local scripts = ovale and ovale.ioc and ovale.ioc.scripts if scripts then -- Export Private.name = name Private.scripts = scripts Private.initialized = true do -- backwards com...
----------------------------------- -- -- Zone: East_Ronfaure_[S] (81) -- ----------------------------------- local ID = require("scripts/zones/East_Ronfaure_[S]/IDs") require("scripts/globals/missions") require("scripts/globals/helm") require("scripts/globals/zone") ----------------------------------- function onInit...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] local character = ix.meta.character function character:HasTrait(uniqueid) local traits = self:GetData("traits", {}) for k, v in pairs(traits) do if(v == uniqueid) then return true end; end return false; ...
ITEM.name = "IO7a" ITEM.model ="models/kek1ch/merc_outfit.mdl" ITEM.newModel ="models/stalkerisaac/playermodel/male_01_io7a.mdl" ITEM.description= "An IO7a." ITEM.longdesc = "One of the more common uniforms, seen around the zone. The IO7a is a popular use by many factions, thanks to it's great ability to deflect and or...
--[[ This file is part of 'Masque', an add-on for World of Warcraft. For license information, please see the included License.txt file. * File...: Skins\Skins.lua * Author.: StormFX ]] local _, Core = ... local error, setmetatable, type = error, setmetatable, type -- Skin Data local Skins = {} Core.Skins = Skin...
result = math.random(99) ind = math.random(6) - 1 number2 = 10^ind number1 = result * number2
local playsession = { {"ausmister", {575805}}, {"mewmew", {570468}}, {"Menander", {225573}}, {"Altheraz", {564179}}, {"corbin9228", {54467}}, {"taroxyz", {552623}}, {"Evonix", {47756}}, {"HYPPS", {541548}}, {"rbas333", {63684}}, {"cipps", {513272}}, {"MontrealCrook", {512744}}, {"jan1412", {147985}}, {"hem...
-- ======== -- Settings -- ======== vim.o.title = true -- show the file name as title vim.wo.number = true -- show line numbers. vim.o.mouse = "a" -- enable mouse. vim.o.history = 1000 -- increase history size. vim.wo.wrap ...
send gpio.mode(1, gpio.INPUT) flag = gpio.read(1) tmr.delay(5000) if gpio.read(1) == 0 and flag == 0 then file.remove("connected") end if file.open("connected","r") == nil then dofile("connect.lua") else dofile("connected.lua") end
-- -- Example of stream decompress -- -- Initialize: local bzlib = require 'ffi_bzlib.decompress' --[[ local bz = bzlib:new( reducemem -- Optional. Default is 0. -- In fact, this parameters is 'small' -- of the function 'BZ2_bzDecompressInit' ) ]]-- local bz = bzlib:new() local name =...
local qconsts = require 'Q/UTILS/lua/q_consts' local is_in = require 'Q/UTILS/lua/is_in' local in_qtypes = { 'I1', 'I2', 'I4', 'I8' } return function ( a, nb, optargs ) local subs = {}; assert(type(a) == "lVector") assert(not a:has_nulls()) local in_qtype = a:qtype() assert(is_in(in_qtype, in...
CodexDB["zones"]["deDE"]={ [1]="Dun Morogh", [2]="Longshore", [3]="Ödland", [4]="Verwüstete Lande", [7]="Schwarzmeerbucht", [8]="Sümpfe des Elends", [9]="Nordhaintal", [10]="Dämmerwald", [11]="Sumpfland", [12]="Wald von Elwynn", [13]="Der Weltbaum", [14]="Durotar", [15]="Marschen von Dustwallow", [16]="Azshara", [17]="...
oo = {} function oo.newClass(constructor) local class = {} local class_mt = { __index = class, __tostring = function(self) if self.tostring then return self:tostring() else return "Object" end end } class.constructor = constructor ...
require("Prop/candleBase.lua") --this = SceneNode() function create() initCandle(this,Vec3(0.0,0.265,-0.01)) return false end
local magic = {} -- table which is returned when module is required function magic:new(name) -- function 'new' which will be in the returned table to be called name = not name or type(name)~="string" and "object" or name -- if the name is invalid then call it "object", if it is, then leave it as it is local new = n...
local utils = require('bqf.utils') local Win = {} function Win.new(winid) local obj = {} setmetatable(obj, Win) Win.__index = Win obj.winid = winid obj.bwrow = nil obj.bheight = nil obj.aheight = nil obj.fraction = nil obj.wv = nil return obj end function Win:set(o) self.b...
local log = require("tmux.log") local logging = require("tmux.configuration.logging") local options = require("tmux.configuration.options") local validate = require("tmux.configuration.validate") local tmux = require("tmux.wrapper.tmux") local M = { options = options, logging = logging, } function M.setup(opt...
--[[ /* - SQLITE_CONFIG_SINGLETHREAD (only one DB connection, usable by only one thread) * There are no arguments to this option. This option sets the threading mode to Single-thread. In other words, it disables all mutexing and puts SQLite into a mode where it can only be used by a single thread. If SQLite is c...
-- RxLua v0.0.2 -- https://github.com/bjornbytes/rxlua --[[ Copyright (c) 2015 Bjorn Swenson 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 limitatio...
--cornercode -- 0x1 = topleft -- 0x2 = topright -- 0x4 = botleft -- 0x8 = botright --combine, e.g. -- 0x3 = top -- 0xd = l-shape -- 0xf = all --dividecode -- same as cornercode, but no -- high bit. e.g. -- 0x1 = topleft -- 0x2 = topright -- 0x3 = top/bottom -- 0x4 = botleft -- 0x5 = left/right -- 0x6 = crisscross (bad...
local Players = game:GetService("Players") local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local StatusCodes = require(Modules.Http.StatusCodes) local NO_CONNECTION_ERROR_STRING = "Feature.Toast.NetworkingError.UnableToConnect" local TIME_OUT_STRING = "Feature.Toast.NetworkingError.Timeout" l...
serialization_version = 1.0 return { PLAYER={ id="PLAYER", name="Player", aipath="assets/ai/player_ai.lua", animpath="assets/animations/anim_player.lua", col_width = 32, col_height = 32, health = 10, friction = 1.0, eye_height = 26, }, PICKUPS={ id="PICKUPS", name="Pickup", ...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2018 (All Rights Reserved) -- ============================================================= local logger = {} local print local function round(val, n) if (n) then return math.floor( (val * 10^n) + 0.5) / (10^n)...
object_tangible_loot_mustafar_cube_loot_cube_loot_1o = object_tangible_loot_mustafar_cube_loot_shared_cube_loot_1o:new { } ObjectTemplates:addTemplate(object_tangible_loot_mustafar_cube_loot_cube_loot_1o, "object/tangible/loot/mustafar/cube/loot/cube_loot_1o.iff")
print("what the fuck") html = [[ <html> <head></head> <body> <a href="http://www.runoob.com/">菜鸟教程</a> </body> </html> ]] print(html) print([[ come on ]]) -- 单行注释 --[[ 多行注释 多行注释 多行注释 多行注释 --]] print("2" + 6) print("2" + "6") print("2 + 6") print("-2e2" * "6") -- print("error" + 1) -- error print("a" .....
-- cbind - A library for generating bindings. -- Written in 2014 by Jesper Oskarsson jesosk@gmail.com -- -- To the extent possible under law, the author(s) have dedicated all copyright -- and related and neighboring rights to this software to the public domain worldwide. -- This software is distributed without a...
local function Reply(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if not DevAbs:get(muslim..'Abs:Lock:Reply'..msg.chat_id_) then if text == "اسكت" or text == "سكت" or text == "اسكتي" or text == "سكتي" or text == "اسكتو" or text == "سكتو" then if SudoId(msg.sender_user_id_) the...
RMenu.Add('Super', 'Principal', RageUI.CreateMenu("", Storage.MenuDesc, nil, nil, "root_cause", "Banner"), true) RMenu:Get('Super', 'Principal'):DisplayGlare(false); RMenu:Get('Super', 'Principal').Closable = false; RMenu.Add('Sportive', 'Principal', RageUI.CreateMenu("", Storage.MenuDesc, nil, nil, "root_cause", "Ban...
local seenDaEnd = false function onCreate() addLuaScript('dialogue') end function onNextDialogue(count) -- triggered when the next dialogue line starts, 'line' starts with 1 speak(count+1) end function onSkipDialogue(count) stopSound('sound') stopSound('sound1') stopSound('sound2') stopSound('sound3') stopSou...
local command = require("command") local variables = require("variables_base") -- This is used later as the default terminal and editor to run. variables.terminal = command.get_available_command({ {command="kitty"}, {command="gnome-terminal"}, {command="x-terminal-emulator"}, {command=...
return { source = { location = 'git@bitbucket.org:bazurbat/sigma-utils.git', name = 'sigma-utils', }, build = { type = 'cmake' } }
-- Copyright 2017 The Minimal Configuration Manager Authors -- -- 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 a...
Citizen.CreateThread(function() Citizen.Wait(1) exports["Library"]:AddHook(GetCurrentResourceName(), function(library) RPX = library if RPX.IsLoaded then PlayerLoaded() end end) end) RegisterNetEvent("rpx:playerLoaded") AddEventHandler("rpx:playerLoaded", function() ...
meshes={{vertexes={{1.4284,0.4798,0.1744},{1.4284,0.4798,-0.1744},{1.2699,0.8147,-0.1744},{1.2699,0.8147,0.1744},{1.1961,0.3777,-0.1744},{1.1961,0.3777,0.1744},{1.0698,0.6581,0.1744},{1.0698,0.6581,-0.1744},{1.8749,0.6986,0.1744},{1.8749,0.6986,-0.1744},{1.6752,0.9202,-0.1744},{1.6752,0.9202,0.1744},{1.1298,0.5361,0.17...
-- condenser.lua data:extend( { ----------------- -- CONDENSER 1 -- ----------------- { type = "assembling-machine", name = "liquid-air-condenser", icons = { {icon = "__base__/graphics/icons/oil-refinery.png", tint = {r=0.7, g=0.7, b=1, a=1}} }, icon_size = 64, icon_mipmaps = 4, f...
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "ELG-3A" SWEP.Author = "Syntax_Error752" SWEP.ViewModelFOV = 70 SWEP.Slot = 1 SWEP.SlotPos = 5 SWEP.WepSelectIcon = surface.GetTextureID("HUD/killicons/ELG3A") ki...
--[[ Usage: local loader = require "loader" local body = loader(world, [filepath], body, x, y) --]] local obj = {} obj.init = function() local physics = {{% for body in bodies %}{% if not forloop.first %}, {% endif %} ["{{body.name}}"] = { static = {{body.static}}, fixed = {{body.f...
smooth.nyu = {} smooth.nyu.L1 = 3 -- cost window size smooth.nyu.tau1 = 0.03 -- pixel intensity -- smooth.nyu.cbca_i1 = 2 -- smooth.nyu.cbca_i2 = 4 smooth.nyu.sgm_i = 1 -- sgm iter?? smooth.nyu.pi1 = 15 -- sgm p1 smooth.nyu.pi2 = 50 -- sgm p2 smooth.nyu.tau_so = 0.08 -- pixel intensity threshold for changing pi1/pi2...
local rootmodulo = {1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 17, 18, 19, 22, 23, 25, 26, 27, 29, 31, 34, 37, 38, 41, 43, 46, 47, 49, 50, 53, 54, 58, 59, 61, 62, 67, 71, 73, 74, 79, 81, 82, 83, 86, 89, 94, 97, 98, 101, 103, 106, 107, 109, 113, 118, 121, 122, 125, 127, 131, 134, 137, 139, 142, 146, 149} return function()...
return {'muesli','muezzin','muezzins'}
require 'p4' p4 = P4.P4() pcall(function() p4:connect() p4.exception_level = 2 -- File(s) up-to-date warning files = p4:run_sync() end) for _, w in ipairs(p4.warnings) do print(w) end p4:disconnect()
local ASL = LibStub("AceLocale-3.0"):NewLocale("AddOnSkins", "zhTW") if not ASL then return end ASL["About/Help"] = "相關資訊/協助" ASL["AddOn Skins"] = "插件美化" ASL["Attach CoolLine to action bar"] = "CoolLine 依附至快捷列" ASL["Attach SexyCD to action bar"] = "SexyCD 依附至快捷列" ASL["Auction House"] = "拍賣場" ASL["Available Skins / Ski...
local redis = require("resty.redis") local cjson = require("cjson") local cjson_encode = cjson.encode local ngx_log = ngx.log local ngx_ERR = ngx.ERR local ngx_exit = ngx.exit local ngx_print = ngx.print local ngx_re_match = ngx.re.match local ngx_var = ngx.var local function close_redis( red ) -- body if not red ...
LIBRARY.Name = "Variables" LIBRARY.Author = "IZED" local utils = import("libs/utils") local is = utils.Is local rpc = import("libs/rpc") local event = import("libs/event") local sql = import("libs/sql") local variables = keeper:get("variables", {}) local counter = 0 local data = sql.Default("zpp_data") local...
local A = vim.api local U = {} ---Range of the selection that needs to be commented ---@class CRange ---@field srow number Starting row ---@field scol number Starting column ---@field erow number Ending row ---@field ecol number Ending column ---@alias CLines string[] List of lines inside the start and end index --...
-- This is a crafter type machine base. -- It accepts a recipe type registered beforehand. -- Specialized formspec for crafters function ele.formspec.get_crafter_formspec(craft_type, power, percent, pos, state) local craftstats = elepm.craft.types[craft_type] local input_size = craftstats.inputs local gui_name =...
-- FIXME: Show invalid permissions as a comma-separated list in grant/revoke instead of sending a new line for each this = "PermissionsPlugin" -- must match table name below PermissionsPlugin = {} PermissionsPlugin.name = "permissions" -- should match folder name! PermissionsPlugin.permissionTable = {} PermissionsPlu...
data:extend( { { type = "recipe", name = "plutonium-fuel-recipe", icon = graphics .. "plutonium-fuel.png", icon_size = 64, mipmap_count = 4, category = "advanced-crafting", energy_required = 20, enabled = false, order = "b", subgroup = ...
local utils = {} function utils:bind_options(opts) for key, val in pairs(opts) do vim.o[key] = val end end function utils:bind_keymaps(maps) for _, map in pairs(maps) do vim.api.nvim_set_keymap(map.mode, map.key, map.cmd, map.options) end end function utils:file_exists(path) local file = io.open(path, "rb"...
return {'dra','draad','draadachtig','draadbekleding','draadbericht','draadbeugel','draadbreuk','draadeind','draadjesvlees','draadloos','draadmand','draadnagel','draadomroep','draadplastiek','draadrol','draadrollen','draadschaar','draadspoel','draadstripper','draadtrekken','draadverbinding','draadversperring','draadvorm...
local function get_dir_name(path) local slash_index = path:reverse():find("\\") return path:sub(-slash_index + 1):gsub("\\", "") end local function get_prompt_dir(cwd) if config.use_root_symbol and cwd == "C:\\" then return symbols.root elseif config.use_home_symbol and cwd == clink.get_env("HOME") then ret...
-- Toolbar.lua -- ArsonistD -- Started : 12/25/2021 -- Last Edit : 12/25/2021 local framework = require(script.Parent.Parent.ArsonsPluginFramework) local Toolbar = framework.CreateModule("Toolbar") Toolbar.toolbar = framework.plugin:CreateToolbar("Arson's Viewmodel Plugin") Toolbar.generateButton = Toolbar.toolbar:...
--[[---------------------------------------------------------------------------- RaidData IDs for FightRecorder Should containt every raid encounter and most of the npcId's of the bosses and adds. Misses some of the Mythic difficulty npcId's because I don't have access to all the fights when they are relevant...
function Observer:PlayerEnterNoclip(player) return false end function Observer:PlayerExitNoclip(player) return false end
return function(instrs, labels) local lines = {} for i, instr in ipairs(instrs) do if instr[1] == 'JIZ' then lines[i] = '?K' .. tostring(instr[2]) .. ' ' .. tostring(instr[3]) elseif instr[1] == 'JMP' then lines[i] = 'JMP ' .. tostring(instr[2]) elseif instr[1] == 'INCR' then lines[i] = 'K' .. tostring...
return { commit = '1fed27dc7d7300dd5989420702a1f71f03be3ad8', date = 'Mon Apr 22 11:49:05 2019 +0800', }
-- file read/write -- by Qige -- 2016.04.05/2017.01.03/2017.01.04/2017.01.06 -- 2017.03.13: add local, change "require 'six.file'" to "local file = require 'six.file'" local file = {} function file.read(path) local text = '' local _file = io.open(path, "r") if (_file) then text = _file:read("*all") _file:clos...
-- fix the intermediary representation of data -- using numbers, and strings for operators is ridiculous local __parser = {__index = {}} local __parser_index = __parser.__index function __parser_index:first_pass(str) local outqueue = arithmetic.queue() local tempstack = arithmetic.stack() local reader = arithmetic...
-- local MENU_KEY = KEY_B -- local BAR_HEIGHT = PADDING * 4 -- local scrW, scrH = ScrW(), ScrH() -- local PANEL = {} -- local playerLibrary = player -- local hasOpenedFirstTime = false -- local BET_OPEN_INTERVAL = 1.5 -- local lastOpen = 0 -- local function hideMenu() -- BET_MENU:Remove() -- BET_MENU = nil -- end ...
-- Inofficial Planetshares BNP Paribas Extension (https://planetshares.bnpparibas.com/) for MoneyMoney (https://moneymoney-app.com) -- -- MIT License -- -- Copyright (c) 2018 Daniel Hähnel -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation...
local S, L, O, U, D, E = unpack(select(2, ...)); local Module = S:NewNameplateModule('AbsorbBar'); -- Stripes API local ShortValue = U.ShortValue; local UpdateFontObject = S:GetNameplateModule('Handler').UpdateFontObject; -- Local config local ENABLED, AT_TOP; local ABSORB_TEXT_ENABLED, ABSORB_TEXT_COLOR, ABSORB_TEXT...
local Clock = class("Clock",function() return cc.Node:create() end) function Clock:ctor(data) self.m_time = data and data.time self.m_time = 15 self:initView() -- self:countDown() end function Clock:initView() self.m_bg = display.newSprite("Images/clock/clock_default.png") self.m...
----------------------------------- -- Area: Sea Serpent Grotto -- NM: Yarr the Pearleyed ----------------------------------- mixins = {require("scripts/mixins/job_special")} ----------------------------------- function onMobSpawn(mob) tpz.mix.jobSpecial.config(mob, { specials = { {id...
item_moon_custom = class({}) LinkLuaModifier("modifier_item_moon_custom", "items/item_moon_custom/modifier_item_moon_custom", LUA_MODIFIER_MOTION_HORIZONTAL) function item_moon_custom:GetIntrinsicModifierName() return "modifier_item_moon_custom" end
-- Submodule for node related operations. local network = require 'concurrent.distributed.network' local concurrent local node = {} node.nodemonitors = {} -- Nodes monitoring the node. -- Returns the node's name. function node.node() return network.nodename end -- Returns a table with the names of the ...
-- -- prop_generic is the base for all other properties. -- All the business should be done in :Setup using inline functions. -- So when you derive from this class - you should ideally only override Setup. -- local PANEL = {} function PANEL:Init() end function PANEL:Setup( vars ) self:Clear() lo...
local AddonName, AddonTable = ... AddonTable.cloth = { 152576, -- Tidespray Linen (Common) 152577, -- Deep Sea Satin (Uncommon) 158378, -- Embroidered Deep Sea Satin (Rare) 167738, -- Gilded Silkweave (Uncommon) -- Vendor Bought 159959, -- Nylon Thread }
print('awtTest starts') frame = luajava.newInstance("java.awt.Frame", "Lua Java Console") console = luajava.newInstance("java.awt.TextArea") buttons_pn = luajava.newInstance("java.awt.Panel") execute_bt = luajava.newInstance("java.awt.Button", "Execute") clear_bt = luajava.newInstance("java.awt.Button", "Clear") exit_b...
local DISCORD_WEBHOOK5 = "https://discordapp.com/api/webhooks/832764259422175252/y6wwkLlTTCYrJR8sWIIkm55YakZdCawS92u1d_KgpahBcExHDJe9XGbq3y1EzFQ_FKCf" local DISCORD_NAME5 = "Mission Finished Logs" local STEAM_KEY = "0C007CC382AB06D1D99D9B45EC3924B1" local DISCORD_IMAGE = "https://i.imgur.com/zviw6oW.png" -- Default is...
---- -- @file AbstractObject ---- Brief description. -- <#Description#> -- @return <#return value description#> function AbstractObject:getClassName() end ---- Brief description. -- <#Description#> -- @return <#return value description#> function AbstractObject:getType() end
require 'image' local iproc = require 'iproc' local srcnn = require 'srcnn' local function reconstruct_nn(model, x, inner_scale, offset, block_size, batch_size) batch_size = batch_size or 1 if x:dim() == 2 then x = x:reshape(1, x:size(1), x:size(2)) end local ch = x:size(1) local new_x = torch.Ten...
local superblt = false for _, mod in pairs(BLT and BLT.Mods:Mods() or {}) do if mod:GetName() == "SuperBLT" and mod:IsEnabled() then superblt = true break end end if superblt == false then if UpdateThisMod then UpdateThisMod:Add( { mod_id = "Real Weapon Names", data = { modworkshop_id = 19958, ...
object_mobile_som_som_pwwoz_pwwa = object_mobile_som_shared_som_pwwoz_pwwa:new { } ObjectTemplates:addTemplate(object_mobile_som_som_pwwoz_pwwa, "object/mobile/som/som_pwwoz_pwwa.iff")
local middleclass = { _VERSION = 'middleclass v3.0.0', _DESCRIPTION = 'Object Orientation for Lua', _LICENSE = [[ MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
return "success"
Config = {} Config.MarkerSize = { x = 1.5, y = 1.5, z = 1.2 } Config.MarkerColor = { r = 0, g = 130, b = 204 } Config.MainMenu = { {x = 1678.48, y = 39.81, z = 161.76} } Config.Sell = { {x = 1088.750, y = -776.566, z = 58.439} } Config.GetVehicle = { {x = 1692.65, y = 41.43, z = 161.7...
data:extend{ { type = 'custom-input', name = 'cuc-cycle-forwards', key_sequence = '', linked_game_control = 'cycle-blueprint-forwards' }, { type = 'custom-input', name = 'cuc-cycle-backwards', key_sequence = '', linked_game_control = 'cycle-blueprint-backwards' } }
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'ESX Voice Controller' version '1.1.0' ui_page 'ui.html' files { 'ui.html', } client_scripts { '@es_extended/locale.lua', 'locales/en.lua', 'locales/fi.lua', 'locales/pl.lua', 'locales/sv.lua', 'config.lua', 'client...
-- Simple example for responding to NMRA DCC commands -- author @voborsky local PIN = 2 -- GPIO4 local addr = 0x12a local CV = {[29]=0, [1]=bit.band(addr, 0x3f), --CV_ACCESSORY_DECODER_ADDRESS_LSB (6 bits) [9]=bit.band(bit.rshift(addr,6), 0x7) --CV_ACCESSORY_DECODER_ADDRESS_MSB (3 bits) } local fun...
require 'nn' require 'rnn' require 'image' require 'optim' require 'loader' opts = { gpu = false, dropout_rate = 0.4, input_size = 64, hidden_size = 400, learning_rate = 1e-4, momentum = 0.9 } local class_num = 100 local net = nn.Sequential() net:add(nn.Dropout(DROPOUT_RATE)) net:add(nn.SplitTable(1))...
--[[ DecoderAdvancer is an implementation of the interface Advancer for specifyinghow to advance one step in decoder. --]] local DecoderAdvancer = torch.class('DecoderAdvancer', 'Advancer') --[[ Constructor. Parameters: * `decoder` - an `onmt.Decoder` object. * `batch` - an `onmt.data.Batch` object. * `conte...
modifier_sniper_shrapnel_thinker_custom = class({}) function modifier_sniper_shrapnel_thinker_custom:IsAura() return self:IsInitialized() end function modifier_sniper_shrapnel_thinker_custom:GetModifierAura() return "modifier_sniper_shrapnel_debuff" end function modifier_sniper_shrapnel_thinker_custom:GetAuraRadius(...
if not WoWUnit then return end ---@type string local Name = ... ---@type Addon local Addon = select(2, ...) local Test, Unit, Util = Addon.Test, Addon.Unit, Addon.Util local Assert, AssertEqual, Replace = WoWUnit.IsTrue, WoWUnit.AreEqual, WoWUnit.Replace local RI = LibStub("LibRealmInfo") local Tests = WoWUnit(Name ....
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 function utilities:deepcopy(t, cache) if type(t) ~= 'table' then return t ...