content
stringlengths
5
1.05M
return { components = { transform = {}, particleSystem = { image = "resources/images/pixel.png", blendMode = "add", emissionRate = 2000, particleLifetime = 0.2, sizes = { 0.5, }, emissionArea = { distribution = "normal", dx = 0.5, dy...
local RUN_N = 1024 local function ExtractBenchmarks(modules: {Instance}): {[string]: {}} local benchmarks = {} for _, instance in ipairs(modules) do if instance:IsA("ModuleScript") then benchmarks[instance.Name] = require(instance:Clone()) end end return benchmarks end local Benchmarker = {} local RowOrde...
function onKill(creature, target) local targetMonster = target:getMonster() if not targetMonster then return true end if targetMonster:getName():lower() == 'the keeper' then Game.setStorageValue(Storage.WrathoftheEmperor.Mission03, 0) end return true end
dofilepath("data:scripts/debug.lua") dout("Loading Crate_locate.lua of Kadesh") crate_Motherships = { "Kad_MotherShip", "kad_mothershipLight", } crate_Carriers = { "Kad_Carrier", "kad_fuelpod", }
Script.Load("lua/CompMod/Utility/EnumUtils.lua") -- Death Message Icons EnumUtils.AppendToEnum(kDeathMessageIcon, "Neurotoxin")
title = {" Trougao može imati dva prava ugla.", " Trougao može imati dva tupa ugla.", " Trougao može imati dva oštra ugla.", " Trougao može imati jedan pravi i jedan oštar ugao.", " Trougao može imati jedan tupi i jedan oštar ugao.", " Trougao može imati jedan pravi i jed...
-- This script receives three parameters, all encoded with -- MessagePack. The decoded values are used for deleting a model -- instance in Redis and removing any reference to it in sets -- (indices) and hashes (unique indices). -- -- # model -- -- Table with three attributes: -- id (model instance id) -- key (has...
local extension = ... local logger = require('jls.lang.logger') local tables = require('jls.util.tables') local Date = require('jls.util.Date') local HueBridge = require('lha.extensions.hue.HueBridge') local configuration = extension:getConfiguration() tables.merge(configuration, { url = 'http://localh...
function love.load() math.randomseed(os.time()) highscores = {} require "load.rpc" require "load.graphics" require "load.fonts" require "load.sounds" require "load.bgm" require "load.save" require "load.version" loadSave() require "scene" --config["side_next"] = false --config["reverse_rotate"] = true con...
rspamd_config:register_symbol({ name = 'EXTERNAL_RELAY_TEST', score = 0.0, callback = function(task) local from_ip = string.format('IP=%s', task:get_from_ip() or 'NIL') local hostname = string.format('HOSTNAME=%s', task:get_hostname() or 'NIL') local helo = string.format('HELO=%s', task:get_helo() or ...
-- Copyright (c) 2019 StefanT <stt1@gmx.at> -- See LICENSE.md in the project directory for license information. -- -- Update the requesters tab. -- -- @param parent The LuaGuiElement of the tab's parent element -- @param player The player -- function update_dialog_tab_requester(parent, player) parent.clear() loc...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Atiza -- Admits players to the dock in Aht Urhgan -- !pos 5.195 -1 98.966 50 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(223, player:getGil(), 100) end fun...
require("project_nvim").setup { show_hidden = true, }
title = 'V - Renato please add level' chapter = 'Part 4 - The boss is here. Just write all of him up until tomorrow. Thanks' function run() local f1 = formation { type = 'around', angle = 0, target = vector:new{width/2, height/2}, anglechange = torad(180), shootattarget = true } local f2 = formation { t...
-- by Qge <qigezhao@gmail.com> -- 2017.09.05, 2017.10.20 v3.0-201017 local CCFF = require 'arn.utils.ccff' local exec = CCFF.execute local sfmt = string.format local Token = {} Token.md5Fmt = 'echo -n "%s" > /tmp/.md5.token; md5sum /tmp/.md5.token | awk \'{print $1}\'' function Token.CGI(key, ttl) return Token....
local app = {} -- TODO: Implement terminal input -- return new keyboard table for an sdl output talbe function app:new_interactive_input_terminal_keyboard(output) if output.terminal_keyboard then -- Only one keyboard instance per SDL window return output.terminal_keyboard end assert(output.type == "output_termi...
local ALName, ALPrivate = ... local AtlasLoot = _G.AtlasLoot local GUI = AtlasLoot.GUI local ItemDB = AtlasLoot.ItemDB local Button = AtlasLoot.Button local QLF = {} AtlasLoot.GUI.QuickLootFrame = QLF local AL = AtlasLoot.Locales local LibSharedMedia = LibStub("LibSharedMedia-3.0") --lua local rawset, type, unpack, s...
local PLUGIN = PLUGIN local animationTime = 0.5 local chatBorder = 32 local sizingBorder = 20 local maxChatEntries = 100 -- called when a markup object should paint its text local function PaintMarkupOverride(text, font, x, y, color, alignX, alignY, alpha) alpha = alpha or 255 if (ix.option.Get("chatOutline", fal...
-- Starting position and size of window X = 0 Y = 0 Width = 1600 Height = 900 -- use letterbox to keep aspect ratio in check if virtual buffer and real have diff ratios -- (note: works only with some ratio differences, eh) LetterBox = true -- use borderless to avoid having decos around the window Borderless = true -...
intro = {} local timer = require("libraries.timer") local font = love.graphics.newFont(90) local color = {255, 255, 255, 0} local logo = love.graphics.newImage("assets/love.png") function intro:init() love.graphics.setBackgroundColor(0, 0, 0) timer.tween(1, color, {255, 255, 255, 255}, "linear", function()...
local nb_gap = { {-1, 0.1875, -0.0625, -0.5, 0.3125, 0.0625}, {-1, -0.1875, -0.0625, -0.5, -0.3125, 0.0625}, {0.5, 0.1875, -0.0625, 1, 0.3125, 0.0625}, {0.5, -0.1875, -0.0625, 1, -0.3125, 0.0625} } local nb_pil = { {0.5, -0.5, -0.09375, 0.5625, 0.5, 0.09375}, {-0.5625, -0.5, -0.09375, -0.5, 0.5, 0.0937...
-- -- Name: visualgdb/_preload.lua -- Purpose: Define the VisualGDB api's. -- Author: Manu Evans -- Copyright: (c) 2015 Manu Evans and the Premake project -- local p = premake local api = p.api -- -- Register the VisualGDB extension -- api.addAllowed("debugger", { "VisualGDB" }) -- -- Decide w...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("process_to_user") TestProcessToUser = {} function TestProcessToUser:test_process_to_user() local r = ProcessToUser:from_file("src/process_rotate.bin") luaunit.assertEquals(r.buf1.str, ...
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local View = View local VMState = VMState local VMGroup = VMGroup ---@class binding_demo:VMBase ---@type binding_demo local binding_demo = VMBase() --...
function CreateHomeBottomWindow() -- Create a container for the season title that sticks to the top callbacks.bottomHeaderWindow = Position(nil, callbacks.homeModelWindow, nil, callbacks.homeModelWindow:GetWidth(), callbacks.homeModelWindow:GetHeight() * 0.1, "BOTTOMLEFT", 0, 0); -- Start with class and sp...
--[[ 多行行注释 多行行注释 多行行注释 多行行注释 --]] --单行注释 function fun() --function body end
local playsession = { {"tykak", {395890}}, {"Lucasuper32", {11324}}, {"FoxBox808", {395608}}, {"iReed", {395325}}, {"evaldusia", {3613}}, {"Ed9210", {389584}}, {"AurelienG", {87762}}, {"edwar88", {233961}}, {"elvaleto", {378263}}, {"HYPPS", {323195}}, {"baiyuxing", {2739}}, {"Fexx", {255969}}, {"Krono", {2...
local I18N = require("api.I18N") local Gui = require("api.Gui") local Input = require("api.Input") local Save = require("api.Save") local Action = require("api.Action") local Item = require("api.Item") local Enum = require("api.Enum") local Autopickup = {} Autopickup.OP = { DESTROY = "!", DESTROY_PROMPT = "!?",...
--[[ obs-simpleclock.lua ]] obs = obslua text_format = "" text_source = "" ---------------------------------------------- function update_text() local source = obs.obs_get_source_by_name(text_source); if source ~= nil then local dtstr = "" if not pcall(function () dtstr = os.d...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage:WaitForChild("common") local lib = ReplicatedStorage:WaitForChild("lib") local Selectors = require(common:WaitForChild("Selectors")) local Roact = require(lib:WaitForChild("Roact")) local RoactRodux = require(lib:WaitForCh...
local _CreateConVar = CreateConVar local _CurTime = CurTime local _hook_Add = hook.Add local _player_GetAll = player.GetAll if !gAC.config.EXTERNAL_LUA_CHECKS then return end local External_Value = gAC.Encoder.stringrandom(8, true) _CreateConVar("external", External_Value, { FCVAR_CHEAT, FCVAR_PROTECTED, FCVAR_NOT_C...
title = {"Količina", "rastvora", "Procenat", "alkohola"}
--//////////////////////////////////////// --LWR Entity --//////////////////////////////////////// data:extend({ { burner = { burnt_inventory_size = 1, --Setting effectivity here actually makes it less efficient. effectivity = 0.25, fuel_inventory_size = 1, fuel_category = "lwr-nuclear", smoke = { ...
require("stategraphs/commonstates") local actionhandlers = { } local events= { CommonHandlers.OnStep(), CommonHandlers.OnSleep(), CommonHandlers.OnLocomote(false,true), EventHandler("attacked", function(inst) if inst.components.health and not inst.components.health:IsDead() then ...
-- -- formspec_ast: An abstract system tree for formspecs. -- -- This does not actually depend on Minetest and could probably run in -- standalone Lua. -- -- The MIT License (MIT) -- -- Copyright © 2019 by luk3yx. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and...
--E・HERO ネクロダークマン function c892521530.initial_effect(c) --summon with no tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(892521530,0)) e1:SetType(EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_GRAVE) e1:SetTargetRange(LOCATION_HAND,0) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetProperty(EFFECT_FLAG_NO_...
return { "nvim-lua/popup.nvim" }
object_tangible_dungeon_mustafar_valley_battlefield_turret_energy_burst = object_tangible_dungeon_mustafar_valley_battlefield_shared_turret_energy_burst:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_mustafar_valley_battlefield_turret_energy_burst, "object/tangible/dungeon/mustafar/valley_battlefield/turre...
-- translate Markdown with code blocks into HTML -- with syntax highlighting. -- If article.md was the source, Lua was the language and we -- wanted a preview: -- lua prettify.lua article lua preview -- Without the last argument it will just write out the HTML body. -- Languages supported are 'lua', 'cpp', 'java' and '...
-- sendmail.lua v0.1.6-dev (2021-07) -- Copyright (c) 2013-2021 Alexey Melnichuk -- -- 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...
local function MuteNames(msg) local text = msg.content_.text_ function DeleteMessage_(chat,id,func) tdcli_function ({ ID="DeleteMessages", chat_id_=chat, message_ids_=id },func or dl_cb,nil) end if ChatType == 'sp' or ChatType == 'gp' then if DevAek:get(AEK.."Aek:Lock:MuteNames"..msg.chat_id_) then if Manager(msg) the...
local cjson = require "cjson" local userDb = require "db.base_db" local reqArgs = require "common.request_args" local redis = require "redis.zs_redis" local systemConf = require "common.systemconfig" local str = require "resty.string" local uuid = require 'resty.jit-uuid' local responeData = require"common.api_data_hel...
local uv = vim.loop local validate = vim.validate local api = vim.api local M = {} local function get_lines(bufnr, rows) rows = type(rows) == "table" and rows or { rows } ---@private local function buf_lines() local lines = {} for _, row in pairs(rows) do lines[row] = (vim.api.nvim_buf_get_lines(b...
AddCSLuaFile() abluka = {} abluka.simpleweather = false abluka.sarkical = true abluka.sihirbakanligi = true -- Bakanlık sistemini aktif eder abluka.totemhalo = false -- BAKANLIK TOTEMİNE BAKTIMI ETRAFI SARI OLUR SADECE BAKTIĞINDA FPS SORUNLARI YAŞATABİLİR ///////////////////////////////// // KALKAN ...
local PAT1,PAT1_X,PAT2,PAT2_X,PAT3,PAT3_X= 'lua%/[^%s%:]+%.lua% ?:% ?%d+', '(lua%/[^%s%:]+%.lua)% ?:% ?(%d+)', 'includes%/[^%s%:]+%.lua% ?:% ?%d+', '(includes%/[^%s%:]+%.lua)% ?:% ?(%d+)', 'gamemodes%/[^%s%:]+%.lua% ?:% ?%d+', '(gamemodes%/[^%s%:]+%.lua)% ?:% ?(%d+)' local Tag='epoelinkx' local epoe_lua_files_a...
local cfg = {} -- exp notes: -- levels are defined by the amount of xp -- with a step of 5: 5|15|30|50|75 (by default) -- total exp for a specific level, exp = step*lvl*(lvl+1)/2 -- level for a specific exp amount, lvl = (sqrt(1+8*exp/step)-1)/2 -- define groups of aptitudes --- _title: title of the group --- map of...
function ENDrake_OnEnterCombat(Unit,Event) Unit:CastSpell(38775) Unit:RegisterEvent("ENDrake_Spell", 13000, 0) end function ENDrake_Spell(Unit,Event) Unit:FullCastSpellOnTarget(36513,Unit:GetClosestPlayer()) end function ENDrake_OnLeaveCombat(Unit,Event) Unit:RemoveEvents() end function ENDrake_OnDeath(Unit,Even...
--[[ This is the main App component, which all other components are displayed by. --]] local Replicated = game:GetService("ReplicatedStorage") local Roact = require(Replicated.Modules.Roact) --[[ Create our new App component by extending a default Roact component and import our BasicState store. --]] local App = R...
local sprite = ECS.Component(function(e, texture, rot, sx, sy) e.texture = texture e.rot = rot or 0 e.sx = sx or 1 e.sy = sy or 1 end) return sprite
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] screenX, screenY = guiGetScreenSize() scaleX, scaleY = (screenX / 1920), (screenY / 1080) local manage = {} man...
local SIDES = { ["SkyboxBk"] = Enum.NormalId.Back, ["SkyboxFt"] = Enum.NormalId.Front, ["SkyboxLf"] = Enum.NormalId.Left, ["SkyboxRt"] = Enum.NormalId.Right } local SIDE_PART = Instance.new("Part") SIDE_PART.CanCollide = false SIDE_PART.Anchored = true SIDE_PART.Transparency = 1 SIDE_PART.Size = Vector3.new(1, 1, ...
-------------------------------------------------------------------------- -- Obligation -- -------------------------------------------------------------------------- require("ui/wscreen") require("finance/portfeuille/func/utilite") require("finance/portfeuill...
moovr = hs.hotkey.modal.new() local grid = require "hs.grid" function moovr:entered() end moovr:bind('', 'ESCAPE', 'MOOVR OFF', function() moovr:exit() end) moovr:bind('', 'RETURN', 'MOOVR OFF', function() moovr:exit() end) moovr:bind('', 'j', grid.pushWindowDown) moovr:bind('', 'k', grid.pushWindowUp) moovr:bind(''...
-- Fasta benchmark from benchmarks game -- https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/fasta.html -- -- Translated from the Java and Python versions found at -- https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/fasta-java-2.html -- https://benchmarksgame-team.pages.debian.n...
local class = require('middleclass') local HasSignals = require('HasSignals') local HeartbeatCheck = class("HeartbeatCheck"):include(HasSignals) function HeartbeatCheck:initialize() HasSignals.initialize(self) self.delayHeartbeat = 0 self.tryCntHeartbeat = 0 self.heartbeatStep = 0 end function HeartbeatChec...
return { ["_G"] = true, ["bit32"] = true, ["busted.block"] = true, ["busted.compatibility"] = true, ["busted.context"] = true, ["busted.core"] = true, ["busted.environment"] = true, ["busted.execute"] = true, ["busted.languages.en"] = true, ["busted.modules.cli"] = true, ["bu...
local SpatialAveragePooling, parent = torch.class('cudnn.SpatialAveragePooling', 'cudnn._Pooling') function SpatialAveragePooling:__init(kW, kH, dW, dH, padW, padH) parent.__init(self, kW, kH, dW, dH, padW, padH) self.mode = 'CUDNN_POOLING_AVERAGE' end
require("path") -- for non windows use 'ls -a "'..dir..'"' or something like that ---get all dirs in the given dir ---@param dir Path @ absolute path ---@return Path[] local function get_dirs(dir) local i, t = 0, {} local pfile = io.popen('dir "'..dir:str()..'" /b /ad') for filename in pfile:lines() do i =...
function BiteLeap:IsAffectedBySilence() return false end
function Image(element) return pandoc.Image(element.caption, element.src:gsub(".svg", ".png")) end
local map = require('funclib').map local concat = require('funclib').concat local filter = require('funclib').filter local reduce = require('funclib').reduce describe("funclib module", function() it("should export some methods", function() local methods_count = 0 -- iterate through table to count...
----------------------------------------------------------------------------------------- -- QuizHang GameOver Mode -- Display stats at the end of the game session -- Save stats to database ----------------------------------------------------------------------------------------- -- Scene Management composer = r...
-- ---------------------------------------------------------------------------- -- AddOn namespace. -- ---------------------------------------------------------------------------- local addonname, addonScope = ... local AtlasLoot = _G.AtlasLoot local AL = AtlasLoot.Locales local ALIL = AtlasLoot.IngameLocales local dat...
--[[ This file is part of 'Masque', an add-on for World of Warcraft. For license information, please see the included License.txt file or visit https://github.com/StormFX/Masque. * File...: Options\General.lua * Author.: StormFX 'General Settings' Group/Panel ]] -- GLOBALS: LibStub, ReloadUI local MASQUE, Co...
require('compe').setup({ enabled = true; autocomplete = true; debug = false; documentation = false; min_length = 1; preselect = 'enable'; max_menu_width = 0; source = { path = true; buffer = true; calc = true; nvim_lsp = true; nvim_lua = false; nvim_treesitter = true; }; })
HiScoreScreen = Game:addState("HiScoreScreen") function HiScoreScreen:enterState() end function HiScoreScreen:draw() love.graphics.setColor(255,255,255,128) love.graphics.draw(Images.MENU_BG,0,0,0,1,1) love.graphics.setFont(Font.title_font) love.graphics.setColor(Color.white) love.graphics.printf("Hi Scores"...
Config = {} Config.DrawDistance = 100.0 Config.ZoneSize = {x = 2.0, y = 2.0, z = 0.8} Config.MarkerColor = {r = 100, g = 100, b = 204} Config.MarkerType = 1 Config.Locale = 'en' Config.Zones = { {x = -552.62, y = -191.19, z = 37.225} }
require("graphics") dataref("xp_egt1", "sim/flightmodel/engine/ENGN_EGT_c", "readonly", 0) dataref("xp_egt2", "sim/flightmodel/engine/ENGN_EGT_c", "readonly", 1) dataref("xp_mixt1", "sim/flightmodel/engine/ENGN_mixt", "readonly", 0) dataref("xp_mixt2", "sim/flightmodel/engine/ENGN_mixt", "readonly", 1) last_mixt1 = xp...
require "pl" -- penlight library (for stringio) local kconfig = require "kconfig" local kload = kconfig.load local hierarchy = kconfig.hierarchy local test_config = [[ LUA_HAVE_DOT_CONFIG=y LUA_INTERPRETER="/usr/bin/lua" LUA_BOOL_TRUE=y # LUA_BOOL_FALSE is not set LUA_INT=42 LUA_HEX=0x42 LUA_STRING="Lua test string w...
configuration = { name = "dummy test", timestep = 5.0, dbfile = "test.db", logfile = nil, inputs = { tray_temperature = { driver = "dummy", variables = {"tray_temperature"}, values = {65.0, 66.0, 67.0, 68.0, 69.0, 70.0, 71.0, 72.0, 73.0, 74.0, 75.0, 76.0, ...
--!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...
-- // FileName: ChatMessageValidator.lua -- // Written by: TheGamer101 -- // Description: Validate things such as no disallowed whitespace and chat message length on the server. local Chat = game:GetService("Chat") local RunService = game:GetService("RunService") local ReplicatedModules = Chat:WaitForChild("ClientChat...
--------------------------------------------------- -- Mijin Gakure --------------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/status") --------------------------------------------------- function onMobSkillCheck(target, mob, skill) return 0 end function...
require ("lib.lclass.init") class "FocusGained" function FocusGained:FocusGained () end
--- Processes a /look command -- @classmod LookEvent -- region imports local class = require('classes/class') local prototype = require('prototypes/prototype') require('prototypes/event') require('prototypes/serializable') local simple_serializer = require('utils/simple_serializer') local adventurers = require('fun...
--[[local FilteringEnabledServer = {} local ReplicatedStorage = game:GetService("ReplicatedStorage") local REMOTES_LOCATION = ReplicatedStorage:WaitForChild("GameShared"):WaitForChild("core_modules"):WaitForChild("shared_modules") local remote_event; local remote_function; local remote_event_listeners = {} local re...
local basicComponents = script.Parent.Parent.Basic local events = script.Parent.Parent.Parent.Parent.Events local switch = require(basicComponents.Switch) local slider = require(basicComponents.DotSlider) local button = require(basicComponents.RoundedButton) local theme = require(script.Parent.Parent.Parent.Themes.Curr...
--伝説の黒石 function c665744180.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,665744180) e1:SetCost(c665744180.spcost) e1:SetTarget(c665744180.sptg) e1:SetOperation(c6657...
instrument { name = "Ulcer Index", overlay = false } period = input (14, "front.period", input.integer, 1) source = input (1, "front.ind.source", input.string_selection, inputs.titles) input_group { "front.ind.dpo.generalline", color = input { default = "#21B190", type = input.color }, width = input { d...
-- copy all globals into locals, some locals are prefixed with a G to reduce name clashes local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,un...
--[[ Matrix --]] Matrix = {} Matrix.__index = Matrix setmetatable(Matrix, { __call = function(cls, ...) return cls.new(...) end }) function Matrix.new(rotation, origin) local _self = setmetatable({}, Matrix) _self.M = {} for i = 1, 4 do _self.M[i] = {} for j = 1, 4 do _self.M[i][j] = 0 end end if...
----------------------- rCharSplit() ----------------------- -- Input: A string we will split, a character (class) we split on -- Output: An array (numeric indexed table) with the split string -- Should the character we split on not be in the string to split, -- we will have a one-element array with the input string -...
-- ####################################### -- ## Project: MTA:scp-088 ## -- ## Name: MotionBlur.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local cS...
object_tangible_component_camp_camp_module_entertainment_area = object_tangible_component_camp_shared_camp_module_entertainment_area:new { } ObjectTemplates:addTemplate(object_tangible_component_camp_camp_module_entertainment_area, "object/tangible/component/camp/camp_module_entertainment_area.iff")
local S = df_mapitems.S local water_source = df_mapitems.node_name.water local coral_skeleton = df_mapitems.node_name.coral_skeleton minetest.register_node("df_mapitems:cave_coral_3", { description = S("Cave Coral"), _doc_items_longdesc = df_mapitems.doc.cave_coral_desc, _doc_items_usagehelp = df_mapitems.doc.cave...
--[[ SPDX-FileCopyrightText: Copyright 2021 by Sebastian Thomschke and contributors SPDX-License-Identifier: MIT SPDX-ArtifactOfProjectHomePage: https://github.com/sebthom/more-clink-completions Add the lib folder to Lua's package path. ]]-- package.path = debug.getinfo(1, "S").source:match("[^@].*[%\\/]").."l...
local epnf = require("epnf") local lpeg = require("lpeg") local syms = require("packages/math/unicode-symbols") require("core/parserbits") local atomType = syms.atomType local symbolDefaults = syms.symbolDefaults local symbols = syms.symbols -- Grammar to parse TeX-like math -- luacheck: push ignore local mathGrammar...
WINDOW = require("lovely-windows") local table = { f1 = {1024,720}, f2 = {720,600} } function love.load() WINDOW.initialize(320,200) WINDOW.addInputTable(table) end function love.keypressed(key) WINDOW.keyInput(key) end
local X = 0 local Y = 0 TrueSkillId = { ["热键"] = {|Q|, |W|, |E|, |R|, |D|, |F|}, ["热键字符"] = {"Q", "W", "E", "R", "D", "F"}, ["学习"] = {}, ["技能"] = {}, ["主动"] = {}, ["被动"] = {}, ["开关"] = {buff = |B069|}, } TrueSkillId["学习"][0] = {|A1AA|, |...
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- --[[ ----------------------------------------------------------------------------------------- -- FEATURE REQUEST & BUG F...
require("runtime-core/src/helpers/scopeId") require("@vue/runtime-test") describe('scopeId runtime support', function() local withParentId = withScopeId('parent') local withChildId = withScopeId('child') test('should attach scopeId', function() local App = {__scopeId='parent', render=withParentId(function() ...
-- add modes: debug and release add_rules("mode.debug", "mode.release") -- enable unicode add_defines("_UNICODE", "UNICODE") -- add target target("echo") -- add rules add_rules("wdk.umdf.driver") -- add files add_files("driver/*.c") add_files("driver/*.inx") -- add includedirs add_in...
local PerlinNoise = {} local Map = require("src.Map") ----------------------------------------------------------- PerlinNoise.perlinNoise = function(params) local params = params if not params then params = {} end local width = params.width or Map.map.width local height = params.height or...
local ISortable = class.interface("ISortable", { sort = "function" }) return ISortable
local commands = {"add", "show", "remove"} if matches[2] == "help" or not table.contains(commands, matches[2]) then cecho("\n<blue>BuffWatcher!\n") cecho("<green> bw add <spellname> <white>:<yellow> Adds <spellname> to the watch list\n") cecho("<green> bw remove <spellname> <white>:<yellow> Removes <spelln...
-- Copyright (C) Jinhua Luo local ffi = require("ffi") local status_tbl = { [200] = "HTTP/1.1 200 OK\r\n"; [302] = "HTTP/1.1 302 Found\r\n"; [304] = "HTTP/1.1 304 Not Modified\r\n"; [400] = "HTTP/1.1 400 Bad Request\r\n"; [403] = "HTTP/1.1 403 Forbidden\r\n"; [404] = "HTTP/1.1 404 Not Found\r\...
local describeComponentFrame = require "describeComponentFrame" local getComponentName = require "getComponentName" local function describeFiber(fiber) local tag = fiber.tag if tag == "IndeterminateComponent" or tag == "FunctionalComponent" or tag == "ClassComponent" or tag == "HostComponent" then loca...
local a = {1, 2, 3}; -- Creating a new table with 3 numbers inside print(a[2]); -- Will print 2 because Lua is 1-based
local c = circuits local function power_on(npos) npos.node.name = c.get_powered(npos) minetest.swap_node(npos,npos.node) end local function power_off(npos) npos.node.name = c.get_off(npos) minetest.swap_node(npos,npos.node) end local inverter = { description = "Inverter", drawtype = "normal", tiles = {"(defau...
local function linkTables(oldTable, links) links[oldTable] = {} for _, v in pairs(oldTable) do if type(v) == "table" and not links[v] then linkTables(v, links) end end return links end local function copyValues(newTable, oldTable, exploredTables, links) for k, v in pairs(oldTable) do if type(v) == "table...