content
stringlengths
5
1.05M
data:extend{ { type = "item", name = "cement-shoes-equipment", icon = "__Cement Shoes__/graphics/icons/cement-shoes-equipment.png", icon_size = 64, placed_as_equipment_result = "cement-shoes-equipment", flags = {}, subgroup = "equipment", stack_size = 50, default_request_amount = 10 ...
isolated = false local app = dofile(docroot .. "/hello.lua") local wsx = require "wsapi.xavante" rules = { { match = { "^/app$", "^/app/" }, with = wsx.makeHandler(app, "/app", docroot, docroot) }, }
local migrations_utils = require "kong.cmd.utils.migrations" local prefix_handler = require "kong.cmd.utils.prefix_handler" local nginx_signals = require "kong.cmd.utils.nginx_signals" local conf_loader = require "kong.conf_loader" local kong_global = require "kong.global" local kill = require "kong.cmd.utils.kill" loc...
local constants = require("bufferline/constants") local M = {} local superscript_numbers = { ["0"] = "⁰", ["1"] = "¹", ["2"] = "²", ["3"] = "³", ["4"] = "⁴", ["5"] = "⁵", ["6"] = "⁶", ["7"] = "⁷", ["8"] = "⁸", ["9"] = "⁹", } local subscript_numbers = { ["0"] = "₀", ["1"] = "₁", ["2"] = "₂",...
-- this gets called starts when the level loads. function start(song) -- arguments, the song name print("Succesfully loaded (suit up)... have fun ;)") if curStep == 16 then showOnlyStrums = true -- remove all hud elements besides notes and strums for i=0,3 do tweenFadeIn(i,0...
#!/usr/bin/lua5.3 local json = require("cjson") local lustache = require("lustache") local yaml = require("lyaml") local utils = require("utils") local conf = require("config") function get_branches(indexes) local res = {} for k,v in ipairs(indexes.master.branch) do table.insert(res, v.name) end return res en...
-- Sound Table local soundDataSlap = love.sound.newSoundData('gfx/slap.wav') local soundDataGameOver = love.sound.newSoundData('gfx/game-over.wav') local sounds = {} sounds.slap = function() local slapSound = love.audio.newSource(soundDataSlap, 'static') love.audio.setVolume(0.4) love.audio.stop() love.audio.play...
local ffi = require "ffi" local C = ffi.C local ffi_new = ffi.new local ffi_str = ffi.string local provider_macro = require "resty.openssl.include.provider" local crypto_macro = require("resty.openssl.include.crypto") local OPENSSL_30 = require("resty.openssl.version").OPENSSL_30 local format_error = require("resty.op...
solution("faux_engine") configurations { "Debug", "Release" } language "C++" flags { "Cpp17" } platforms "x64" location "./build" objdir "./build/obj" defines { "_CRT_SECURE_NO_WARNINGS" } libdirs { "$(VULKAN_SDK)/Lib"} project("demo") kind "ConsoleApp" files { "./examples/...
--ZFUNC-repeatedly-v1 local function repeatedly( n, f, ... ) --> tab local res = {} for i = 1,n do table.insert( res, f( ... ) ) end return res end return repeatedly
local skynet = require "skynet" local kvdb = require "kvdb" skynet.start(function() kvdb.set("A", 1) print(kvdb.get "A") end)
local MainUITaskView = BaseClass(UINode) function MainUITaskView:Constructor( parentTrans ) self.viewCfg = { prefabPath = "Assets/AssetBundleRes/ui/mainui/MainUITaskView.prefab", parentTrans = parentTrans, } self.model = TaskModel:GetInstance() self:Load() end function MainUITaskView:OnLoad( ) local names ...
local class = require('opus.class') local UI = require('opus.ui') UI.ActiveLayer = class(UI.Window) UI.ActiveLayer.defaults = { UIElement = 'ActiveLayer', } function UI.ActiveLayer:layout() UI.Window.layout(self) if not self.canvas then self.canvas = self:addLayer() else self.canvas:resize(self.width, self....
local awful = require "awful" local hotkeys_popup = require "awful.hotkeys_popup" _G.Menu = {} Menu.awesome = { { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end, }, { "edit config", editor_cmd .. " " .. awesome.conffile }, { "restart", awesome.restart }, { ...
function model.removeFromPluginRepresentation() -- Destroy/remove the plugin's counterpart to the simulation model local data={} data.id=model.handle simBWF.query('object_delete',data) model._previousPackedPluginData=nil model._previousPackedPluginData_dynParams=nil end function model.upda...
require 'TicTacToeUtil' function TicTacToeQLearningAgent(numActions, model, stone) local agent = {} local util = TicTacToeUtil() -- Choose actoin based on epsilon-greedy strategy -- @param state -- @param epsilon -- @return function agent.chooseAction(state, epsilon) local action if (util.rand...
local m = require 'lpeg' return m.P '\0'
local M = {} local function log(level, ...) local d = debug.getinfo(3) api_log_out(level, d.short_src, d.currentline, string.format(...)) end function M.err(...) log(API_LOG_ERROR, ...) end function M.info(...) log(API_LOG_INFO, ...) end return M
ownit = {} ownit.modname = core.get_current_modname() ownit.modpath = core.get_modpath(ownit.modname) dofile(ownit.modpath .. "/wand.lua")
local skynet = require "skynet" local socket = require "skynet.socket" -- 简单echo服务 function echo(c_id, addr) socket.start(c_id) local str = socket.readall(c_id) if str then skynet.error("recv "..str) else skynet.error(addr .. " close") socket.close(c_id) return end end function accept(c_id, addr) skynet...
local function removeArrayValues(t, v) local n = 0 for i, v2 in ipairs(t) do if v2 ~= v then n = n + 1 t[n] = v2 end end while #t > n do t[#t] = nil end end local function clear(t, v) if v == nil then for k in pairs(t) do t[k] = nil end else for k, v2 in pairs(...
--[[ PLAYER SPAWN POINT LIST revive_point(<map_id>, <x_pos>, <y_pos>); start_point(<map_id>, <x_pos>, <y_pos>); respawn_point(<map_id>, <x_pos>, <y_pos>); --]] start_point(25, 5379.492, 5184.521); respawn_point(25, 5156.294, 5086.163); respawn_point(25, 5515.459, 4899.346); respawn_point(25, 5490.361, 5359.512); respaw...
local cjson = require("cjson.safe") return { serialize = cjson.encode, deserialize = cjson.decode }
redis = require('redis') sjson = require('sjson') bit = require('bit') function processData(data) print("Processing switch state " .. data) data = tonumber(data) for i=0,7,1 do if bit.isset(data, i) then print("Switch " .. i .. " is on") gpio.write(i+1, gpio.LOW) else print("Switch " .. i .. ...
return { aes = { key = 'change_me', -- salt can be either nil or exactly 8 characters long salt = 'changeme', size = 256, mode = 'cbc', hash = 'sha512', hash_rounds = 5, }, tg = { bot_username = 'tinystash_bot', -- bot authorization token token = 'bot_token', -- tg se...
local Hack = { nId = YYYYMMDD, strName = "Name_of_the_Hack", strDescription = "Description_of_the_Hack", strXmlDocName = nil, tSave = nil, } function Hack:Initialize() return true end function Hack:Load() end function Hack:Unload() end function Hack:new(o) o = o or {} setmetatable(o, self) self.__...
local COMMAND = {} COMMAND.title = "Imitate" COMMAND.description = "Makes a player say something in chat." COMMAND.author = "Nub" COMMAND.timeCreated = "Saturday, April 25, 2020 @ 12:22 AM CST" COMMAND.category = "Fun" COMMAND.call = "im" COMMAND.usage = "<player> {action}" COMMAND.server = function(caller, arg...
Description="Cold Plasma Dispersion" -- description or other text things. Context="ExplicitEM" -- SI Unit System c = 299792458 -- m/s qe=1.60217656e-19 -- C me=9.10938291e-31 --kg mp=1.672621777e-27 --kg mp_me=1836.15267245 -- KeV = 1.1604e7 -- K Tesla = 1.0 -- Tesla PI=3.141592653589793 TWOPI=PI*2 ...
local util = require("spec.util") describe("-q --quiet flag", function() setup(util.chdir_setup) teardown(util.chdir_teardown) it("silences warnings from tlconfig.lua", function() util.run_mock_project(finally, { dir_structure = { ["tlconfig.lua"] = [[return { foo = "hello" }]], ...
--TODO: Passive Health Regen: check percentages, substract berserker reduction, calculate frenzy reduction if not (WolfHUD and WolfHUD:getSetting({"HUDList", "ENABLED"}, true)) then return end if string.lower(RequiredScript) == "lib/managers/hudmanagerpd2" then local format_time_string = function(value) local time_...
pg = pg or {} pg.enemy_data_statistics_140 = { [10070394] = { cannon = 220, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 30003, air = 0, rarity = 5, dodge = 19, torpedo = 180, durability_growth = 0, antiaircraft = 240, reload_growth = 0, dodge_growth = 270, hit_...
local getPath = function (from, to) if from == to then return nil end local visitedNode = {} -- First step, we backtrack to the first ancestor that has -- more than one parent to reduce the overhead. local path = {} while true do if visitedNode[to] then return redis.error_reply("ERR infin...
local Bot = {} -- high score = 23,650 local currentAltitude local currentIsOnBase predictedx = 0 -- this is the lookahead ability predictedy = 0 -- this is the lookahead ability perfecty = 0 -- the y value that is just right local currentDistanceToBase local predictedYgroundValue -- the ground y va...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Mephistroth", 1677, 1878) if not mod then return end mod:RegisterEnableMob(116944) mod.engageId = 2039 ---------------------------------------------------------------------------...
-- import local candy = require 'candy' local RenderContext = candy.RenderContext local Viewport = candy.Viewport local RenderTarget = candy.RenderTarget local TextureRenderTarget = candy.TextureRenderTarget local RenderManagerModule = require 'candy.RenderManager' local getRenderManager = RenderManagerModule.getRender...
local deleteCount = 0 local destroyNode destroyNode = function (id) local parents = redis.call('smembers', prefix .. id .. '::P') for _, parent in ipairs(parents) do deleteReference(parent, id, 0) end local value = redis.call('get', prefix .. id) if #parents > 0 or value then deleteCount = deleteCo...
counter = 0 function test() print("Depth:", counter) counter = counter + 1 test() end test()
local me = microexpansion me.networks = {} local networks = me.networks local path = microexpansion.get_module_path("network") -- get a node, if nessecary load it function me.get_node(pos) local node = minetest.get_node_or_nil(pos) if node then return node end local vm = VoxelManip() local MinEdge, Ma...
-- gearman client... -- protocol_util = require('protocol_util') require('protocol_gearman/protocol_gearman') local pru = protocol_util local pgm = protocol_gearman local network_bytes = pru.network_bytes local network_bytes_string_to_number = pru.network_bytes_string_to_number --------------------...
--[[ TheNexusAvenger Interface representing a view frame. --]] local NexusGit = require(script.Parent.Parent.Parent.Parent):GetContext(script) local NexusInterface = NexusGit:GetResource("NexusPluginFramework.NexusInstance.NexusInterface") local IViewFrame = NexusInterface:Extend() IViewFrame:SetClassName("IViewFram...
addEvent('onRaceStateChanging') addEventHandler('onRaceStateChanging', root, function (new) if (new ~= 'GridCountdown') then return end for i, blip in ipairs(getElementsByType('blip')) do setBlipColor(blip, 0, 0, 0, 0) end for j, player in ipairs(getElementsByType('player')) do if (player.vehicle.model =...
return { level = 57, need_exp = 110000, clothes_attrs = { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, }, }
local helper = require 'arken.Helper' local test = {} test.return_self = function() assert( helper:dateFormat("mydate") == "mydate" ) end return test
-- Anytranslate hs.hotkey.bind({"cmd", "alt", "ctrl"}, "T", function() -- Basic api URL's local DETECT = "https://translate.yandex.net/api/v1.5/tr.json/detect?" local DICT = "https://dictionary.yandex.net/api/v1/dicservice.json/lookup?" -- Insert your keys here local TRANS_KEY = "<...
return { author = "Alpin 3D Design & SRTD", version = "1.1.6", title = "A3D SNOW.Control", description = "Alpin 3D design and SRTD present the original SNOW.Control mod with many original manufacturers for the winter resort simulator. Experience the highest level of detail in the field of snowmaking and groo...
return { code = 'ROLE_CREATE_INVALID_PROFESSION', key = "ROLE_CREATE_INVALID_PROFESSION", }
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KS = KUI:GetModule("KuiSkins") local S = E:GetModule("Skins") --Cache global variables local _G = _G local unpack = unpack --WoW API / Variables --Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS: local r, g, b =...
local M = {} function M.tstring(t) local strings = {} for k, v in pairs(t) do strings[#strings + 1] = tostring(k) .. ': ' .. tostring(v) .. '\n' end return table.concat(strings, ' ') end function M.copy(t) local copy = {} for k, v in pairs(t) do copy[k] = v end local mt = getmetatable(t) if ...
------------------------------------------------------------------------------- -- PATH ------------------------------------------------------------------------------- package.path = package.path .. ";app/models/?.lua" package.path = package.path .. ";app/controllers/?.lua" package.path = package.path .. ";app/help...
-- -- Created by IntelliJ IDEA. -- User: damian -- Date: 13/01/2017 -- Time: 23:51 -- To change this template use File | Settings | File Templates. -- require "FallBehaviour" require "FadeBehaviour" SectionA = {} function SectionA:new() o = {activeBassBlocks = {}} setmetatable(o, self) self.__index = sel...
--- -- Test ZMQ_REQ_RELAXED mode and reconnect socket -- This test requires [lua-llthreads2](https://github.com/moteus/lua-llthreads2) library local zmq = require "lzmq" local ztimer = require "lzmq.timer" local zthreads = require "lzmq.threads" local zassert = zmq.assert local ENDPOINT = "tcp://127.0.0.1:55...
local parser = clink.arg.new_parser local addon_parser = parser({ "--dry-run", "-d", "--verbose", "-v", "--blueprint", "-b", "--skip-npm", "-sn", "--skip-bower", "-sb", "--skip-git", "-sg", "--directory", "-dir" }) local asset_sizes_parser = parser({ "--output-path", "-o" }) local bui...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:Initialize() self:SetModel( "models/thedoctor/crackmachine_on.mdl") self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self:SetUseType( SIMPLE_USE ) self.phy...
-- -- Upcoming uniques will live here until their mods/rolls are finalised -- data.uniques.new = { [[ Speaker's Wreath Prophet Crown Unreleased: true Requires Level 63 +23 to Dexterity 14% increased Skill Effect Duration 2% increased Minion Attack Speed per 50 Dexterity 2% increased Minion Movement Speed per 50 Dexte...
-- global DB = nil if not Config.database then log.error("Database config file not found.") ServerExit() return end mariadb_log(Config.database['log_level']) local port = 3306 if Config.database['port'] ~= nil then port = tonumber(Config.database['port']) end DB = mariadb_connect(Config.database['ho...
require("bufferline").setup({ options = { separator_syle = "thin", numbers = "none", offsets = { { filetype = "NvimTree", text = "Files", text_align = "center", }, }, diagnostics = "nvim_lsp", }, })
while true do f = Instance.new("ForceField") f.Parent = Game.Workspace.acb227 wait(0.01) end
function LoadUDM(property) local udm = require("UdmLoader")() udm:Load(property.filepath) local udminst = { Tetra = function() return udm:TetraData() end, Mesh = function () return udm:MeshData() end, ExtraP = function () return udm:ExtraData('P') end, ExtraT = function () return udm:Extr...
-- Day15 with actual closure-based generators (iterators) in Lua... function genGenerator(factor, START, mod2) local DIVISOR = 2147483647 local value = START mod2 = mod2 or 1 return function () repeat value = value * factor % DIVISOR until (value % mod2) == 0 return value end end functio...
-- Initialization function for this job file. function get_sets() mote_include_version = 2 include('Mote-Include.lua') end -- //gs debugmode -- //gs showswaps function user_setup() -- Options: Override default values state.OffenseMode:options('Normal', 'Acc') state.WeaponskillMode:options('Norma...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] function cwCloudSixteenForums:MenuItemsAdd(menuItems) menuItems:Add(L("MenuNameCo...
Rain = require 'rain' function love.load() -- Window love.window.setTitle("rain") windowWidth = 800 windowHeight = 600 love.window.setMode(windowWidth, windowHeight) --[[ Rain variables deltaX: distance in pixels from the x1 value of a rain line to the x2 deltaY: distance in pixels from th...
local sum = 0 local maxJ = 1000 for j = 1,maxJ do for i = 1,10000 do sum = sum + 1 end end print (sum)
snet.Callback('qsystem_sync_npcs', function(_, ent, npcs) ent.npcs = npcs QuestSystem:Debug('SyncNPCs (' .. table.Count(npcs) .. ') - ' .. table.ToString(npcs)) end).Validator(SNET_ENTITY_VALIDATOR).Register()
return { { file = "example-article", title = "An example article", date = "2020-06-25", }, }
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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...
local status_ok, impatient = pcall(require, 'impatient') if not status_ok then vim.notify('The `lewis6991/impatient.nvim` was not found.') return end impatient.enable_profile()
SafeAddString("SI_IMPROVED_DEATH_RECAP_LANG", "en") SafeAddString("SI_IMPROVED_DEATH_RECAP_FONT", "$(MEDIUM_FONT)") -- EsoUi/Common/Fonts/Univers57.otf SafeAddString("SI_IMPROVED_DEATH_TITLE_FONT", "$(ANTIQUE_FONT)|24") -- Options Menu SafeAddString("SI_IMPROVED_DEATH_RECAP_MENU_HEADER", "Allgemeine Einstellungen") S...
-- _.isNumber.lua -- -- Checks if value is classified as a number primitive. -- @usage _.print(_.isNumber(1)) -- --> true -- _.print(_.isNumber('1')) -- --> false -- -- @param value the value to check -- @return Returns true if value is correctly classified, else false. _.isNumber = function(value) return type(valu...
if not _G.CTH then dofile(ModPath .. 'setup.lua') end -- remove display of cableties from HUD, since you have infinite anyways. if CTH.settings.cth_hidehud then function HUDManager:set_cable_ties_amount(i, amount) if i == HUDManager.PLAYER_PANEL then amount = 0 ...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0240-sdl-js-pwa.md -- -- Description: -- Verify that the SDL does not establish WebSocket-Secure connection in case of WS Client Certifi...
package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/?.lua" include ("stringutility") include ("callable") include ("galaxy") include("randomext") local AsyncPirateGenerator = include ("asyncpirategenerator") local AsyncShipGenerator = include ("asyncshipgenerator") l...
local missions = { { name = "Black Export", resource = "mtatr_blackexport", start = "startBlackExport", stop = "stopBlackExport", timeout = 6, args = {} }, }; local missions_info = {}; local missions_index = 1; local missions_timeout = 60; local function mission_st...
-- -- Generated from stack.lt -- local stack, s = {}, 0 local top = function() return stack[s] end local push = function(input) s = s + 1 stack[s] = input end local pop = function() local output = stack[s] s = s - 1 return output end return {top = top, push = push, pop = pop}
function onCreate() -- background shit makeLuaSprite('studio-background', 'studio-background', -620, -880); setScrollFactor('studio-background', 0.95, 0.95); scaleObject('studio-background', 0.8, 0.8); makeLuaSprite('studio-desk', 'studio-desk', 320, -230); setScrollFactor('studio-desk', 1, 1); sc...
local auxlib = require 'cqueues.auxlib' local condition = require 'cqueues.condition' local lu = require 'luaunit' local socket = require 'cqueues.socket' local App = require 'tulip.App' local M = {} function M.test_metrics() local app = App{ metrics = { allowed_metrics = {'a', 'b', 'c'}, host = '12...
--[[ We're inlining lone children into parents trying to get "saturated" record with following structure: --+---------+--+---------+--+----------+-- +-| opt |-+ `-| rep |-' `-| name |-' `-| neg |-' ]] local to_str = request('!.formats.lua_table_code.save') local assembly_order = request('!.mec...
-- -- -- require 'globals' require 'python' -- require 'csharp' globals.init() -- -- osg - Python -- project.name = "osgBindings" project.configs = { "Debug", "Release" } if (target == "vs2003") then project.path = "../VisualStudio/VS2003" elseif (target == "vs2005") then project.path = "../VisualStudio/V...
local metric = monitoring.gauge("forceload_blocks_count", "number of forceload blocks") -- stolen from https://github.com/minetest/minetest/blob/master/builtin/game/forceloading.lua local wpath = minetest.get_worldpath() local function read_file(filename) local f = io.open(filename, "r") if f==nil then return {} en...
--shameless copy-pasta of SkyLight's micro_item_salainen_puulle which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu7 which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu6 which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu5 which was a copy-pasta of Sk...
-------------------------------- -- markdown specific settings -- -------------------------------- -- vim.bo.conceallevel = 2
-- made by xFunnieuss -- Script (do not modify) local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local TextLabel = Instance.new("TextLabel") local Off = Instance.new("TextButton") local On = Instance.new("TextButton") ScreenGui.Parent = game:GetService('CoreGui') ScreenGui.Name = "blinkgu...
-- Forces an event (wrapper for modtools/force) --[====[ force ===== A simpler wrapper around the `modtools/force` script. Usage: - ``force event_type`` - ``force event_type civ_id`` - civ ID required for ``Diplomat`` and ``Caravan`` events See `modtools/force` for a complete list of event types. ...
-- Copyright (C) YuanSheng Wang (membphis) local setmetatable = setmetatable local ngx = ngx local table = table local str_fmt= string.format local unpack = unpack local type = type local pairs = pairs local pcall = pcall local _M = { _VERSION = '0.02', } local mt = { __index = _M } function _M.new(o...
-- THIS FILE IS SAFE TO EDIT. It will not be overwritten when rerunning go-raml. local schema = require("handlers.schemas.schema") function get_user_address_by_id_handler(request) -- handler for GET /users/:userId/address/:addressId -- response body for 200 should match schema.Address local resp = { ...
local defaultSound = "tsctra00.wav" local radioOptions = { dropSmoke = false, } local function setGroupAltitude(groupData, newAlt) if ( groupData.route and groupData.units and newAlt ) then for i,u in pairs(groupData.units) do groupData.units[i].alt = newAlt end for i...
AAPClassic["itemsNames"]={ [25]="Worn Shortsword", [35]="Bent Staff", [36]="Worn Mace", [37]="Worn Axe", [38]="Recruit\'s Shirt", [39]="Recruit\'s Pants", [40]="Recruit\'s Boots", [43]="Squire\'s Boots", [44]="Squire\'s Pants", [45]="Squire\'s Shirt", [47]="Footpad\'s Shoes", [48]="Footpad\'s Pants", [49]=...
local K, C, L = unpack(select(2, ...)) local Module = K:GetModule("Tooltip") local _G = _G local select = _G.select local string_format = _G.string.format local string_match = _G.string.match local tonumber = _G.tonumber local BAGSLOT = _G.BAGSLOT local BANK = _G.BANK local CURRENCY = _G.CURRENCY local C_CurrencyInfo...
local fn = {} fn.table = {} fn.__index = fn fn.table.__index = fn function tabulate(depth) return string.rep('\t', depth) end function fn.to_string(table, tabbing_depth, visited_list, recurse_depth, recurse_depth_max) local visited_tables = visited_list or {} local tabdepth = tabbing_depth or 0 local result = '' ...
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the 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. -- --[[ -- -- Main training s...
-- print to the log tab browser.setactivepage('log') tab:clearlog() tab:log('Testing log...')
function execute( keys ) local target = keys.target local caster = keys.caster local ability = keys.ability local target_hp_percent = target:GetHealth() / (target:GetMaxHealth() / 100) local health_threshold = ability:GetLevelSpecialValueFor( "health_threshold", ( ability:GetLevel() - 1 ) ) local ability3 = ke...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. foraged_schule_nef = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/food/foraged/foraged_vegetable_s2.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } a...
g_gunvals_raw="|!plus/@1/-2,!plus/@2/-2,!plus/@3/2,!plus/@4/2,13;!plus/@1/-1,!plus/@2/-1,!plus/@3/1,!plus/@4/1,1;|@1,@2,!plus/@3/1,@5;@1,@2,@3,@4;|0x8000,0x8000,0x7fff,0x7fff,@1|0,0,0,0,0,0,0;1,1,1,0,0,0,0;2,2,2,1,0,0,0;3,3,3,1,0,0,0;4,2,2,2,1,0,0;5,5,1,1,1,0,0;6,13,13,5,5,1,0;7,6,13,13,5,1,0;8,8,2,2,2,0,0;9,4,4,4,5,0,...
require('github-theme').setup({ -- theme_style = "dark", theme_style = "dark_default", dark_sidebar = true, transparent = true, -- Change the "hint" color to the "orange" color, and make the "error" color bright red -- colors = { hint = "orange", error = "#ff0000" }, -- comment_style = ...
return function (s, session) if session['pos'] > 0 then file.open(session['file']) file.seek('set', session['pos']) end local contents = file.read(1000) file.close() if session['pos'] > 0 then s:send(contents) else s:send(header(200, session['gz']) .. contents) end if string.len(conte...
object_mobile_target_dummy_blacksun = object_mobile_shared_target_dummy_blacksun:new { } ObjectTemplates:addTemplate(object_mobile_target_dummy_blacksun, "object/mobile/target_dummy_blacksun.iff")
os.loadAPI("build/build.lua"); --API Aliases function fif(cond, a, b) return build.fif(cond, a, b); end function stairs(dir, inv) return build.getStairs(dir, inv); end function dirMap(turns) return build.dirMap(turns); end --c = build.coord(0, 71, 0); centerPos = build.coord(-96, 210, -9); --l = build.coord(c.x + 0,...
--> Settings local NUM = "28"; --> The number used to "protect" remotes. local PATH = game:GetService("ReplicatedStorage").D4.D4; local STRINGED_PATH = "game:GetService(\"ReplicatedStorage\").D4.D4"; local console = loadstring(game:HttpGet("https://raw.githubusercontent.com/RobloxArchiver/Console/main/src/main.lua"))(...
local component = require("component") local event = require("event") local function onComponentAvailable(_, componentType) if (componentType == "screen" and component.isAvailable("gpu")) or (componentType == "gpu" and component.isAvailable("screen")) then component.gpu.bind(component.screen.addres...