content
stringlengths
5
1.05M
return { ping = { ping = "PINGING...", pong = "PONG! ``{{arg1}}MS``", description = "SHOWZ PUNG PONG" }, help = { embedTitle = "HALP FOR TIGER 2.0.0.0", embedDescription = "UZE LE REACTSHUNS TO FILTAR THRU LE COMMANDZ", description = "SHOWS DIS MENU", } }
local M = {} M.config = function() local status_ok, command_center = pcall(require, "command_center") if not status_ok then return end -- local noremap = { noremap = true } -- local silent_noremap = { noremap = true, silent = true } command_center.add({ { description = "Search within the project (Li...
pVehicle = getPedOccupiedVehicle ( localPlayer ) local lastVehicle = nil -- Yeah, lots of eventhandlers for one thing. -- This will be triggered when a player is warped into a vehicle. addEventHandler ( "onClientPlayerVehicleEnter", localPlayer, function ( vehicle ) pVehicle = vehicle checkVehicle...
local M = {} M.Color = require("colorbuddy.color").Color M.Group = require("colorbuddy.group").Group M.colors = require("colorbuddy.color").colors M.styles = require("colorbuddy.style").styles return M
-- $Id: featuredefs_post.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: featuredefs_post.lua -- brief: featureDef post processing -- author: Dave Ro...
project "Compression-zstd" AddModuleConfig() uuid "BB7C69B1-33CC-4FF8-8CC8-D8A46A07A3FF" pchheader "stdafx_zstd.h" pchsource "../src/stdafx_zstd.cpp" includedirs { "../Externals/zstd/lib", }
local hit_effects = require("__base__/prototypes/entity/hit-effects") local sounds = require("__base__/prototypes/entity/sounds") function electric_mining_drill_animation() return { priority = "high", filename = "__base__/graphics/entity/electric-mining-drill/electric-mining-drill.png", li...
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.3" finaleplugin.Date = "2022/06/13" finalepl...
local Tables = {} Tables.__index = Tables ---Returns a copy of the provided table with shuffled entries. ---@param orderedTable table an ordered table that we want to shuffle. ---@return table shuffledTable a copy of the provided table with shuffled entries. function Tables.ShuffleTable(orderedTable) local tempTa...
physicsFolderCMenu = ContextMenuClass.New("RDynamics") physicsFolderCMenu.xpos = 200; physicsFolderCMenu.ypos = 500; physicsFolderCMenu.panel1.cutWindow=1; physicsFolderCMenu.panel1.cutPanel=panels[4]; physicsFolderCMenu.Redraw(physicsFolderCMenu) item =physicsFolderCMenu.AddListItem(physicsFolderCMenu,"Select Models...
-------------------------------------------------------------------------------- -- 0160-string.lua: tests for string-related tools -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) --------------------------------------------------------------------...
local root = (...) .. "." local modules = { "Children", "Compose" } local Rukt = {} for _, moduleName in ipairs(modules) do Rukt[moduleName] = require(root .. moduleName) end return Rukt
local cqueues = require 'cqueues' local tcheck = require 'tcheck' local xerror = require 'tulip.xerror' local function register_packages(app, cfg) local pkgs = {} -- First, require the top-level keys that represent packages. for k, v in pairs(cfg) do local full_name -- if there is no '.' in the key, tr...
local function defaults() LobbyTimer = 30 RoundDuration = 300 RoundEndTime = 5 RoundCount = 0 RoundLimit = 5 RoundScore = {red = 0, blue = 0} end defaults() function RoundMsg(asd) net.Start("Cheats:RoundMsg") net.WriteString(asd) net.Broadcast() end function GameStop() RoundMsg("Stopping game..") hook.Remo...
require('settings/telescope') require('settings/autosave') require('settings/neogit') require('settings/treesitter') require('settings/neorg') require('settings/lualine') require('settings/cmp') require('settings/substitute') require('settings/dial') require('settings/comment') require('settings/yabs') require('setting...
AddRemoteEvent("ATMDeposit", function(player, amount) if player_data[player] == nil then return end if player_data[player].cash >= amount then player_data[player].cash = player_data[player].cash - amount player_data[player].balance = player_data[player].balance + amount AddPl...
local fn = vim.fn local fmt = string.format -- Global namespace -----------------------------------------------------------------------------// --- Inspired by @tjdevries' astraunauta.nvim/ @TimUntersberger's config --- store all callbacks in one global table so they are able to survive re-requiring this file _G.__as_...
AccountHeadCcsItem = class("AccountHeadCcsItem") AccountHeadCcsItem.onCreationComplete = function (slot0) ClassUtil.extends(slot0, CcsListViewItem) slot0._items = {} slot1 = 1 while true do if not slot0["iconNode" .. slot1] then break else table.insert(slot0._items, slot2) end slot1 = slot1 + 1 e...
local LinkedList = {} LinkedList.__index = LinkedList function LinkedList:push(v) local old_head = self._head self._head = { v = v, next = old_head } if old_head then old_head.prev = self._head end if not self._tail then self._tail = self._head end end function LinkedList:pop() local v = self._head.v self...
local gunSettings = { fireMode = "SEMI"; damage = 25; headshotMultiplier = 1.5; rateOfFire = 300; --Rounds per minute range = 500; rayColor = Color3.fromRGB(255, 160, 75); raySize = Vector2.new(0.25, 0.25); --Width and height debrisTime = 0.075; } return gunSettings
//Marine Stuctures kPowerNodeCost = 0 kExtractorCost = 10 kExtractorBuildTime = 10 kInfantryPortalCost = 15 kInfantryPortalBuildTime = 7 kCommandStationCost = 15 kCommandStationBuildTime = 15 kNanoShieldResearchCost = 20 kNanoSnieldResearchTime = 60 kCatPackTechResearchCost = 20 kCatPa...
----------------------------------- -- Area: Mount_Kamihr ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.MOUNT_KAMIHR] = { text = { }, mob = { }, npc = { }, } return zones[tpz.zone.MOUNT_KA...
dofile('/home/raj/workspace/p4-traffictool/samples/mri/output/wireshark/mri_1_ipv4.lua') dofile('/home/raj/workspace/p4-traffictool/samples/mri/output/wireshark/mri_2_ipv4_option.lua') dofile('/home/raj/workspace/p4-traffictool/samples/mri/output/wireshark/mri_3_mri.lua') dofile('/home/raj/workspace/p4-traffictool/samp...
-- God local function PlayerHasGod() return Script().StateWatcher:GetState("god") == true end local function PlayerSetGod(on) local playerid = GetLocalPlayerEntityId() Script().StateWatcher:SetState("god", on) if on then ActivateInvincibility(playerid) SetPawnImmuneToDeath(playerid, 1) ScriptHook.ShowNotific...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: config.lua -- brief: configfile for handler.lua -- author: jK -- -- Copyright (C) 2011-2013. -- Licensed under the terms of the GNU GPL...
----------------------------------- -- Area: Cloister of Tremors -- Mob: Galgalim -- Involved in Quest: The Puppet Master ----------------------------------- require("scripts/globals/settings") ----------------------------------- function onMobDeath(mob, player, isKiller) player:setCharVar("BCNM_Killed", 1) ...
AllMapsRatings = {} local mapRatings = { -- [resourceName] = {likes = 0, dislikes = 0} } local function parseReceivedRatings(received) local allRatings = {} for _, v in ipairs(received) do allRatings[v.mapresourcename] = {likes = v.likes or 0, dislikes = v.dislikes or 0} end return allRatin...
-- libtiff 4.0.6 -- http://www.libtiff.org/ -- ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.6.zip -- /external/libtiff group "Libraries" project "libtiff" kind "StaticLib" language "C++" location "../build/projects" targetdir "../build/lib/%{cfg.buildcfg}/%{cfg.platform}" filter "configurations:Debu...
require "utils" local sys = require "sys" local elasticsearch = require "elasticsearch" local es = elasticsearch:new { domain = "http://localhost:9200" -- domain参数一定要以http/https://开头, 并且结尾不能加上/ } local function test_get_status_info( ... ) -- -- 获取节点信息 -- local ok, ret = es:status() -- print(ok) var_dump(ret...
#!/usr/bin/lua local fmt = string.format local function dump_fmt(n, str) for i = 1, n do io.stdout:write(" ") end if not str then local s = '' end io.stdout:write(tostring(str)) end --for no share child table and loop table local function __dump(t, depth) depth = depth + 1...
wifiwidget = widget({type = "textbox", name = "wifiwidget", align = "right" }) function wifiInfo() spacer = " " local w = assert(io.popen("awk 'NR==3 {print substr(\$3,0,2) \"%\"}' /proc/net/wireless ",'r')) local wifiStrength = (w:read('*a')) w:close() wifiwidget.text = " Wifi:"..spacer..wifi...
function displayFPS() setColor(colors['black']) love.graphics.print('FPS: ' .. tostring(love.timer.getFPS()), 0, 0) end -- loads game data function loadData() -- using the bitser library data is serialized for and deserialized for easy storage if love.filesystem.exists('save-data.dat') then ret...
-- Copyright 2022 SmartThings -- -- 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 or agreed to in ...
local lgi = require("lgi") local DBus = require("utils.dbus_wrapper.bus") local Call = require("utils.dbus_wrapper.call") local constants = require("utils.constants") local sig = require("theme.fly.signal") local Gio = lgi.Gio local GLib = lgi.GLib local nm = {} local id, type local bus local function get_current_act...
object_ship_nova_orion_boss_ship_tier2 = object_ship_shared_nova_orion_boss_ship_tier2:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_boss_ship_tier2, "object/ship/nova_orion_boss_ship_tier2.iff")
object_mobile_coa_lag_personnel_hum_f3 = object_mobile_shared_coa_lag_personnel_hum_f3:new { } ObjectTemplates:addTemplate(object_mobile_coa_lag_personnel_hum_f3, "object/mobile/coa_lag_personnel_hum_f3.iff")
local Net = {} Net.open_browser = _ENV.native.net.open_browser return Net
local rules = require "scripts.rules" local animations = require "character.animations" local Character = require "character.character" local CastleSteward = Character:new() function CastleSteward:new(o, control) o = o or Character:new(o, control) setmetatable(o, self) self.__index = self return o end funct...
-- 根据外面传过来的IDList 做“集合去重” local key=KEYS[1]; local args=ARGV local i=0; local result={}; for m,n in ipairs(args) do local ishit=redis.call("sismember",key,n); if(ishit) then table.insert(result,1,n); end end return result;
local route_214_0 = DoorSlot("route_214","0") local route_214_0_hub = DoorSlotHub("route_214","0",route_214_0) route_214_0:setHubIcon(route_214_0_hub) local route_214_1 = DoorSlot("route_214","1") local route_214_1_hub = DoorSlotHub("route_214","1",route_214_1) route_214_1:setHubIcon(route_214_1_hub)
--[[ -- @Name: tasknManager -- @Author: Lupus590 -- @License: MIT -- @URL: -- TODO: url -- -- If you are interested in the above format: http://www.computercraft.info/forums2/index.php?/topic/18630-rfc-standard-for-program-metadata-for-graphical-shells-use/ -- -- The MIT License (MIT) -- -- Copyright 2019 Lu...
Property = {} Property.__index = Property function Property:Create(info) if not info or not info.id then error("invalid property definition (no info or id)") end local property = setmetatable(info, Property) return property end function Property:HasKey(id) if not self.keys then return false end return self....
module(..., package.seeall) -------------------------------------------------------------------------------- -- Event Handler -------------------------------------------------------------------------------- function onCreate(e) scrollView = widget.ScrollView { scene = scene, bouncePolicy = {false,...
ELONA.i18n:add { net = { failed_to_send = "送信に失敗した。", failed_to_receive = "受信に失敗した。", chat = { wait_more = "もう少し待った方がいい気がする。", message = "「{$1}」", sent_message = "{$1}{$2}{$3}", }, death = { sent_message = "{$1}{$2}は{$4}で{$3}{$5}", }, w...
local key = ModPath .. ' ' .. RequiredScript if _G[key] then return else _G[key] = true end function VehicleStateParked:update(t, dt) if self._unit:vehicle():velocity():length() < 0.002 then return end self.super.update(self, t, dt) end
paths.dofile('layers/Residual.lua') local function hourglass(n, numIn, numOut, inp) -- Upper branch local up1 = Residual(numIn,256)(inp) local up2 = Residual(256,256)(up1) local up4 = Residual(256,numOut)(up2) -- Lower branch local pool = nnlib.SpatialMaxPooling(2,2,2,2)(inp) local low1 = ...
--[[ Assume the following code: a = {}; a.a = a What would be the value of a.a.a.a? Is any a in that sequence somehow different from the others? Now, add the next line to the previous code: a.a.a.a = 3 What would be the value of a.a.a.a now? ]]-- a = {}; a.a = a -- The same as a["a"] = a print(a.a.a.a) -- The same a...
Battery = Class{__includes = GameObject} function Battery:init(x,y,active,globalPositioning) GameObject.init(self,x,y,active,globalPositioning) self.source = textures['ButtonCycles'] self.cycle = cycles['BatteryPower'] self.pos = {x=x, y=y} self.charge = 15*3 end function Battery:update() Game...
local cURL = require("lcurl") -- open output file f = assert(io.open("example_homepage.html", "w")) cURL.easy() -- setup url :setopt_url("http://www.example.com/") -- setup file object as writer :setopt_writefunction(f) -- perform, invokes callbacks :perform() -- close easy :close() -- close output file ...
local ColorReductor = {} local ColorHelper = require 'supernova.helpers.color' local TableHelper = require 'supernova.helpers.table' local ANSI = require 'supernova.core.ansi' ColorReductor['COLOR_PALETTES'] = { [256] = require 'supernova.core.reductor.256_vga', [16] = require 'supernova.core.reductor.16_vga', ...
local playsession = { {"WorldofWarIII", {71819}}, {"LtDerp", {71803}} } return playsession
Citizen.CreateThread(function() while true do Citizen.Wait(0) if GetPlayerWantedLevel(PlayerId()) ~= 0 then SetPlayerWantedLevel(PlayerId(), 0, false) SetPlayerWantedLevelNow(PlayerId(), false) SetPoliceIgnorePlayer(PlayerId(), true) SetDispatchCopsFor...
local giftBagTextFiles = { ["Public/CMP_LevelUpEquipment/Stats/Generated/Data/Armor.txt"] = "Public/SorcerousSundriesFixed_bec8c59f-7ae9-478d-9a9e-f49d22aa520f/Stats/Generated/Data/LLSUNDRIES_Armor.txt", ["Public/CMP_LevelUpEquipment/Stats/Generated/Data/Shield.txt"] = "Public/SorcerousSundriesFixed_bec8c59f-7a...
local create = require "create" function newWall( x, y, w, h ) walls[#walls + 1] = newColl( "wall", x, y, w, h ) end function lineToRect( x1, y1, x2, y2, size ) if( x1 == x2 ) then local x = x1 local y = math.min( y1, y2 ) local w = size local h = math.max( y1, y2 ) - y + size...
local pn = GAMESTATE:GetEnabledPlayers()[1] local profile = GetPlayerOrMachineProfile(pn) local user = playerConfig:get_data(pn_to_profile_slot(pn)).Username local pass = playerConfig:get_data(pn_to_profile_slot(pn)).Password if isAutoLogin() then DLMAN:LoginWithToken(user, pass) end local screenChoices = { Screen...
--[[----------------------------------------------------------------------- * | Copyright (C) Shaobo Wan (Tinywan) * |------------------------------------------------------------------------ * | Author: Tinywan * | Date Time : 2019/5/28 16:25 * | Email: Overcome.wan@Gmail.com * | Desc: 网关接口限流 https://github...
EditorLootBag = EditorLootBag or class(MissionScriptEditor) EditorLootBag.USES_POINT_ORIENTATION = true EditorLootBag._test_units = {} function EditorLootBag:create_element() self.super.create_element(self) self._element.class = "ElementLootBag" self._element.values.spawn_dir = Vector3(0, 0, 1) self._element...
local variable = "example"
_G.RenderingDepth = { -- under Salt = 90, Spikes = 100, Tomb = 110, Devices = 120, VampireDead = 150, Default = 200, Player = 220, Key = 240, VampireAlive = 250, God = 9001, -- over } _G.DrawSimpleEntImage = function(ent, imageAsset) if imageAsset then love....
-- the RGB color values return { white = 0xf0f0f0, orange = 0xf2b233, magenta = 0xe57fd8, lightblue = 0x99b2f2, yellow = 0xdede6c, lime = 0x7fcc19, pink = 0xf2b2cc, gray = 0x4c4c4c, silver = 0x999999, cyan = 0x4c9962, purple = 0xb266e5, blue = 0x253192, brown ...
local md local Plugin = {} function Plugin:JoinTeam(gamerules, player, newTeamNumber, force, shineForce) local cancel = false if TGNS.IsGameplayTeamNumber(newTeamNumber) then local client = TGNS.GetClient(player) if not (force or shineForce) and not TGNS.GetIsClientVirtual(client) then local playerList = TGNS...
local M = {} function M.get(cp) return { NeogitBranch = { fg = cp.catppuccin4 }, NeogitRemote = { fg = cp.catppuccin4 }, NeogitHunkHeader = { bg = cp.catppuccin9, fg = cp.catppuccin10 }, NeogitHunkHeaderHighlight = { bg = cp.catppuccin12, fg = cp.catppuccin9 }, NeogitDiffContextHighlight = { bg = cp.catppuc...
local cutils = require 'libcutils' local qmem = require 'Q/UTILS/lua/qmem' qmem.init() local cmd = string.format("find %s -type f -delete", qmem.q_data_dir) return function() os.execute(cmd) -- TODO P4 add rmdir functionality to cutils and use instead of os.exec end
-- Bufferline require('bufferline').setup { options = { numbers = "none", close_command = "bdelete! %d", right_mouse_command = "vertical sbuffer %d", left_mouse_command = "buffer %d", middle_mouse_command = nil, indicator_icon = '▎', buffer_close_icon = '', modified_icon = '●', cl...
local tree_utils = require("kotaro.parser.tree_utils") local identify_containers_visitor = {} function identify_containers_visitor:new() return setmetatable({ scopes = {} }, { __index = identify_containers_visitor }) end function identify_containers_visitor:visit_leaf(node) end local function mark_block(node, bl...
object_building_kashyyyk_poi_kash_rryatt_lvl2_bush_md = object_building_kashyyyk_shared_poi_kash_rryatt_lvl2_bush_md:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl2_bush_md, "object/building/kashyyyk/poi_kash_rryatt_lvl2_bush_md.iff")
local skynet = require "skynet" local function inject(source) return skynet.call("check", "code", source) end return function () inject([[print "hello"]]) inject([[print(skynet)]]) inject([[ local bewater = require "bw.bewater" print(bewater.traceback()) ]]) inject([[print(check_list)]])...
local Debug = require("Debug"); --[[ Test Cases --]] print("Debugger Present: ",Debug:isDebuggerPresent()); print(Debug:write("Hello World"));
require 'totem' require 'distributions' local myTest = {} local tester = totem.Tester() function myTest.chi2PDF() tester:assert(cephes.isinf(distributions.chi2.pdf(0, 1))) tester:assertalmosteq(distributions.chi2.pdf(1, 1), 0.241970724519143, 1e-15) tester:assertalmosteq(distributions.chi2.pdf(2, 1), 0.103...
local M = {} function M.lazy_require(require_path) return setmetatable({}, { __call = function(_, ...) return require(require_path)(...) end, __index = function(_, key) return require(require_path)[key] end, __newindex = function(_, key, value) require(require_path)[key] = value...
----------------------------------------- -- ID: 4717 -- Scroll of Refresh -- Teaches the white magic Refresh ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(109) end function onItemUse(target) target:addSpell(109) end
local pairs = pairs local ipairs = ipairs local lor = require("lor.index") local errorRouter = lor:Router() errorRouter:get("/", function(req, res, next) res:render("error", { msg = req.query.errMsg -- injected by the invoke request }) end) return errorRouter
-- Used for localization, choose either built-in or intllib. local MP, S, NS = nil if (minetest.get_modpath("intllib") == nil) then S = minetest.get_translator("castle_tapestries") else -- internationalization boilerplate MP = minetest.get_modpath(minetest.get_current_modname()) S, NS = dofile(MP.."/intllib.lua...
--[[ MIT License Copyright (c) 2019 Eryn L. K. 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 use, copy, modify, merge, pub...
local E, L, V, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Lua functions local _G = _G local unpack = unpack --WoW API / Variables local CreateFrame = CreateFrame local function PetButtons(btn, p) local button = _G[btn] local icon = _G[btn..'IconText...
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luke Bonham --]] local newtimer = require("lain.helpers").newtimer local wibox = require("wibox") local io ...
if true then print("Executed") end if part.Transparency == 1 then part.CanCollide = true end local humanoid = char.Humanoid if humanoid.Health > 0 then print("Player is alive!") end if not part.Anchored then part.Material = Enum.Material.Neon end local item1 = "Fruit" local item2 = "Ve...
local ipmatcher = require "resty.ipmatcher" local ngx = ngx local kong = kong local error = error local IpRestrictionHandler = { PRIORITY = 990, VERSION = "2.0.0", } local function match_bin(list, binary_remote_addr) local ip, err = ipmatcher.new(list) if err then return error("failed to create a new ...
ys = ys or {} slot1 = class("BattleBuffAddAttrRatio", ys.Battle.BattleBuffAddAttr) ys.Battle.BattleBuffAddAttrRatio = slot1 slot1.__name = "BattleBuffAddAttrRatio" slot1.Ctor = function (slot0, slot1) slot0.super.Ctor(slot0, slot1) end slot1.GetEffectType = function (slot0) return slot0.Battle.BattleBuffEffect.FX_T...
require('nvim-ts-autotag').setup()
require("Menu/MainMenu/mainMenuStyle.lua") require("Game/mapInfo.lua") require("Menu/MainMenu/mapInformation.lua") require("Menu/MainMenu/settingsCombobox.lua") CustomeGameMenu = {} function CustomeGameMenu.new(panel) local self = {} --this = SceneNode() local mapTable = {} local levelInfo = MapInfo.new() --local...
local a="all" local m="men" local f="female" local page = "c" local msg = "" local missionTimer = {} local sellingTimer = {} local MainTable = { } local sold = false local mission = false local item = "" local progress = false local rx, ry = guiGetScreenSize() local nX, nY = 1366, 768 local sX, sY = guiGetScreenSize() ...
--- Check if path is a file -- @name isFile -- @param filename string -- @return boolean if ok return function (f) local f=io.open(f,"r") if f~=nil then io.close(f) return true else return false end end
object_tangible_storyteller_prop_pr_all_lair_webweaver = object_tangible_storyteller_prop_shared_pr_all_lair_webweaver:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_all_lair_webweaver, "object/tangible/storyteller/prop/pr_all_lair_webweaver.iff")
local MAXSLOTS = 1000 local Inventory = Class(function(self, inst) self.inst = inst self.itemslots = {} self.maxslots = MAXSLOTS self.recipes = {} self.recipe_count = 0 self.acceptsstacks = true self.ignorescangoincontainer = false self.opencontainers = {} end) function Inventory...
-- Weltraumprogrammiernacht Config file, for dynamically controllable parameters of the -- simulation. -- Maximum amount of cycles a ship may use per lua function call lua_max_cycles = 10000 -- If we didn't have an complete map in $n cycles send one map_interval = 500 -- Minimum time of one "tick", in microseconds -...
-- See LICENSE for terms local table_remove = table.remove local RemoveFromRules = RemoveFromRules local StopSound = StopSound local PlayFX = PlayFX local ToggleWorking = ChoGGi.ComFuncs.ToggleWorking local mod_SensorSensorTowerBeeping local mod_RCCommanderDronesDeployed local mod_MirrorSphereCrackling local mod_Nurs...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local quest = {} function quest:constructor(props) self.title = props.title self.description = props.description self.image = props.image self.prerequisites = props.pre...
object_tangible_item_beast_converted_tanray_decoration = object_tangible_item_beast_shared_converted_tanray_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_tanray_decoration, "object/tangible/item/beast/converted_tanray_decoration.iff")
object_tangible_destructible_destructable_crate_02 = object_tangible_destructible_shared_destructable_crate_02:new { } ObjectTemplates:addTemplate(object_tangible_destructible_destructable_crate_02, "object/tangible/destructible/destructable_crate_02.iff")
minetest.after(0, function() if not armor.def then minetest.after(2,minetest.chat_send_all,"#Better HUD: Please update your version of 3darmor") HUD_SHOW_ARMOR = false end end) function hbarmor.get_armor(player) if not player or not armor.def then return false end local name = player:get_player_name() local ...
-- Init Global local MaxSpeed = 300 local font = renderer.setup_font("C:/windows/fonts/arial.ttf", 25, 0) local vVelocity_Offset = se.get_netvar("DT_BasePlayer", "m_vecVelocity[0]") local fFlags_Offset = se.get_netvar("DT_BasePlayer", "m_fFlags") local size = engine.get_screen_size() local x,y = size.x, size.y l...
-- Rings application for WSAPI local rings = require "rings" local _M = {} local init = [==[ local loadstring = loadstring or load local app_name, bootstrap_code, is_file = ... if bootstrap_code then local bootstrap, err if string.match(bootstrap_code, "%w%.lua$") then bootstrap, err = loadfile(b...
return function(id,props) return { type = script.Name, id = id, props = props, } end
nuclear.debug.log("--item") -- U-235 local u235 = data.raw["item"]["uranium-235"] u235.subgroup = "elements" u235.order = "92[uranium-235]" -- U-238 local u238 = data.raw["item"]["uranium-238"] u238.subgroup = "elements" u238.order = "92[uranium-238]" -- Steam turbine data.raw.item["steam-turbine"].stack_size = 50
local tl = require("tl") local fd = io.open(arg[1], "r") local input = fd:read("*a") local tokens = tl.lex(input) local errs = {} local i, program = tl.parse_program(tokens, errs) if #errs > 0 then for _, err in ipairs(errs) do io.stderr:write(arg[1]..":"..err.y..":"..err.x..": "..err.msg.."\n") end os...
--[[********************************** * * Multi Theft Auto - Admin Panel * * server/admin_bans.lua * * Original File by lil_Toady * **************************************]] local aBans = { List = {} } addEventHandler( "onResourceStart", resourceRoot, function() for i, ban in ipairs(getBans()) ...
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. 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 or agr...
ITEM.name = "Deploy Base" ITEM.model = Model("models/props_junk/cardboard_box001a.mdl") ITEM.category = "Deployables" ITEM.entityName = "npc_turret_floor" ITEM.description = "Deploy It" ITEM.width = 2 ITEM.height = 2 ITEM.noBusiness = true ITEM.price = 50 ITEM.functions.Deploy = { OnRun = function(item) if it...
-- luacheck: globals describe it return function() describe("multiple it blocks with the same description", function() it("should raise an error", function() end) it("should raise an error", function() end) end) end