content
stringlengths
5
1.05M
return function() local values = require(script.Parent.values) local None = require(script.Parent.Parent.None) it("should not mutate the given table", function() local a = { Foo = "FooValue", Bar = "BarValue" } local aCopy = { Foo = "FooValue", Bar = "BarValue" } values(a) for key, value i...
t = Def.ActorFrame{} t[#t+1] = Def.Quad{ InitCommand=cmd(zoomto,22,22;diffuse,color("#ffffff");diffusealpha,0.7); }; t[#t+1] = Def.Quad{ InitCommand=cmd(x,22;zoomto,66,22;diffuse,color("#ffffff");diffusealpha,0.5); }; return t
function newInstance() return { -- Calls modificationFunction with the provided unit once instantly and once after each capture. -- This is needed when changing max HP and similar stats, so they do not get lost on capture. modify = function(unit, modificationFunction) modificatio...
{ id = "OWLGrEd_UserFields", name = "OWLGrEd_UserFields", version = "0.3", }
local io = require "io" local nmap = require "nmap" local slaxml = require "slaxml" local stdnse = require "stdnse" local string = require "string" local table = require "table" local target = require "target" description = [[ Loads addresses from an Nmap XML output file for scanning. Address type (IPv4 or IPv6) is d...
files { "physx/source/physxextensions/src/ExtBroadPhase.cpp", "physx/source/physxextensions/src/ExtCollection.cpp", "physx/source/physxextensions/src/ExtConvexMeshExt.cpp", "physx/source/physxextensions/src/ExtCpuWorkerThread.cpp", "physx/source/physxextensions/src/ExtD6Joint.cpp", "physx/source/physxextensions/s...
local classnamevalue = nil; local recordnamevalue = nil; function setValue(classname, recordname) classnamevalue = classname; recordnamevalue = recordname; end function onButtonPress() DesktopManager.openDesktopWindow(classnamevalue, recordnamevalue); end
fx_version 'adamant' game 'gta5' name 'ESX FBI Job' description 'This script add the fbi job, for esx framework.' website 'https://github.com/ESX-FRANCE/esx_fbi_job' version '0.0.4' server_scripts { '@mysql-async/lib/MySQL.lua', '@es_extended/locale.lua', 'locales/en.lua', 'locales/fr.lua', 'locales/de.lua', 'c...
quikmachines_version = "quik_machines version 0.0.1" print("heyaaaa " .. quikmachines_version .. " is here") --[[ Lightnerium Ingot Said to be filled with pure spite. Or lightning. Whatever powers your machines. --]] minetest.register_craftitem("quik_machines:lightnerium_ingot", { description = "A re...
Ambi.General.Network = Ambi.General.Network or {} setmetatable( Ambi.General.Network, { __index = net } ) -- ------------------------------------------------------------------------------------- local Gen = Ambi.General local NetworkIDToString, AddNetworkString, IsValid, Color = util.NetworkIDToString, util.AddNetwork...
/* MiniTank Wars Copyright (c) 2010 BMCha This gamemode is licenced under the MIT License, reproduced in shared.lua ------------------------ init.lua -Gamemode serverside init */ AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "cl_hud.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) function...
-- _ _ _ _ -- /\ | | | | | | | | -- / \ | |_| | __ _ ___ ___| |__ __ _| |_ -- / /\ \| __| |/ _` / __| / __| '_ \ / _` | __| -- / ____ \ |_| | (_| \__ \ | (__| | | | (_| | |_ -- /_/ \_\__|_|\__,_|___/ \___|_| |_|\__,_|\__| -- ...
local map = require("config.utils").map map("n", "<Left>", [[<cmd>lua require('tmux').move_left()<cr>]]) map("n", "<Down>", [[<cmd>lua require('tmux').move_down()<cr>]]) map("n", "<Up>", [[<cmd>lua require('tmux').move_up()<cr>]]) map("n", "<Right>", [[<cmd>lua require('tmux').move_right()<cr>]])
local Items = {['Vehicle'] = {['Native'] = {}, ['Mod'] = {}}, ['Trailer'] = {['Native'] = {}, ['Mod'] = {}}} local Menupool = MenuPool.New() local MainMenu = UIMenu.New(GetLabelText('VEH_LIVERY'):gsub('%(', ''):gsub('%)', ''), '~b~' .. GetLabelText('collision_3esfcr')) local TrailerMenu, MenuExists, Vehicle, GotTrailer...
local lu = require 'luaunit' local StringHelper = require 'supernova.helpers.string' function testHelpers() lu.assertEquals( StringHelper.remove_accents('Lórem'), 'Lorem' ) lu.assertEquals( StringHelper.strip('\n\n Lórem \n\r \r\n'), 'Lórem' ) local identifier, key = StringHelper.to_id...
local utils = require "go-tools.utils" local M = {} function M.switch() local file = vim.fn.expand "%" local alt_file = "" if utils.is_test_file(file) then alt_file = vim.fn.split(file, "_test.go")[1] .. ".go" else alt_file = vim.fn.split(file, ".go")[1] .. "_test.go" end if not vim.fn.filereada...
local _, Engine = ... local Module = Engine:GetModule("ActionBars") local ControllerWidget = Module:SetWidget("Controller: Side") -- Lua API local tconcat, tinsert = table.concat, table.insert -- WoW API local Controller = CreateFrame("Frame") local Controller_MT = { __index = Controller } -- Saves se...
---@class RainManager : zombie.iso.objects.RainManager ---@field public IsRaining boolean ---@field public NumActiveRainSplashes int ---@field public NumActiveRaindrops int ---@field public MaxRainSplashObjects int ---@field public MaxRaindropObjects int ---@field public RainSplashAnimDelay float ---@field public AddNe...
-- require('FTerm').setup() -- Keybinding -- local opts = { noremap = true, silent = true } -- Closer to the metal -- local map = vim.api.nvim_set_keymap -- map('n', '<C-i>', '<CMD>lua require("FTerm").toggle()<CR>', opts) -- map('t', '<C-i>', '<C-\\><C-n><CMD>lua require("FTerm").toggle()<CR>', opts) -- map('n', '<Ta...
Citizen.CreateThread(function() local timesDetected = 0 while true do local config = V4nder.Config or {} local check = config.GodMode or false if (timesDetected >= 10) then V4nder.TriggerServerEvent('tigoanticheat:banPlayer', 'godmode') end if (c...
local http = require("http") local json = require("dkjson") local twitch = {} twitch.apiUrl = "https://api.twitch.tv/kraken/" twitch.accept = "application/vnc.twitchtv.v2+json" --- Get the current game for the given streamer -- @param user -- function twitch.game(user) local url = twitch.apiUrl .. "streams/" .. ...
local function isValidChannel(c) return type(c) == "number" and c >= 0 and c <= 65535 end local function processModemEvent(e) --true: ok, false: not ok if type(e) ~= "table" then return false end if e[1] == "modem_message" and isValidChannel(e[3]) and isValidChannel(e[4]) and type(e[5]) == "tab...
object_tangible_item_entertainer_console_stage_generated_backdrop_09 = object_tangible_item_entertainer_console_shared_stage_generated_backdrop_09:new { } ObjectTemplates:addTemplate(object_tangible_item_entertainer_console_stage_generated_backdrop_09, "object/tangible/item/entertainer_console/stage_generated_backdro...
workspace "Nexus" architecture "x86_64" startproject "Sandbox" configurations { "Debug", "Release" } proj_targetdir = "bin/%{cfg.buildcfg}-%{cfg.architecture}/%{prj.name}" proj_objdir = "bin-int/%{cfg.buildcfg}-%{cfg.architecture}/%{prj.name}" include_dir = {} include_dir["spdlog"] = "%{wks.location}/Nexus/v...
return { id = "enhanced_automech_boss", title = "Enhanced Automech Boss", desc = "Defeat the Automech Boss. Except this time, he summons an Autodog every turn that protects him.", enemies = {"AUTOMECH_BOSS"}, on_start_battle = function(battle) local main = battle:GetEnemyTeam():Primary() ...
return { nanoboom3 = { areaofeffect = 128, craterboost = 0, cratermult = 0, edgeeffectiveness = 0.75, explosiongenerator = "custom:FLASH1", impulseboost = 0.123, impulsefactor = 0.123, name = "MEX", range = 128, reloadtime = 3.6, soundhit = "xplosml3", soundstart = "largegun", turret = 1, w...
util.AddNetworkString("SH_SZ.New") util.AddNetworkString("SH_SZ.Edit") util.AddNetworkString("SH_SZ.Delete") util.AddNetworkString("SH_SZ.Menu") util.AddNetworkString("SH_SZ.Teleport") util.AddNetworkString("SH_SZ.Notify") util.AddNetworkString("SH_SZ.Closed") if (SH_SZ.UseWorkshop) then resource.AddWorkshop("1130097...
local ITEM_NO = 0 local ITEM_CLOTH = 2 local ITEM_NECKLACE= 3 local ITEM_BRACELAT= 4 local ITEM_RING = 5 local ITEM_MEDAL = 6 local ITEM_HELMET = 7 local ITEM_WEAPON = 9 local ITEM_SHOE = 14 local ITEM_BELT = 15 local ITEM_GEM = 16 local ITEM_CHARM = 17 -- Item affix config_constItemAffix = { { ID = 1, Format =...
local AtlasLoot = _G.AtlasLoot local BonusIDInfo = {} AtlasLoot.BonusIDInfo = BonusIDInfo local type = type local type_table = "table" ATLASLOOT_ITEM_BONUSIDS = { -- Raid ["LFR"] = 451, ["SoOWarforged"] = 448, ["HeroicRaid"] = 566, ["MythicRaid"] = 567, ["LegionLFR"] = 3379, ["LegionHeroicRaid"] = 1805, ["Leg...
local args = ... local GroupWheel = args.GroupWheel local SongWheel = args.SongWheel local OptionsWheel = args.OptionsWheel local OptionRows = args.OptionRows -- initialize Players to be any HumanPlayers at screen init -- we'll update this later via latejoin if needed local Players = GAMESTATE:GetHumanPlayers(...
local metric = monitoring.counter("tick_count", "number of ticks") minetest.register_globalstep(function(dtime) metric.inc() end)
function auth(request) if is_table(request) then local auth = request.headers.Authorization if auth then local username, password = get_credentials(auth) return { name = username, pass = password } end end end function get_credentials(header) local b64 = require "base64" local credentials_decoded =...
local TableUtil = require("sebaestschjin-tts.TableUtil") local XmlUiFactory = require("sebaestschjin-tts.xmlui.XmlUiFactory") local XmlUiElement = require("sebaestschjin-tts.xmlui.XmlUiElement") ---@class seb_XmlUi_AxisLayout : seb_XmlUi_Element ---@class seb_XmlUi_AxisLayout_Static ---@overload fun(element: tts__UIH...
require "classes.constants.screen" AsynchHTTP={} function AsynchHTTP:new() local this = display.newGroup() local public = this local private = {} local background = display.newImageRect("img/backgroundNotifications.png", 360, 570) local labelMessage = display.newText("(Waiting for response)", scre...
--- -- Mute players when we are about to run map cleanup, because it might cause -- net buffer overflows on clients. -- @section voice_manager local mute_all = false local IsValid = IsValid local hook = hook local net = net --- -- Updates the mute_all state -- @param number state -- @realm server function MuteForRes...
require('scripts/node') local n1 = Node('^^o') local n2 = Node('vvo') local n3 = Node('>>>o') local n4 = Node('<<<o') n1:setLeft(n2) n2:setLeft(n3) n3:setLeft(n4) return n1
local gl = require 'ffi.OpenGL' return function(HydroCLApp) HydroCLApp.display2D_Graph_step = 1 function HydroCLApp:display2D_Graph(solvers, varName, ar, graph_xmin, graph_ymin, graph_xmax, graph_ymax) self.view:projection(ar) self.view:modelview() gl.glColor3f(1,1,1) gl.glEnable(gl.GL_DEPTH_TEST) for _,sol...
local BondbardmentProgress = {} function BondbardmentProgress:new(layer, context) --local gameConst = require("game.gameConst"); local newBonbardmendProgress = {}; -- set meta tables so lookups will work setmetatable(newBonbardmendProgress, self); self.__index = self; local u...
-- Default startup config window = { width = 800, height = 600, framerate = 'vsync', -- 'vsync' or integer fullscreen = false -- ignores width,height when true }
--[[ This project is created with the Clockwork framework by Cloud Sixteen. http://cloudsixteen.com --]] local TRAIT = Clockwork.trait:New(); TRAIT.description = "TraitExampleDesc"; TRAIT.name = "TraitExample"; TRAIT.image = "path/to/material"; Clockwork.trait:Register(TRAIT);
// Wildfire Black Mesa Roleplay // File description: BMRP server-side power box entity script // Copyright (c) 2022 KiwifruitDev // Licensed under the MIT License. //********************************************************************************************* // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY...
 --[[ frame.lua A combuctor frame object Set Events: COMBUCTOR_SET_ADD: name If visible, then update side tabs + highlight COMBUCTOR_SET_UPDATE: name, icon, rule if visible, then update side tabs + highlight If we're showing set, then need to update rule COMBUCTOR_SUBSET_A...
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. 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 ...
--[[ The function MakeCoreHeaderFile will generate the core source file. This file will contain all of the core function pointers (including core extensions) in a big struct. It also exposes a function that will set these function pointers from the default version of OpenGL. The function is called "void [funcPrefix]e...
local PANEL = {} function PANEL:Init() self.title = self:AddLabel("Customise your character") self.subtitle = self:SubLabel("Select a model") self.models = self:Add("DIconLayout") self.models:Dock(FILL) self.models:SetSpaceX(4) self.models:SetSpaceY(4) self.models:SetDrawBackground(false) self.models:SetStret...
--[[ Copyright (c) 2019 igor725, scaledteam released under The MIT license http://opensource.org/licenses/MIT ]] SURV_DNTIME = 480 SURV_SDTIME = 120 local ptime = { ['day'] = 0, ['sunset'] = SURV_DNTIME, ['night'] = SURV_DNTIME + SURV_SDTIME, ['dawn'] = SURV_DNTIME * 2 + SURV_SDTIME } hooks:create('survO...
local fw = require 'bee.filewatch' local fs = require 'bee.filesystem' local await = require 'await' local MODIFY = 1 << 0 local RENAME = 1 << 1 local function exists(filename) local path = fs.path(filename) local suc, res = pcall(fs.exists, path) if not suc or not res then return false ...
-- Forked from this gist: https://gist.github.com/Badgerati/3261142 local min = require('math').min -- Returns the Levenshtein distance between the two given strings local function levenshtein(str1, str2) local len1 = #str1 local len2 = #str2 local matrix = {} local cost = 1 -- quick cut-offs to save time ...
#!/usr/bin/env tarantool test = require("sqltester") --test:plan(2) test:plan(0) --!./tcltestrunner.lua -- 2011 June 21 -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, never taking more than you give. -- --------------------------------...
local _M = {} -- specify path to mask file & image dimensions local mask_file_path = 'mask.png' local mask_w, mask_h = 2048, 2048 function _M.new(params) -- set default params local params = params or {} local diameter = params.diameter or display.contentWidth * .3 local radius = diameter * .5 local zoom = ...
require("scene.lua"); require("utils.lua"); require("rrpgScene_InertialMov.lua"); --[[ PLUGIN de zoom ]]-- SceneLib.registerPlugin( function (scene, attachment) -- Mouse Wheel scene.viewport.onFallbackMouseWheel = function(event) local handled; local viewport = scene.viewport; viewport:beg...
--- Plays music and handles song transitions. local Music = {} Music.__index = Music function Music.new() return setmetatable({ data = nil, --- The sound stream. source = nil, --- The emitting sound. next_song = nil, --- Used for smooth song transitions. volume = 1, --- Music volume...
ESX = nil local closestDoor, closestV, closestDistance, closestA, playerPed, playerCoords, playerNotActive, doorCount, retrievedData = nil, nil, nil, false, nil, nil, true Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end wh...
--scrollingBG.lua local background = { sprite = "img/bg1.png", x1 = 0, y1 = 0, x2 = 0, y2 = -256, -- -256 w = 0, h = 0, -- functions load = nil, update = nil, draw = nil, -- other speed = 225 -- 200 } background.load = function () background.sprite = maid64.newImage(background.sprite) ba...
local statemachine = require 'statemachine' local bind = require('packagemanager/misc').bind local PackageManager = require 'packagemanager/init' local Event = require 'packagemanager-gui/Event' local utils = require 'packagemanager-gui/utils' local xrc = require 'packagemanager-gui/xrc' local ChangeListPresenter = {...
local Object = require 'lib.object' local File = require 'lib.luapi.file' --[[ All files in project (indexed by reqpaths) = @ (lib.object) > ?string (lib.luapi.file) ]] local Files = Object:extend 'lib.luapi.files' --[[ Get paths, load, read, parse, write = @>init (function) > self (@) > luapi (lib.luapi) ]] fun...
local cfg = module("cfg/aptitudes") local exp_step = 4 local gaptitudes = {} function vRP.defAptitudeGroup(group,title) gaptitudes[group] = { _title = title } end function vRP.defAptitude(group,aptitude,title,init_exp,max_exp) local vgroup = gaptitudes[group] if vgroup ~= nil then vgroup[aptitude] = { title,ini...
local function lowPriorityWarning() if __DEV__ then function lowPriorityWarning(condition, format, ...) if not format then error("`lowPriorityWarning(condition, format, ...) requires a warning message argument") end if not condition then io.stderr:write("Low-pri Warning: " .. str...
local config = require 'config' local u = require 'utilities' local api = require 'methods' local plugin = {} local function max_reached(chat_id, user_id) local max = tonumber(db:hget('chat:'..chat_id..':warnsettings', 'mediamax')) or 2 local n = tonumber(db:hincrby('chat:'..chat_id..':mediawarn', user_id, 1)...
local wildcard_pattern = {} local scanner = { -- simple substitution ['%'] = function(state) return "%%", 1 end, ['.'] = function(state) return "%.", 1 end, ['('] = function(state) return "%(", 1 end, [')'] = function(state) return "%)", 1 end, ['+'] = function(state) return "%+", 1 end, ...
-- Copyright 2020, Sjors van Gelderen local mouse = love.mouse function getMousePosition() local mx, my = mouse.getPosition() return Vec2.new(mx, my) end
-- Spoons loading menuHammer = hs.loadSpoon("MenuHammer") menuHammer:enter()
NAME = "Deutsch" LANGUAGE = { helix = "Helix", introTextOne = "Horizon präsentiert", introTextTwo = "in Zusammenarbeit mit %s", introContinue = "Drücke Leertaste um fortzufahren", helpIdle = "Wähle eine Kategorie", helpCommands = "Kommandoparameter mit <Pfeilen> sind Voraussetung, während [Kl...
--[[ file:mahjongSystem.lua desc:麻将自动AI auth:Carol Luo ]] local class = require("class") local gameSystem = require("game.system") ---@class mahjongSystem:gameSystem local system = class(gameSystem) local this = system ---构造 function system:ctor() end ---出牌 ---吃牌 ---碰牌 ---暗杠 ---饶杠 ---直杠 return sy...
script.on_init(function() remote.call("electric-vehicles-lib", "register-transformer", {name = "electric-vehicles-lo-voltage-transformer"}) remote.call("electric-vehicles-lib", "register-transformer", {name = "electric-vehicles-hi-voltage-transformer"}) remote.call("electric-vehicles-lib", "register-brake",...
-- Autogenerated with DRAKON Editor 1.32 local table = table local string = string local pairs = pairs local ipairs = ipairs local type = type local box = box local tostring = tostring local tonumber = tonumber local print = print local math = math local os = os local pcall = pcall local error = error local select = se...
local skynet = require "skynet" require "skynet.manager" -- import skynet.register local redis = require "redis" local logger = require "logger" local cjson = require "cjson" local trans = require "trans" local psub_redis_host = skynet.getenv('psub_redis_host') or '' local psub_redis_port = skynet.getenv('psub_redis_p...
-- Contains utility functions or other dependencies that are used -- throughout the code base -- Comparison functions to implement a total ordering over non-traditional -- data. Primarily to support composite keys for indexes and temporary -- tables. local function lt(a, b) -- math.huge is supported as a cap with...
local class = require 'core.class' local mixin = require 'core.mixin' local length = require 'validation.rules.length' local nonempty = require 'validation.rules.nonempty' local required = require 'validation.rules.required' local validator = require 'validation.validator' local web = require 'web' -- validation lo...
jit.opt.start(3, '-loop', 'maxtrace=5000', 'hotloop=100') e, c, s = unpack((require("libs/ecs"))) e.nothing = { } require("game/ecs/components") require("game/ecs/entity/player") require("game/ecs/entity/block") require("game/ecs/entity/spike") require("game/ecs/entity/house") require("game/ecs/entity/cloud") require("...
menu = {} local isOnButton = {startButton = false, instrButton = false, quitButton = false, backButton = false} function menu:load() suit.theme.color.normal.fg = {255,255,255} suit.theme.color.hovered = {bg = {200,230,255}, fg = {0,0,0}} suit.theme.color.active = {bg = {200,230,255}, fg = {0,0,0}} end fun...
module:depends"http" local jid_split = require "util.jid".split; local jid_prep = require "util.jid".prep; local msg = require "util.stanza".message; local test_password = require "core.usermanager".test_password; local b64_decode = require "util.encodings".base64.decode; local formdecode = require "net.http".formdeco...
local BaseTile = script.Parent local Tile = BaseTile.Parent local App = Tile.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local t = require(Packages.t) local withStyle = require(UIBlox.Core.Style.withStyle) local TileBanner = Roact.PureComponent:extend("TileBan...
local _M = {} local transaction = require("resty.lmdb.transaction") do local CACHED_TXN = transaction.begin(1) function _M.get(key, db) CACHED_TXN:reset() CACHED_TXN:get(key, db) local res, err = CACHED_TXN:commit() if not res then return nil, err end ...
object_mobile_dressed_dark_jedi_master_female_zab_01 = object_mobile_shared_dressed_dark_jedi_master_female_zab_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_master_female_zab_01, "object/mobile/dressed_dark_jedi_master_female_zab_01.iff")
-- Lists and/or compares two tiletype material groups. --[====[ devel/cmptiles ============== Lists and/or compares two tiletype material groups. Usage: ``devel/cmptiles material1 [material2]`` ]====] local nmat1,nmat2=... local mat1 = df.tiletype_material[nmat1] local mat2 = df.tiletype_material[nmat2] local tmat...
#!/usr/bin/env tarantool local os = require('os') local function test_before_replace_trig(old, new) -- luacheck: no unused args -- return multiple values so that the stack fills earlier. return new:update{{'+', 2, 1}}, new:update{{'+', 2, 1}}, new:update{{'+', 2, 1}}, new:update{{'+', 2, 1}} end local functio...
governmentVehicle = { [416]=true, [427]=true, [490]=true, [528]=true, [407]=true, [544]=true, [523]=true, [596]=true, [597]=true, [598]=true, [599]=true, [601]=true, [428]=true } orangeVehicle = { [525]=true, [403]=true, [514]=true, [515]=true, [524]=true, [486]=true, [552]=true } policevehicles = { } policevehicl...
--[[-- param.exchange( id, params ) This function exchanges the id and/or parameters which are returned by param.get_id(...), param.get(...), etc. It should not be called explicitly, but is used implicitly, if you pass an 'id' or 'params' option to execute.view{...} or execute.action{...}. The function param.resto...
RegisterNetEvent('gtarp:ClothingStoreOpen') AddEventHandler('gtarp:ClothingStoreOpen', function(skinProfile) ClothingStore.Open(skinProfile) end)
function concat(...) local res = {} for _, tab in ipairs({...}) do for _, elem in ipairs(tab) do table.insert(res, elem) end end return res end
----------------------------------- -- Area: The Ashu Talif (Against All Odds) -- Mob: Gowam ----------------------------------- require("scripts/globals/status") local ID = require("scripts/zones/The_Ashu_Talif/IDs") mixins = {require("scripts/mixins/job_special")} ----------------------------------- function onMobS...
local gl = require("galaxyline") local gls = gl.section gl.short_line_list = { } local colors = { bg = "#000000", line_bg = "#000000", fg = "#D8DEE9", fg_green = "#65a380", yellow = "#A3BE8C", cyan = "#22262C", darkblue = "#61afef", green = "#BBE67E", orange = "#FF8800", purple ...
rp.cfg["Load disabled"] = false -- Disable loading rp.cfg["Save disabled"] = false -- Disable saving rp.cfg["Use MySQL"] = false -- Use MySQL Database instead of GMod's standard DB (Useful for synchronizing across multiple servers) db["Player Table"] = "players" -- Table for all playerdata db["Log Table"] = "logs" -- ...
AddCSLuaFile() ENT.PrintName = "Fite Flag" ENT.Author = "Bubbus" ENT.Information = "it wiggles" ENT.Category = "Fite Nite" ENT.WireDebugName = "Fite Flag" ENT.Editable = true ENT.Spawnable = true ENT.AdminOnly = true ENT.RenderGroup = RENDERGROUP_TRANSLUCENT ENT.Type = "point" //* if CLIENT then ...
local modpath = minetest.get_modpath("gunslinger") .. "/" -- Import API dofile(modpath .. "api.lua") -- If builtin guns not disabled, import builtin guns from guns.lua if not minetest.settings:get_bool("gunslinger.disable_builtin") then dofile(modpath .. "guns.lua") end -- Register default ammo item minetest.regist...
local Events = require "scripts/ToolKit/events" local Utilities = require "scripts/ToolKit/utilities" local TriggerImpulse = { Properties = { Debug = true, Enabled = true, Impulse = Vector3(0,0,1), TargetTag = "", AudioEvent = "", }, Events = { [Events.OnSetEnabled] = {} } } function TriggerImpulse:O...
workspace "algorithms" location("build/%{_ACTION}") configurations { "Debug", "Release" } filter "configurations:Debug" targetdir ( "build/%{_ACTION}/bin/debug" ) defines { "DEBUG" } symbols "On" filter "configurations:Release" targetdir ( "build/%{_ACTION}/bin/release" ) defines { "NDEBUG" } o...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by lenovo. --- DateTime: 2021/1/31 1:28 --- local _Timer = require("utils.timer") local _PositiveValue = require("utils.value") local _MpModel = require("core.class")(_PositiveValue) function _MpModel:Ctor(cur, max, varySpeed, regenTime) _PositiveV...
ArkadiusTradeTools.Templates = {} ------------------------------------------------------------------------------- --------------------------- ArkadiusTradeToolsModule -------------------------- ------------------------------------------------------------------------------- local ArkadiusTradeToolsModule = ZO_Object:Su...
return { ignore={ -- optimization=true, msvc_isystem={force_system_flag=true}, }, tostroption=function(_, optname) return _.optprefix .. optname:gsub('_', '-') end, start=function(_, optprefix) _.optprefix = optprefix or '' _:_vcond_init({ _not='not', _and='and', _or='or...
solution "KarstSynthesis" configurations { "release" } platforms { "x64" } includedirs { ".", "../Code/Include/", "/usr/Include" } rootDir = path.getabsolute("../") configuration "release" targetdir "./Out/Release" flags { "OptimizeSpeed" } configuration "linux" buildoptions { "-mtune=native -march=nat...
gon = require("get_os_name") os_name, arch_name = gon.get_os_name() print(("os=%q arch=%q"):format(gon.get_os_name())) -- On Travis, Linux if os.getenv("TRAVIS_OS_NAME") == 'linux' then print('Testing on Travis CI Linux machine') assert( os_name == "Linux") assert( arch_name == "x86_64") print("Test ...
surface.CreateFont('PS_Heading', { font = 'coolvetica', size = 64 }) surface.CreateFont('PS_Heading2', { font = 'coolvetica', size = 24 }) surface.CreateFont('PS_Heading3', { font = 'coolvetica', size = 19 }) local ALL_ITEMS = 1 local OWNED_ITEMS = 2 local UNOWNED_ITEMS = 3 local function BuildItemMenu(menu, ply, ite...
local M = require('xe.node_def._checker') local CalcParamNum = M.CalcParamNum local CheckName = M.CheckName local CheckVName = M.CheckVName local CheckExpr = M.CheckExpr local CheckPos = M.CheckPos local CheckExprOmit = M.CheckExprOmit local CheckCode = M.CheckCode local CheckParam = M.CheckParam local CheckNonBlank = ...
--[==[ LUA MODULE luabalanced v$(_VERSION) - Functions for matching delimited snippets of Lua code in a string SYNOPSIS local LB = require "luabalanced" -- Extract Lua expression starting at position 4. print(LB.match_expression("if x^2 + x > 5 then print(x) end", 4)) --> x^2 + x > 5 16 -- Extrac...
require("__subterra__.scripts.utils") --============================================================================-- -- remove_radar(radar) -- -- callback for when a radar is removed -- -- param radar (LuaEntity): The removed entity or ghost -- -- returns nil -- --====================================================...
local test = {} test['should return true for equal userdata and string'] = function() local str1 = string.new('hello world') local str2 = 'hello world' assert( str1:equals(str2) == true ) end test['should return true for equal string and userdata'] = function() local str1 = string.new('hello world') local s...
if select(2, UnitClass("player")) ~= "SHAMAN" then return end local GetSpellInfo = DrDamage.SafeGetSpellInfo local GetSpellCritChance = GetSpellCritChance local GetSpellBonusDamage = GetSpellBonusDamage local UnitPowerMax = UnitPowerMax local UnitAttackSpeed = UnitAttackSpeed local UnitHealth = UnitHealth local UnitHea...
local CorePackages = game:GetService("CorePackages") local Cryo = require(CorePackages.Packages.Cryo) local Rodux = require(CorePackages.Packages.Rodux) local AddMessage = require(script.Parent.Parent.Actions.AddMessage) local RemoveMessage = require(script.Parent.Parent.Actions.RemoveMessage) local SetMessageText = r...