content
stringlengths
5
1.05M
mq = require('mq') require 'ImGui' local FailSafe = function() --mq.delay(1) end local openGUI = true local shouldDrawGUI = true local dotGUI = function() openGUI, shouldDrawGUI = ImGui.Begin('DoTs', openGUI) local checkDebuff = function (buffName) if (mq.TLO.Target.Buff(buffName).ID()) then loc...
--- LÖVE file release. -- @module scripts.love -- @usage love(project) local Script = require "love-release.script" local s = {} function s.script(project) local script = Script:new(project) script:createLoveFile() end setmetatable(s, { __call = function(_, project) return s.script(project) end }) return s
--- midi devices -- @module midi -- @alias Midi require 'norns' local Midi = {} Midi.devices = {} Midi.list = {} Midi.vport = {} for i=1,4 do Midi.vport[i] = { name = "none", callbacks = {}, index = 0, send = function() end, attached = false } end Midi.__index = Midi --- constructor -- @tpara...
local vector_meta = global_metatable("vector") local quat_meta = global_metatable("quaternion") function IsVector(v) return type(v) == "table" and type(v[1]) == "number" and type(v[2]) == "number" and type(v[3]) == "number" and not v[4] end function MakeVector(v) return setmetatable(v, vector_meta) end func...
TOOL.Category = "Stools" TOOL.Name = "#Set NPC RagMorph" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Tab = "RagMorph" TOOL.ClientConVar = { Pelvis = "1", Chest = "1", RightUpperArm = "1", LeftUpperArm = "1", LeftForearm = "1", LeftHand = "1", RightForearm = "1", RightHand = "1", RightThigh =...
-- Engine requires local vec2 = require 'Math.vec2' local Window = require 'GUI.Window' local TextColor = require 'GUI.Text.Color' local MenuOrientation = require 'GUI.Menu.Orientation' local MenuSettings = require 'GUI.Menu.Settings' local Rect = require 'Shape.Rectangle' local ...
---@type Ellyb local Ellyb = Ellyb(...) if Ellyb.Texture then return end --{{{ Class declaration --- @class EllybTexture : Object local Texture = Ellyb.Class("Texture") --- This class in an abstraction to help handle World of Warcraft textures, especially when dealing with both texture IDs and file path. ---@param ...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Lua functions local _G = _G local pairs = pairs --WoW API / Variables local hooksecurefunc = hooksecurefunc local function LoadSkin() if E.private.skins.blizzard.enable ~= true or ...
local chilled = false local buffed = false local staffEquipped = false local manaTotal = 0 --setHudValue("manaShow", true) --setHudValue("mana", 100) --exports["caue-ui"]:sendAppEvent("hud", { -- true | false = currentValues["manaShow"], -- lmao -- 0 | 100 = currentValues["mana"], --}) -- TriggerServerEvent("Interac...
--[[ ____ _ _ _ | __ ) __ _ ___ | |__ __ _ ___ (_) |_ | _ \ / _` |/ _ \| '_ \ / _` |/ _ \| | __| | |_) | (_| | (_) | |_) | (_| | (_) | | | |____/ \__,_|\___/|_.__/ \__,_|\___/|_|\__| --]] --[[ ╔═══════════╗ ║ Bootstrap ║ ╚═══════════╝ --]] require "bootstrap" --[[ ╔═══════...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) return onUseScythe(player, item, fromPosition, target, toPosition, isHotkey) end
-- ######################################################## -- ECHONET Lite Wireshark dissector -- ######################################################## -- -- Author : Yuki MIZUNO -- Version: 1.2.1 -- License: MIT -- -- ######################################################## -- -- Copyright (c) 201...
include("shared.lua") function ENT:Draw() self:DrawModel() if not self:GetParent():IsValid() then local pos = self:GetPos() local ang = self:GetAngles() surface.SetFont("Trebuchet24") local txt = self:GetClass() local w, h = surface.GetTextSize(txt) cam.Start3D2D(pos +ang:U...
require 'task' TEST = {} function TEST.ts() local tl = task.list() io.stdout:write( '\nID SCRIPT COUNT REG/ID\n' ) io.stdout:write( '---- ---------------- --------- ----------------\n' ) if tl then for i, t in pairs( tl ) do io.stdout:write( string.format(...
#@ -- Path of Building -- -- Module: Update Apply -- Applies updates. -- local opFileName = ... print("Applying update...") local opFile = io.open(opFileName, "r") if not opFile then print("No operations list present.\n") return end local lines = { } for line in opFile:lines() do table.insert(lines, line) end opFil...
-- pattern for finding figure references -- Example: {#f:fig1ref:i} local patt = "{%#%l:.+:%a}" local id_patt = ":(.+):" local part_of_text_patt = ":(%a)}" -- Variables local img_filetype = ".png" local img_caption_filetype = ".md" local fig_dir = "" local caption_dir = "" local function file_exists(file) -- Check ...
aaa abc academia academic access ada admin administrator adrian adrianna aerobics airplane albany albatross albert alex alexander alf algebra alias aliases alice alicia alisa alison allison alpha alphabet ama amadeus amanda amber amorphous amy analog anchor andrea andromache andy angela angerine angie animals anita an...
print "Starting up AP..." local ap_config = {} local ip_config = {} ap_config.ssid = "ESP-"..node.chipid() ap_config.pwd = "ESP-"..node.chipid() ip_config.ip = "192.168.1.1" ip_config.netmask = "255.255.255.0" ip_config.gateway = "192.168.1.1" wifi.setmode(wifi.SOFTAP) print('SSID:', ap_config.ssid) wifi.ap.config(...
wAchievement, imgAchievement, lTitle, lDesc = nil function displayAchievement(id) local name, description, points = unpack(getAchievementInfo(id)) local width, height = 600, 100 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight - (scrHeight/6 - (height/6...
local TestLayer = require("graphic.test.TestLayer") local TestMaskLayer = class("TestMaskLayer", TestLayer) function TestMaskLayer:ctor() TestLayer.ctor(self) end function TestMaskLayer:init() TestLayer.init(self) self:customLayout() end function TestMaskLayer:guideMask() local rect = self._imageGo:GetComp...
--[[ this system manages the health for entities. if an entity runs out of health, it's marked for removal. ]] local health = {} function health:collide(e, other) --[[ make sure both entities have health. otherwise, this system shouldn't operate on them. ]] if not self.pool.groups.health.hasEntity[e] then re...
local awful = require("awful") local OrderedClientStartup = {} -- Structure per app: -- { cmd="command" , tag = t , screen = s, geo={x=x0, y=y0, w=w0, h=h0} } OrderedClientStartup.my_apps = {} -- Nested callbacks to ensure the applications' respective clients spawn -- in the correct order and are then moved to ...
--トリシューラの鼓動 -- --Script by 龙骑 function c100340055.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,100340055) e1:SetTarget(c100340055.target) e1:SetOperation(c100340055.activat...
object_static_item_item_component_configuration_module = object_static_item_shared_item_component_configuration_module:new { } ObjectTemplates:addTemplate(object_static_item_item_component_configuration_module, "object/static/item/item_component_configuration_module.iff")
--imports-- local api = require"novus.api" local util = require"novus.snowflakes.helpers" local snowflake = require"novus.snowflakes" local const = require"novus.const" local cqueues = require"cqueues" local null = require"cjson".null local setmetatable = setmetatable local gettime = cqueues.monotime local running = cq...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] local PANEL = {} function PANEL:Init() self.stagePanels = {} end function PANEL:AddStagePanel(name, dType) local id = #self.stagePanels + 1; local panel = self:Add(dType or "DPanel"); panel:Dock(FILL); pa...
local init = require("test_setup")() local ffi = require("ffi") local int = ffi.typeof("int") local int_a = ffi.typeof("int[?]") --local a = ffi.new("int[1]"); local a = int_a(1); printf("Enter integer\n"); scanf("%d", a); printf("Integer that you have entered is %d\n", int(a[0]));
-- lua-MessagePack 0.5.1 -- Copyright (c) 2012-2018 Francois Perrad" -- licensed under the terms of the MIT/X11 license -- thanks :) local floor = require'math'.floor local huge = require'math'.huge local ldexp = require'math'.ldexp or require'mathx'.ldexp return function (s) if #s < 4 then error "missing b...
assert(truc == 5); local l = require("some.thing"); assert(l.truc == 10);
--[[ Autoinstall plugin Licensed by Creative Commons Attribution-ShareAlike 4.0 http://creativecommons.org/licenses/by-sa/4.0/ Dev: TheHeroeGAC Designed By Gdljjrod & DevDavisNunez. Collaborators: BaltazaR4 & Wzjk. ]] dofile("lang/Langdatabase.lua")--Official function update_database(database,tb) local fi...
local oo = require "oil.oo" Collector = oo.class{} function Collector:__init() return oo.rawnew(self, { emails = {} }) end local MailSent = {} function Collector:send_to(email) assert(type(email) == "string", "attempt to send message to address "..tostring(email)) assert(string.find(email, ".+@.+"), "attempt to s...
--[[ EmuDevs <http://emudevs.com/forum.php> Eluna Lua Engine <https://github.com/ElunaLuaEngine/Eluna> Eluna Scripts <https://github.com/ElunaLuaEngine/Scripts> Eluna Wiki <http://wiki.emudevs.com/doku.php?id=eluna> -= Script Information =- * Zone: Stormwind * Script Type: Creature * Cr...
local _, G = ... local cvars = { alwaysShowActionBars = 0, autoClearAFK = 1, autointeract = 0, autoLootDefault = 1, autoQuestWatch = 1, autoSelfCast = 1, blockChannelInvites = 0, blockTrades = 0, cameraDistanceMaxZoomFactor = 2.6, chatBubbles = 1, chatBubblesParty = 0, chatStyle = 'classic', ...
-- from Original keyboard mod by bas080 -- Cracked by jogag -> cracked by juli from digilines to rc -- Added features: useable with rc mod local RC_RADIUS = 5 minetest.register_node("rc_keyboard:rc_keyboard", { description = "rc_keyboard", tiles = {"rc_keyboard_top.png", "rc_keyboard_bottom.png", "rc_keyboard_s...
-- a quick access status screen -- originally written by enjia2000@gmail.com (stolencatkarma) --[====[ gui/dfstatus ============ Show a quick overview of critical stock quantities, including food, drinks, wood, and various bars. Sections can be enabled/disabled/configured by editing :file:`dfhack-config/dfstatus.lua`....
UIBase = {} UIBase.__index = UIBase function UIBase:GetControl(typeName, uri) return self.Controller:GetControl(typeName, uri) end function UIBase:GetUIText(uri) local text = self:GetControl("UnityEngine.UI.Text", uri) return text end function UIBase:GetUIButton(uri) local btn = self:GetControl("Unit...
SIM2D.TYPE.HEXBTN = "hexbtn"; local tSim2D = Sim2D.__properties; class "HexBtn" : extends(Btn) { __construct = function(this, sState, sName, nX, nY, nWidth, nHeight, nStratum, nLayer, bDoNotPoll, bDoNotAutoDraw) --create the hex size and center point based on the rectangle local nSize = nHeight / 2; local...
function onCreate() -- background makeLuaSprite('sky', 'midnight/midnightBG', -120, -50) setLuaSpriteScrollFactor('sky', 0.1, 0.1); addLuaSprite('sky', false); --bg limos makeAnimatedLuaSprite('midnightbgLimo', 'midnight/midnightbgLimo', -150, 480) setLuaSpriteScrollFactor('midnightbgLimo', 0.4, 0.4); addAni...
-- Convert HSL (hue saturation lightness) to RGB (red green blue) -- Original code by John Chin-Jew/Wavalab: -- https://github.com/Wavalab/rgb-hsl-rgb local base = require('modules.libraries.backend.base') local colors = {} function colors.hsl2hex(h, s, l, a) a = a or 100 local r, g, b h = (h / 360) s = (s / 100...
ArtNumLayout = class("ArtNumLayout", function () return ccui.Layout:create() end) ArtNumLayout.ctor = function (slot0) slot0._numArr = nil slot0._prefix = "" slot0._layout = ccui.Layout:create() slot0._isVisible = true slot0:addChild(slot0._layout) slot0:retain() end ArtNumLayout.setText = function (slot0, sl...
#!tools/lua -- dumps contents of a tap file local args = {...} local filename = args[1] if filename == nil then print("Usage: dump_tap.lua <filename>") return end local file = assert(io.open(filename, "rb")) function printf(...) print(string.format(...)) end function fread_byte() return string.byte(file:read(...
local Entity = {} function Entity:new(x, y, width, height, drawable, debugColor) local entity = {} setmetatable(entity, self) self.__index = self entity.x = x or 0 entity.y = y or 0 entity.width = width or 1 entity.height = height or 1 entity.drawable = drawable or Drawable:new() en...
-- -- Mixpanel Example project -- -- Sample code is MIT licensed -- Copyright (C) 2017 Yoger Games AB. All Rights Reserved. -- ------------------------------------------------------------ -- Require plugin local mixpanel = require "plugin.mixpanel" local idMap = {} local t = os.date( '*t' ) --------------------------...
local ThreatLib = LibStub and LibStub("ThreatClassic-1.0", true) if not ThreatLib then return en local SUPREMUS_ID = 22898 ThreatLib:GetModule("NPCCore"):RegisterModule(SUPREMUS_ID, function(Supremus) Supremus:RegisterTranslation("enUS", function() return { ["Supremus punches the ground in anger!"] = "Supremus punc...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE) local area = createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4) combat:setArea(area) function onGetFormulaValues(player, level, maglevel) min = -((level / 5) + (maglevel * 1.2)...
--===========================================================================-- -- -- -- System.Web.StaticFileLoader -- -- -- ...
return {'geysels','geyeld','geyahtzeed'}
WebBanking { description = "Service Description" }
--- Parser for LittleFighterForever syntax v2. Inherited from @{l2df.class.parser|l2df.class.parser.BaseParser} class. -- @classmod l2df.class.parser.lffs2 -- @author Kasai -- @author Abelidze -- @copyright Atom-TM 2020 local core = l2df or require(((...):match('(.-)class.+$') or '') .. 'core') assert(type(core) == 't...
local containerPrototype = {} function containerPrototype:AddChild(child) if type(child) == "table" then ToshUnitFrames.regions:Add(child) elseif type(child) == "number" then child = ToshUnitFrames.regions[child] end assert(type(child) == "table") self.children = self.children or {...
-- VARIABLES =================================================================== -- [Settings] enableSelfDestroy = true local bulletParticles = "bulletHitParticle" local bulletDamage = 0.2 local BossBulletDmg = 0.1 local speed = 5000 local lifespan = 1 local lifespanTi...
-- Configuration for the Org mode clone for Neovim. require("orgmode").setup { org_agenda_files = {"~/.emacs.d/org/agenda/*"}, org_default_notes_file = "~/.emacs.d/org/refile.org" } -- Keymappings {{{ -- Org agenda vim.api.nvim_set_keymap("n", "<leader>oa", "<cmd>org_agenda<cr>", {silent = true, noremap = true}) ...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: MTA i...
local module = {} local replicated = game:GetService('ReplicatedStorage') local common = replicated.Common local loadSave = replicated.Remotes.Play local manage = require(common.Manager).Manage local effects = require(common.Gui.Effects) local playerData = require(common.PlayerData) local maker = require(common.Appe...
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "ISUI/ISPanel" ---@class RWMPanel : ISPanelJoypad RWMPanel = ISPanelJoypad:derive("RWM...
--[[ ========================================================================== Keystone.lua ========================================================================== ]]-- local _G = _G local AddOnName, _ = ... local AddOn = _G[AddOnName] -- Libs --local L = LibStub("AceLocale-3.0"):GetLocale(AddOnName) local Ge...
PLUGIN.Title = "Airdrop" PLUGIN.Description = "Performs timed airdrops" function PLUGIN:Init() --change 3600 to any number of seconds timer.Repeat(3600, self.drop) end function PLUGIN:drop() rust.RunServerCommand( "airdrop.drop" ) end
-- Dropdown with an editable TextBox to type option local TextService = game:GetService("TextService") local TextEditor = script:FindFirstAncestor("TextEditor") local Roact = require(TextEditor.Packages.Roact) local StudioThemeContext = require(script.Parent.StudioThemeContext) local TextDropdown = Roact.Component:ext...
function start (song) -- do nothing end function update (elapsed) if curStep >= 1088 and curStep < 4000 then local currentBeat = (songPos / 1000)*(bpm/60) for i=0,7 do setActorX(_G['defaultStrum'..i..'X'] + 50 * math.sin((currentBeat + i*100) * math.pi), i) setActorY(_G['defaultStrum'..i..'Y'] + 100 * math.co...
local K, C = unpack(select(2, ...)) if C["DataText"].Time ~= true then return end -- Lua API local _G = _G local date = _G.date local ipairs = ipairs local math_floor = math.floor local mod = mod local next = _G.next local select = _G.select local string_format = string.format local string_join = string.join local st...
require "rock"
-- imported modules local Game = require 'Game' local MainMenu = require 'MainMenu' local S = require 'settings' local gamestate = require 'hump.gamestate' local game = nil local mainMenu = nil function love.load() love.keyboard.setKeyRepeat(true) love.window.setIcon(love.image.newImageData('bio.png')) love.windo...
local audiotriggersound = { Properties = { TriggerOnEnter = { default = true }, TriggerOnExit = { default = false }, Delay = { default = 0.0, description = "Delay before the sound is played" }, Sound = { default = "", description = "Name of the Wwise Sound Event" }, }, } function audiotriggersound:OnA...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire FX Emitter" ENT.WireDebugName = "FX Emitter" function ENT:SetupDataTables() self:NetworkVar( "Bool", 0, "On" ) self:NetworkVar( "Int", 0, "Effect" ) self:NetworkVar( "Float", 0, "Delay" ) self:NetworkVar( "Vector", 0, "FXDir" ) end ...
local bu = require "spec.fixtures.balancer_utils" local helpers = require "spec.helpers" local https_server = helpers.https_server local stress_generator = helpers.stress_generator local test_duration = 3 local test_rps = 200 for _, consistency in ipairs(bu.consistencies) do for _, strategy in helpers.each_strate...
--!strict --[[ Description: Makes a virtual environment to replace the legacy function environment for running code Author: github@ccuser44 Date: 15.2.2022 --]] type dictionary = { [string]: any } type func = (...any?) -> (...any?) local globalEnv: dictionary = { -- // Libraries coroutine = coroutine, debug = d...
food_effects.register_callback = function(foodname, seconds, enable_hud, callback) food_effects.items_with_effects[foodname] = true -- playername -> timeout local data = {} -- playername -> {} local hud = {} local hud_image = "" if enable_hud then local itemdef = minetest.registered_items[foodname] hud...
------------------------------------------------------------------------------ -- -- This file is part of the Corona game engine. -- For overview and more information on licensing please refer to README.md -- Home page: https://github.com/coronalabs/corona -- Contact: support@coronalabs.com -- ------------------------...
local json = require('json') local WebSocket = require('coro-websocket') local constants = require('../constants') local base = require('./base') local class = require('../classes/new') local voice = require('../voice') local VoiceConnection = class(base) function VoiceConnection:__constructor () -- .parent = serve...
object_tangible_quest_rebel_rtp_ackbar_wave_sympathizer_signal = object_tangible_quest_rebel_shared_rtp_ackbar_wave_sympathizer_signal:new { } ObjectTemplates:addTemplate(object_tangible_quest_rebel_rtp_ackbar_wave_sympathizer_signal, "object/tangible/quest/rebel/rtp_ackbar_wave_sympathizer_signal.iff")
u_execScript("common.lua") u_execScript("commonpatterns.lua") u_execScript("utils.lua") u_execScript("alternativepatterns.lua") function wallSAdj(mSide, mAdj) w_wallAdj(mSide, THICKNESS, mAdj) end function wallSAcc(mSide, mAdj, mAcc, mMinSpd, mMaxSpd) w_wallAcc(mSide, THICKNESS, mAdj, mAcc * (u_getDifficultyMult()), m...
local M = {} function M.get(cp) return { FernBranchText = { fg = cp.blue }, } end return M
--[[ * author : kaishiqi * descpt : create on 2016-03-18 ]] local Entry = require 'i18n.Entry' local MoParser = {} MoParser.__index = MoParser MoParser.ErrMsg = { NotFind = 'file load fail.', NoValid = 'no valid mo-file', Version = 'unsupported version', } local MoDefine = { MAGIC_BIG = '\2...
-- yx_proto.lua ---------------------------------------------------------------------------------------- local M = {} -- 相关的协议 M.C2S = { -- 访问S的协议 CONNECT = 0x0001, CHALLENGE_RESPONSE = 0x0002, JOIN_SERVER = 0x0003, REQ_CONN_GATEWAY = 0x0004, } M.S2C = { -- 访问C的协议 CONNECT = 0x1001, CHALL...
local msg = require "toy.logger" local bug = require "toy.debug" local function create_window() local config = { title = "Sample window;範例視窗", width = 800, height = 600, } return require("toy.window").create_window(config) end msg.print("Starting") local function main() local window = create_window...
local AddonName, Addon = ... local AceLocale = LibStub:GetLibrary("AceLocale-3.0") local L = AceLocale:NewLocale(AddonName, "enUS", true, true) if not L then return end Addon.AliasPrefix = "cb_" -- TODO: Figure out how to make this available in other files. local function S(text) text = text:gsub("|B",...
minetest.register_craftitem("elepower_machines:compressor_piston", { description = "Compressor Piston", inventory_image = "elepower_compressor_piston.png" }) minetest.register_craftitem("elepower_machines:turbine_blades", { description = "Turbine Blades", inventory_image = "elepower_turbine.png" }) -- Pump Tube ...
AddCSLuaFile() AddCSLuaFile("sh_sounds.lua") AddCSLuaFile("sh_soundscript.lua") include("sh_sounds.lua") include("sh_soundscript.lua") if CLIENT then SWEP.DrawCrosshair = false SWEP.PrintName = "M1928A1" SWEP.CSMuzzleFlashes = true SWEP.UseHands = false SWEP.MuzzleEffect = "muzzleflash_ak74" SWEP.PosBasedMuz =...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { BaseStationCfg = { [101] = { ActCond = { { CondName = "Σ╗╗σèí", CondValue = 1030 }, }, ActShowLv = 2, ...
-- https://httpd.apache.org/docs/trunk/mod/mod_lua.html#writinghandlers -- example handler require 'apache2' require 'string' --[[ This is the default method name for Lua handlers, see the optional function-name in the LuaMapHandler directive to choose a different entry point. --]] function handle(r) ...
-- package.loaded["renderModule"] = nil -- error renderSystem = require "renderModule" render = { x=480, y=320 } function render:init(x, y) render.x = x render.y = y print("init") return true end function render:update() print("update") end local r = render.init() print(r) renderSystem.init() renderSys...
local parent, ns = ... ns.addon = CreateFrame("Frame", nil, UIParent) ns.spells = {}
local log = ngx.log local timer_at = ngx.timer.at local ERR = ngx.ERR local tbl_concat = table.concat local function trace(...) local line = {} for i = 1, select("#", ...) do line[i] = tostring(select(i, ...)) end log(ERR, tbl_concat(line, " ")) end trace("main.lua started") local start_timer local function o...
local utils = require'jet.utils' describe( 'The jet.utils module', function() it('is_empty_table works',function() assert.is_true(utils.is_empty_table({})) assert.is_false(utils.is_empty_table({'asd'})) assert.is_false(utils.is_empty_table({a=123})) end) it('access_f...
local lsp_status = require 'lsp-status' local lspconfig = require 'lspconfig' local efm_config = os.getenv('HOME') .. '/.config/efm-langserver/config.yaml' local log_dir = "/tmp/" local black = require "config.plugins.lsp.efm.black" local isort = require "config.plugins.lsp.efm.isort" local mypy = require "config.plug...
--Print its own name print("The name of this script is: "..arg[0])
require("tests/testsuite") -- Test the low level function that's actually got the bug in it. local object, result = LoggingCallback() wg.parseword("\16", 0, object) AssertTableAndPropertiesEquals( {}, result) -- And now do an end-to-end test of the exporter framework which was -- provoking it. Cmd.InsertStringIn...
--------------------------------------------------- -- Scintillant Lance -- Deals light damage to targets in a fan-shaped area of effect. --------------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/status") --------------------------------------------------- f...
local json = require 'json' local function pushError(...) local t = table.pack(...) for i = 1, t.n do t[i] = tostring(t[i]) end local buf = table.concat(t, '\t') ERR:push(buf) end local function readProtoHeader() local header = io.read 'l' if header:sub(1, #'Content-Length') == '...
--- Notification helper functions -- @module ix.notice if (SERVER) then util.AddNetworkString("ixNotify") util.AddNetworkString("ixNotifyLocalized") --- Sends a notification to a specified recipient. -- @realm server -- @string message Message to notify -- @player[opt=nil] recipient Player to be notified func...
if #arg == 0 then os.exit(0) end --os.exit(0) function scriptPath() local str = debug.getinfo(2, "S").source:sub(2) return str:match("(.*/)") end -- -- Stuff to ensure alphabetic order -- Taken from http://lua-users.org/wiki/SortedIteration -- --[[ Ordered table iterator, allow to iterate on the natural or...
local common = require "unbox/common" local Cell = require "unbox/Cell" local Contact = require "unbox/Contact" local World = {} World.__index = World function World.new(args) local world = setmetatable({}, World) world:init(args or {}) return world end function World:init(args) self.gravityX, self.g...
-- require'lspconfig'.clangd.setup{}
koth {53.0,-87.0,65.0,35.0} -- koth area, x,y,z,r teams { {"red", {255,0,0,1}}, {"green", {0,255,0,2}}, {"blue", {0,0,255,3}} } zoneconfig { zoneBlip = 9, zoneAlpha = 100, zoneColor = 4, blip = 305, blipcolor = 4, blipalpha = 255 } shops { {10.0,10.0,10.0}, {-10.0,-10.0,-10.0} } spawns { {223.3,-28.7,7...
--[[********************************** * * Multi Theft Auto - Admin Panel * * client/admin_wrapper.lua * * Original File by lil_Toady * **************************************]] local _getVehicleNameFromModel = getVehicleNameFromModel function getVehicleNameFromModel(id) local avehspecial = { [59...
local module = require("ethel.module") local config = module.load("util.config") local sprite = module.load("sprite") local tile = module.load("tile") local tilemap = module.load("tilemap") local function loadLevel(path) local cfg = config.loadFile(path) local level = { width = tonumber(cfg.width), height ...
-- this is pretty tricky local oldInitTechTree = MarineTeam.InitTechTree function MarineTeam:InitTechTree() -- super tricksy local medpack = kTechId.MedPack kTechId.MedPack = kTechId.HealingField oldInitTechTree(self) kTechId.MedPack = medpack end
local Packages = script.Parent.Parent.Parent.Parent.Parent local Roact = require(Packages.Roact) local UIBlox = Packages.UIBlox local ModalBottomSheet = require(UIBlox.ModalBottomSheet.ModalBottomSheet) local doSomething = function(a) print(a, "was pressed!") end local Story = Roact.Component:extend("Story") funct...
require('common') local MainMenu = State:derive() local PlayerSelect = require('states.player_select') local loop = love.audio.newSource("music/crappyloop.ogg", "stream") loop:setVolume(0.5) loop:setLooping(true) function MainMenu:_init() State._init(self, 'MainMenu') self.playersAvailable = {} end function Mai...
-- Trigger_* detector local MOD = { LoadName = "Triggers", LastQuery = 0.0, --UseOffline = true, } MijHUD.LoadModule(MOD) local function genBeams(mins, maxs) return { Vector(mins.x, mins.y, mins.z), Vector(mins.x, mins.y, maxs.z), Vector(mins.x, mins.y, mins.z), Vector(mins.x, maxs.y, mins.z), Vector(m...