content
stringlengths
5
1.05M
-- // FileName: Util.lua -- // Written by: Xsitsu, TheGamer101 -- // Description: Module for shared code between MessageCreatorModules. --[[ Creating a message creator module: 1) Create a new module inside the MessageCreatorModules folder. 2) Create a function that takes a messageData object and returns: { KEY_BASE_F...
--------------------------------------------------- -- Stellar Burst -- A starburst damages targets in an area of effect. Additional effect: Silence --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") -----...
-- handles slash commands local addonName, tmdt = ... local module = {} tmdt.modules.slash = module -- tmdt module local options, db function module.init(opt, database) options, db = opt, database end -- tmdt locals local addonPrint = tmdt.addonPrint local debugPrint = tmdt.debugPrint local play = tmdt.play local...
-- If player has permission mobsound.usetool, execute the command found in a tool's lore string when right-clicking function OnPlayerRightClick(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ) if not Player:GetEquippedItem():IsLoreEmpty() and Player:HasPermission("mobsound.usetool") then cRoot:G...
-- vanilla local Error = require 'vanilla.v.error' local sys_conf = require 'vanilla.sys.config' local Dispatcher = require 'vanilla.v.dispatcher' local Registry = require('vanilla.v.registry'):new('sys') local Utils = require 'vanilla.v.libs.utils' -- perf local pairs = pairs local pcall = pcall local require = requi...
-- luacheck: globals describe xdescribe return function() xdescribe("test1", function() end) describe("test2", function() end) end
---------------------------------------- OpenComputers Image Format (OCIF) ----------------------------------------------------------- --[[ Автор: Pornogion VK: https://vk.com/id88323331 Соавтор: IT VK: https://vk.com/id7799889 Основные функции: image.load(string путь): table изображение Загружает сущ...
object_tangible_tcg_series7_consumable_rocket_launcher = object_tangible_tcg_series7_shared_consumable_rocket_launcher:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_consumable_rocket_launcher, "object/tangible/tcg/series7/consumable_rocket_launcher.iff")
--[[ Name: map_config.lua ]]-- if SERVER then resource.AddWorkshop( "651386968") --map resource.AddWorkshop( "328735857") --map content p.1 GM.DayNight.m_tblTimeData.High = string.byte( "m" ) --[[ Car Dealer Settings ]]-- GM.Config.CarSpawns = { { Vector( -10544.041992, -4694.017090, -200 ), Angle( 0,...
--[[ .______ ______ _______. _______. ____ ____ _______. .______ __ ___ ____ ____ _______ .______ _______. | _ \ / __ \ / | / | \ \ / / / | | _ \ | | / \ \ \ / / | ____|| _ \ / | | |_) ...
local lu = require 'luaunit' local openssl = require 'openssl' local csr = openssl.x509.req local helper = require 'helper' TestPKCS12 = {} function TestPKCS12:setUp() self.alg = 'sha1' self.dn = openssl.x509.name.new({{commonName = 'DEMO'}, {C = 'CN'}}) self.ca = helper.get_ca() self.digest = 'sha1WithRSAEn...
FACTION.name = "Atom" FACTION.desc = "Custom faction for only some people to use." FACTION.color = Color(255, 0, 0) FACTION.isDefault = false FACTION.pay = 0 FACTION.isGloballyRecognized = false --[[ FACTION.weapons = { "nut_stunstick" } --]] --[[ FACTION.models = { "models/police.mdl", "models/alyx.mdl" } --]] F...
gg_trg_Initialization = nil gg_unit_Hblm_0003 = nil gg_unit_Hpal_0002 = nil function InitGlobals() end function CreateUnitsForPlayer0() local p = Player(0) local u local unitID local t local life gg_unit_Hblm_0003 = CreateUnit(p, FourCC("Hblm"), 44.7, -860.1, 3.208) end function CreateUnitsFor...
-- This gives us plain fancy break in LaTeX. local hashrule = [[<w:p> <w:pPr> <w:pStyle w:val="HorizontalRule"/> <w:ind w:firstLine="0"/> <w:jc w:val="center"/> </w:pPr> <w:r> <w:t>#</w:t> </w:r> </w:p>]] function HorizontalRule (elem) -- print("FORMAT: " .. FORMAT) if FORMAT == 'lat...
--[[ 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...
dofile "configs.lua" local system<const> = require "coutil.system" coroutine.resume(coroutine.create(function () for i = 1, repeats do system.suspend() end end)) system.run()
local x = 1 repeat x = 2 - x until condition print(x)
LinkLuaModifier("modifier_generic_bonus", "modifiers/modifier_generic_bonus.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_devastator_slow_movespeed", "modifiers/modifier_item_devastator_slow_movespeed.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_devastator_reduce_armor", "modifiers/mo...
-- Internal modules local FluentSyntax = require("fluent.syntax") describe('fluent.syntax', function () local syntax = FluentSyntax() it('should be independently instantiatable', function () assert.is_true(syntax:is_a(FluentSyntax)) end) describe('parsestring', function () it('should be called as a ...
-- 协程锁,在协程挂起时,防止重入 local skynet = require "skynet" local mt = {} mt.__index = mt function mt:_lock(co) assert(self.locked == false) self.locked = co self.lock_count = 1 end function mt:lock() local co = coroutine.running() if self.locked == co then self.lock_count = self.lock_count + 1 ...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Action = require(Modules.Common.Action) return Action(script.Name, function(assets, fullReset) return { assets = assets, fullReset = fullReset, } end)
 local function ZoomTest(s, e) crossSplitter.Zoom(curZoom) curZoom = curZoom + 1 if curZoom == 4 then curZoom = 0 end end local function UnZoomTest(s, e) crossSplitter.UnZoom() end local function CenterPanels(s, e) crossSplitter.CenterPanels() crossSplitter.UnZoom() end local function ToggleSplitters(s, e)...
local gears = require("gears") local awful = require("awful") local mod_key = require("config.keys.mod").mod_key return gears.table.join( awful.button({ }, 1, function(c) c:emit_signal("request::activate", "mouse_click", { raise = true }) end), awful.button({ mod_key, }, 1, function(c) c:emi...
require("CommunityAPI") require("Items/SuburbsDistributions") require("Items/ProceduralDistributions") local MainDistributionTable = {} ---@param locationParts table<string> local function getLocation(locationParts) if type(locationParts) == "table" then local partCount = #locationParts --local lo...
function plugindef() finaleplugin.RequireSelection = true finaleplugin.Author = "Carl Vine" finaleplugin.AuthorURL = "http://carlvine.com" finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/" finaleplugin.Version = "v1.45" finaleplugin.Date = "2022/05/16" finalep...
local N = ... N = (N or require "NTest")("ws2812 buffers") local buffer, buffer1, buffer2 local function initBuffer(buf, ...) for i,v in ipairs({...}) do buf:set(i, v, v*2, v*3, v*4) end return buf end local function equalsBuffer(buf1, buf2) return eq(buf1:dump(), buf2:dump()) end N.test('initialize a ...
local telescope = require "telescope" local actions = require "telescope.actions" local actions_layout = require "telescope.actions.layout" telescope.setup { defaults = { multi_icon = "", layout_strategy = "flex", scroll_strategy = "cycle", selection_strategy = "reset", winblend = 0, layout_c...
include("core/client.lua") include("shared.lua") local fmt = "LuaChip\nOwner: %s\nTime spent: %i/%i μs" local fmterr = "LuaChip\nOwner: %s\nTime spent: %i/%i μs\nErrored" local white = Color(255, 255, 255, 255) function ENT:Think() if self:BeingLookedAtByLocalPlayer() then local owner = self:GetPlayer() local nic...
-- Copyright (c) Jérémie N'gadi -- -- All rights reserved. -- -- Even if 'All rights reserved' is very clear : -- -- You shall not use any piece of this software in a commercial product / service -- You shall not resell this software -- You shall not provide any facility to install this particular software in a c...
As we have seen already, we can use either a function or a table as the third argument to string.gsub, instead of a string. When invoked with a function, string.gsub calls the function every time it finds a match; the arguments to each call are the captures, and the value that the function returns becomes the replaceme...
local a={}a.runs={[1]={["start_race"]={-3176.6313476563,903.27117919922,14.355350494385},["racing_line"]={{-3228.1613769531,1003.5827636719,11.66014957428},{-3218.1733398438,1076.9240722656,10.233620643616},{-3177.3332519531,1221.2166748047,9.3602294921875},{-3061.4797363281,1375.2548828125,19.879877090454},{-3035.6083...
-- Univariate and multivariate statistics on redis local statistics = {} if not (KEYS and ARGV) then tabletools = require('tabletools') end local function add_field_names(key, field_values, serie_names) local fields = {} for field, values in pairs(field_values) do table.insert(fields, fi...
--ZFUNC-readfile-v1 local function readfile( filename ) --> str, err local f, err = io.open( filename, "r" ) if err then return nil, err end local str, err = f:read( "*a" ) if err then return nil, err end local res, err = f:close() if err then return nil, err end return str end --ZFUNC-trim-v1...
-- conflict marker highlights local lush = require "lush" local base = require "nano.base" local M = {} M = lush(function() return { ConflictMarkerBegin { bg = base.Success.fg.mix(base.Normal.bg, 76) }, ConflictMarkerOurs { bg = base.Success.fg.mix(base.Normal.bg, 76) }, ConflictMarkerTheirs { bg = base.Salien...
-- mts_log_format local l = require("lpeg") l.locale(l) local M = {} setfenv(1, M) local date_fullyear = l.Cg(l.digit * l.digit * l.digit * l.digit, "year") local date_month = l.Cg(l.P"0" * l.R"19" + "1" * l.R"02", "month") local date_mday = l.Cg(l.P"0" * l.R"19" ...
local Debug = {} Debug.active = false Debug.maxlen = 75 Debug.stack = {} function Debug.pbegin(name) if Debug.active then if string.len(name) > Debug.maxlen then name = string.sub(name,1,Debug.maxlen).."..." end table.insert(Debug.stack, {name,os.clock()}) print("[profile] => "..name) end ...
local api = vim.api local M = { float_win_id = 0, } function M:create_float_win(buf_id) if self.float_win_id ~= 0 then self:close_float_win() end self.float_win_id = api.nvim_open_win(buf_id, true, self:get_float_win_config()) --api.nvim_win_set_option(self.float_win_id, 'winhl', 'NormalFloat:Pmenu') --...
local ft = vim.opt_local.filetype:get() require('utils.buffers').setup(ft, { expandtab = false, tabstop = 4, shiftwidth = 0, softtabstop = -1, })
local playMode = GAMESTATE:GetPlayMode() if playMode ~= 'PlayMode_Regular' and playMode ~= 'PlayMode_Rave' and playMode ~= 'PlayMode_Battle' then curStage = playMode; end; local sStage = GAMESTATE:GetCurrentStage(); local tRemap = { Stage_1st = 1, Stage_2nd = 2, Stage_3rd = 3, Stage_4th = 4, Stage_5th = 5, ...
corran_horn_missions = { { missionType = "escort", primarySpawns = { { npcTemplate = "chandra_conrad", npcName = "Chandra Conrad" } }, secondarySpawns = { { npcTemplate = "thug", npcName = "a thug" }, { npcTemplate = "thug", npcName = "a thug" } }, itemSpawns = {}, rewards = ...
local width, height = 1280, 720 rl.SetConfigFlags(rl.FLAG_WINDOW_UNDECORATED) rl.InitWindow(width, height, "raygui - portable window") rl.SetTargetFPS(75) local mouse_pos = rl.new("Vector2", 0, 0) local window_pos = rl.GetWindowPosition() local pan_offset = rl.new("Vector2", mouse_pos) local drag_window = false loca...
--[[ English Translations Default language --]] local L = LibStub("AceLocale-3.0"):NewLocale("Combuctor", "enUS", true) L.Updated = 'Updated to v%s' --binding actions L.ToggleInventory = "Toggle Inventory" L.ToggleBank = "Toggle Bank" --frame titles L.InventoryTitle = "%s's Inventory" L.BankTitle = "%s's Bank" ...
local playsession = { {"Dammpi", {179948}}, {"iReed", {179392}}, {"Krono", {177943}}, {"HYPPS", {142869}}, {"toddrofls", {46031}} } return playsession
---@type Config local Config = ECSLoader:ImportModule("Config") local _Config = Config.private ---@type Stats local Stats = ECSLoader:ImportModule("Stats") ---@type i18n local i18n = ECSLoader:ImportModule("i18n") function _Config:LoadManaSection() return { type = "group", order = 5, inlin...
return { ["id"]=10030, ["name"]="尼尔测试", ["groupName"]="Demo测试关卡", ["playStartAnimation"]=true, ["fadeIn"]=true, ["sceneName"]="Test_Nier.unity", ["sceneFile"]="Assets/Scenes/Test_Nier.unity", ["soundEventName"]="", ["desc"]="", ["cameraEffect"]={ ["templateId"]=0, ["appoint"]=false, ["center"]=FixedVect...
local colors = { bg_main = '#ffffff', fg_main = '#000000', bg_dim = '#f8f8f8', fg_dim = '#282828', bg_alt = '#f0f0f0', fg_alt = '#505050', bg_active = '#d7d7d7', fg_active = '#...
Locales ['pl'] = { ['buy_license'] = 'czy chcesz kupić licencję?', ['yes'] = '%s', ['no'] = 'nie', ['weapon_bought'] = 'purchased for %s PLN', ['not_enough_black'] = 'nie masz wystarczająco brudnej kasy', ['not_enough'] = 'nie masz wystarczająco pieniędzy', ['already_owned'] = 'you already own this...
local aptitudesScaling = { ["1"] = 6, ["2"] = 6, ["3"] = 6, ["4"] = 6, ["5"] = 5, ["6"] = 5, ["7"] = 5, ["8"] = 5, ["9"] = 4, ["10"] = 4, ["11"] = 4, ["12"] = 4, ["13"] = 3, ["14"] = 3, ["15"] = 3, ["16"] = 3, ["17"] = 2, ["18"] = 2, ["19"] = 2...
local null_ls = require('null-ls') local b = null_ls.builtins local M = {} M.get_config = function(on_attach) return { sources = { b.code_actions.eslint_d, b.completion.spell, b.diagnostics.codespell, b.diagnostics.eslint_d, b.diagnostics.hadolint, b.diagnostics.markdownlint,...
local _, ns = ... local oUF = ns.oUF or oUF local referenceSpells = { 5308, -- Warrior 20217, -- Paladin 1978, -- Hunter 1752, -- Rogue 588, -- Priest 47541, -- Death Knight 2645, -- Shaman 118, -- Mage 686, -- Warlock 17057...
return function() local Workspace = game:GetService("Workspace") local CollectionService = game:GetService("CollectionService") local Rosyn = require(script.Parent) Rosyn.SuppressWarnings = true local function MakeClass() local Class = {} Class.__index = Class Class.Type = "...
isShopVisible = false function setVisible(visible) visible = not not visible if isShopVisible == visible then return end isShopVisible = visible showCursor(visible) if visible then localPlayer.interior = 18 localPlayer.position = Vector3(0, 3500, 200) localPlaye...
local awful = require("awful") local naughty = require("naughty") local user_config = require("widget.screen-recorder.screen-recorder-config") local scripts_tbl = {} local ffmpeg_pid = nil -- Get user settings scripts_tbl.user_resolution = user_config.user_resolution scripts_tbl.user_offset = user_config.user_offset s...
local GLayer = require("graphic.core.GLayer") local EffectLayer = class("EffectLayer",GLayer) function EffectLayer:ctor() GLayer.ctor(self) end function EffectLayer:createGameObject() local name = getmetatable(self).__className -- self._go = g_2dTools:createGameObject(name) self._go = g_2dToo...
-- -- Premake 4.x build configuration script -- build_base = "./" project_name = "layerExSave" solution (project_name) configurations { "Release", "Debug" } location (build_base .. _ACTION) objdir (build_base .. _ACTION .. "/obj") targetdir ("bin") flags { "No64BitChecks", -- "ExtraWarnings",...
DonateMessage = Sprite:extend("DonateMessage") function DonateMessage:new(...) DonateMessage.super.new(self, ...) self:setImage("lekker_spelen/donate_images/lekker_gier", 152, 152) self.anim:add("idle", nil, 25) self.x = self.x - self.width/2 local dc = { white = {1, 1, 1}, small = {173/255, 253/255 ,28/255...
FrelHudConfig = {} FrelHudConfig.Colors = { -- Color palette background = Color(51,51,51), text_color = Color(241,241,241), notify = { [ 0 ] = Color(255,128,51), -- Generic [ 1 ] = Color(225,0,0), -- Error [ 2 ] = Color(51,128,255), -- Undo [ 3 ] = Color(0,215,15), -- Cleanup [ 4 ] = Color(136,6...
-- -- base64.lua -- -- URL safe base64 encoder/decoder -- -- https://github.com/diegonehab/luasocket local mime = require 'mime' local _M = {} --- base64 encoder -- -- @param s String to encode (can be binary data) -- @return Encoded string function _M.encode(s) local u local padding_len = 2 - ((#s-1) % 3) ...
local timer = 0 local window = { width = 1280, height = 720, } local Keyboard = lstg.Input.Keyboard local task = require("task") local global_tasks = task.Manager() local global_color = lstg.Color(255, 0, 0, 0) local function set_camera() lstg.SetViewport(0, window.width, 0, window.height) lstg.SetSciss...
BigWigs:AddColors("Forgemaster Garfrost", { [68789] = "blue", [70381] = {"blue","yellow"}, }) BigWigs:AddColors("Ick & Krick", { [68987] = {"blue","yellow"}, [68989] = "orange", [69263] = "red", [70274] = "blue", }) BigWigs:AddColors("Scourgelord Tyrannus", { [69167] = "red", [69172] = {"blue","yellow"}, [6...
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Magian Moogle (Orange Bobble) -- Type: Magian Trials NPC (Weapon/Empyrean Armor) -- !pos -11 2.453 118 64 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); local ID = require("scripts/zones/...
local xinji = require("xinji") local file = assert(..., "file expected") local types = assert(xinji.evaluate(file)) local function getIndentStr(amount) if amount < 1 then return "" elseif amount == 1 then return "- " else local r = { } for i = 1, amount - 1 do r...
return { editor = { -- 'abolish', -- 'align', 'comment', -- 'exchange', -- 'surround', }, lang = { -- 'org' -- 'zig', -- zsh = { -- 'zinit', -- }, }, tools = { 'async', 'dirvish', 'eunuch', 'fzf', 'git', 'undo_tree', 'unimpaired', }, ui = { 'colorscheme', -- 'goyo', -...
local Player = ... local pn = ToEnumShortString(Player) local CanEnterName = SL[pn].HighScores.EnteringName if CanEnterName then SL[pn].HighScores.Name = "" end if PROFILEMAN:IsPersistentProfile(Player) then SL[pn].HighScores.Name = PROFILEMAN:GetProfile(Player):GetLastUsedHighScoreName() end local t = Def.ActorFr...
path={ player=nil, from=nil, to=nil, --{idle,find,apply} state="idle", found=false, --open nodes to explore, --ordered by priority open={}, --cost for each node cost={}, --grid to discretize space grid=8, --sequence of btns from->to btns={}, --find a path --for `player` --from `from` to `to` --wi...
---@type Force local Force = require('lib.stdlib.oop._generated._force') ---size ---@return integer function Force:size() local count = 0 self:forEach(function() count = count + 1 end) return count end ---@type Force local ALL_PLAYERS do if bj_FORCE_ALL_PLAYERS then ALL_PLAYERS = F...
fx_version 'cerulean' game 'gta5' ui_page "nui/index.html" client_scripts { '@vrp/lib/utils.lua', "hansolo/hansolo.lua" } server_scripts { '@vrp/lib/utils.lua', "skywalker.lua" } files { "nui/*", "nui/**/*", "nui/biomp/*", "nui/biomp/**/*", "nui/build/*", "nui/build/**/*", ...
-- @Author: LisaChen -- @Date: 2017-11-27 11:37:41 -- @Last Modified by LisaChen -- @Last Modified time 2018-09-04 13:10:57 local CardBase = import("..base.CardBase") local M = class(CardBase) M.description = [[ 功能描述说明: 上一出牌是【三炸/四炸】时,【2】张【4】 参数说明: self._args = {[1] = '三炸/四炸',[2] = 2,[3] = 4,} ]...
if (SERVER) then AddCSLuaFile() end --ppk sound.Add({ name="Weapon_ppk.Single", volume = 1.0, pitch = {100,105}, sound = "weapons/ppk/ppk_fp.wav", level = 142, channel = CHAN_STATIC }) sound.Add({ name="Weapon_ppk.Magrelease", volume = 0.2, sound = "weapons/ppk/handling/ppk_magrelease.wav", level = 65, chan...
--- Defines a @{Frame}'s Background. -- @classmod Background local Base = require("vyzor.base") local Alignment = require("vyzor.enum.alignment") local Repeat = require("vyzor.enum.repeat") local Background = Base("Component", "Background") --- Background Constructor -- @function Background -- @tparam Brush|Image in...
local clientTeleport = require(game.ReplicatedStorage:WaitForChild("modules").client.teleport) game.ReplicatedStorage.events:WaitForChild("teleportPlayer").OnClientEvent:Connect(function(placeId, extraTeleports) clientTeleport.teleportAsync(placeId, extraTeleports) end)
local function get_first_item_signal(control) local connector_id = defines.circuit_connector_id.combinator_input local green_network = control.get_circuit_network(defines.wire_type.green, connector_id) -- Try to find an item signal in the green network if green_network and green_network.signals then ...
local parser = require("neo-tree.command.parser") local log = require("neo-tree.log") local manager = require("neo-tree.sources.manager") local utils = require("neo-tree.utils") local renderer = require("neo-tree.ui.renderer") local inputs = require("neo-tree.ui.inputs") local completion = require("neo-tree.command.c...
local goo = tostring(_ENV) all = {} for k, v in pairs(_G) do all["_G " .. k] = v end for k, v in pairs(_ENV) do all["_ENV " .. k] = v end for k, v in pairs(all) do print(k .. " = " .. tostring(v)) end
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== local _slots = {} PrgAmbientLife["VisitDefault"] = function(unit, bld) PrgVisitHolder(unit, bld) if unit.visit_restart then return end end
include("build/yacc.lua") yacc { name = "zmacparser", srcs = { "./zmac.y" } } cprogram { name = "doc", srcs = { "./doc.c" }, vars = { ["+cflags"] = { "-DDOC_DEBUG", "-Ddoc=main" } } } normalrule { name = "doc_inl", ins = { "+doc", "./doc.txt" }, outleaves = { "doc.inl" }, commands = { "cd %{di...
local system = {} function system.reboot(message, delay) if (message ~= nil) then print(message) end tmr.unregister(config.TIMER_REBOOT) tmr.register(config.TIMER_REBOOT, delay or config.WAIT_FOR_RESTART, tmr.ALARM_SINGLE, function() node.restart() end) tmr.start(config.TIMER_REBOOT) end ...
local Timer, super = Class(Object) function Timer:init(active) super:init(self) self.timer = LibTimer.new() if active ~= nil then self.active = active end end function Timer:after(delay, func) return self.timer:after(delay, func) end function Timer:script(func) return self.timer:scr...
-- theme identification: themeInfo = { ProductCode = "DDR X2", Name = "DDR X2", Version = "r0", Date = "20171102", Author = "Inorizushi & tertu" }
--------------------------------------------------------------------------------------------------- -- User story: Smoke -- Use case: SetGlobalProperties -- Item: Happy path -- -- Requirement summary: -- [SetGlobalProperties] SUCCESS on TTS.SetGlobalProperties and UI.SetGlobalProperties -- -- Description: -- In case mo...
package("xz") set_homepage("https://tukaani.org/xz/") set_description("General-purpose data compression with high compression ratio.") set_urls("https://downloads.sourceforge.net/project/lzmautils/xz-$(version).tar.gz", "https://tukaani.org/xz/xz-$(version).tar.gz") add_versions("5.2.4", ...
local hotpatch_tools = require 'hotpatch.mod-tools' hotpatch_tools.static_mod('hotpatch-gui', '1.0.4', [===[ --[[ Copyright 2018 Chrisgbk 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 re...
levels[7]={timeBetweenParticleCreation=150,weightBreakForTwoStars=400,weightBreakForThreeStars=600,numPortExplosionsWeight=150,numDiverterExplosionsWeight=50,numAntimatterExplosionsWeight=150,numParticlesInSinkWeight=75,numParticlesInPrisonWeight=75,background="2",particleSpeed=2,maxParticles=2,particlesToComplete=4,po...
----------------------------------- -- Area/Content Identifiers ----------------------------------- SANDORIA = { ['full_name'] = "San d' Oria", ['mission_log']= 0, ['quest_log']= 0, ['fame_area']= 0 } BASTOK = { ['full_name'] = "Bastok", ['mission_log']= 1, ['quest_log']= 1, ['fame_are...
if SERVER then AddCSLuaFile() end ENT.Category = "No More Room In Hell" ENT.PrintName = "357 Magnum Ammunition" ENT.Author = "Black Tea" ENT.Type = "anim" ENT.Base = "base_ammo_nmrih" ENT.Spawnable = true ENT.AdminOnly = true ENT.AmmoType = "357MAG" ENT.AmmoAmount = 10 ENT.AmmoMax = 60 ENT.Model = Model("models/ite...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
--!A cross-platform build utility based on Lua -- -- 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 law...
function countHexDigits(num) if num == 0 then return 1 end; if num == 1 then return 1 end; local count = 0; num = abs(num); while num > 1 do num = num / 16; count = count + 1; end return count; end function Dec2Hex(nValue) if type(nValue) == "string" then nValue = ...
modifier_invoker_sun_custom_thinker = class({}) function modifier_invoker_sun_custom_thinker:OnCreated(params) self.caster = self:GetCaster() self.origin = self:GetParent():GetAbsOrigin() self.radius = self:GetAbility():GetSpecialValueFor("radius") if IsServer() then self.damage_table = { ...
include "container.array" include "container.set" include "container.queue" _ENV=namespace "container" using_namespace "luaClass" template("graph",false) --此数据结构要求给出顶点数组或者表 function graph:graph(data) local _data=is(data,array) and data or array(any)(data) self._data=_data local edges=array(set(number))()...
--Utility functions for converting to/from enumerators and constants require "_Utils" local common = "_ConvCommon" local funcs = {} --Creates a new table containing the standard enum model stuff. function funcs.TableAttribToOldEnumModel() return { name = "name", notation = "comment", number = "v...
local S = minetest.get_translator("pipeworks") local fs_helpers = pipeworks.fs_helpers if pipeworks.enable_mese_tube then local function update_formspec(pos) local meta = minetest.get_meta(pos) local old_formspec = meta:get_string("formspec") if string.find(old_formspec, "button1") then -- Old version local ...
local S, L, O, U, D, E = unpack(select(2, ...)); local Module = S:NewNameplateModule('TargetName'); local Stripes = S:GetNameplateModule('Handler'); -- WoW API local UnitName, UnitExists, UnitGroupRolesAssigned = UnitName, UnitExists, UnitGroupRolesAssigned; -- Stripes API local GetUnitColor = U.GetUnitColor; local S...
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("cl_deathnotice.lua") AddCSLuaFile("cl_menu.lua") AddCSLuaFile("cl_scoreboard.lua") AddCSLuaFile("cl_endgame.lua") include("shared.lua") include("sv_database.lua") include("classes/sv_classes.lua") include("sv_funcs.lua") include("sv_commands.lua") in...
-- Window Switcher -- modified from original: https://github.com/Hammerspoon/hammerspoon/issues/856 local module = {} module.focusedAppWins = {} module.windowCycler = nil local focusedAppWindowFilter = hs.window.filter.new(function(win) local focusedWin = hs.window.focusedWindow() return ( win:isStandar...
require("lvim.lsp.manager").setup("yamlls", { settings = { yaml = { hover = true, completion = true, validate = true, schemaStore = { enable = true, url = "https://www.schemastore.org/api/json/catalog.json", }, schemas = { ["http://json.schemastore.org/g...
print "enter function to be plotted (with variable `x'):" local l = io.read() local f = assert(load("return " .. l)) for i = 1, 20 do x = i -- global `x' (to be visible from the chunk) print(string.rep("*", f())) end
local run = game:GetService("RunService") local storage = require(script.Parent.RoutingStorage) local function setupMethodRouting(router, methodRemotes) for _, remote in ipairs(methodRemotes:GetChildren()) do --[[ All of our Services use colon notation for their methods. This is to stay consistent with R...
-- Include the Advanced NPC System dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua') function selfIdle() following = false attacking = false focus = 0 target = 0 end function isConfirmMsg(str) if string.find(str, ",") then return false end local a = {"yes", "ok", "sure", "alright", "ri...
pace = pace or {} -- for the default models resource.AddWorkshop("104691717") pace.Parts = pace.Parts or {} pace.Errors = {} do util.AddNetworkString("pac.TogglePartDrawing") function pac.TogglePartDrawing(ent, b, who) --serverside interface to clientside function of the same name net.Start("pac.TogglePartDrawi...