content
stringlengths
5
1.05M
-- Stop traders bringing blood, ichor, or goo --author Urist Da Vinci; edited by expwnent, scamtank --[====[ fix/blood-del ============= Makes it so that future caravans won't bring barrels full of blood, ichor, or goo. ]====] local my_entity=df.historical_entity.find(df.global.ui.civ_id) local sText=" " local k=0 lo...
--[[ Nanos Utils Library --]] NanosUtils = {} function NanosUtils.IsA(object, class) return getmetatable(object) == class end function NanosUtils.Dump(object, indentation) indentation = indentation or 0 if (type(object) == 'table') then local keys = {} for key, v in pairs(object) do table.insert(keys, ke...
-- Cancel(0, jid) -- -------------- -- Cancel a job from taking place. It will be deleted from the system, and any -- attempts to renew a heartbeat will fail, and any attempts to complete it -- will fail. If you try to get the data on the object, you will get nothing. -- -- Args: -- 1) jid if #KEYS > 0 then error('...
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Bob's Mods -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if mods["classic-beacon"] then return end if not (reskins.bobs and reskins.bobs.triggers.modules.entities) then return end local emp...
object_tangible_food_generic_dessert_cavaellin_creams = object_tangible_food_generic_shared_dessert_cavaellin_creams:new { } ObjectTemplates:addTemplate(object_tangible_food_generic_dessert_cavaellin_creams, "object/tangible/food/generic/dessert_cavaellin_creams.iff")
local c = require "aoi.c" local aoi = {} function aoi:new(width,high,tilelen,level_count) local ctx = setmetatable({}, { __index = self, __gc = function (ctx) c.aoi_delete(ctx.core) end } ) ctx.core = c.aoi_new(width,high,tilelen) ...
function dragon_blood(keys) local caster = keys.caster local target_entities = keys.target_entities if #target_entities > 0 then local ability = keys.ability local count = #target_entities * ability:GetLevelSpecialValueFor("count_per_hero", ...
local M = {} function M.collect() local excmds = vim.api.nvim_get_commands({builtin = false}) excmds = vim.tbl_extend("force", excmds, vim.api.nvim_buf_get_commands(0, {})) local items = {} for _, excmd in pairs(excmds) do if type(excmd) ~= "table" then goto continue end table.insert(items, ...
local function asdf(offset) local another_thing = {} for i = 1, 10 do table.insert(another_thing, i + offset) end return another_thing end local function y(offset) print("yo") local another_thing = asdf(offset) print("yo", another_thing) end y(10)
------ -- InteractSound by Atri for SunnyIsland -- Verstion: v0.0.1 --With help of Morow Big thanks to him ! ------ resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" client_script 'client.lua' server_script 'server.lua'
local _M = {} _M.currency_codes = { "ALL","DZD","USD","EUR","AOA","XCD","NOK", "XCD","ARS","AMD","AWG","AUD","EUR","AZN","BSD","BHD","BDT","BBD","BYR", "EUR","BZD","XOF","BMD","INR", "BOB","BAM","BWP","NOK","BRL", "USD","BND","BGN","XOF","BIF","KHR","XAF", "CAD","CVE","KYD","XAF","CLP", "CNY","AUD","COP","KMF","XAF","...
PLUGIN.name = "Camera" PLUGIN.author = "Pilot" PLUGIN.desc = "Take pictures like in the olden days." local entityMeta = FindMetaTable("Entity") function entityMeta:isPlayer() local class = self:GetClass() return (class == "nut_camera") end if (CLIENT) then netstream.Hook("camOpen", function(entity, index) loca...
-- 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 ]] -------------------------------------------------------------------------------- alchemist_chemical...
--[[ Testing with dummy with only one motor but both elevation and yaw constraints ]] local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local TurretController = require(ReplicatedStorage:FindFirstChild("TurretController",true)) local model = workspace...
task("unzip-gfx-sdk") on_run(function () import("find_sdk") if(os.host() == "windows") then find_sdk.install_lib("amdags") find_sdk.install_lib("nvapi") find_sdk.install_lib("WinPixEventRuntime") find_sdk.install_lib("SDL2") end find_sd...
local M = {} function M.err(msg, flag) if flag then vim.api.nvim_echo({{msg, 'Error'}}, true, {}) end end function M.compare_position(a, b) if a[1] == b[1] then return a[2] <= b[2] else return a[1] <= b[1] end end function M.within(a, b, c) return M.compare_position(a, b) and M.compare_positi...
--- --- Compare actual value with expected value using operator type --- --- Created by jacobs. --- DateTime: 2018/4/19 下午6:20 --- -- = -- != -- match 正则匹配 -- not_match 正则匹配后再取非 -- > -- >= -- < -- <= local _M = { MATCH = "match", NOT_MATCH = "not_match", EQUALS = "e...
function Schema:CanDrive(client, entity) return false end ix.StaminaBreathe = false function Schema:PlayerTick(ply) if not ply.NextStaminaBreathe or ply.NextStaminaBreathe <= CurTime() then local stamina = ply:GetNetVar("stm", 100) if stamina <= 10 then ply:EmitSound("player/heartbeat1.wav", 60) ply:EmitS...
message = " " .. SystemName() .. "\n" .. "Copyright (C) "..os.date("%Y") .. "\n\n\n" .. "Pixel Vision 8 was created by Jesse Freeman and Christina-Antoinette Neofotistou in collaboration with Pedro Medeiros, Christer Kaitila, Shawn Rakowski and Drake Williams." .. "\n\n" .. "With additional coding contributions by Matt...
local module = {} local lighting = game:GetService('Lighting') local heartbeat = game:GetService('RunService').Heartbeat local common = game:GetService('ReplicatedStorage').Common local playerData = require(common.PlayerData) local start_time = 10 local day_length = 120 local connections = {} local start local fun...
handlingLimits = { ["identifier"] = { id = 1, input = "string", limits = { "", "" }, }, ["mass"] = { id = 2, input = "float", limits = { "1.0", "100000.0" } }, ["turnMass"] = { id = 3, input = "float", limits = { ...
-- -*- Mode: Lua; -*- -- -- environment.lua Rosie environments -- -- © Copyright Jamie A. Jennings 2019. -- © Copyright IBM Corporation 2017, 2018. -- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html) -- AUTHOR: Jamie ...
function love.load() x = 0 y = 450 name = 'Bela' hp = 8 mp = 8 spd = 5 horse = love.graphics.newImage("img/horse_r.jpg") end function love.update(dt) -- controls for bela if love.keyboard.isDown("d") then horse = love.graphics.newImage("img/horse_r.jpg") x = x + 2 end if love.keyboard....
require "stategraphs/SGtrap" local assets= { Asset("ANIM", "anim/trap.zip"), Asset("SOUND", "sound/common.fsb"), } local sounds = { close = "dontstarve/common/trap_close", rustle = "dontstarve/common/trap_rustle", } local function onfinished(inst) inst:Remove() end local function onharvested(inst)...
local Player = FindMetaTable("Player") fw.data.addPersistField("money") -- Player:setMoney(amount:number) -- @param amount:number - the amount of money to set -- @ret amount:number same as the amount set function Player:setMoney(amount) if type(amount) != "number" then error("player money must be a number") end if ...
--[[ LICENSE HEADER MIT License Copyright © 2017 Jordan Irwin 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 limitation the rights to us...
Path = {} path = Path BeardLib.Utils.Path = Path Path._separator_char = "/" function Path:GetDirectory(path) if not path then return nil end local split = string.split(self:Normalize(path), self._separator_char) table.remove(split) return table.concat(split, self._separator_char) end function Path...
using "services/ServiceService"; -- Spin up services -- Spin up libs -- Import libs
local pkg = require 'aula.core.package' local M = {} function M.init() pkg.add('tpope/vim-abolish') end return M
-------------------------------- -- @module EventTouch -- @extend Event -------------------------------- -- @function [parent=#EventTouch] getEventCode -- @param self -- @return EventTouch::EventCode#EventTouch::EventCode ret (return value: cc.EventTouch::EventCode) -------------------------------- -- @func...
do class "ChildParentInterface" : extends "ImplementsMany" {} end
-------------------------------------------------------------------------- -- GTFO_Fail_CAT.lua -------------------------------------------------------------------------- --[[ GTFO Fail List - Cataclysm (New areas) Author: Zensunim of Malygos ]]-- GTFO.SpellID["80564"] = { --desc = "Fungal Spores (Throne of the Tide...
function pt_init(self) self.theta = 0 self.omega = 0 self.t = create_trail( self.def, pt_get_head_pos(self) ) end function pt_get_head_pos(self) radius = 32 + 8 * sin(self.omega) return vec2(64, 74) + radius * vec2( cos(self.theta), sin(self.theta) ) end function pt_update(self...
local student_offsets = { alice = 0, bob = 1, charlie = 2, david = 3, eve = 4, fred = 5, ginny = 6, harriet = 7, ileana = 8, joseph = 9, kincaid = 10, larry = 11 } local plant_abbreviations = { g = 'grass', c = 'clover', r = 'radishes', v = 'violets' } local function plant_string_for_student(g...
local PackageName, Package = ...; local CATEGORY_OBJECT_TYPE = (PackageName .. "::Category"); --[[=========================================================================== | category_Find | Searches this category for a rule which matches the specified id, if | such a rule is found then this returns i...
-- Setup of local values and security features, caches global functions in case of a setfenv local meta, none = {}, {__metatable = true, __newindex = function() return false end} local _G, assert, setmetatable, getmetatable = _G, assert, setmetatable, getmetatable local type, rawget, rawset, ipairs, pairs = type, rawge...
-- This has been disabled. require('astronauta.keymap') local nmap = vim.keymap.nmap nmap { '<leader>pe', '<Plug>(PickerEdit)', unique = true } nmap { '<leader>ps', '<Plug>(PickerSplit)', unique = true } nmap { '<leader>pt', '<Plug>(PickerTabedit)', unique = true } nmap { '<leader>pv', '<Plug>(PickerVsplit)', unique...
--[[ 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...
require 'base' class = require 'class' starmap = class{ function(self, camera) -- "Cheap" way of making it more random for star3 to come up self.textures = { image("Stars1"), image("Stars2"), image("Stars3"), image("Stars4"), image("Stars5"), image("Stars1"), image("Stars2"), image("Stars4...
vim.cmd([[ let g:coc_snippet_next = '<Tab>' let g:coc_snippet_prev = '<S-Tab>' ]]) vim.cmd([[ let g:coc_global_extensions = [ \'coc-yank', \'coc-pairs', \'coc-json', \'coc-css', \'coc-html', \'coc-tsserver', \'coc-yaml', ...
storage = {}; function add(identifier, package) Citizen.CreateThread(function() storage[identifier] = package; end); end; function get(identifier, callback) Citizen.CreateThread(function() callback(storage[identifier]); end); end; exports("add", add); exports("get", get...
local Chara = require("api.Chara") local Pos = require("api.Pos") local Event = require("api.Event") local Mef = require("api.Mef") local Rand = require("api.Rand") local Map = require("api.Map") local Gui = require("api.Gui") local Enum = require("api.Enum") local Log = require("api.Log") local SkillCheck = require("m...
local class = require 'EasyLD.lib.middleclass' local Shape = require 'EasyLD.Shape' local Vector = require 'EasyLD.Vector' local Segment = class('Segment', Shape) function Segment:initialize(p1, p2, color) self.p1 = p1 self.p2 = p2 self.c = color or EasyLD.color:new(255,255,255) self.x = p1.x self.y = p1.y sel...
MAP_ROOMS = {} MAP_ROOMS[1] = {} MAP_ROOMS[2] = {} MAP_ROOMS[3] = {} MAP_ROOMS[4] = {} MAP_ROOMS[5] = {} MAP_ROOMS[6] = {} MAP_ROOMS[7] = {} MAP_ROOMS[8] = {} MAP_ROOMS[9] = {} MAP_ROOMS[10] = {} PLAYER_SPAWNS = {} table.insert(PLAYER_SPAWNS, { location = Vector(-169.000, -73.000, 0.000), rotation = Rotat...
local View = {}; function View:Start(data) self.view = CS.SGK.UIReference.Setup(self.gameObject); self.uuid = data and data.uuid or 0; self:InitData(); self:InitView(); end function View:InitData() self.battleData = module.TeamActivityModule.Get(2); self.npcData = self.battleData.npcs[self.uuid]; self.updateTi...
--[[ MoarPeripherals ]]-- --[[ StarCaster ]]-- --[[ by Dog ]]-- --[[ aka ]]-- --[[ HydrantHunter ]]-- --[[ and ]]-- --[[ TheOriginalBIT ]]-- --[[ pastebin: ]]-- --[[ mwdc6bK9 ]]-- local scVer = "1.1.00" --# Custom read, formatTime, newBut...
local otmm = true local fullmapView = false local oldZoom = nil local oldPos = nil local function updateCameraPosition() local player = g_game.getLocalPlayer() if not player then return end local pos = player:getPosition() if not pos then return end local minimapWidget = controller.widgets.minimapWidget ...
module("luci.controller.rebootschedule", package.seeall) function index() if not nixio.fs.access("/etc/config/rebootschedule") then return end entry({"admin", "control", "rebootschedule"}, cbi("rebootschedule"), "定时设置", 20).dependent = true end
--[[ ########################################################## S V U I By: Failcoder ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --LUA local unpack = unpack; local select = select; local pairs ...
local api = vim.api local dprint = require("gitsigns.debug").dprint local M = {} local GitSignHl = {} local hls = { GitSignsAdd = { 'GitGutterAdd', 'SignifySignAdd', 'DiffAddedGutter', 'diffAdded', 'DiffAdd' }, GitSignsChange = { 'GitGutterChange', 'SignifySignChange', 'DiffModifiedGutter', '...
-- ----------------------------------------------------------------------------------- -- Import -- ----------------------------------------------------------------------------------- local composer = require("composer") local relayout = require("relayout") local utilities = require("utilities") local os = require("os"...
require "logging.console" require "ssnactions" local tmp_loadstring = loadstring -- save loadstring (corrupted in compat53 module) require "ssnmqtt" loadstring = tmp_loadstring -- restore require "ssnconf" require "ssnUtils" -- require "table" local ltn12 = require "ltn12" local yaml = require('yaml') local http=r...
-------------------------------- ------- Created by Hamza ------- -------------------------------- ESX = nil local timing, isPlayerWhitelisted = math.ceil(1 * 60000), false local PlayerData = nil local CurrentMission = nil local StopMission = false local Goons = {} local JobVan local DeliveryBlip local blip local D...
local mt = require("persistent_mt") local Event = require("Event") --- CraftOrder.changed event: -- This event is invoked every time the CraftOrder count changes. -- Parameters -- sender: The CraftOrder that triggered the callback. -- type :: string: Can be any of [count] -- Additional type specific parameters: -- -- ...
local Clockwork = Clockwork; local COMMAND = Clockwork.command:New("PlyRocket"); COMMAND.tip = "Slays a player."; COMMAND.text = "<string Name>"; COMMAND.access = "s"; COMMAND.arguments = 1; -- Called when the command has been run. function COMMAND:OnRun(player, arguments) local target = Clockwork.player:FindByID(a...
Locales ['en'] = { ['dive_suit_on'] = 'Wkładasz maske do nurkowania i odpalasz zbiornik z tlenem. Poziom tlenu: ~g~100~w~', ['oxygen_notify'] = 'pozostało ~b~tlenu~y~ w butli: %s%s~w~', ['redgull_consumed'] = 'Poczułeś przypływ energi, możesz teraz biegać przez ~b~5~w~ minut ~b~bez przerwy~w~!', ['redgull_en...
--[[ Project: SA-MP-API Author: Tim4ukys My url: vk.com/tim4ukys ]] local sys = require 'SA-MP API.kernel' sys.ffi.cdef[[ struct stSAMPVehicle { stSAMPEntity vehicle_info; unsigned int bUnk0; struct vehicle_info *pGTA_Vehicle; unsigned char byteUnk1[8]; int iIsMotorOn; int iIsLightsOn; ...
-- -- errno.lua -- this file to be replaced by code generator (codegen.lua) --
--- todo? RTRank:initEvents()
if not modules then modules = { } end modules ['font-osd'] = { -- script devanagari version = 1.001, comment = "companion to font-ini.mkiv", author = "Kai Eigner, TAT Zetwerk / Hans Hagen, PRAGMA ADE", copyright = "TAT Zetwerk / PRAGMA ADE / ConTeXt Development Team", license = "see context...
--- Configuration storage client. -- -- @module conf local etcd_driver = require('conf.client.etcd.driver') -- Forward declaration. local mt local supported_drivers = { ['etcd'] = etcd_driver, } -- {{{ Module functions --- Module functions. -- -- @section Functions --- Create a new configuration storage clien...
AddCSLuaFile() AddCSLuaFile("sh_sounds.lua") include("sh_sounds.lua") SWEP.magType = "arMag" SWEP.PrintName = "SKS-D" if CLIENT then SWEP.DrawCrosshair = false SWEP.CSMuzzleFlashes = true SWEP.IconLetter = "w" killicon.Add( "khr_sks", "icons/killicons/khr_sks", Color(255, 80, 0, 150)) SWEP.SelectIcon = surfa...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE) combat:setArea(createCombatArea(AREA_CIRCLE3X3)) function onGetFormulaValues(player, level, maglevel) local min = ...
--!strict --[[ Runs system singletons and holds state singletons for optimizing Pract ]] local RunService = game:GetService('RunService') local PractGlobalSystems = {} PractGlobalSystems.HeartbeatFrameCount = 0 PractGlobalSystems.ON_CHILD_TIMEOUT_INTERVAL = 10 PractGlobalSystems.HeartbeatSignal = RunService.Heartbea...
-- modulate for samples -- local MusicUtil=require "musicutil" local Formatters=require 'formatters' local MxSamples={} local MaxVoices=40 local delay_rates_names={"whole-note","half-note","quarter note","eighth note","sixteenth note","thirtysecond"} local delay_rates={4,2,1,1/2,1/4,1/8,1/16} local delay_last_clock=...
local function toiter(co) return function() local code,res = coroutine.resume(co) return res end end function range(min, max) return toiter(coroutine.create(function () for i = min, max do coroutine.yield(i) end end)) end function iter(it) if type(it) == "function" then return it els...
instrument { name = "DeMarker" } period = input (13, "front.period", input.integer, 1) input_group { "front.ind.dpo.generalline", color = input { default = "#56CEFF", type = input.color }, width = input { default = 1, type = input.line_width} } input_group { "front.newind.supportlines", overboug...
-- project set_project("ltui") -- version set_version("1.1", {build = "%Y%m%d%H%M"}) -- set xmake min version set_xmakever("2.2.5") -- set warning all as error set_warnings("all", "error") -- set language: c99, c++11 set_languages("c99", "cxx11") -- disable some compiler errors add_cxflags("-Wno-error=deprecated-d...
-- Delay between each attempt to open/close the doors corresponding to their state local _scanDelay = 500 Citizen.CreateThread(function() while true do local office = 0 -- Search for the current office to open/close the safes doors if (Global.FinanceOffices.isInsideOffice1)...
------------------------------------------------------------------------------------------- -- -- raylib [audio] example - Music playing (streaming) -- -- NOTE: This example requires OpenAL Soft library installed -- -- This example has been created using raylib 1.6 (www.raylib.com) -- raylib is licensed under an un...
local btest = bit32 and bit32.btest or false -- luacheck: globals bit32 local sbyte = string.byte local schar = string.char if not btest then btest = function(a, b) if not a or not b then return false end local result = 0 local bitval = 1 while a > 0 and b > 0 do if a % 2 == 1 and b % 2 == 1 th...
object_tangible_scout_camokit_camokit_mustafar = object_tangible_scout_camokit_shared_camokit_mustafar:new { } ObjectTemplates:addTemplate(object_tangible_scout_camokit_camokit_mustafar, "object/tangible/scout/camokit/camokit_mustafar.iff")
local techHandler = LazarusMod:GetModule('techhandler') techHandler:ChangeTechData(kTechId.MedPack, { [kCommanderSelectRadius] = techHandler.Remove })
local require = require require("Framework.Base.EngineConst") require("Framework.Base.List") require("Framework.Base.LuaTransform") require("Framework.Base.BaseClass") require("Framework.Base.LuaMemSystem")
--------------------------------------------------------------------------------------------------- -- --filename: game.ui.base.AtlasFactory --date:2020/1/16 11:07:38 --author: --desc: -- --------------------------------------------------------------------------------------------------- local strClassName = 'AtlasFact...
local MnistLoader, parent = torch.class('MnistLoader') DATA_PATH = 'mnist.t7/' function MnistLoader:__init(split, batch_size, num_labels) local num_labels = num_labels or -1 -- assert(split == 'train' or split == 'test', 'split must be train or test') assert(num_labels <= 0 or num_labels % 10 == 0, 'num labels m...
task.wait(0.5) local tweenService = game:GetService("TweenService")--Get Tween Service local player = game:GetService("Players").LocalPlayer --Get The Player local character = player.Character or player.CharacterAdded:Wait() --Wait For The Player Humanoid local Humanoid = character:WaitForChild("Humanoid") --Get The P...
--[[ © 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 --]] --[[ Contributor(s): ROSS <pootiswwe@gmail.com> --]] CW_RUSSIAN = Clockwork.l...
local language_GetPhrase = CLIENT and language.GetPhrase local language_Add = CLIENT and language.Add local string_StartWith = string.StartWith local string_Split = string.Split local string_sub = string.sub local pairs = pairs PLib["phrases"] = { ["ru"] = { ["plib.name"] = "Название", ["plib.title"] = "PLib - Бо...
--[[ Carbon for Lua #class Exception #inherits OOP.Object #description { Signals detailed, strongly-typed error conditions. } ]] local Carbon = (...) local OOP = Carbon.OOP --[[ #property public @string Exception.Message { An error message explaining the exception. } ]] local Exception = OOP:Class() :Met...
Me = game.Workspace.SergeantSmokey ra = Me:findFirstChild("Right Arm") local belt = Instance.new("Part") local belt1 = Instance.new("Part") belt = Instance.new("Part") belt.formFactor = 0 belt.Name = "brick24" belt.Size = Vector3.new(15,1,1) belt.BrickColor = BrickColor.new(192) belt.CanCollide = true belt.Anc...
-- =========== -- PATH BUBBLE -- =========== -- Created by datwaft <github.com/datwaft> local settings = { symbol = vim.g.bubbly_symbols, color = vim.g.bubbly_colors, style = vim.g.bubbly_styles, filter = vim.g.bubbly_filter, } ---@type fun(settings: table, module_name: string): table local process_settings =...
--created using senpaizuri's puzzle maker Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI) Debug.SetPlayerInfo(0,6000,0,0) Debug.SetPlayerInfo(1,1,0,0) Debug.ShowHint("Use Ojama Country's Effect and use Obelisk to win in 1 turn!") --Extra Deck Debug.AddCard(90140980,0,0,LOCATION_EXTRA,0,8) Debug.A...
function testa(arg1) io.write(arg1) end testa("Hi there")
local net = net local function decodeHelper() local t = net.ReadUInt(2) if t == 0 then return end if t == 1 then return Color( net.ReadUInt(8), net.ReadUInt(8), net.ReadUInt(8), 255 ), decodeHelper() end if t == 2 then return net.ReadString(), decodeHelper() end end net.Receive("fw.not...
local ns = Namespace local debugger = require("debugger") --- ns.Call function to wrap pcall so we don't have to do if ... else checks everywhere ---@param errorString string to log if something goes wrong ---@param funct function to call ---@param args any parameters for the function call ---@return any result of the...
Gamestate = require "libs.hump.gamestate" States = { title = require "states.title", lobby = require "states.lobby", serverList = require "states.server-list", } function love.load() Gamestate.registerEvents() Gamestate.switch(States.title) end
require("LuaPanda").start("127.0.0.1", 8818); local result = {} local function getenv(name) return assert(os.getenv(name), [[os.getenv() failed: ]] .. name) end local sep = package.config:sub(1, 1) local current_path = [[.]] .. sep print("1-> ", sep, current_path) local function include(filename) local las...
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras of Aerie ...
--[[-- @package textAdventure/example @filename tavern.lua @version 1.0 @author Díaz Urbaneja Víctor Eduardo Diex @date 23.06.2020 16:41:45 -04 --]] tavern = room:new('tavern', { description = 'Estás en el interior de la <b>taberna</b> <i>La mansión de Caloire</i>.\nLa <b>madera</b> predomina en el luga...
CloneClass( LocalizationManager ) LocalizationManager._custom_localizations = LocalizationManager._custom_localizations or {} Hooks:RegisterHook("LocalizationManagerPostInit") function LocalizationManager.init( self ) self.orig.init( self ) Hooks:Call( "LocalizationManagerPostInit", self ) end function Localizati...
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 applicable ...
package.path = package.path .. ";spec/?.lua" local hls = require "resty-bakery-hls" local helper = require "test-helper" local ffmpeg_master = helper.content_from("spec/manifests/ffmpeg_master.m3u8") describe("Resty Bakery", function() describe("HLS", function() it("checks if it has a bitrate", function() ...
------------------------------------------------------------------------------------------------ -- Started: 2013-01-24 -- Author: Shmuel Zeigerman -- Published: 2013-01-24 (https://forum.farmanager.com/viewtopic.php?f=60&t=7654) -- Language: Lua 5.1 -- Mini...
return { version = "1.1", luaversion = "5.1", tiledversion = "0.18.0", orientation = "orthogonal", renderorder = "left-down", width = 460, height = 75, tilewidth = 16, tileheight = 16, nextobjectid = 378, properties = {}, tilesets = { { name = "magiclanddizzy_tiles", firstgid = 1...
--[[ Author: Agustín Alejandro dos Santos Description: Custom Aimbot for Crianosfera Hack v5 External edition ]] -- Main default settings local bCustomAimbot = false local bRenderOrigin = false local bPrioritizeIfSomeOneIsAtShortDistance = true local iAimingMethod = 0 -- Field of View: 0 / Distance: 1 local iA...
CarTexture = {} local renderTarget local vehicle local bodyColor = {0, 0, 0} local editorStickers = {} local DEFAULT_STICKER_SIZE = 300 local selectedSticker = false local previousSticker = false local stickerMirroringEnabled = false local MAX_STICKER_COUNT = 2000 function CarTexture.start() vehicle = GarageCar.getVe...
local utils = require('test.utils') local Executor = require('test.executors.base') local Job = require('plenary.job') PlenaryJob = Executor:new() function PlenaryJob:run(command) local cmd, args = utils.split_command(command) local result = { output = {}, exit_code = nil } local j = Job:new({ command = cmd...
-- Edit package.path to make 'require' load from 'config' folder package.path = package.path .. string.format(";%s\\config\\?.lua", clink.get_env("CMDER_ROOT")) ansi = require("ansi") git = {} --- -- Find out current branch -- @return {false|git branch name} --- function git.get_branch() for line in io.popen("g...
---@type Feature local startify = { plugins = {} } local if_nil = vim.F.if_nil local section = {} section.header = { type = 'text', val = { [[ __ ]], [[ ___ ___ ___ __ __ /\_\ ___ ___ ]], [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ...