content
stringlengths
5
1.05M
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA AddCSLuaFile() ENT.Type = "anim" ENT.Base = "base_anim" ENT.PrintName = "Dodgeball" function ENT:Initialize() if CLIENT then return end self:SetModel("models/pyroteknik/dodgeball.mdl") self:SetCo...
------------------------------------------------------------------------------------------------------------------------ --ORIENTATION PROJECT(FLappy JET) by ze BANAANIS --Copyright (c) 2014 RgB_211 -- _ -- //\ -- V \ -- \ \ -- \,'.`-. -- |\ `. `. -- ( \ `. `-. ...
---@class ClassWithClosureMethods local ClassWithClosureMethods = {} ---@param tab table ---@return boolean function ClassWithClosureMethods.regularMethod(tab) tab = <error descr="Type mismatch. Required: 'table' Found: '\"not a table\"'">"not a table"</error> tab = {} return true end ---@param tab table ...
--- Module that contains associations between inputs and actions. -- An action is a definition to a key press. One action can be associated to a -- multiple keys, and these can be changed easily, without change the entire code. -- @module actions local keys = {} --- A table representing the KeyConstants assigned to th...
return { short_music_name = "song07", bpm = 720, offset_time = 0, music_name = "bgm-song07", left_track = { { begin_time = "3.248613", key_flag = "K_LEFT", end_time = "3.248613" }, { begin_time = "11.16666", key_flag = "K_LEFT", end_time = "11.16666" }, { begin_time = "13.41667", ...
---@class Struct Struct = {} ---Returns a string containing the values arg1, arg2, etc. packed/encoded according to the format string. ---@param format string The format string ---@vararg any One or more Lua value(s) to encode, based on the given format. ---@return string The packed binary Lua string, plus any position...
pdbFile = "\\\\vestastore\\Demos\\megamol-data\\ccmv_morph_movie_06102010-2.pdb" xtcFile = "\\\\vestastore\\Demos\\megamol-data\\ccmv_morph_movie_06102010-2.xtc" headNode = mmGetConfigValue("headNode") renderHead = mmGetConfigValue("renderHead") machine = mmGetMachineName() role = mmGetConfigValue("role") print("I am...
x1 = "x\(\small_1\)" x2 = "x\(\small_2\)" fact = math.random(20) - 1; term = math.random(15); sg = math.random(2) if (sg == 1) then term = - term end answ1 = "" answ2 = "" if (fact == 0) then answ1 = x1 .. " = " .. lib.check_number(fact) answ2 = x2 .. " = " .. lib.check_number(fact) else answ1 = x1...
local S, G, R = precore.helpers() precore.make_config("quanta.app.tool.dep", { reverse = true, }, { "quanta.base", "quanta.lib.core.dep", {project = function(p) quanta.app_config("tool") end}}) precore.append_config_scoped("quanta.projects", { {global = function(_) quanta.make_app("tool", { "quanta.app.tool.dep...
math.randomseed(os.time()) require('core.modules.window.utils') require('core.modules.keyboard.alias') require('core.utils.rgba') require('core.utils.round') require('core.utils.sign') require('core.utils.spairs') LGML = setmetatable({}, { __call = function (t, options) t.__entry = require(options.entry) t....
--all datas here return { }
--ZFUNC-cutpath-v1 local function cutpath( path ) --> dirname, basename --ZFUNC-cutstr-v1 local function cutstr( str, n ) return str:sub( 1, n ), str:sub( n + 1, #str ) end local i = #path local c = string.sub( path, i, i ) while i > 0 and c ~= "/" do i = i - 1 c = string.sub( path,...
local helpers = require "spec.helpers" local cjson = require "cjson" for _, strategy in helpers.all_strategies() do describe("Status API - with strategy #" .. strategy, function() local client lazy_setup(function() helpers.get_db_utils(nil, {}) -- runs migrations assert(helpers.start_kong { status_...
local function deleteDirectory(dir) local files = System.listDirectory(dir) for i, file in pairs(files) do if file.directory then deleteDirectory(dir .. "/" .. file.name) else System.deleteFile(dir .. "/" .. file.name) end end System.deleteDirectory(dir) end -- Create a new color white = C...
--[[ Copyright 2008-2019 João Cardoso Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL). This file is part of Sushi. Sushi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ...
local M = {} function M.setup() local npairs = require("nvim-autopairs") local Rule = require("nvim-autopairs.rule") local cond = require("nvim-autopairs.conds") npairs.setup({ ignored_next_char = "[%w%.]", -- will ignore alphanumeric and `.` symbol enable_check_bracket_line = false, ...
local util = require("__bztitanium__.data-util"); if mods["5dim_core"] then data.raw.item["titanium-plate"].subgroup = "plates-plates" data.raw.recipe["titanium-plate"].subgroup = "plates-plates" data.raw.item["titanium-ore"].subgroup = "plates-ore" -- Industrial furnace data:extend({ { type = "r...
FAdmin.StartHooks["zzSetTeam"] = function() FAdmin.Access.AddPrivilege("SetTeam", 2) FAdmin.Commands.AddCommand("SetTeam", nil, "<Player>", "<Team>") FAdmin.ScoreBoard.Player:AddActionButton("Set team", "fadmin/icons/changeteam", Color(0, 200, 0, 255), function(ply) return FAdmin.Access.PlayerHasPrivilege(Loc...
local ADDON_NAME, Addon = ... local ThreatPlates = Addon.ThreatPlates local ART_PATH = ThreatPlates.Art local EMPTY_TEXTURE = ART_PATH.."Empty" local function Create(self,name) local db = self.db.profile.settings local theme = { frame = { width = db.frame.width, height = db.frame.height, x...
natives["java.lang.System"] = natives["java.lang.System"] or {} natives["java.lang.System"]["registerNatives()V"] = function()end
function onCreate() -- background shit makeAnimatedLuaSprite('Stage', 'stages/starecrown-stage-red', -500, -300); addAnimationByPrefix('Stage', 'first','Stage', 24, true); objectPlayAnimation('Stage', 'first'); addLuaSprite('Stage', false); scaleObject('Stage', 1.1, 1.1); -- sprites that only load if Low Qualit...
local total = 0 local keys = redis.call("keys", KEYS[1]) for i=1,# keys do redis.call("del", keys[i]) end
local K, C, L = unpack(KkthnxUI) local Module = K:GetModule("Miscellaneous") local math_min = _G.math.min local mod = _G.mod local string_format = _G.string.format local pairs = _G.pairs local select = _G.select local math_floor = _G.math.floor local ARTIFACT_POWER = _G.ARTIFACT_POWER local C_AzeriteItem_FindActiveAz...
-- 处理Entity的逻辑 local helper = require "utils.helper" local const = require "const" local Globals = require "model.Globals" local roleData = require "data.roleData" local Direction = const.Direction local DirectionToVec = const.DirectionToVec local math = math local pairs = pairs local next = next local table = table ...
local relations_allies_f = {} relations_allies_f["Одиночки"] = {allies = {"Одиночки", "Долг", "Свобода", "Чистое Небо", "Ученые", "Торговцы", "Миротворцы", "Последний День", "Стервятники"}} relations_allies_f["Бандиты"] = {allies = {"Бандиты", "Свобода", "Наемники"}} relations_allies_f["Долг"] = {allies = {"Долг", "...
--[[ MIT License Copyright (c) 2021 Christophe MICHEL 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 counter = 0 local counterEvt = { class = 'ncl', type = 'attribution', name = 'counter', } function handler (evt) if evt.class ~= 'ncl' then return end if evt.type ~= 'attribution' then return end if evt.name ~= 'inc' then return end counter = counter + evt.value event.post { ...
-- Copyright (c) 2010-2012 by Robert G. Jakabosky <bobby@sharedrealm.com> -- -- 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 --...
module( 'candy_editor', package.seeall ) require 'candy_editor.PythonBridge' require 'candy_editor.EditorRenderContext'
IDOL_COLLECTED_STATE = { NOT_COLLECTED = 0, COLLECTED = 1, COLLECTED_ON_RUN = 2, } function spawn_idol(x, y , layer, collected, isEasy) local idol_uid if isEasy then spawn_entity(ENT_TYPE.ITEM_MADAMETUSK_IDOLNOTE, x, y, layer, 0, 0) return true elseif collected == IDOL_COLLECTED_STATE.COLLECTED_ON_R...
local HttpEnv = require "arken.net.HttpEnv" local test = {} test['should return nil with query string'] = function() local header = os.read(ARKEN_PATH .. '/tests/arken/net/HttpEnv/example-2.txt') local parser = HttpEnv.new(header) assert(parser:queryString() == nil) end test['should return nil with fragment'] ...
--[[ TheNexusAvenger Implementation of a command. --]] local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand")) local ScrollingTextWindow = require(script.Parent.Parent:WaitForChild("Resources"):WaitForChild("ScrollingTextWindow")) local Command = BaseCommand:Extend() --[[ Creates the command....
SWEP.Base = "arccw_base" SWEP.Spawnable = true -- this obviously has to be set to true SWEP.Category = "ArcCW - Halo 3" -- edit this if you like SWEP.AdminOnly = false SWEP.PrintName = "Automag" SWEP.TrueName = "M6C/SOCOM" SWEP.Trivia_Class = "Pistol" SWEP.Trivia_Desc = "The M6C/SOCOM variant is a special issued handg...
-- You should use this module (ztask.coroutine) instead of origin lua coroutine in ztask framework local coroutine = coroutine -- origin lua coroutine module local coroutine_resume = coroutine.resume local coroutine_yield = coroutine.yield local coroutine_status = coroutine.status local coroutine_running = coroutine.r...
local ffi = require "ffi" ffi.cdef[[ void* malloc(size_t size); void* realloc (void* ptr, size_t size); void* calloc(size_t num, size_t size); void free(void* ptr); typedef struct _MATRIX4_ { float* data; } Matrix4; ]] local Identity = false local TransposeHelper = false local TranslateHelper = false local ...
--[[ ### Rev 09 ### - Fixed GetChecked() now returning a boolean instead of nil/1 ### Rev 10 - 7.0.3/Legion ### - Changed SetTexture(r,g,b,a) -> SetColorTexture(r,g,b,a) ### Rev 11 - 8.0/BfA ### - Added native LSM support to the dropdown - The building of the options page is now done internally, instead of in th...
local Minionlogic = dofile( GetScriptDirectory().."/Minionlogic" ) function MinionThink( hMinionUnit ) Minionlogic.MinionThink(hMinionUnit) end
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/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: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
-- this script is an example of moonscript compilation in a -- pure-Lua program that serves to explain the methods broken -- out into the gmoonscript module. local moonscript_code = [[ class Thing name: "unknown" class Person extends Thing say_name: => print "Hello, I am #{@name}!" with Person! .name = "MoonSc...
--[[ Title: Qiniu Base API Author(s): big Date: 2019.12.16 Place: Foshan use the lib: ------------------------------------------------------------ local QiniuBaseApi = NPL.load("(gl)Mod/WorldShare/api/Qiniu/BaseApi.lua") ------------------------------------------------------------ ]] local Config = NPL.load('(gl)Mo...
-- Helimak simulation for Gkeyll v2.0, -- adapted from Lua input file for Gkeyll v1.0. -- -- Plasma ------------------------------------------------------------------------ local Plasma = (require "App.PlasmaOnCartGrid").Gyrokinetic() local Constants = require "Lib.Constants" local Mpi = require "Comm.Mpi" -- physica...
local Class = require "luanode.class" local EventEmitter = require "luanode.event_emitter" local luanode_stream = require "luanode.stream" local Timers = require "luanode.timers" local Utils = require "luanode.utils" local assert = assert local function noop() end local _M = { _NAME = "luanode.net", _PACKAGE = "lua...
addEventHandler ("onClientPlayerDamage", localPlayer, function (attacker) if source == localPlayer and isElement ( attacker ) and attacker ~= source then if source:getData"indm" and (attacker:getData "indm" == source:getData "indm") then if source:getData ("indm"):find ("Zombi") then cancelEvent(); ...
project "Box2D" location "../../../Scripts/Build" kind "StaticLib" language "C++" warnings "off" targetdir ("../../../Binaries/" .. outputdir) objdir ("../../../Binaries/Intermediate/" .. outputdir) files { "include/**.h", "src/**.h", "src/**.cpp", } includedirs { "include", "src" } filter...
data:extend( { { type = "recipe", name = "marcet", enabled = false, ingredients = { {"electronic-circuit", 20}, {"iron-plate", 100}, {"copper-cable", 50}, }, energy_required = 15, result = "marcet", }, { type = "recipe", name = "portal-piece", enabled = false, ingredients = { {...
local L = LibStub("AceLocale-3.0"):NewLocale("LibEncounters", "deDE") if not L then return end --- Encounter Names --- L["Razorgore the Untamed"] = "Razorgore der Ungezähmte" L["Vaelastrasz the Corrupt"] = "Vaelastrasz der Verdorbene" L["Broodlord Lashlayer"] = "Brutwächter Dreschbringer" L["Firemaw"] = "Feuerschwinge...
hanStartConvoTemplate = ConvoTemplate:new { initialScreen = "first_screen", templateType = "Lua", luaClassHandler = "hanStartConvoHandler", screens = {} } --Part 1 first_screen = ConvoScreen:new { id = "first_screen", leftDialog = "@conversation/npe_station_han_start:s_196",--Great work up there kid. stopConve...
-- ---------------------------------------------------- -- xml_delete.lua -- -- May/27/2011 -- -- ---------------------------------------------------- require ('file_io') require ('text_manipulate') require ('xml_manipulate') print ("*** 開始 ***") local file_xml=arg[1] local id_in= arg[2] print (id_in) str_xml=fil...
include('shared.lua') function ENT:Initialize() self.RealModel = "models/monsters/cat.mdl" end function ENT:Draw() self:SetModel("models/monsters/cat.mdl") self:DrawModel() end
function love.load() text_from = "NORWICH" text_to = "ROXFORT" rpio = require 'rpio' if pcall(gpio_setup) then print("success") else print("error") end IDLE = 0 CHANGING = 1 SUSTAIN = 2 FIRE = 3 state = IDLE CONFIG = "config.dat" ...
local l5 = fct5(); assert(fct1(l5)); local l6 = fct6(); assert(fct4(l6)); local l7 = fct7(); assert(is_global(l7));
local E, L, V, P, G, _ = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore local DT = E:GetModule('DataTexts') local RC = LibStub("LibRangeCheck-2.0") local format = string.format local UnitName = UnitName local function RGB(r, g, b) return format("%02x%02x%02x", ...
-- ------------------------------- --Shader flashlight test -- --c_shader_light.lua -- --Author: Ren712 -- --Contact: knoblauch700@o2.pl-- ------------------------------- local isLightOn = false -- don't mess with the tables local light_shader = {} local flashlight = {} local shader_jaroovka = ...
MOD = {} MOD.name = "yaiom" MOD.if_name = "yaiom" MOD.migrations = {} MOD.interfaces = {} MOD.commands = {} local enabled -- local function get_spiral_index(x, y) -- local pos = x > -y -- local max = math.max(math.abs(x), math.abs(y)) -- local index = pos and 2 * max or 2 * max + 1 -- return index * (index - ...
ix.util = ix.util or {} -- Maps a value with a range to a new range function ix.util.mapValueToRange(valToMap, origMinRange, origMaxRange, newMinRange, newMaxRange) return ((valToMap - origMinRange) * (newMaxRange - newMinRange) / (origMaxRange - origMinRange) + newMinRange); end function ix.util.PlayerPerformBlack...
local interface local function satisfy(iface, class) assert(iface, "interface must not be nil") assert(class, "class must not be nil") for _, name in ipairs(iface.methods) do local m = class[name] assert(m, "Field is nil: " .. name) local t = type(m) assert(t == "function", ...
function GenerateQuads(atlas, tileWidth, tileHeight) local sheetWidth = atlas:getWidth() / tileWidth local sheetHeight = atlas:getHeight() / tileHeight local sheetCounter = 1 local spritesheet = {} for y = 0, sheetHeight - 1 do for x = 0, sheetWidth - 1 do spritesheet[sheetCou...
return require("paq")
getglobal game getfield -1 GetService pushvalue -2 pushstring Lighting pcall 2 1 0 pushnumber 100 setfield -2 FogStart emptystack
battlefieldTint = {r = 0.686274509803922, g = 0.756862745098039, b = 0.811764705882353}
-- Written by Team Ulysses, http://ulyssesmod.net/ module( "Uclip", package.seeall ) if not CLIENT then return end -- This function checks the protector to see if ownership has changed from what we think it is. Notifies player for c-side prediction too. function updateOwnership( ply, ent ) if noProtection then...
format_version = "1.0" rtc_bindings = { { source = "/environment/system_sample_rate", dest = "/global_rtc/init_instance" }, { source = "/environment/instance_id", dest = "/global_rtc/init_instance" } } global_rtc = { init_instance = function(source_property_path, instance_id) local new_no = jbox.make_native_o...
--A lot of Thanks to iUltimateLP and his mod SimpleTeleporters for inspiration and for the use of His Code and graphics require "config" require "util" function createTeleportButton(player) if player ~= nil then local topGui = player.gui.top if not topGui.PersonalTeleportTool then topGui.add({type="b...
local rdebug, root, path, cpath = ... local m = {} function m:start(addr, client) local bootstrap = ([=[ package.path = %q package.cpath = %q local m = require 'start_master' m(package.path, package.cpath, %q, %q, %q) local w = require 'backend.worker' w.openupdate(...
---------------------------------------------------------------------- -- Center the current selection on the sprite -- Copyright 2020 Geoff Beier <geoff@tuxpup.com> -- Licensed under the MIT license. See LICENSE.txt for details. ---------------------------------------------------------------------- -- bail if there's...
-- Cette ligne permet d'afficher des traces dans la console pendant l'éxécution io.stdout:setvbuf('no') -- Empèche Love de filtrer les contours des images quand elles sont redimentionnées -- Indispensable pour du pixel art love.graphics.setDefaultFilter("nearest") -- Cette ligne permet de déboguer pas à pas dans Zero...
--[[ Name: init.lua For: SantosRP By: TalosLife ]]-- AddCSLuaFile "cl_init.lua" AddCSLuaFile "shared.lua" include "shared.lua" local valueModels = { { [0] = "models/props/cs_assault/Dollar.mdl" }, { [100] = "models/props/cs_assault/Money.mdl" }, { [100000] = "models/props/cs_assault/MoneyPallet03E.mdl" }, { [1...
-- Lua DDT debugger sub-file test function subfile_func() print("entering subfile function...") end
admins = { "focus@auth.meet.jitsi", "jvb@auth.meet.jitsi" } plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom" } http_default_host = "meet.jitsi" VirtualHost "meet.jitsi" authentication = "anonymous" ssl = { key = "/config/certs/meet.jitsi.key"; certificate = ...
-- Copyright 2014 David Mentler AddCSLuaFile() include( "physmesh.lua" ) if SERVER then util.AddNetworkString( "ConvexEntry" ) util.AddNetworkString( "ConvexFinish" ) local mesh = game.GetWorld():GetPhysicsObject():GetMeshConvexes() local count = #mesh for k, convex in pairs( mesh ) do timer.Simple( k/...
--!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 updateModel, getModelValue, onModelUpdate = DarkRP.tipJarUIModel.updateModel, DarkRP.tipJarUIModel.getModelValue, DarkRP.tipJarUIModel.onModelUpdate onModelUpdate("lastTipAmount", function(amount) if amount <= 0 then return end local tipjar = getModelValue("tipjar") if not IsValid(tipja...
object_mobile_som_som_dark_jedi_minion_2 = object_mobile_som_shared_som_dark_jedi_minion_2:new { } ObjectTemplates:addTemplate(object_mobile_som_som_dark_jedi_minion_2, "object/mobile/som/som_dark_jedi_minion_2.iff")
-- -- VGG-19 model (http://arxiv.org/abs/1409.1556) -- Max pooling layers have been replaced with average pooling -- function create_vgg(weights_file, backend) local nnlib local lrn -- local response normalization module if backend == 'cudnn' then require 'cudnn' print('using cudnn backen...
local itemDB = require('itemDB') local Util = require('util') local Craft = { } local function clearGrid(inventoryAdapter) for i = 1, 16 do local count = turtle.getItemCount(i) if count > 0 then inventoryAdapter:insert(i, count) if turtle.getItemCount(i) ~= 0 then return false en...
local K, C, L, _ = unpack(select(2, ...)) local pairs, type = pairs, type; local unpack = unpack; local sections = {"TOPLEFT", "TOP", "TOPRIGHT", "BOTTOMLEFT", "BOTTOM", "BOTTOMRIGHT", "LEFT", "RIGHT"} local function SetBorderColor(self, r, g, b, a) local t = self.BorderTextures if not t then return end for _, t...
-- Generated by CSharp.lua Compiler local System = System local SlipeMtaDefinitions local SlipeSharedVehicles System.import(function (out) SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedVehicles = Slipe.Shared.Vehicles end) System.namespace("Slipe.Server.Vehicles", function (namespace) -- <summary> -- Re...
ITEM.name = "Box of cans" ITEM.description = "Zapas napojów do automatu." ITEM.model = "models/props_junk/cardboard_box001a.mdl" ITEM.width = 3 ITEM.height = 2 ITEM.capacity = 10 function ITEM:GetDescription() return (self.description.."\n".."Cans:"..(self:GetData("capacity") or self.capacity)) end ITEM.functi...
/* Copyright (c) 2021 TidalDevs THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMA...
function cameraEffect() fadeCamera(false, 0.5, 255, 255, 255) setTimer(fadeCamera, 550, 0.5, true) end addEvent("cameraEffect", true) addEventHandler("cameraEffect", getRootElement(), cameraEffect)
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmGerenciarSimpleMacros() local obj = GUI.fromHandle(_ob...
local result local rcall = redis.call local i = 3 while not result and KEYS[i] do local source = KEYS[1] .. ':' .. KEYS[i] local destination = KEYS[2] .. ':' .. KEYS[i] result = rcall('rpoplpush', source, destination) i = i + 1 end return result
vr_vxlan_table = {} vr_vxlan_table[1] = {} vr_vxlan_table[1].field_name = "vr_vxlan_h_op" vr_vxlan_table[1].ProtoField = ProtoField.int8 vr_vxlan_table[1].base = base.DEC vr_vxlan_table[1].append_value = { branch = { prepend = ": ", value = function (val) return sandesh_op[...
-- Includes require("menu.lua") require("game.lua") function love.load() -- Variables debug = true audio = true -- whether audio should be on or off state = Menu.create() -- current game state -- Setup --love.graphics.setBackgroundColor(color["background"]) --love.audio.play(music["menu"], 0) --love.a...
chat.command( "kick", "kick", { [ "^(%S+)%s*(.-)$" ] = function( client, name, reason ) local target = chat.clientFromName( name ) if target then if reason ~= "" then target:msg( "#lm%s#lw get stitches.", reason ) end target:kill() if reason ~= "" then chat.msg( "#ly%s#lw was kicked by #ly%s#...
TextTab = setmetatable({}, TextTab) TextTab.__index = TextTab TextTab.__call = function() return "BaseTab", "TextTab" end function TextTab.New(name, _title) local data = { Base = BaseTab.New(name or "", 1), Label = name, TextTitle = _title or "", LabelsList = {}, LeftIte...
---------------------------------------------------------------------------------------------------- -- localized Spanish ((Macros module) strings -- --get the add-on engine local Engine = _G.Cecile_QuickLaunch; --Spanish or Latin America Spanish local L = LibStub("AceLocale-3.0"):NewLocale(Engine.Name, "esES") if no...
--[[ 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 not use ...
local furi = require 'uri' --- @param lsp LSP --- @param params table --- @return boolean return function (lsp, params) local doc = params.textDocument if #lsp.workspaces == 0 then lsp:addWorkspace('root', furi.encode(furi.decode(doc.uri):parent_path())) end lsp:open(doc.uri, doc.vers...
local mod = DBM:NewMod("BoralusTrash", "DBM-Party-BfA", 5) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17943 $"):sub(12, -3)) --mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START 275826 256627 256957 256709 257170 272546 257169 272713 274569 272571 ...
--------------------------------- --- @file stats.lua --- @brief Stats ... --- @todo TODO docu --------------------------------- local mod = {} local dpdk = require "dpdk" local device = require "device" local log = require "log" function mod.average(data) local sum = 0 for i, v in ipairs(data) do sum = sum +...
return { width = 48, height = 48, greeting = 'Oh man, {{red_dark}}shmitty alert!{{white}}', nocommands = "We don't take commands from shmitty. Uh-duh!", animations = { default = { 'loop',{'1,1','4,1','1,1','1,1','1,1','1,1','1,1','2,1','1,1','1,1','1,1','1,1','3,1','1,1','1,1','1,1'},.2, },...
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0296-Update-video-streaming-capabilities-during-ignition-cycle.md -- -- Description: SDL successfully unsubscribes an application from OnSystemCapabilityUpdated notification -- with VIDEO_STREAMING capability type -- -- Preconditions: ...
local Beamer = {} function Beamer.initialize(enemy, props) print(props.wave_type) local game = enemy:get_game() local map = enemy:get_map() local hero = map:get_hero() local sprite local movement -- Event called when the enemy is initialized. function enemy:on_created() -- Initialize the prop...
local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local command = helpers.command local eq = helpers.eq local expect = helpers.expect local funcs = helpers.funcs local insert = helpers.insert local meths = helpers.meths local new_argv = helpers.new_argv local neq = helpers.neq ...
local helpers = require "spec.helpers" local cjson = require "cjson" local meta = require "kong.meta" describe("Plugin: key-auth (access)", function() local client setup(function() assert(helpers.start_kong()) client = helpers.proxy_client() local api1 = assert(helpers.dao.apis:insert { request_...
local _={} _.name="Flower" _.new=function(options) local result=BaseEntity.new(options) local isProto=false if options then isProto = options.isProto or false end local spriteName=Lume.randomchoice({"flower_yellow", "flower_yellow_2","flower_red","blueberry","strawberry", "carrot_small","wheat_1","cactu...
dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/chatcmdbuilder.lua") local inflate = dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/inflate_nocrc.lua") irc_builder = { version = "0.0.8", } irc_builder.get_ground_level = function(x, z) local y = 101 local node local unground = { ...
return function() describe("When an error occurs in an it block", function() it("Should error", function() error("Failure in it block") end) afterEach(function() -- Cause an error to be picked up by the test harness error("afterEach threw an error as expected") end) end) end
data:extend({ zen.lib.duplicateFromRaw("fluid", "heavy-oil", { name = "ammonia", icon = "__zenith-chemistry__/graphics/icons/ammonia.png", base_color = zen.lib.hexToColor("#4c4c4c"), flow_color = zen.lib.hexToColor("#d8d8d8"), }), zen.lib.duplicateFromRaw("fluid", "heavy-oil", { name = "cyanid...