content
stringlengths
5
1.05M
isLoggedIn = true isHandcuffed = false cuffType = 1 isEscorted = false draggerId = 0 PlayerJob = {} onDuty = false databankOpen = false Citizen.CreateThread(function() for k, station in pairs(Config.Locations["stations"]) do local blip = AddBlipForCoord(station.coords.x, station.coords.y, station.coords.z...
project "AssImp" kind "StaticLib" language "C++" cppdialect "c++17" -- Isard is here to fix, I've been notified -- targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") includedirs { "include", "build/include", "code", "contrib/unzip", "con...
local _={} _.name="FirTree" _.new=function(options) local result=BaseEntity.new() Entity.setSprite(result,"tree_fir_1") result.isDrawable=true result.growPhase=1 result.isActive=false result.originX=16 result.originY=60 Taggable.addTag(result,"tree") Entity.afterCreated(result,_,options) return res...
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[3.2]FloatArray[parent:] --- ---@class FloatArray FloatArray = {} --- ---[3.2]constructor, 1 param --- --- @param arg0 int --- @nodiscard function FloatArray:new(arg0) end --- ---[3.4]realloc array data --- --- @param arg0 int ---...
local a = A:new() local b = a:GetB() local t = {} for i = 1, 100 do t[i] = a:GetB() assert(a:bounce(i)==i) end t = nil b = nil collectgarbage("collect") assert(B.n == 0) print("VarArg OK!")
local mappings = _t({ --{{{ { group = "MatchingAA", color = "#FF6188" }, { group = "MatchingAB", color = "#A9DC76" }, { group = "MatchingAC", color = "#78DCE8" }, { group = "MatchingAD", color = "#FFD866" }, { group = "MatchingAE", color = "#FC9867" }, { group = "MatchingAF", color = "#AB9DF2" }, { group ...
-- Made by WideSteal321. Do not steal and upload as your own. local Regions = { } local RegionsFolder = Instance.new("Folder") RegionsFolder.Name = "Regions__" RegionsFolder.Parent = workspace return { new = function(Vector_1, Vector_2, Orientation, CFrame_) local Region = Region3.new(Vector_1, Vector_2) local ...
local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --Locked Settings, These settings are stored for your character only regardless of profile options. V.general.pvpautorelease = true V.general.autorepchange = true V.general.selectquestreward = tru...
----------------------------------------- -- ID: 4991 -- Scroll of Armys Paeton VI -- Teaches the song Armys Paeton VI ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(383) end function onItemUse(target) target:addSpell(383) end
local args = {...} local luaversion = args[1] local reallib = args[2] local fakelib = args[3] local compiler = args[4] local machine = args[5] local extrasymbols = {} for i = 6, #args do table.insert(extrasymbols, args[i]) end local errmsg local supported_compilers = {vc = true, gcc = true} local supported_machines ...
--[[ * The MIT License * Copyright (C) 2011 Derick Dong (derickdong@hotmail.com). All rights reserved. * * 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 * with...
--[[ Craft Guide for Minetest Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com> Source Code: https://github.com/cornernote/minetest-craft_guide License: BSD-3-Clause https://raw.github.com/cornernote/minetest-craft_guide/master/LICENSE CRAFT GUIDE API ]]-- -- expose object to other modules cr...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local model = require "game.model.role_model" local config = require "game.template.both" local timetool = require "include.timetool" local bconfig = require "game.config" local rankmgr = require "m...
local function sortedInsert(array, value, lessThan) if #array == 0 then array[1] = value return end local start = 1 local stop = #array while stop >= start do local pivot = math.floor(start + (stop - start) / 2) if lessThan(value, array[pivot]) then stop = pivot - 1 else start = pivot + 1 end e...
reaper.ClearConsole() -- reaper.MB("Test","Mixer Toolbox",0) -- Set path Lokasenna GUI -- commandId = reaper.NamedCommandLookup("_RS1c6ad1164e1d29bb4b1f2c1acf82f5853ce77875") -- reaper.Main_OnCommand(commandId, 0) -- Lokasenna GUI loadfile("C:/Users/pract/Documents/Repos/ReaperPlugins/Lua/GUILibrary/Core.Lua")() loa...
_player = _{ extends = _mob, hostiles = function(this) local mobs = {} -- build list of enemies foreach(this.world.mobs, function(mob) if not (mob == this) then add(mobs, mob) end end) return mobs end, get_target = function(this) mobs = this:hostiles() sort_by_dis...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA SWEP.PrintName = "Funny Picture of a Banana" SWEP.Purpose = "A hilarious picture. Look at it!" SWEP.Author = "John J. Callanan" SWEP.Instructions = "Left Click: Laugh\nRight Click: Laugh Hard" if CLIENT then...
local CMP = require("cmp") local LSPKIND = require("lspkind") vim.opt.completeopt = 'menu,menuone,noselect' CMP.setup({ snippet = { expand = function(args) vim.fn["UltiSnips#Anon"](args.body) end }, mapping = { ['<C-d>'] = CMP.mapping(CMP.mapping.scroll_docs(-4), { 'i', 'c' }), ['<C-f>'] = ...
--! SPDX-License-Identifier: MIT --! Copyright (c) 2020 oO (https://github.com/oocytanb) -- 10 Minutes local past_comment_seconds = 600 ---@class CommentMessageEntry ---@field message string @Message contents ---@field name string @[Optional] User name ---@field commentSource string @[Optional] e.g. Nicolive, Twitter...
-- // Destroy excess GUIS for _, v in ipairs(game.CoreGui:GetChildren()) do if v.Name == "ScreenGui" then v:Destroy() end end -- // Dependencies local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/wally-rblx/uwuware-ui/main/main.lua", true))() local Maid = loadstring( ...
local BestScore = {} local lg = love.graphics -- BestScore.show = false BestScore.x = screen.w * 0.1 BestScore.y = screen.h * 0.1 BestScore.w = screen.w * 0.8 BestScore.h = screen.h * 0.8 -- BestScore.text = {} BestScore.text.string = " RECORDS : ".."\n\n" BestScore.text.font = Font BestScore.text.size = 100 BestScor...
vim.fn["dein#add"]("chriskempson/base16-vim")
local M = {} local colors = require("nebulous.functions").get_colors("midnight") function M.config() require('nebulous').setup({ variant = "midnight", custom_colors = { CursorLineNr = { fg = colors.Red }, HighlightedLineNr = { fg = colors.White }, HighlightedLine...
--[[ File @description: The functions included in this file are for ploting customized curves. The codes here are used for ICRA 2017 and ACRA 2017, not used in the current framework. @version: V0.10 @author: Fangyi Zhang email:gzzhangfangyi@gmail.com @acknowledgement: ARC Centre of Excellence for Robo...
local LANDMARKS = { } local PORTS = { } local PORT_COMMANDS = { } local MAPS = { {"", "", "", "", "", "", "", "", ""}; {"", "", "", "", "", "", "", "", ""}; {"", "", "", "", "", "", "", "", ""}; {"", "", "", "", "", "", "", "", ""}; {"", "", "", "", "", "", "", "", ""}; {"", "", "", ...
--!strict --[[ Runs a callback with arguments when the referenced instance is destroyed. Returns a function to disconnect from this event later. This is more comprehensive than `instance.Destroyed` as it covers instances not explicitly destroyed with `:Destroy()`. NOTE: use of this function should be a last res...
-- clock.lua -- -- For timers, tweening, scheduling, etc. local timers = {} local nextTimer = love.timer.getTime() + 1000000.0 local function runTimers(now) nextTimer = now + 100000.0 for k, v in pairs(timers) do if v.time <= now then v.cb() if v.freq == 1 then timers[k] = nil else ...
local executions = {}; local function clear_executions() executions = {}; end local function print_executions() for _, execution in ipairs(executions) do printf( '%s', execution ); end end local function execute( command, command_line ) table.insert( executions, ('%s %s'):format(command, co...
-- Copyright (c) 2019,2021 <dev@brigid.jp> -- This software is released under the MIT License. -- https://opensource.org/licenses/mit-license.php local test_suites = require "test_suites" test_cwd = "." local suites = test_suites() if not suites() then error "test failed" end
newoption { trigger = "boost-dir", description = "Full path to the directory for the Boost distribution." } local internalBoostLoc = os.getcwd() .. "/boost" if(not BoostDir) then function BoostDir() return _OPTIONS["boost-dir"] or internalBoostLoc end end
local script, err = loadfile("Script.txt"); if err then print(err) end; local bytecode = string.dump(script); local a = string.gsub(bytecode, ".", function(c) return "\\" .. c:byte() end); io.open("Dump.luac",'w+'):write(a); return bytecode, a;
-------------------------------------------------------------------------------- -- Room Mob Specific Fucntions -- -------------------------------------------------------------------------------- function RemoveUnitsNotInRoom( hUnit, hTargets ) for i = #hTargets, 1, -1 do if hUnit.hRoom == nil or hTargets[i].hRoom...
--[[ More Blocks: slab definitions Copyright (c) 2011-2015 Calinou and contributors. Licensed under the zlib license. See LICENSE.md for more information. --]] local S = moreblocks.intllib -- Node will be called <modname>:slab_<subname> function register_slab(modname, subname, recipeitem, groups, images, descriptio...
-- ----Author: xiajun ----Date: 20151020 ---- local TSocket = require "TSocket" local TSocketSSL = require "TSocketSSL" local TFramedTransport = require "TFramedTransport" local TBinaryProtocol = require "TBinaryProtocol" local Object = require "Object" local RpcClient = Object:new({ __type = 'RpcClient', }) --初始化RP...
return { [1]={ stats={ [1]="base_number_of_sigils_allowed_per_target" } }, [2]={ lang={ English={ [1]={ limit={ [1]={ [1]=1, [2]="#" } }, text="{0}% chance for Brands to Attach to a new Enemy each time they Activate" } } }, name="armageddon_brand_re...
require("util") -- globals like entity names etc MODPATH = "__rechargableBatteries__" CHARGER_NAME = "battery-charger" CHARGER_ICON = "__rechargableBatteries__/graphics/render_024.png" CHARGER_ICON_SIZE = 512 -- Use ugly prototype based approach instead data:extend({ { type = "recipe", name = CHARGER_NAME, --i...
require("lib/core") do cflib.gui_styles = require("prototypes/gui_styles") local function add_recipe_unlock(recipe, technology) table.insert(data.raw.technology[technology].effects, { type = "unlock-recipe", recipe = recipe }) end local function count_fluids(th...
local env = require("tangerine.utils.env") local fennel = {} local function format_path(path, ext, macro_path_3f) _G.assert((nil ~= macro_path_3f), "Missing argument macro-path? on fnl/tangerine/fennel.fnl:14") _G.assert((nil ~= ext), "Missing argument ext on fnl/tangerine/fennel.fnl:14") _G.assert((nil ~= path),...
require "ball" require "paddle" -- Everything we need to know about the current state of the playing field. field = { -- The coordinates of the upper left corner of the playing field. left = 0, top = 0, -- The coordinates of the bottom right corner of the playing field. right = 1280, bottom = 720, -- T...
local n = require('Navigator.navigate') local N = { setup = n.setup, } function N.left() n.navigate('h') end function N.up() n.navigate('k') end function N.right() n.navigate('l') end function N.down() n.navigate('j') end function N.previous() n.navigate('p') end return N
local mail = require "resty.mail" local message = require "resty.mail.message" describe("message get_from_address", function() it("returns address", function() local msg = message.new(mail.new(), { from = "foo@example.com", }) assert.equal("foo@example.com", msg:get_from_address()) end) it("ex...
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 01/03/2019 -- Time: 20:29 -- To change this template use File | Settings | File Templates. -- return function(station, action) local scum_ID = GET_ID() return { isPolice = true, isPiece = "police", station = station, act...
for _, plat in ipairs(vars.plats) do acklibrary { name = "lib_"..plat, srcs = { "./*.s" }, -- csb8.s vars = { plat = plat }, } end
Lunacolors = {} function init(name, codes) Lunacolors[name] = function(text) return ansi(codes[1], codes[2], text) end end function ansi(open, close, text) if text == nil then return '\27[' .. open .. 'm' end return '\27[' .. open .. 'm' .. text .. '\27[' .. close .. 'm' end -- Define colors -- Modifiers init(...
-- -- LgPlayer class. -- -- @filename LgPlayer.lua -- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved. -- @license The MIT License (MIT) -- @author Yaukey yaukeywang@gmail.com -- @date 2016-03-17 -- local DLog = YwDebug.Log local DLogWarn = YwDebug.LogWar...
--[[ _______ ______ ______ _____ _ _ _______ ______ ______ _____ _ _ | |______ |_____] |_____/ | |____/ |_____| |_____] |_____/ | | |____/ |_____ |______ |_____] | \_ __|__ | \_ | | |_____] | \_ |_____| | \_ ...
--上下文,单例模式 --version:0.0.1 --Copyright (C) Yuanlun He. local require = require local pairs = pairs local pcall = pcall local sub = string.sub local ngx = ngx local _M = { _VERSION='0.01', web = require("config.web"), --站点配置信息表 lang = require("config.lang"), --语言包配置信息 session = require("config.session"),--站点Sess...
local setmetatable = setmetatable local pairs = pairs local type = type local function visit(node, graph, visited, ordered, cycle) if visited[node] == 0 then cycle[#cycle+1] = node return 1 end if visited[node] == 1 then return end visited[node] = 0 cycle[#cycle+1] = node local dep...
--## ---@class LFSDirObject local LFSDirObject = { ---Returns the next entry's name as a string. ---@return string @ entry name next = function() end, ---Closes the dir. close = function() end, } ---@class LFSLock ---@class LFSLinkObject ---@class LFSAttributes ---@field dev number @ on Unix systems, ...
function start(this_pgid) pgid = this_pgid end function stop() end function collide(pid, entity_id) if (get_particle_group_alignment(pgid) == PARTICLE_HURT_ENEMY) then play_sample("sfx/hit.ogg", 1, 0, 1) set_particle_group_alignment(pgid, PARTICLE_HURT_NONE) end end function logic(pid) local right = not (get...
minetest.register_node(tm.."controller", { tiles = {"nc_lode_annealed.png"}, drawtype = "nodebox", paramtype = "light", node_box = { type = "fixed", fixed = { {0.3125, -0.4375, -0.375, 0.375, 0.5, -0.25}, -- NodeBox1 {-0.375, -0.4375, -0.375, -0.3125, 0.5, -0.25}, -- NodeBox2 {-0.375,...
screen_width = 640 screen_height = 480 function draw(dt) local center_x = screen_width / 2 local center_y = screen_height / 2 for i = 1, 300 do local x = math.floor(i * math.sin(i * dt)) local y = math.floor(i * math.cos(i * dt)) drawpoint(center_x - x, center_y - y) end end
--Minetest --Copyright (C) 2016 T4im -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is di...
----------------------------------------------------------------------------- -- Leda Lua API -- Author: Tiago Salmito, Noemi Rodriguez, Ana Lucia de Moura ----------------------------------------------------------------------------- local string,table,kernel,io,leda = string,table,require'leda.kernel',io,require'leda...
-- test_journal_cursor.lua --[[ Test using SDJournal as a cursor over the journal entries In this case, we want to try the various cursor positioning operations to ensure the work correctly. --]] package.path = package.path..";../src/?.lua" local SDMachine = require("SDMachine") local sysd = require("systemd_ffi"...
local conditions_check = function (capacity, weight) return capacity == nil or weight <= capacity end
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("State Machine", function() local StateMachine = require("statemachine") it("can be set up as a new state machine instance", function() local sm...
require('plugins.octo-nvim.settings')
local _, private = ... if private.isClassic then return end --[[ Lua Globals ]] -- luacheck: globals select ipairs --[[ Core ]] local Aurora = private.Aurora local Base = Aurora.Base local Hook, Skin = Aurora.Hook, Aurora.Skin local Color = Aurora.Color do --[[ AddOns\Blizzard_ItemSocketingUI.lua ]] local defaul...
-------------------------------- -- @module GLView -- @extend GLViewProtocol,Ref -- @parent_module cc -------------------------------- -- @function [parent=#GLView] createWithRect -- @param self -- @param #string str -- @param #rect_table rect -- @param #float float -- @return GLView#GLView ret (return value: cc.GLV...
local balancer = require 'resty.balancer' local _M = { _VERSION = '0.1' } local maxn = table.maxn local random = math.random function _M.new() return balancer.new(_M.call) end local function random_peer(peers) local n = maxn(peers) local i = random(1, n) return peers[i], i end function _M.call(peers) ...
local skynet = require "skynet"; skynet.start(function() print("======Server start======="); local service = skynet.newservice("service"); skynet.exit(); end)
--- Environment configuration -- @module environment -- This module is providing a configuration to APIcast before and during its initialization. -- You can load several configuration files. -- Fields from the ones added later override fields from the previous configurations. local pl_path = require('pl.path') local re...
moretrees.beech_model={ axiom="FFFFFBFB", rules_a="[&&&GGF[++^Fd][--&Fd]//Fd[+^Fd][--&Fd]]////[&&&GGF[++^Fd][--&Fd]//Fd[+^Fd][--&Fd]]////[&&&GGF[++^Fd][--&Fd]//Fd[+^Fd][--&Fdd]]", rules_b="[&&&F[++^Fd][--&d]//d[+^d][--&d]]////[&&&F[++^Fd][--&d]//d[+^d][--&d]]////[&&&F[++^Fd][--&Fd]//d[+^d][--&d]]", rules_c="/", ru...
local mod = DBM:NewMod(2336, "DBM-Party-BfA", 11, 1178) local L = mod:GetLocalizedStrings() mod:SetRevision("2019042641737") mod:SetCreatureID(144244, 145185) mod:SetEncounterID(2257) mod:SetZone() mod:SetBossHPInfoToHighest() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 285388", "...
vim.g.strip_whitespace_on_save = 1 vim.g.strip_whitespace_confirm = 0
--[[------------------------------------------------------ zmq for Lua ----------- zmq using msgpack to send/receive packets. The API is slightly different from ØMQ because of the callback nature of Lubyk bindings. --]]------------------------------------------------------ require 'lubyk' local should = ...
CustomizableWeaponry:addFireSound("KHRFAL_FIRE", {"weapons/fnfal_ins/fire1.wav","weapons/fnfal_ins/fire2.wav","weapons/fnfal_ins/fire3.wav"}, 1, 125, CHAN_STATIC) CustomizableWeaponry:addFireSound("KHRFAL_FIRE_SUPPRESSED", {"weapons/fnfal_ins/firesil1.wav","weapons/fnfal_ins/firesil2.wav","weapons/fnfal_ins/firesil3.wa...
local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB V['epa'] = { ['cycle_time'] = 1, ['first_groups_only'] = true, ['targets_hit'] = "targets", }
function love.conf(t) t.releases = { title = "The Fantastic F-Man", -- The project title (string) package = nil, -- The project command and package name (string) loveVersion = "11.3", -- The project LÖVE version version = nil, -- The project ...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.rules.aliens.actions", function() local Actions = require "game.rules.aliens.actions" local Position = require "game.rules.world.position" it("ACTION: addAli...
---@class gd.Signal ---@field listeners table<gd.Node, fun()> local Signal = {} ---@return gd.Signal function Signal.create() local signal = { listeners = {} } return signal end ---@param signal gd.Signal ---@param node gd.Node ---@param fn fun() function Signal.connect(signal, node, fn) assert(type(fn) =...
object_tangible_veteran_reward_light_bending_barc = object_tangible_veteran_reward_shared_light_bending_barc:new { } ObjectTemplates:addTemplate(object_tangible_veteran_reward_light_bending_barc, "object/tangible/veteran_reward/light_bending_barc.iff")
-- This validation script checks following: -- 1. FreeRTOS requires settings -- 1. configUSE_IDLE_HOOK must be set to 1 in Z-Wave application -- 2. configTIMER_TASK_PRIORITY must be set to 55 in Z-Wave application -- 3.1 configMAX_SYSCALL_INTERRUPT_PRIORITY must be set to 32 in Z-Wave application for Series 1 -- 3....
RoriBlackSunOutpostBunkerScreenPlay = ScreenPlay:new { numberOfActs = 1, --location 4851 -1080 (part 2 of 'Secrets of the Syren' questline) screenplayName = "RoriBlackSunOutpostBunkerScreenPlay", } registerScreenPlay("RoriBlackSunOutpostBunkerScreenPlay", true) function RoriBlackSunOutpostBunkerScreenPlay:start()...
local first_client = nil local sock_server = iojx.sock.create(iojx.current_context()) iojx.sock.tcp.bind_ip(sock_server, '127.0.0.1', 6999) iojx.sock.set_read_callback(sock_server, function (ctx, data, len) if first_client == nil then first_client = ctx iojx.sock.write(ctx, 'Welcome!', #'Welcome!') elseif ctx....
--[[ -- The Torch implemenation of the natural neural network: Natural Neural Networks, NIPS 2015 -- The method are wrapped as one module called 'NormLinear_Validation', in which we add the methods to calculate the Condition nubmer of the FIM matrix and input's correlation matrix --Author: Lei Huang -- mail: huanglei...
--[[ The Animation Class for animX Author: Neer ]] --Unlike iffy we use metatables local Animation={ texture, --the spritesheet for the animation frames, --the frames in the animation duration, --duration for each sprite- a smart table (idea stolen from Walt) cache, --an...
local M = {} local utils = {} utils.round_float = function(num, decimal_points) local decimal = math.pow(10, decimal_points) return math.floor(num * decimal + 0.5) / decimal end -- Convert RGB to Hex color. M.RGB_to_Hex = function(r, g, b) return '#' .. string.format('%02X%02X%02X', r, g, b) end -- Conve...
local class = require 'pl.class' local LoadAverage = class() LoadAverage._name = 'LoadAverage' local exp_1 = 1 / math.exp(1/ 1/60) local exp_5 = 1 / math.exp(1/ 5/60) local exp_15 = 1 / math.exp(1/15/60) local ticks = {[0]=' ','▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'} function LoadAverage:sample(x) self[ 1] = se...
-------------------------------------------------------------------------------- -- Handler.......... : onUserWantsToResetApplication -- Author........... : Bérenger Dalle-Cort -- Description...... : Open a popup to confirm before to reset the application -------------------------------------------------------------...
local new = require "LuaObservable.src.new" --[[ Throw Returns an Observable that throws an error ]] return function (throwable) return new(_, function (next, err, complete) err(throwable) end) end
-- A geothermal EU generator -- Using hot lava and water this device can create energy from steam -- The machine is only producing LV EUs and can thus not drive more advanced equipment -- The output is a little more than the coal burning generator (max 300EUs) minetest.register_alias("geothermal", "technic:geothermal"...
-- Part of BioLua by SweetPalma, 2017. All rights reserved. -- Common parser interface: local Parser = (require 'biolua.object'):extend {__name = 'Parser'} local Nucleic = require 'biolua.sequence.nucleic' local Amino = require 'biolua.sequence.amino' -- Loads file pointer as reader: function Parser:read(name, mod...
-- Exercise 4.3: Write a function to insert a string into a given -- position of another one: -- -- > insert ("hello world", 1, "start: ") --> start: hello world -- > insert ("hello world", 7, "small ") --> hello small world function insert (to, i, from) return to:sub (1, i - 1) .. from .. to:sub (i, -...
----------------------------------- -- Area: Behemoth's Dominion -- HNM: King Behemoth ----------------------------------- local ID = require("scripts/zones/Behemoths_Dominion/IDs") mixins = {require("scripts/mixins/rage")} require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/...
modifier_mars_soldier_displacement = class({}) function modifier_mars_soldier_displacement:OnCreated(params) if IsServer() then end end function modifier_mars_soldier_displacement:DeclareFunctions() return { MODIFIER_PROPERTY_OVERRIDE_ANIMATION, MODIFIER_PROPERTY_OVERRIDE_ANIMATION_RATE, } end function modif...
local appClient,props,methods,mainModule = {},{},{},script.Parent.Parent; local promise, request, response = require(mainModule.utility.Promise), require(mainModule.request),require(mainModule.response) props.ports = {} props.actions = {} props.didSync = false methods.action = function() end methods.request = setme...
local original_oil_refinery = data.raw["assembling-machine"]["oil-refinery"] local beaconed_data = { machine_energy_usage = original_oil_refinery.energy_usage, machine_emissions = original_oil_refinery.energy_source.emissions_per_minute, machine_crafting_speed = original_oi...
-- -- Created by IntelliJ IDEA. -- User: ianburgwin -- Date: 12/30/15 -- Time: 8:10 PM -- To change this template use File | Settings | File Templates. -- -- due to weird technical reasons, this has to be duplicated -- local functions, this increases performance --local fload = Font.load --local funload ...
-- Sort bioprocessing buildings into more rows local bioprocessing_buildings = { -- Nauvis ["bio-generator-temperate-1"] = "bio-processing-buildings-nauvis-b", ["bio-generator-temperate-2"] = "bio-processing-buildings-nauvis-b", ["bio-generator-temperate-3"] = "bio-processing-buildings-nauvis-b", ["...
local http = require "lib/http-code" local DevSrv = {} DevSrv.__index = DevSrv DevSrv.__deps = { device = "homie-host" } function DevSrv:BeforeReload() end function DevSrv:AfterReload() self:RegisterDeviceCommand("clear_error", function(...) return self:DeviceCommandClearError(...) end) self...
local playsession = { {"mewmew", {2000402}}, {"Drezik99", {179725}}, {"Akitae", {65389}}, {"ANV1L", {7683469}}, {"anonieme_beer", {367781}}, {"vvictor", {590687}}, {"opasuke", {6222}}, {"cinzhal", {101026}}, {"Itai795", {367054}}, {"Biobuur", {1294}}, {"Catbert", {76417}}, {"Nicky_OCD", {1202}}, {"peterput...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. orange_rug_thread_3 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/loot/collectible/collectible_parts/orange_rug_thread_03.iff", craftingValues = { }, customizationStringNames = {}, custom...
-- level5.lua Lvl5 = Gamestate.new() -- LV. 05 function Lvl5:init() atlMap = atl.Loader.load('level5.tmx') player = entity.new(150,1550,55,79,atlMap,select(2,next(atlMap.layers))) playerCollide(); end function Lvl5:update(dt) if not ingameMenuOpen then playerCollide_generalUpdate(dt) boss_update(dt) bullet...
createObject(18319,913.93737792969,-3403.435546875,-89.235473632813) createObject(18310,904.18017578125,-3213.5805664063,-54.775966644287) createObject(18309,726.67578125,-3171.1618652344,-32.581024169922) createObject(18317,721.93933105469,-3400.3754882813,-69.667091369629) createObject(18310,738.30639648438,-3292...
local vector = require("lib.hump.vector-light") local json = require("lib.json") local util = {} function util.camAdjustPos(pos, cam) local px, py = unpack(pos) local cx, cy = unpack(cam) return px - cx, py - cy end function util.colorInvert(r, g, b) return 255 - r, 255 - g, 255 - b end function uti...
local Knit = require(game:GetService("ReplicatedStorage").Test.Knit) local MyService = Knit.CreateService { Name = "MyService"; Client = { TestEvent = Knit.CreateSignal(); TestProperty = Knit.CreateProperty("Hello"); }; Middleware = { Inbound = { function(player, args) print("MyService Inbound", playe...
object_mobile_smuggler_fence_tylar = object_mobile_shared_smuggler_fence_tylar:new { } ObjectTemplates:addTemplate(object_mobile_smuggler_fence_tylar, "object/mobile/smuggler_fence_tylar.iff")
require("game_database") function load(database) database:add_part_category("categories/command.toml") database:add_part_category("categories/engines.toml") database:add_part_category("categories/all.toml") end