content
stringlengths
5
1.05M
local Screen = Level:extend() function Screen:activate() --- shape value -- floor local floorZ = Base.gui.height - 20 -- player wall local c1Z = 80 local c1LenX = 2.5 * 40 local c1LenY = 140 local c1LenZ = 100 -- laser wall local c2LenX = 40 * 4 local c2LenY = c1LenY local c2LenZ = floorZ-(c1Z+c1LenZ) -- ...
-- Material Design Button PseudoInstances with Ripples -- @documentation https://rostrap.github.io/Libraries/RoStrapUI/RippleButton/ -- @author Validark local Players = game:GetService("Players") local TextService = game:GetService("TextService") local ContentProvider = game:GetService("ContentProvider") local Replica...
----------------------------------- -- Area: East Ronfaure -- Mob: Pugil -- Note: PH for Swamfisk ----------------------------------- local ID = require("scripts/zones/East_Ronfaure/IDs") require("scripts/globals/regimes") require("scripts/globals/mobs") function onMobDeath(mob, player, isKiller) tpz.regime.check...
function test_insert_wait() local t = require "test.luaunit" local api = require "shiori.insert_wait" local act = [=[あつい、あつい!‥‥タスケテ。]=] local exp = [=[あつい、\_w[400]あつい!\_w[600]‥\_w[200]‥\_w[200]タスケテ。\_w[800]]=] t.assertEquals(api.insert_wait(act), exp) end
data:extend({ { type = "battery-equipment", name = "uep-craft-assistent", sprite = { filename = "__morebobs__/graphics/equipment/craft_assistent.png", width = 32, height = 32, priority = "medium" }, shape = { width = 1, height = 1, type = "full" }, energy_source = { ...
package.path = '../src/?.lua;' .. package.path local tap = require 'tapered' -- luacheck: globals setup teardown function setup() print("# I'm a little teapot.") end tap.ok(true, "setup() only with '# I'm a little teapot.'") function setup() print('# This is my handle and this is my spout.') end function teardown...
local Debug = require(script.Parent.Parent.Parent.Debug) local Typer = require(script.Parent.Parent.Parent.Typer) local Debug_Assert = Debug.Assert local validate = Typer.Array local function push(list, ...) Debug_Assert(validate(list)) local new = {} local len = #list for i = 1, len do new[i] = list[i] end ...
function Process (Mem,StringSize) ASCII_diff = 32 local Pre; local Pos; local Counter; flag = true while(flag) do flag = false for i=1, StringSize do Cur = Mem[i] Pre = Mem[i-1] Pos = Mem[i+1] if(Cur >=97) then Counter = Cur-ASCII_diff else Counter = Cur+ASCII_diff end if(...
-- OPTIONS RESET_FOR_TIME = false -- Set to true if you're trying to break the record, not just finish a run BEAST_MODE = false -- WARNING: Do not engage. Will yolo everything, and reset at every opportunity in the quest for 1:47. INITIAL_SPEED = 1500 AFTER_BROCK_SPEED = 1500 AFTER_MOON_SPEED = 500 E4_SPEED = 200 RE...
local system = require "system" local logger = require "logger" local s = system.query("simpledb") if s then system.exit() else system.register(system.self(), "simpledb") end local db = { } local CMD = { } function CMD.set(key, value) local last = db[key] db[key] = value return last end function CMD.get(key) ...
-------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2001-2007. -------------------------------------------------------------------------- -- $Id$ -- $DateTime$ -- Description: Elevator -- -------------------------------------------------...
template("tbox.console") add_configfiles("xmake.lua") add_configfiles("src/xmake.lua")
wrk.method = "POST" wrk.headers["Content-Type"] = "application/json; charset=utf-8" wrk.body = "{\"page_number\": 1,\"result_per_page\": 50}"
return { __envname = "simple", unpack = unpack, setmetatable = setmetatable, getmetatable = getmetatable, tostring = tostring, bit32 = bit32, utf8 = utf8, string = string, tonumber = tonumber, math = math, select = select, assert = assert, print = print, table = table, next ...
local _module_0 = { } return _module_0
object_tangible_loot_creature_loot_kashyyyk_loot_uwari_enzymes = object_tangible_loot_creature_loot_kashyyyk_loot_shared_uwari_enzymes:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_uwari_enzymes, "object/tangible/loot/creature_loot/kashyyyk_loot/uwari_enzymes.iff")
application = { content = { width = 320, height = 480, scale = 'letterbox', }, license = { google = { key = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAos1GQUs9cc5IRR1C5vP7tINM3sbYE+vw85NgUsJa2oOgP1ftzllKfVV3DgR+6iK1K4To+K3LwnR2jNRxaZyFIhf+gQju/kNFm/QUhrGf1ImX5UAOjtb0O5aJtWJ1HeIxaKsyi1XHk7Wt7DXts...
local resty_sha256 = require "resty.sha256" local to_hex = require("resty.string").to_hex local _M = {} function _M.sha256(file_path) local sha256 = resty_sha256:new() local file, err = io.open(file_path, "rb") if err then return nil, err end repeat local chunk = file:read(8192) if chunk then ...
-- ======================================================================== -- $File: jcslove_gameobject.lua $ -- $Date: 2016-09-09 11:18:04 $ -- $Revision: 1.3.0 $ -- $Creator: Jen-Chieh Shen $ -- $Notice: See LICENSE.txt for modification and distribution information $ -- Copyright (c) 2016 by Shen, ...
#!/usr/bin/env lua --- -- @author Gianluca Fiore -- @copyright 2011-2020, Gianluca Fiore <forod.g@gmail.com> -- local lfs = require("lfs") local DIR = arg[1] local PERCENTAGE = arg[2] -- declare the table to contain the numeric index of files to keep local NUMERIC_KEEPTABLE = {} -- and the table to actually contain ...
-- Copyright (C) 2017 Alexey Kopytov <akopytov@gmail.com> -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- This ...
function love.conf(t) t.title = "shovelware" t.version = "0.10.0" t.window.width = 1200 t.window.height = 900 t.window.fullscreen = false t.window.fullscreentype = "desktop" -- is msaa really needed? t.window.msaa = 4 t.window.vsync = true -- For Windows debugging t.console = true end
local bit = _G.jit and _G.bit or require("bit") local openssl = require('openssl') local pkey = openssl.pkey local bn = openssl.bn local digest = openssl.digest.digest local enc, dec -- base64 code from http://lua-users.org/wiki/BaseSixtyFour do -- character table string local chars = 'ABCDEFGHIJKLMNOP...
local mock = require "deftest.mock.mock" local mock_fs = require "deftest.mock.fs" local mock_time = require "deftest.mock.time" local file = require "googleanalytics.internal.file" return function() local queue local http_history local http_status = 200 describe("queue", function() before(function() http_h...
return require "lbi.src.lbi"
if script.Parent.className ~= "HopperBin" then bin = Instance.new("HopperBin") bin.Name = "Tool" bin.Parent = game.Players.acb227.Backpack script.Parent = bin end bin = script.Parent me = Game.Players.acb227 arm1 = Instance.new("Weld") arm1.Parent = me.Character["Right Arm"] arm1.Part0 = me.Character["Rig...
local mod = get_mod("rwaon_talents") mod:hook_origin(PlayerCharacterStateStunned, "update", function (self, unit, input, dt, context, t) local csm = self.csm local input_extension = self.input_extension local inventory_extension = self.inventory_extension local status_extension = self.status_extension local locom...
-- This line is needed to initialize a hotloadable game.lua module require('module').load('game')
function CreateCooldownsWorldpanel(keys) local caster = keys.caster local target = keys.target if caster:IsRealHero() then target.GemOfPureSoulCooldownsWorldpanel = WorldPanels:CreateWorldPanelForTeam(caster:GetTeamNumber(), { layout = "file://{resources}/layout/custom_game/worldpanels/abilitycooldowns.xml", ...
application = { content = { fps = 30, }, }
// Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE. // AWK LPeg lexer. // Modified by Wolfgang Seeberg 2012, 2013. var l = require('lexer'); var token, word_match = l.token, l.word_match; var P, R, S = lpeg.P, lpeg.R, lpeg.S; var M = {_NAME = 'awk'}; var LEFTBRACKET = '['; var RIGHTBRACKET = ']'; ...
-- Deprecated require 'nn' function create_embed_model(opt, data) print('Building the first cnn: cnn1') local cnn1 = nn.Sequential() -- Convolutional and pooling layers print(opt.NOutput, opt.kernelSize) print(opt.NOutput[1], opt.kernelSize[1]) if opt.dropout and (opt.dropoutProb[1] or 0) > 0 then -- drop...
local modulo = { } function modulo.somar(x, y) return x + y end return modulo
Minigolf.Teams = Minigolf.Teams or {} Minigolf.Teams.All = Minigolf.Teams.All or {} Minigolf.Teams.MenuKey = KEY_T function Minigolf.Teams.Update(owner, name, color, password, updateID) color = color or ColorRand(); password = password ~= "" and password or nil local teamID = updateID or #Minigolf.Teams.All + 1...
require "scripts.core.item" require "scripts.core.projectile" require "gamemode.Spark.modifiers.modifier_status_root"; Staff_Of_Binding = class(Item) local Z_OFFSET = 3 function Staff_Of_Binding:OnCreated () self:RegisterVariable("max_range", 500) self:RegisterVariable("cast_time", 0.1) self:RegisterVariable("cas...
---@class vm local vm = require 'vm.vm' local guide = require 'parser.guide' ---@class vm.runner ---@field loc parser.object ---@field mainBlock parser.object ---@field blocks table<parser.object, true> ---@field steps vm.runner.step[] local mt = {} mt.__index = mt mt.index = 1 ---@class parse...
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2013-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENCE' document -- -- This file is part of lua-path library. -- -----...
wrk.method = "PUT" wrk.body = '{"name":"ibm", "amount":1}' wrk.headers["Content-Type"] = "application/json"
local json_encode = require("cjson.safe").encode local tostring = tostring local type = type local pairs = pairs local function serialise_obj(data) if type(data) == "function" or type(data) == "userdata" or type(data) == "table" then return tostring(data) end return data end local functi...
modName = "NoRespawnGun" respawnItemsSetting_nothing = "nothing" respawnItemsSetting_noWeapons = "noWeapons" respawnItemsSetting_everything = "everything" respawnItemsSettingValues = {respawnItemsSetting_nothing, respawnItemsSetting_noWeapons, respawnItemsSetting_everything} defaultRespawnItemsSettingValue = respawnI...
" UNICODE " greeks inoremap <leader>gl <C-v>u03bb inoremap <leader>gs <C-v>u03c3 inoremap <leader>gP <C-v>u03ac inoremap <leader>gp <C-v>u03c6 inoremap <leader>gm <C-v>u03bc inoremap <leader>gZ <C-v>u03a9 inoremap <leader>gz <C-v>u03c9
ESX = nil TriggerEvent(Config.ESX, function(obj) ESX = obj end) Citizen.CreateThread(function() RegisterCommand('klar', function(source, args) local template = '<div style="padding: 0.5vw; margin: 0.5vw; background: linear-gradient(90deg, rgba(2,0,36,0.7) 0%, rgba(0,255,38,0.7) 0%, rgba(18,77,21,0.7) 100%); ...
-- 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 ]] -------------------------------------------------------------------------------- outworld_devourer_...
require 'nvim-tree'.setup { disable_netrw = true, hijack_netrw = true, open_on_setup = false, ignore_ft_on_setup = {}, auto_reload_on_write = true, open_on_tab = false, hijack_cursor = false, update_cwd = false, hijack_directories = { enable = true, auto_...
require("advancedLua") local bit32 = require("bit32") local unicode = require("unicode") local fs = require("filesystem") ----------------------------------------------------------------------------------------------- local module = {} local encodingMethods = {} local OCAFSignature = "OCAF" local readBufferSize = 1...
----------------------------------- -- Area: Navukgo Execution Chamber -- Mob: Karababa ----------------------------------- require("scripts/globals/status") local ID = require("scripts/zones/Navukgo_Execution_Chamber/IDs") ----------------------------------- function onMobFight(mob,target) local warp = mob:getLo...
local util = require "resty.s3_util" local s3_auth = require "resty.s3_auth" local cjson = require "cjson" local xml = require "resty.s3_xml" local s3_multi_upload = require("resty.s3_multi_upload") local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function (narr, nrec) return {} end end lo...
-- spawn.lua - wrapper around Awesome awful.spawn with fallback -- Copyright (C) 2019 Nguyễn Gia Phong -- -- This file is part of Vicious. -- -- Vicious is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as -- published by the Free Software Foundation, eithe...
-- TradeSkillFrame.DetailsFrame RefreshDisplay local TradeSkillMixin = {} local version, build, date, tocversion = GetBuildInfo() local isShadowlands = tonumber(build) > 35700 function TradeSkillMixin:GetName() return "TradeSkill" end function TradeSkillMixin:Init() return { "ADDON_LOADED", "PLAYER_LOOT_SPEC_UP...
-- -- Aliases for map generators -- -- All mapgens minetest.register_alias("mapgen_stone", "default:stone") minetest.register_alias("mapgen_water_source", "default:water_source") minetest.register_alias("mapgen_river_water_source", "default:river_water_source") -- Additional aliases needed for mapgen v6 minetest.re...
local ready = false AddEventHandler("playerSpawned",function() -- delay state recording Citizen.CreateThread(function() Citizen.Wait(30000) ready = true end) end) Citizen.CreateThread(function() while true do local player = GetPlayerPed(-1) local coords = GetEntityCoords(pl...
-- -- Created by IntelliJ IDEA. -- User: jufeng -- Date: 19/12/2019 -- Time: 上午10:15 -- service crud -- local require = require local rock_core = require('rock.core') local service_cache = require('rock.service') local ngx = ngx local quote_sql_str = ngx.quote_sql_str --- 防止sql注入 local service_key = "rock_service" loc...
--[[ Steamburn Awesome WM config 3.0 github.com/copycat-killer --]] theme = {} themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/steamburn" theme.wallpaper ...
local serpent = require 'serpent' local module = {} local mt = {} mt.__unm = function(rhs) return module.Vector2D(-rhs[1], -rhs[2]) end mt.__add = function(lhs, rhs) return module.Vector2D(lhs[1] + rhs[1], lhs[2] + rhs[2]) end mt.__sub = function(lhs, rhs) return module.Vector2D(lhs[1] - rhs[1], lhs[2] - rhs[2...
require('src/items/item') require('src/items/items') require('src/items/inventory') require('src/components/store/itembutton')
local Lerp = Object:extend() function Lerp:new() rawset(self, "__values", {}) rawset(self, "__lerp", 1) end function Lerp:__index(key) if key == "new" then return Lerp[key] else local value = self.__values[key] if value ~= nil then local lerp = self.__lerp return value.value * lerp + value.old * (1 - ...
local addonName = "KibsItemLevelContinued" local addonNamespace = LibStub:NewLibrary(addonName .. "-1.0", 1) if not addonNamespace then return end addonNamespace.loaded = {}
controller= require('ControllerVI') ffi = require('ffi') control= ControllerVI() --c = control:learn(ffi.new("double[3]", {1,2,3}),ffi.new("double[1]", {1}), 3, 1, 1,2) --A = matrix{{-1,2,1},{0.1,-1,2},{0,0.1,1}} --B = matrix{{0},{0},{1}} --x = matrix{{2},{0},{0}} --K = matrix{{2,0,0}} K = {0.002} p = 500 --matrix....
-- cl_init.lua -- initializes the client-side section local clBaseDir = BSU.DIR_BASE .. "client/" -- setup shared scripts include(BSU.DIR_BASE .. "sql.lua") -- setup client-side scripts include(clBaseDir .. "sql.lua") include(clBaseDir .. "networking.lua") include(clBaseDir .. "pp.lua") -- module loading local clMo...
s.sprite = { "position", "size", "sprite" } s.sprite.draw = function(i, pos, size, sprite) do local _with_0 = love.graphics _with_0.setColor(1, 1, 1) local ox = size.w / sprite.img:getWidth() local oy = size.h / sprite.img:getHeight() _with_0.draw(sprite.img, pos.x + size.w / 2, pos.y + size...
-- Copyright © 2013, Cairthenn -- All rights reserved. -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions a...
centaur_passive = class({}) LinkLuaModifier("modifier_centaur_passive", "pve/abilities/heroes/centaur/centaur_passive/modifier_centaur_passive", LUA_MODIFIER_MOTION_NONE) function centaur_passive:GetIntrinsicModifierName() return "modifier_centaur_passive" end
HELP = [[ Re-imports a build from pathofexile.com automatically. See testupdate.bat for an example of running it directly. Usage: lua UpdateBuild.lua <build xml>|CURRENT ]] local BUILD_XML = arg[1]; if BUILD_XML == nil then print("Usage: UpdateBuild.lua <build xml>|CURRENT") os.exit(1) end loca...
local ffi = require("ffi") local List = require("udev.list") local util = require("udev.util") local libudev = require("udev.libudev") local lib = libudev.lib ---@class UDevDevice ---@field context UDevContext ---@field udev_device udev_device local Device = {} --luacheck: push no max line length ---@overload fun(...
-- /re function wrCommand(thePlayer, commandName, ...) if getElementData(thePlayer, "player.lastw") == false then exports.lsrp:showPopup(thePlayer, "Nie pisałeś do nikogo w ostatnim czasie.", 5 ) return end local msg_to_send = table.concat({...}, " ") local select_id = tonumber(getElementData(thePlayer, "playe...
local t = My.Translator.translate My.EventHandler:register("onAllStationsDestroyed", function() if My.Commander:isAlive() then local commanderLocation = My.Commander:getLocation() local commander = My.Commander:getPerson() local player = My.World.player Tools:ensureComms(commanderLo...
--arg[1] == path to REPORT.lua --arg[2] == path to MODBUILDER --arg[3] == 1 (check NMS MODS for conflict) if gVerbose == nil then dofile(arg[2]..[[LoadHelpers.lua]]) end --.\MODBUILDER\ pv(">>> In CheckREPORTLOG.lua") gfilePATH = arg[1] --to use by LoadHelpers.Report() THIS = "In CheckREPORTLOG: " -- print("arg[3...
a = 1 -- Here we declare a numeric variable fruit = "banana" -- Here we declare a string datatype needspeeling = True -- This is a boolean local b = 2 -- This variable declaration is prefixed with a scope modifier
local E, C, L = select(2, ...):unpack() ---------------------------------------------------------------------------------------- -- Core Function Methods ---------------------------------------------------------------------------------------- local format = string.format local tonumber = tonumber -------------------...
local API_SE = require(script:GetCustomProperty("APIStatusEffects")) local ABILITY = script:GetCustomProperty("Ability"):WaitForObject() function OnExecute(ability) local player = ability.owner API_SE.ApplyStatusEffect(player, player, API_SE.STATUS_EFFECT_DEFINITIONS["Freeze Solid"].id) player:ResetVelocity() en...
WireToolSetup.setCategory( "Detection" ) WireToolSetup.open( "adv_las_receiver", "Advanced Laser Pointer Receiver", "gmod_wire_adv_las_receiver", nil, "Advanced Laser Pointer Receivers" ) if CLIENT then language.Add( "Tool.wire_adv_las_receiver.name", "Advanced Laser Receiver Tool (Wire)" ) language.Add( "Tool.wire_...
local M = {} M.config = function () require("whichkey_setup").config{ hide_statusline = false, default_keymap_settings = { silent=true, noremap=true, }, default_mode = 'n', } end return M
--- @class GAngle --- List of all possible functions to manipulate angles. --- Created by Global.Angle. --- @field p number @The pitch component of the angle --- @field pitch number @The pitch component of the angle --- @field x number @The pitch component of the angle --- @field y number @The yaw component of the ...
--[[ addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource()), function() --outputDebugString('/sSkyBox to switch the effect') triggerEvent( "switchSkyBox", resourceRoot, true ) addCommandHandler( "sSkyBox", function() triggerEvent( "switchSkyBox", resourceRoot, not sbxEffectE...
local skynet = require "skynet" require "skynet.manager" local httpc = require "http.httpc" local dns = require "dns" local ipay = require "ipay" local CMD = {} function CMD.create_ipay(msg) return ipay.request(msg) end skynet.start(function() httpc.dns() -- set dns server httpc.timeout = 100 -- set time...
--- -- Very basic SIP registrar server -- it supports only one login/password local sip = require "voip.sip" local cnn = sip.connection(function()end) cnn:set_timeout(0.01) local ok,err = cnn:bind("*", 5060) if not ok then print("can not bind:", err) return end local us = sip.US(cnn) local AUTH, PASS, ...
-- main entry function main(t) -- build project if is_host("macosx") and os.arch() ~= "arm64" then t:build() else return t:skip("wrong host platform") end end
local awful = require 'awful' local beautiful = require 'beautiful' local hotkeys_popup = require 'awful.hotkeys_popup' local has_fdo, freedesktop = pcall(require, 'freedesktop') awesomemenu = { { 'Hotkeys', function() hotkeys_popup.show_help(nil, awful.screen.focused()) end }, { 'Restart', awesome.res...
local eq = assert.are.same local errors = assert.has_error describe('query', function() local query = require('codicons').query local invalid_retval_msg = '[Codicons.nvim] Invalid retval' local invalid_pattern_range_msg = '[Codicons.nvim] First parameter must either be a range (table) or a pattern (string)' l...
SLASH_ITEMINFO1 = "/iteminfo" function SlashCmdList.ITEMINFO(msg, editbox) local AceGUI = LibStub("AceGUI-3.0") local window = AceGUI:Create("Window") window:SetHeight(700) window:SetWidth(300) window:SetLayout("Flow") local iteminfo = {strsplit(":", msg)} --item:itemId:enchantId:gemId1:gemId2:gemId3:gem...
local backends = require("aerial.backends") local callbacks = require("aerial.backends.lsp.callbacks") local config = require("aerial.config") local data = require("aerial.data") local M = {} -- callback args changed in Neovim 0.6. See: -- https://github.com/neovim/neovim/pull/15504 local function mk_handler(fn) ret...
require("utils/functions.lua") -- Add an Object to the Update System -- function UpSys.addObj(obj) if valid(obj) == false then return end -- Add the Object -- UpSys.addObject(obj) end -- Remove an Object from the Update System -- function UpSys.removeObj(obj) -- Remove the Object -- if obj.entID then global...
config = { var2 = -100 }
ITEM.name = "Chinese Noodle" ITEM.model = "models/props_junk/garbage_takeoutcarton001a.mdl" ITEM.hungerAmount = 20 ITEM.foodDesc = "A Cartoon of Chinese Food." ITEM.price = 5 ITEM.quantity = 1
--- Snowflake utilities -- @module discord.utilities.snowflake local discord = ... --Passed as an argument local bit = discord.utilities.bit --Universal bitwise interface --Localised functions and values local band, lshift, rshift = bit.band, bit.lshift, bit.rshift local floor = math.floor --The snowflake module loc...
menu = {} function menu:new(instance) instance = instance or {} self.__index = self setmetatable(instance, self) return instance end function menu:Show() if not self.canvasName then Debug.Log("menu:Show: Missing canvasName") return end if self.canvasEntityId then ...
object_building_mustafar_items_must_satellite_uplink = object_building_mustafar_items_shared_must_satellite_uplink:new { } ObjectTemplates:addTemplate(object_building_mustafar_items_must_satellite_uplink, "object/building/mustafar/items/must_satellite_uplink.iff")
ITEM.name = "Generator" ITEM.description = "Effectively a miniature nuclear reactor without the fear of a melt down, this artifact can only be utilized in an especially made conductor that contains its energy and radiation. Being a suitable replacement for a portable generator to power a building. [ +30 RAD ]" ITEM.cat...
local Utility = require("Utility") local Puck = {} local optionUltimateHelper = Menu.AddOption({"Hero Specific", "Puck"}, "Ultimate Helper", "Cast ultimate on best position once the order key is pressed") local optionKillSteal = Menu.AddOption({"Hero Specific", "Puck"}, "Kill Steal", "Cast spell (silence) on enemy to...
modifier_mars_basic_attack_stacks = class({}) function modifier_mars_basic_attack_stacks:IsHidden() return false end function modifier_mars_basic_attack_stacks:IsDebuff() return false end function modifier_mars_basic_attack_stacks:IsStunDebuff() return false end function modifier_mars_basic_attack_stacks:IsPurgable() ...
-- CONFIG -- ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) -- Blacklisted vehicle models ListeBlackList = { "RHINO", "BLIMP", "BLIMP2", "CARGOPLANE", "BESRA", "CUBAN800", "DODO", "JET", "MI...
module "luci.controller.services" function index() local uci = require "luci.model.uci".cursor() uci:foreach("olsrd", "LoadPlugin", function(s) if s.library == "olsrd_nameservice" then has_serv = true end end) if has_serv then entry({"freifunk", "services"}, template("freifunk-services/services"), _("Se...
local util = require("spec.util") describe("assignment to tuple", function() it("should not care about an array's inferred length when assigned indirectly", util.check [[ local t: {number, number} local arr = {1, 2, 3, 4} t = arr ]]) it("should error when an array literal is too long", util....
local addon, Engine = ... local DE = LibStub('AceAddon-3.0'):NewAddon(addon, 'AceEvent-3.0', 'AceHook-3.0') local L = Engine.L Engine.Core = DE _G[addon] = Engine -- Lua functions local _G = _G local format, ipairs, min, pairs, select, strsplit, tonumber = format, ipairs, min, pairs, select, strsplit, tonumber -- Wo...
--- Module implementing the LuaRocks "list" command. -- Lists currently installed rocks. --module("luarocks.list", package.seeall) local list = {} package.loaded["luarocks.list"] = list local search = require("luarocks.search") local deps = require("luarocks.deps") local cfg = require("luarocks.cfg") local util = req...
local slib = slib local snet = slib.Components.Network -- snet.Callback('snet_file_delete_in_client', function(ply, path) slib.FileDelete(path) end) function snet.FileDeleteInServer(path) snet.InvokeServer('snet_file_delete_in_server', path) end
--[[ TheNexusAvenger Centralizes storing and playing animations. Unless non-Roblox animations become public, the R15 animations will not work. --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local Animations = require(ReplicatedStorage:WaitForChild("Data"):WaitForChild("Animations")) local Animat...
class 'CBoardClient' function CBoardClient:__init() -- Board settings self.iStartShowRow = 0 -- Start show players from self.fBoardWidth = SCOREBOARD_CONFIGURATION.WIDTH self.fBoardHeight = SCOREBOARD_CONFIGURATION.HEIGHT self.iActivationButton = SCOREBOARD_CONFIGURATION.ACTIVATION_BUTTON self.tBor...
local constants = require("constants") local util = require("prototypes.util") local styles = data.raw["gui-style"]["default"] -- local depot_button_height = 89 -- BUTTON STYLES -- smaller flib slot buttons for _, color in ipairs({ "default", "red", "green", "blue" }) do styles["ltnm_small_slot_button_" .. color...
-- Unit: A unit in the game. May be a manager, intern, or physicist. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.class") loc...