content
stringlengths
5
1.05M
local util = require 'lspconfig.util' return { default_config = { -- `foam-ls` can be a shell script executing: -- node /path/to/foam-language-server/lib/foam-ls.js --stdio cmd = { 'foam-ls' }, filetypes = { 'foam', 'OpenFOAM' }, root_dir = util.root_pattern('system/controlDict'), log_level =...
function disableDefaultChat(message, messageType) cancelEvent() end addEventHandler ("onPlayerChat", getRootElement(), disableDefaultChat)
nut.bar = nut.bar or {} nut.bar.list = {} nut.bar.delta = nut.bar.delta or {} nut.bar.actionText = "" nut.bar.actionStart = 0 nut.bar.actionEnd = 0 function nut.bar.get(identifier) for i = 1, #nut.bar.list do local bar = nut.bar.list[i] if (bar and bar.identifier == identifier) then return bar end end en...
-- Tips and tricks with Lua scripts - bfxdev 2020 -- Lists global variables for key, value in pairs(_G) do print("Global " .. type(value) .. ": " .. key .. " = " .. tostring(value)) end --- Returns a data URI representing a BMP RGBA picture of dimension `width` and `height`, and with bitmap `data` provided --- as ...
-- mapping local bind = require("core.bind") local map = bind.map local keymap = { -- vim switch options ["n|<F3>"] = map(":set hlsearch!<CR>"):with_noremap():with_silent(), ["n|<F4>"] = map(":set paste!<CR>"):with_noremap():with_silent(), -- buffer options ["n|<C-J>"] = map(":BufferLineCyclePrev<C...
local lsp_methods = { INITIALIZE = "initialize", SHUTDOWN = "shutdown", EXIT = "exit", CODE_ACTION = "textDocument/codeAction", EXECUTE_COMMAND = "workspace/executeCommand", PUBLISH_DIAGNOSTICS = "textDocument/publishDiagnostics", FORMATTING = "textDocument/formatting", RANGE_FORMATTING ...
local Observable = require 'observable' --- Returns an Observable that terminates when the source terminates but does not produce any -- elements. -- @returns {Observable} function Observable:ignoreElements() return Observable.create(function(observer) local function onError(message) return observer:onErro...
---@type number local aNumber ---@type boolean local aBoolean ---@class Vector ---@field x number ---@field y number ---@field z number ---@field [1] number ---@field [2] number ---@field [3] number ---@field [number] boolean ---@type Vector local vector aNumber = vector.x aNumber = vector.y aNumber = vector.z aBo...
local negotiator = require 'restia.negotiator' describe("Content negotiator", function() it("Should parse headers correctly", function() local accepted = negotiator.parse 'text/html' [1] assert.same({q=1, s=3, type='text/html'}, accepted) end) it("Should order types alphabetically", function() -- To make the...
local helpers = require "spec.helpers" local json = require "cjson" local statusses = setmetatable({ [200] = "200 OK", [404] = "404 NOT FOUND", }, { __index = function(self, key) error("'"..tostring(key)"' is not a known status code") end }) local port = 4000 -- rotate ports to prevent ports being in us...
function ResetPlayerBody(ply) SetPlayerNetworkedCustomClothes(ply,{ body = {"/Game/CharacterModels/SkeletalMesh/BodyMerged/HZN_CH3D_Normal01_LPR"}, clothing0 = {nil}, clothing1 = {nil}, clothing2 = {nil}, clothing3 = {nil}, clothing4 = {nil}, clothing5 = {nil...
surface.CreateFont("RAM_VoteFont", { font = "Trebuchet MS", size = 19, weight = 700, antialias = true, shadow = true }) surface.CreateFont("RAM_VoteFontCountdown", { font = "Tahoma", size = 32, weight = 700, antialias = true, shadow = true }) local TIMER_NAME = "rtv_failsafe" ...
--!The Make-like Build Utility based on Lua -- -- 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 L...
local hop = require 'hop' hop.setup()
describe("Compositions", function() local fun = require 'ltrie.fun' local T = {} local function reset() T = {} end local function p(...) T[#T+1] = {...} end local function check(t) assert.are.same(T, t) end it('map', function() local f = function(...) return 'map', ... end reset() fun.each(...
mario = class:new() function mario:init(x, y, i, animation, size, t, properties) self.playernumber = i or 1 if bigmario then self.size = 1 elseif size and size == 8 then self.size = 1 else self.size = size or 1 end self.t = t or "portal" --custom character self.character = mariocharacter[self.playernum...
--[=[ @Author: Gavin "Mullets" Rosenthal @Desc: Deliver, a Roblox command line interface plugin to deliver content, commands, and simplicity within Roblox studio. ]=] --[=[ [DOCUMENTATION]: https://mullets-gavin.github.io/Deliver/ Visit the documentation site for commands & help. [LICENSE]: MIT License Copyr...
function EventHorizon:InitializeClass() self.config.gcdSpellID = 100 self.config.past = -1.5 -- Number of seconds to show in the past. Default = -3 self.config.future = 12 -- Number of seconds to show in the future. Default = 12 -- -- Fury -- bloodthirst self:newSpell({ cooldown = 23881, r...
script.on_event(defines.events.on_lua_shortcut, function(event) if(event.prototype_name == "trolley-problem") then local player = game.get_player(event.player_index) local called = 0 for _, train in pairs(player.surface.get_trains(player.force)) do ...
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins R.Options.args.Skins = { type = "group", name = (S.modName or S:GetName()), order = 9, get = function(info) r...
#!/usr/bin/env lua -- vi: filetype=lua : ------------------------------------------------------------------------------ --- __ __ __ __ --- /\ \ /\ \ /\ \ /\ \ --- \ \ \____ _ __ \ \ \/'\ ___ \ \ ...
local d = require "luci.dispatcher" local _api = require "luci.model.cbi.passwall.api.api" local e = luci.model.uci.cursor() m = Map("passwall_server", translate("Server-Side")) t = m:section(NamedSection, "global", "global") t.anonymous = true t.addremove = false e = t:option(Flag, "enable", translate("Enable")) e....
--[[ _________________________________________________________ __ /___ /_________________(_)_____________ /__ /__(_) _ __/_ __ \ __ \_ ___/_ /_ ___/ _ \_ /__ /__ / / /_ _ / / / /_/ / / _ / / /__ / __/ / _ / _ / \__/ /_/ /_/\____//_/ /_/ \___/ \___//_/ /_/ /_/ Name:...
local prev, luv, pl, dirname, eventQueue = ... local function continue(co) co = co or coroutine.running() return function(...) local ok, err = coroutine.resume(co, ...) if not ok then error(err) end end end local decoder = prev.loadfile(pl.path.join(dirname, 'libs', 'http', 'codec.lua'))() local function pars...
------------------------------------------------------------------------------ -- GLSizeBox class ------------------------------------------------------------------------------ local ctrl = { nick = "glsizebox", funcname = "GLSizeBox", include = "iupglcontrols.h", parent = iup.WIDGET, subdir = "gl", creati...
require "util" local belt_entities = {} local nuclear_transport_belt = util.table.deepcopy(data.raw["transport-belt"]["express-transport-belt"]) nuclear_transport_belt.name = "nuclear-transport-belt" nuclear_transport_belt.icon = "__RandomFactrorioThings__/graphics/icons/nuclear-transport-belt.png" nuclear_transport_...
local Active = true class 'GodCheck' function GodCheck:__init() Events:Subscribe( "AntiCheat", self, self.AntiCheat ) Events:Subscribe( "LocalPlayerBulletHit", self, self.LocalPlayerBulletHit ) Network:Subscribe( "Checking", self, self.Checking ) self.phealth = 1 end function GodCheck:AntiCheat( arg...
local TeleportFromTo = { ["Poste de police - sous-sol"] = { positionFrom = { ['x'] = 1848.443, ['y'] = 3690.264, ['z'] = 34.267, nom = "entrer - au sous-sol"}, positionTo = { ['x'] = 1854.537, ['y'] = 3716.563, ['z'] = 1.077, nom = "sortir - du sous-sol"}, }, ["palais-justice"] = { positionFrom = { ['x']...
object_static_worldbuilding_decal_puddle_s01 = object_static_worldbuilding_decal_shared_puddle_s01:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_decal_puddle_s01, "object/static/worldbuilding/decal/puddle_s01.iff")
local socket = require "levent.socket" local dns = require "levent.dns" local util = {} function util.create_connection(host, port, timeout) local ret, err = dns.resolve(host) if not ret then return nil, err end local ip = ret[1] local sock, err = socket.socket(socket.AF_INET, socket.SO...
local kalis = require "lib.kalis" local class = require "lib.middleclass" --- @class Piece --- @field new fun(self: Piece, board: Board, coordinates: table, colour: table) local Piece = class("Piece") Piece.bag = {} -- The rounding functions to use when rotating depending on what step (1-4) -- the piece is in the ro...
local ConstEnum = {} ---基本参数 ConstEnum.modPrefix = "xx-" ConstEnum.modRefName = "__xiuxian__" ConstEnum.graphics = ConstEnum.modRefName .. "/graphics" ConstEnum.kw = "kW" ConstEnum.mw = "mW" ConstEnum.w = "w" ConstEnum.collisionMaskAllowInSpace = { "object-layer", "train-layer", "floor-layer", "water-tile" } ConstE...
local config = require "config" local teams = require "../helpers.teams" -- simple shared table local PowerupsHandler = {} PowerupsHandler.new = function() local self = map:addCustomLayer("Powerups", 5) local tipiPowerUp = { -- flags blue_flag={ name = 'blue_flag', ...
import("..includes.functions") local TestSingleTouch2Scene = class("TestSingleTouch2Scene", function() return display.newScene("TestSingleTouch2Scene") end) function TestSingleTouch2Scene:ctor() -- parentButton 是 button1 的父节点 self.parentButton = createTouchableSprite({ image = "WhiteButton.pn...
module("L_VirtualBinaryLight1", package.seeall) local _PLUGIN_NAME = "VirtualBinaryLight" local _PLUGIN_VERSION = "1.3.1" local debugMode = false local MYSID = "urn:bochicchio-com:serviceId:VirtualBinaryLight1" local SWITCHSID = "urn:upnp-org:serviceId:SwitchPower1" local DIMMERSID = "urn:upnp-...
local uv = require('uv') local connect = require('coro-net').connect local tlsWrap = require('coro-tls').wrap local rex = require('rex') local getaddrinfo = require('./utils').getaddrinfo --[[------------------------------- Attributes --------------------------------- target: String hostname or ip address timeout: U...
function main() print("hey, Lua IS working well!", "hey, Lua IS working well!", "hey, Lua IS working well!", "hey, Lua IS working well!") end
minetest.register_node("concrete:white", { description = "White Concrete", tiles = {"concrete_white.png"}, is_ground_content = false, groups = {cracky = 3, stone = 1}, }) minetest.register_craft({ output = 'concrete:white', recipe = { {'group:sand', 'default:gravel', 'group:sand'}, {'default:gr...
--Copyright (c) 2010 Sakarias Johansson AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') ENT.RepairDelay = CurTime() + 2 ------------------------------------VARIABLES END function ENT:SpawnFunction( ply, tr ) --------Spawning the entity and getting some sounds i use. if ( !tr.Hit ) th...
local meta = FindMetaTable("Player") local path = "aw_player_data/" -- Called every time player gets spawned function meta:InitializeData() if !file.Exists(path, "DATA") then file.CreateDir( path ) end if !self:CheckDataFile() then self:CreateDataFile() end self.player_data = self:LoadData() end function met...
--[[ Name: cl_cars.lua For: TalosLife By: TalosLife ]]-- GM.Cars = (GAMEMODE or GM).Cars or {} GM.Cars.m_tblRegister = (GAMEMODE or GM).Cars.m_tblRegister or {} GM.Cars.m_tblRegisterByMake = (GAMEMODE or GM).Cars.m_tblRegisterByMake or {} GM.Cars.m_tblJobRegister = (GAMEMODE or GM).Cars.m_tblJobRegister or {} GM.Ca...
local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" local vnc = require "vnc" description = [[ Queries a VNC server for its protocol version and supported security types. ]] author = "Patrik Karlsson" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" cat...
Player = game.Players.xSoulStealerx script.Parent = Player local pla = Instance.new("ScreenGui") pla.Parent = Player.PlayerGui pla.Name = "RoPlayer" local sound = Instance.new("Sound") sound.Name = "Sound" sound.Pitch = 1 sound.SoundId = "http://www.roblox.com/asset/?id=1372259" sound.Volume = 0.5 sound.Looped = true ...
local Juliet = JulietFrame StaticPopupDialogs["JULIET_AUTO_ACCEPT_RESURRECT"] = { text = "Would you like me to automatically accept your resurrection?", button1 = "Yes", button2 = "No", OnAccept = function() Juliet:AddAutoAcceptResurrect() end, timeout = 10000, whileDead = true, hide...
function SPELL_INIT() SPELL = {} SPELL.NAME = {} SPELL.TARGET = { AOE = 1, SINGLETARGET = 2, CONE = 3 } ---Add a new Spell ---@param name string ---@param four string ---@param buff string ---@param order integer ---@param instant boolean ---@param castTime table function SPELL.NEW(name, four, buff,...
local M = {} local lsputils = require "as.plugins.code.utils" -- rust-tools.nvim local tools = { autoSetHints = true, runnables = { use_telescope = true }, inlay_hints = { show_parameter_hints = true }, hover_actions = { auto_focus = true }, } function M.setup(installed_server) require("rust-tools...
-- A bullet that fragments into pieces local bulletFirework = {} bulletFirework.__index = bulletFirework -------------------- -- MAIN CALLBACKS -- -------------------- function bulletFirework.new(x, y, angle, friendly, speed, bulletType) local self = classes.bullet.new(x, y, angle, friendly, speed) setmetatable(s...
if not vim.g.vscode then require("core") print(vim.fn.expand("%")) end
return {'izabel','izabelkleurig','izaak','izaak','izak','izabelkleurige','izaaks','izaks','izaaks'}
local foliage = { [1] = {id=1,Path="StaticMesh'/Game/StarterContent/Shapes/Shape_Cylinder.Shape_Cylinder'",Material="Material'/Game/mt_flg1.mt_flg1'",}, [2] = {id=2,Path="StaticMesh'/Engine/BasicShapes/Cone.Cone'",Material="Material'/Game/mt_flg1.mt_flg1'",}, } return foliage
return Def.ActorFrame { Def.ActorFrame { OnCommand = function(self) self:xy(SCREEN_CENTER_X + 180, SCREEN_CENTER_Y) end, OffCommand = function(self) self :accelerate(0.5) :addx(SCREEN_WIDTH / 2) end, Def.BitmapText { Font = "Common Normal", OnCommand = function(self) self :horiza...
--- `assert_` macro library support. -- This module may of course be used on its own; `assert_` merely provides -- some syntactical sugar for its functionality. It is based on Penlight's -- `pl.test` module. -- @module macro.libs.test local test = {} local _eq,_tostring -- very much like tablex.deepcompare from Penl...
local HomeSeeker = Class(function(self, inst) self.inst = inst self.onhomeremoved = function() self:SetHome(nil) self.inst:RemoveComponent("homeseeker") end end) function HomeSeeker:HasHome() return self.home and self.home:IsValid() and (not self.home.components.burnable or not self.hom...
id = 'V-38593' severity = 'medium' weight = 10.0 title = 'The Department of Defense (DoD) login banner must be displayed immediately prior to, or as part of, console login prompts.' description = 'An appropriate warning message reinforces policy awareness during the logon process and facilitates possible legal action a...
local included = pcall(debug.getlocal, 5, 1) local uuid = require("uuid") local T = require("u-test") local generating_a_uuid = function() T.is_string(uuid.new()) T.is_string(uuid()) end local format_of_the_generated_uuid = function() for i = 1, 1000 do -- some where to short, see issue #1, so test a bunch local...
object_ship_awing_tier8 = object_ship_shared_awing_tier8:new { } ObjectTemplates:addTemplate(object_ship_awing_tier8, "object/ship/awing_tier8.iff")
function Local.Init() canvas = obe.Canvas.Canvas(1, 1); rect = canvas:Rectangle("background") {width = 1, height = 1, color = "black"} canvas:render(This.Sprite); Object.fade = 0; Object.fadeSpeed = 300; Object.alpha = 255; end function Object:fadeIn() self.fade = -1; end function Object:f...
-- Copyright 2011 by Jannis Pohlmann -- -- This file may be distributed and/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ -- Declare local CycleRemovalEadesLS1993 = {...
return function(lambda) --[[ Creates a version of the function that can only be called one time. Repeated calls to the modified function will have no effect, returning the value from the original call. Useful for initialization functions, instead of having to set a boolean flag and then check it later. ]]--...
----------------------------------------------------------------------------- -- Multicast Events in lua v1.0.1 -- Author: aimingoo@wandoujia.com -- Copyright (c) 2015.08 -- -- The Multicast module from NGX_4C architecture -- 1) N4C is programming framework. -- 2) N4C = a Controllable & Computable Communication Cluster...
Controls.SendButton.EventHandler = function() print("Hello, World!") end
--===========================================================================-- -- -- -- NgxLua.HttpFiles -- -- -- ...
-- Основные настройки системы домов -- Какой процент денег возвращается при продаже дома государству -- По умолчанию: 0.5 - 50% HOUSE_SELL_PRICE_MUL = 0 -- Как часто можно выгонять всех игроков из своего дома -- По умолчанию: 5000 - раз в 5 секунд HOUSE_PLAYERS_KICK_COOLDOWN = 5000 -- Как часто игрок может стучаться ...
return { formatCommand = "shfmt -ln bash -i 2 -bn -ci -sr -kp", formatStdin = true, }
---@meta ---@class cc.TMXLayer :cc.SpriteBatchNode local TMXLayer={ } cc.TMXLayer=TMXLayer ---* Returns the position in points of a given tile coordinate.<br> ---* param tileCoordinate The tile coordinate.<br> ---* return The position in points of a given tile coordinate. ---@param tileCoordinate vec2_table ---@r...
-- mods/ws_core/aliases.lua -- Aliases to support loading worlds using nodes following the old naming convention -- These can also be helpful when using chat commands, for example /giveme minetest.register_alias("stone", "ws_core:stone") minetest.register_alias("stone_with_coal", "ws_core:stone_with_coal") minet...
ardour{ ["type"] = "dsp", name = "VAmpNL", category = "Distortion", license = "BSD", author = "mqnc", description = [[Nonlinear distortion curve for simulating amps, to be inserted between two EQs, modeled according to "Block-oriented modeling of distortion audio effects using iterative min...
vector = { x = 34, y = 22, z = 56 } for k, v in pairs(vector) do print ("key: " .. k .. ", value: " .. v) end
--[[ Flappy Bird Clone Lua Build for Love2d Bird class for player Author: Troy Martin beef.erikson.studios@gmail.com ]] Bird = Class{} local GRAVITY = 20 local ANTI_GRAVITY = 5 --[[ Initialize Bird ]] function Bird:init() -- load bird image and set width/height self.image = love.gra...
--[[ -- -- Copyright (c) 2013-2017 Wilson Kazuo Mizutani -- -- 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, mo...
foundry_recipes = {} foundry_results = {} foundry_recipes[1] = { "ks_minerals:chalcocite_powder", "ks_minerals:alumina_powder" } foundry_results[1] = "ks_metallurgy:alclad_" foundry_recipes[2] = { "ks_minerals:chalcocite_powder", "ks_minerals:uranium_powder" } foundry_results[2] = "ks_metallurgy:uranium_bronze_" ...
assert(bit.AND(0xF, 0xF) == 0xF) assert(bit.AND(0x2, 0x1) == 0x0)
return {'boogschutter','boobytrap','bood','boodschap','boodschapjongen','boodschaploper','boodschappen','boodschappenauto','boodschappenbriefje','boodschappendienst','boodschappenjongen','boodschappenkarretje','boodschappenlijst','boodschappenlijstje','boodschappenloper','boodschappenmand','boodschappentas','boodschapp...
local Icons = { bTN3M1 = 'ReplaceableTextures\\CommandButtons\\BTN3M1.blp', bTN3M2 = 'ReplaceableTextures\\CommandButtons\\BTN3M2.blp', bTN3M3 = 'ReplaceableTextures\\CommandButtons\\BTN3M3.blp', bTNAbomination = 'ReplaceableTextures\\CommandButtons\\BTNAbomination.blp', bTNAbsorbMagic = 'Replaceabl...
local upower_widget = require("tots.modbat") local battery_listener = upower_widget { device_path = '/org/freedesktop/UPower/devices/battery_BAT0', instant_update = true } battery_listener:connect_signal("upower::update", function(_, device) awesome.emit_signal("tots::battery", device.percentage, device.st...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self.Entity:SetModel("models/ctf_spawnarea/ctf_spawnarea.mdl") self.Entity:PhysicsInit(SOLID_VPHYSICS) self.Entity:SetMoveType(MOVETYPE_VPHYSICS) self.Entity.IsSpawnRegion = true self.Entity.SpawnIndex = 0 en...
local errorLabel = [[ ^4================================= ^1CLASSES: Version check failed! ^4================================= ^7 ]] local uptodateLabel = [[ ^4============================== ^2CLASSES: Is up to date! ^3 Disable version check? ^3 Check the fxmanifest.lua ^4============================== ^7 ]] local ...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 66101, emitter = "BattleBulletEmitter" } } } }, { effect_list = { { type = "BattleSkillFire", casterAniEffe...
--[[ - PAP Engine ( https://github.com/viticm/plainframework1 ) - $Id main.lua - @link https://github.com/viticm/plainframework1 for the canonical source repository - @copyright Copyright (c) 2014- viticm( viticm@126.com/viticm.ti@gmail.com ) - @license - @user viticm<viticm@126.com/viticm.ti@gmail.com> - @date ...
--User Config CONFIG = {} ScriptHost:LoadScript("settings/documents.lua") ScriptHost:LoadScript("settings/defaults.lua") ScriptHost:LoadScript("settings/layout.lua") ScriptHost:LoadScript("settings/broadcast.lua") ScriptHost:LoadScript("settings/tracking.lua") ScriptHost:LoadScript("settings/fileio.lua") ScriptHost:Loa...
object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_sunberries = object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_shared_sunberries:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_sunberries, "o...
local Pipeline = require(script.Pipeline) local Util = require(script.Parent.Shared.Util) local t = require(script.Parent.Shared.t) local Constants = require(script.Constants) local Reducers = require(script.Operators.Reducers) local Comparators = require(script.Operators.Comparators) local inspect = require(script.Par...
require("luakit.core") require("luakit.com.application") require("luakit.com.scene") require("luakit.com.layout") require("luakit.com.prolayout") require("luakit.com.gesture")
local PLAYERS_MSG={} local PLAYERS_FREQ={} local SPAM_SPEED=5 local SPAM_SPEED_MSECS=SPAM_SPEED*1000000 local SPAM_WARN=5 local SPAM_KICK=SPAM_WARN+5 local RESET_TIME=30 --In seconds local RESET_TIME_MSECS=RESET_TIME*1000000 --Convert to microsecs local WARNING_COLOR=minetest.get_color_escape_sequence("#FFBB33") minete...
dofile("common.inc"); askText = singleLine([[ Menu Helper v1.0 by Tallow -- Brings up building menu(s) and finds/clicks user inputed text on each menu. -- Instructions: Click Add button then input text you want to find, in building menus. Repeat if there are multiple/embedded menus per building. Hover each ...
module 'mock' local min, max, clamp = math.min, math.max, math.clamp -------------------------------------------------------------------- CLASS: ShakeController ( Behaviour ) :MODEL{} registerComponent( 'ShakeController', ShakeController ) function ShakeController:__init() self.shakeSources = {} end function Sha...
--service_cfg.lua --luacheck: ignore 631 --获取配置表 local config_mgr = quanta.get("config_mgr") local service = config_mgr:get_table("service") --导出版本号 service:set_version(10000) --导出配置内容 service:upsert({ id = 1, name = 'router', router = false, hash = 0, }) service:upsert({ id = 2, name = 'too...
--by polyphorge return { purple = 0xff553e5b, grey = 0xff928f8e, white = 0xfff8f8d1, green = 0xff6d8c4a, fawn = 0xff4a443c, dark = 0xff342121, brown = 0xff7b4136, dark_lighter = 0xff443131, yellow = 0xffc59846, blue = 0xff173c58, }
return {'even','evenaar','evenals','evenaren','evenaring','evenbeeld','eveneens','evenement','evenementenbeleid','evenementenbureau','evenementencomplex','evenementenhal','evenementenkalender','evenementenlijst','evenementenplein','evenemententerrein','evenementenvuurwerk','evengoed','evenhoevig','evenhoevige','evenkni...
hook.Add("se_button_press_powerbtn_add", "se_button_press_powerbtn_add", function(module_name) se_send_event("power_add", {module_name}) end) hook.Add("se_button_press_powerbtn_reduce", "se_button_press_powerbtn_add", function(module_name) se_send_event("power_reduce", {module_name}) end)
local input = io.stdin:read() local json = require("json") while input do print(json.encode({res="json",mess=input})) io.stdout:flush() input = io.stdin:read() end
local bench = script and require(script.Parent.bench_support) or require("bench_support") function test() local t = table.create(5000001, 0) for i=0,5000000 do t[i] = i end local ts0 = os.clock() table.move(t, 1, 250000, 250001, t) local ts1 = os.clock() for i=250001,(500000-1) d...
local Enums = require("common/enums") local Cursor if not love._console_name then Cursor = love.mouse.newCursor( love.image.newImageData( "assets/gfx/common/cursor.png" ), 0, 0 ) --mouse functionality not implemented end local Atlases = { Title = { Selection = love.graphics.newImage("assets/gfx/title/at...
local weps = { --[wepid] = modelid [1] = 331 , [2] = 333, [3] = 334, [4] = 335, [5] = 336, [6] = 337, [7] = 338, [8] = 339, [9] = 341, [10] = 321, [11] = 322, [12] = 323, [14] = 325, [15] = 326, [16] = 342, [17] = 343, [18] = 344, [22] = 346, [23] = 347, [24] = 348, [25] = 34...
local function noop(s) return s end local function const(s) return function() return s end end local function encloser(t) return function (s) return '[' .. t .. ']' .. s .. '[/' .. t .. ']'; end end Blocksep = const("\n\n") Space = const(" ") SoftBreak = const("") LineBrak = const("\n\n") Emph = en...
local M = {} local Tag = {} Tag.__index = Tag M.Tag = Tag function Tag.new(str) return ("*%s*"):format(str) end function Tag.add(str, width, name) local tag_str = name or str local tag = Tag.new(tag_str:gsub("%s+", "-")) local spaces = (" "):rep(width - #tag - #str) return str .. spaces .. tag end return ...
AmrDb = { ["Talents"] = { "0000000", -- [1] }, ["LastCharacterImportDate"] = "", ["SendSettings"] = { ["SendTo"] = "", ["SendGems"] = true, ["SendEnchants"] = true, ["SendEnchantMaterials"] = true, ["SendToType"] = "a friend", }, ["CharacterName"] = "Corsheth", ["Race"] = "Dwarf", ["ActiveSpec"] = ...
data:extend( { { type = "technology", name = "turrets", icon = "__base__/graphics/technology/turrets.png", icon_size = 128, effects = { { type = "unlock-recipe", recipe = "5d-gun-turret-small" } }, unit = { count = 10, i...
-- Challenge class for blocks in the island area cChallengeBlocks = {} cChallengeBlocks.__index = cChallengeBlocks function cChallengeBlocks.new() local self = setmetatable({}, cChallengeBlocks) setmetatable(cChallengeBlocks, {__index = cChallengeInfo}) self.m_CheckingBlocks = {} return self end function cChal...
-- CSM death formspec. Only used when clientside modding is enabled, otherwise -- handled by the engine. core.register_on_death(function() core.display_chat_message("You died.") local formspec = "size[11,5.5]bgcolor[#320000b4;true]" .. "label[4.85,1.35;" .. fgettext("You died") .. "]button_exit[4,3;3,0.5;btn_res...