content
stringlengths
5
1.05M
---@class KeySubType @enum KeySubType = {} --- --- 1 KeySubType.KEY_NORMAL = 1 --- --- 2 KeySubType.KEY_GOLDEN = 2 --- --- 3 KeySubType.KEY_DOUBLEPACK = 3 --- --- 4 KeySubType.KEY_CHARGED = 4 return KeySubType
local player_called local in_call = false function tvRP.phoneCallWaiting(player, waiting) if waiting then player_called = player else player_called = nil end end function tvRP.phoneHangUp() tvRP.disconnectVoice("phone", nil) end -- phone channel behavior tvRP.registerVoiceCallbacks("phone", function(...
--- -- @classmod abtesting.adapter.policy -- @release 0.0.1 local modulename = "abtestingAdminPolicyGroup" local _M = { _VERSION = "0.0.1" } local mt = { __index = _M } local ERRORINFO = require('abtesting.error.errcode').info local runtimeModule = require('abtesting.adapter.runtime') local policyModule = require('...
require("config") --Item if stackchanges == true then require("prototypes.stackchanges") end if inventorychanges == true then require("prototypes.inventorychanges") end --Item group require("prototypes.item-groups-automatization") require("prototypes.item-group-changes") require("prototypes.item-groups-ene...
local t = Def.ActorFrame{}; t[#t+1] = Def.ActorFrame{ OnCommand=cmd(diffusealpha,0;sleep,0.2;linear,0.2;diffusealpha,1); GainFocusCommand=function(s) setenv("PlayCourse",1) end; LoseFocusCommand=function(s) setenv("PlayCourse",0) end; OffCommand=function(self) if getenv("PlayCourse") == 1 then self:sleep(0.2)...
local helpers = require("test.functional.helpers")(after_each) local exec_lua, feed = helpers.exec_lua, helpers.feed local ls_helpers = require("helpers") local Screen = require("test.functional.ui.screen") describe("Extra-nodes:", function() local screen before_each(function() helpers.clear() ls_helpers.sessio...
--[[ Assign AutoStart Fix v1.1.0.1 See README.md for more information MIT License Copyright (c) 2020 Down Right Technical Inc. 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...
cflags{ '-Wall', '-Wpedantic', '-Wno-overflow', -- ioctl opcode conversion '-D _GNU_SOURCE', '-include $dir/config.h', } lib('libcommon.a', {'log.c', 'ud_socket.c'}) exe('acpid', { 'acpid.c', 'acpi_ids.c', 'connection_list.c', 'event.c', 'input_layer.c', 'inotify_handler.c', 'libnetlink.c', 'netlink.c', ...
-- Module dependencies local MODULE = require( script:GetCustomProperty("ModuleManager") ) function COMBAT() return MODULE:Get("standardcombo.Combat.Wrap") end local CONST = require(script:GetCustomProperty("CONST")) local function META_AP() return _G["Meta.Ability.Progression"] end local function META_Consumable...
-- -- theme.lua -- Theme config -- local gears = require("gears") local helpers = require("helpers") local dpi = require("beautiful").xresources.apply_dpi local theme = {} -- ======================================== -- Variables -- ======================================== -- Theme color local color = { lightblue ...
Locales['de'] = { ['cant_rob'] = '~r~Je kunt dit niet roven', ['press_stop'] = 'Druk op [DEL] om te stoppen', ['max_amount'] = '~r~Het maximale bedrag bereikt', ['min_police'] = 'Er moet minstens ~b~%s politie~s~ in de stad zijn om te kunnen beroven', ['no_room'] = '~r~Je kunt de buit niet vast...
--[[ Addon: Lib For: G-Core By: SlownLS ( www.g-core.fr ) ]] GCore.Lib.Sample = GCore.Lib.Sample or {} local tblInfos = {} local tblModels = { "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/...
--[[ The approach of avoiding constructors when saving tables with cycles is too radical. It is possible to save the table in a more pleasant format using constructors for the general case, and to use assignments later only to fix sharing and loops. Reimplement function save using this approach. Add to it all the go...
local Protocol = { -- information level -- INFO = "info", -- suggestion -- e.g.) performance issue WARN = "warn", -- reccommendation -- e.g.) result may be broken (professionals can ignore) ERR = "error", -- execution is impossible }; Protocol.__index = Protocol; ...
cstrlib = require "cstrlib" function PrintTrimmedString(str1) print("[" .. cstrlib.trim(str1) .. "]") end PrintTrimmedString(" asdfasd a asdf ") PrintTrimmedString(" [hello] w orld ")
local lwtk = require"lwtk" local Application = lwtk.Application local Column = lwtk.Column local Row = lwtk.Row local Space = lwtk.Space local PushButton = lwtk.PushButton local TextInput = lwtk.TextInput local TextLabel = lwtk.TextLabel local TitleText = lwtk.TitleTex...
-- rVignette: core -- zork, 2018 ----------------------------- -- Variables ----------------------------- local A, L = ... ----------------------------- -- Functions ----------------------------- local function OnVignetteAdded(self,event,id) if not id then return end self.vignettes = self.vignettes or {} if s...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Cache global variables --Lua functions local _G = _G --WoW API / Variables local CreateFrame = CreateFrame local hooksecurefunc = hooksecurefunc --Global variables that we don't cach...
-- -- Dust bins attach to any sawmill, or milling tool and collects the fallen dust -- -- For now it only connects to the sawmill local Cuboid = assert(foundation.com.Cuboid) local ng = Cuboid.new_fast_node_box local Groups = assert(foundation.com.Groups) local table_merge = assert(foundation.com.table_merge) local Dir...
-- Mock version of various items for testing local _M = {} local r = { puts = function(r, ...) print(...) end, getcookie = function(r, name) return nil end, strcmp_match = function(str, pat) pat = pat:gsub("%.", "%%."):gsub("*", ".+") return str:match(pat) ...
pcall(require, 'luarocks.loader') ---@diagnostic disable-next-line: lowercase-global root = root or {} local awful = require('awful') local beautiful = require('beautiful') local gears = require('gears') require('awful.autofocus') local config = require('config') local bar = require('bar')...
--constants --pin assignments: CS_BREW = 3 CS_STEAM = 4 STEAM_PIN = 1 SSR_PIN = 2 --calibration: BREW_ZERO = 7620.5 --adc reading at 0C STEAM_ZERO = 7620.5 --safety: HIGH_TEMP_LOCKOUT = 170 --temp above this value is an error, or thermal runaway LOW_TEMP_LOCKOUT = 10 --temp below this value is an error (or...
local Name, Addon = ... local Models, Store, Util = Addon.Models, Addon.Store, Addon.Util local Self = Addon.Craft -- Craft tradeskill lines Self.LINE_ALCHEMY = 171 Self.LINE_BLACKSMITHING = 164 Self.LINE_ENCHANTING = 333 Self.LINE_ENGINEERING = 202 Self.LINE_INSCRIPTION = 773 Self.LINE_JEWELCRAFTING = 755 Self.LINE_L...
QuickAccess = QuickAccess or class() function QuickAccess:init(parent, menu) self._parent = parent local normal = not Global.editor_safe_mode local size = BLE.Options:GetValue("QuickAccessToolbarSize") local toolbar_position = BLE.Options:GetValue("ToolbarPosition") local reversed = BLE.Options:Get...
local status_ok, lsp_installer = pcall(require, "nvim-lsp-installer") if not status_ok then vim.notify("could not load lsp_installer") return end -- Register a handler that will be called for all installed servers. -- Alternatively, you may also register handlers on specific server instances instead (see example bel...
require("moonsc").import_tags() -- We test that typexpr is evaluated at runtime. -- If the original value of var1 is used, the invocation will -- fail (test215sub1.scxml is not of type 'foo', even if the -- platform supports foo as a type). If the runtime value is -- used, the invocation will succeed return _scxml{ ...
local cjson = require "cjson" local helpers = require "spec.helpers" for _, strategy in helpers.each_strategy() do describe("Plugin: acl (API) [#" .. strategy .. "]", function() local consumer local admin_client local bp local db lazy_setup(function() bp, db = helpers.get_db_utils(strat...
--加上需要require的路径 package.path = package.path.. ";./lua/sandbox/?.lua;" JSONLIB = require("JSON") utils = require("utils") local less = false local maxLine = 10 local maxLen = 500 --重写print函数 function print(...) if less then return end if lua_run_result_var ~= "" then lua_run_result_var =...
local windAttack = {} windAttack.name = "windAttackTrigger" windAttack.placements = { name = "wind_attack" } return windAttack
--[[ GD50 Pokemon Author: Colton Ogden cogden@cs50.harvard.edu ]] Entity = Class{} function Entity:init(def) self.direction = 'down' self.animations = self:createAnimations(def.animations) self.mapX = def.mapX self.mapY = def.mapY self.width = def.width self.height = def.he...
workspace "Minigames" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" include "Minigames" include "Minigames/vendor/glfw" include "Minigames/vendor/glad" include "Minigames/vendor/ImGui"
--Design pokedexWindow = nil --functions Painel = { pokedex = { ['pnlDescricao'] = "", ['pnlAtaques'] = "", ['pnlHabilidades'] = "", } } openedDex = {} dexMax = 0 function init() connect(g_game, { onEditText = showPokemonDescription, onGameEnd = hide } ) end function showPokedex() if pokedexWindow then ...
return {'abdicatie','abdiceren','abdij','abdijbier','abdijcomplex','abdijgebouw','abdijkerk','abdijsiroop','abdiqueren','abdis','abdomen','abdominaal','abdijgemeenschap','abdijhoeve','abdijsite','abd','abdallah','abdel','abdelaziz','abdelkader','abdelkarim','abdellah','abdoel','abdul','abdullah','abdullahi','abdurrahma...
--- A double queue. -- Taken from "Programming in Lua" (http://www.lua.org/pil/11.4.html) -- Modified to not allow nil values, and returns nil if pop_first or pop_last is used when the queue is empty. -- @module Queue -- @usage local Queue = require('stdlib/queue') local fail_if_missing = require 'stdlib/core'['fail_i...
description 'Custom Loadscreen' resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' files { 'index.html', 'intro.mp4', 'styles.css', 'music.mp3' } loadscreen 'index.html'
---------------------------------------------------------------------------------------------------- -- Creator Tools LUA Utilities File ---------------------------------------------------------------------------------------------------- --[[ This file includes useful functions for usage in Creator Tools Lua script...
-- Exports for 'Entity' return { CharacterEntity = require(script.CharacterEntity), Entity = require(script.Entity), }
local suit = require 'lib.suit' local bitser = require 'lib.bitser' TheMenu = Engine:EntityClass('TheMenu') _G.MenuStage = { Loading = 0, MainMenu = 1, Playing = 2, Gameover = 3, } local DEFAULT_SETTINGS = { fullscreen = false, volume = 1 } function TheMenu:loadPreferences() self.setting...
local ParallelTable, parent = torch.class('nn.ParallelTable', 'nn.Module') function ParallelTable:__init() parent.__init(self) self.modules = {} self.output = {} self.gradInput = {} end function ParallelTable:add(module) table.insert(self.modules, module) end function ParallelTable:get(index) retur...
--[[ A Frame that has an AbsoluteSize equal to the screen size, regardless of the size of its parent. The size of this frame cannot be changed in any way. This will error if used on the server. This may be used the same as any ScreenGui. ]] local GuiService = game:GetService("GuiService") local Worksp...
POT_GROW_TIME = 60 * 15; MAX_POT = 5; local MIXTURE = {} MIXTURE.ID = 51; MIXTURE.Results = "drug_cocaine"; MIXTURE.Ingredients = {"drug_coca_seeds", "item_pot"}; MIXTURE.Requires = { {GENE_INTELLIGENCE, 1}, {GENE_DEXTERITY, 1}, }; MIXTURE.Free = true; MIXTURE.RequiresHeatSource = false; MI...
local io = require('io') local lswCliShell = {} function lswCliShell.blue(self, text) return "\027[0;34m" .. text .. "\027[0m" end function lswCliShell.green(self, text) return "\027[0;32m" .. text .. "\027[0m" end function lswCliShell.red(self, text) return "\027[0;31m" .. text .. "\027[0m" end function lsw...
Locales['fr'] = { -- DialogBox Name ['dialogbox_playerid'] = 'ID du Joueur (8 Caractères Maximum):', ['dialogbox_amount'] = 'Montant (8 Caractères Maximum):', ['dialogbox_amount_ammo'] = 'Montant de Munitions (8 Caractères Maximum):', ['dialogbox_vehiclespawner'] = 'Nom du Véhicule (50 Caractères Maximum):', ...
local Skada = Skada Skada:AddLoadableModule("Resurrects", function(L) if Skada:IsDisabled("Resurrects") then return end local mod = Skada:NewModule(L["Resurrects"]) local playermod = mod:NewModule(L["Resurrect spell list"]) local targetmod = mod:NewModule(L["Resurrect target list"]) local pairs, tostring, format...
-- handles loading in sprite sheet resources -- the format of spritesheet data is actually Lua code that is executed in a sandbox -- copyright 2016 Samuel Baird MIT Licence local module = require('core.module') local sandbox = require('util.sandbox') local display_data = require('lt.display_data') return module(func...
return require(script.Parent.util:WaitForChild("compileSubmodules"))(script)
local _M = {} _M.BizhawkDir = "C:/desres/biz/" _M.StateDir = _M.BizhawkDir .. "Lua/SNES/metroid-learning/state/" _M.PoolDir = _M.BizhawkDir .. "Lua/SNES/metroid-learning/pool/" --[[ At the moment the first in list will get loaded. Rearrange for other savestates. (will be redone soon) --]] _M.State = { "DP1.sta...
require('bufferline').setup { options = { offsets = {{filetype = "NvimTree", text = "", padding = 1 }}, } }
diamondShopRecordMoreInfo_titleName=[[兑换成功,奖品已发放]] diamondShopRecordMoreInfo_Text1=[[确定]]
local key = KEYS[1]; local entry = ARGV[1]; local increment = tonumber(ARGV[2]) or 0; local limit = tonumber(ARGV[3]) or 0; local clientVersion = tonumber(ARGV[4]) or 0; local existingVersion = tonumber(redis.call("HGET", key, "_version")) or 0; -- Limited counter is not exact. Every client should use timestampt or ...
--------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- --[[ General configuration parameters ]] config.mobileHost = "127.0.0.1" config.defaultProtocolVersion ...
fx_version 'adamant' games { 'gta5' } description 'NPC-Garages' version '1.0.0' --resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9' client_script "@npc-scripts/client/errorlog.lua" client_script "@npc-infinity/client/cl_lib.lua" server_script "@npc-infinity/server/sv_lib.lua" server_scripts { 'serve...
function PIS:SetSettings(ply, tbl) ply.pingsSettings = tbl end function PIS:SetSetting(ply, setting, value, ignoreSave) ply.pingsSettings[setting] = value if (ignoreSave) then return end PIS:SaveSettings(ply) end function PIS:GetSettings(ply) if (!ply.pingsSettings) then ply.pingsSettings = PIS.Config.Defau...
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISDisinfect : ISBaseTimedAction ISDisinfect = ISBaseTimedAction:derive("ISDisinfe...
-- Draws a 160×100 PNG image. -- -- Requires a T3 display setup and the libPNGimage library, which you can -- install using the following command: -- -- hpm install libpngimage local path = require("shell").resolve((...)) local png = require("libPNGimage") local wbuffer = require("wonderful.buffer") local fb = wbu...
--[[ Test `test4` on `dconv` tool, a model-based, semantic complete datatype automatic generation. Test created using (Lua) Busted Framework. This test does sanity checks for the basic output of the tool. Testing DDBLX and convert_ddblx --> DYNAMIC CONVERSION Using ROS2/rclc Main Autho...
local zigzag = {} function zigzag.encode(int) if int < 0 then return ~(int << 1) else return int << 1 end end function zigzag.decode(uint) if uint & 1 == 1 then return ~(uint >> 1) else return uint >> 1 end end return zigzag
inspect = require("inspect") -- Creates 50x versions of each recipe from selected categories require("scripts.recipeSetup") -- Create the item groups for these new recipes require("scripts.itemGroupSetup") -- Adds big items to list of productivity module usable items require("scripts.productivityFix") -- Creates du...
local _ = _ or function(k, ...) return ImportPackage("i18n").t(GetPackageName(), k, ...) end ------------------------------------------------------- ----------- CONFIG FILE FOR KEYS SHORTCUTS ------------ ------------------------------------------------------- INTERACT_KEY = "E" -- To interact with something PHONE_OPE...
vim.g.operator_sandwich_no_default_key_mappings = 1 vim.g.sandwich_no_default_key_mappings = 1
--[[ Variables ]] local ActiveParticles = {} local BlacklistedParticles = {} --[[ Functions ]] function LoadParticleDictionary(dictionary) if not HasNamedPtfxAssetLoaded(dictionary) then RequestNamedPtfxAsset(dictionary) while not HasNamedPtfxAssetLoaded(dictionary) do Cit...
-- Revert Artisanal Reskins recipe icons if mods['reskins-angels'] then local slag_processing_list = { 'slag-processing-1', 'slag-processing-2', 'slag-processing-3', 'slag-processing-4', 'slag-processing-5', 'slag-processing-6' } for _,name in pairs(slag_processing_list) do ...
AddCSLuaFile() ENT.Base = "arccw_ammo" ENT.RenderGroup = RENDERGROUP_TRANSLUCENT ENT.PrintName = "Magnum Ammo (Large)" ENT.Category = "ArcCW - Ammo" ENT.Spawnable = true ENT.Model = "models/items/arccw/magnum_ammo...
--サイバネット・リカバー --Cynet Recover --Scripted by Eerie Code function c100318021.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(100318021,0))...
local DebugLogger = require "lil.DebugLogger" local ThreadUtils = require("lil.ThreadUtils") local PATTERN_GENERATOR_MAP = { ["%{iso8601}d"] = function() DebugLogger.log("building ISO 8601 format date for pattern") local utcDateTime = os.date("!*t") return string.format("%04d-%02d-%02dT...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local cjson = require('cjson') local SoundMng = require('app.helpers.SoundMng') local CreateRoomDKController = class("CreateRoomDKController", Controller):include(HasSignals) local tools = require(...
-- -- Update and install World of Warcraft addons from the command line. -- Author : Phanx <phanx@phanx.net> -- Website: https://gitlab.com/phanx/wow-addon-updater -- License: Zlib - see LICENSE.txt for full text -- local cleanHTML = dofile("utils/cleanHTML.lua") local decodeEntities = dofile("utils/decodeEntities.lua...
local GearBase = require("Gears.GearBase") local GearXY = class('GearXY', GearBase) function GearXY:ctor(owner) GearXY.super.ctor(self, owner) end function GearXY:init() self._default = { x=self._owner.x, y=self._owner.y } self._storage = {} end function GearXY:addStatus(pageId, buffer) local gv; ...
workspace "Praction" architecture "x64" configurations { "Debug", "Release", "Dist" } --[[ output directory is the location of built files --]] outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" --[[ cfg.buildcfg : debug/release/etc --]] --[[ cfg.system ...
object_tangible_loot_npc_loot_heroic_sm_generator = object_tangible_loot_npc_loot_shared_heroic_sm_generator:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_heroic_sm_generator, "object/tangible/loot/npc/loot/heroic_sm_generator.iff")
local sprite_demo = class({}) --for the demo state ui sprite_demo.name = "sprites and entities" sprite_demo.description = ([[ complex sprite management and lots of particle spam (space to add an extra firework) ]]):dedent() --setup function sprite_demo:new(parent) self.k = ferris.kernel() --tilemap layer :add_...
AddCSLuaFile() ENT.Model = "models/props_wasteland/gaspump001a.mdl" ENT.Type = "anim" ENT.Base = "base_anim" ENT.PrintName = "Shop" ENT.Author = "Piengineer" ENT.Contact = "http://steamcommunity.com/id/Piengineer12/" ENT.Purpose = "A shop to sell things." ENT.Instructions = "Press 'Use' to open up the ...
------------- -- Defines -- ------------- #wg_show = 1 #wg_isshown = 2 #wg_move = 3 #wg_resize = 4 #wg_getsize = 5 #wg_getpos = 6 #wg_reset = 7 ------------------- -- Custom events -- ------------------- addEvent ( "onRafalhAddWidget" ) addEvent ( "onRafalhGetWidgets" )
RecalcForceCommand = { name = "recalcforce", } AddCommand(RecalcForceCommand)
local meta = getrawmetatable(game) local old = meta.__namecall setreadonly(meta, false) meta.__namecall = newcclosure(function(self,...) local method = getnamecallmethod() local args = {...} if method == "FireServer" and self.Name == "StaminaWaste" then return nil else return old(self,...) end end)
local c = require('component') local event = require('event') local filesystem = require('filesystem') local log = require('log')('media') local MEDIA_FOLDER = '/media/' started = false local getAllFsAddr = function() return c.list('filesystem') end local getFsProxy = function(addr) return c.proxy(addr) end local ge...
PROJECT = "hi" VERSION = "1.0.0" local sys = require "sys" sys.taskInit(function() while 1 do log.info("luatos", "hi", os.date()) sys.wait(1000) end end) -- 用户代码已结束--------------------------------------------- -- 结尾总是这一句 sys.run() -- sys.run()之后后面不要加任何语句!!!!!
-- Squigs! -- spliney kind of line squiggles... sorta like the roundrect version of a spline -- -- Scott Lawrence - yorgle@gmail.com displayW = playdate.display.getWidth() displayH = playdate.display.getHeight() class('Squig').extends( Object ) function Squig:init() Squig.super.init( self ) -- not used...
client_script "simexe.lua"
FPP = FPP or {} FPP.entOwners = FPP.entOwners or {} FPP.entTouchability = FPP.entTouchability or {} FPP.entTouchReasons = FPP.entTouchReasons or {} local touchTypes = { Physgun = 1, Gravgun = 2, Toolgun = 4, PlayerUse = 8, EntityDamage = 16 } local reasonSize = 4 -- bits local reasons = { ...
-- The tested strategy. strategy = "MaCross" -- Path to the parameters file for the strategy. strategyParams = "data/params/MaCross-backtest.lua" -- Ask user confirmation before launching the backtest. confirmLaunch = true -- If false, only the start parameters will be used with one thread. optimizationMode = false ...
local cluster_reactor = assert(yatm.cluster.reactor) local cluster_energy = yatm.cluster.energy if not cluster_energy then return end local function energy_bus_refresh_infotext(pos, node) local meta = minetest.get_meta(pos) local infotext = cluster_reactor:get_node_infotext(pos) .. "\n" .. cluster_ener...
--[[ Login.MouseButton1Down:connect(function() if Login.Text == "trial" then Main.Visible = false Unlock.Visible = true end end) --]] local Synapse = Instance.new("ScreenGui") local Main = Instance.new("ImageLabel") local Frame = Instance.new("Frame") local ReadyToBegn = Instance.new("TextLabel") local Usernam...
redis.replicate_commands() local injected_time = tonumber(ARGV[1]) local redis_time = redis.call('time') local local_time = redis_time[1] + 0.000001 * redis_time[2] local now = injected_time or local_time local current_bucket_levels = {} local new_bucket_levels = {} local timeouts = {} local exceeded = false for key...
require("busted.runner")() local logging = require("norn.logging") describe("logging", function () describe("explode", function () it("should stringify empty table", function () local tbl = {} local s = tostring(logging.explode(tbl)) assert.equals(s, "{}") end) it("should stringify a sequence", funct...
---@class campingText campingText = {}; -- menu text campingText.placeCampfire = getText("ContextMenu_Build_a_fire"); campingText.addPetrol = getText("ContextMenu_Add_petrol"); campingText.lightCampfire = getText("ContextMenu_Light_fire"); campingText.addTent = getText("ContextMenu_Put_up_tent"); campingText.removeTent...
--!strict local Types = require(script.Parent.Parent.Types) local spec: Types.Spec = function(practModule, describe) local decorate = (require :: any)(practModule.decorate) local Symbols = (require :: any)(practModule.Symbols) describe('decorate', function(it) it('Should create a Decorate element...
local source = {} local cmp = require('cmp') source.new = function() local self = setmetatable({}, { __index = source }) self.items = nil return self end source.get_trigger_characters = function() return { 'Ex', 'In', 'As', 'Li', 'Eq', 'E:', 'I:'...
components = {} toLoad = recursiveEnumerate("components") for _, path in ipairs(toLoad) do if path:sub(-3) == "lua" then -- clean up the string path = path:gsub("/", ".") -- replace / with . path = path:sub(1, -5) -- remove .lua name = path:sub(12) -- really? components[n...
-------------------------------- -- @module LayerColor -- @extend Layer,BlendProtocol -- @parent_module cc -------------------------------- -- change width and height in Points<br> -- since v0.8 -- @function [parent=#LayerColor] changeWidthAndHeight -- @param self -- @param #float w -- @param #float h ...
local args = ...; local ac = args.PiroGame.class('AudioComponent', args.PiroGame.Component); function ac:initialize(file, t, id) args.PiroGame.Component.initialize(self, id); self.file = file; self.type = t; end function ac:activate() -- print('AudioComponent', self, self.id, 'activation. For', self....
JASS_MAX_ARRAY_SIZE = 8192 PLAYER_NEUTRAL_PASSIVE = 15 PLAYER_NEUTRAL_AGGRESSIVE = 12 PLAYER_COLOR_RED = cj.ConvertPlayerColor(0) PLAYER_COLOR_BLUE = cj.ConvertPlayerColor(1) PLAYER_COLOR_CYAN = cj.ConvertPlayerColor(2) PLAYER_COLOR_PURPLE = cj.ConvertPlayerColor(3) PLAYER_COLOR_YELLOW = cj.ConvertPlayerColor(4) PLAYER...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('ModifyObject', { 'Prop', "water_consumption", 'Percent', "<baseincrease>", 'ModifyId', "WaterChip", }), }, Category = "Tick_FounderStageDone", Effects = {}, Enabled = true, Image ...
#!/usr/local/bin/lua local P ={balance=0}; if _REQUIREDNAME == nil then Named= P else _G[_REQUIREDNAME] = P end function Named:setname() return self.name or ""; end function Named:getname(n) self.name = n end return Named;
-- Thanks to Shagu/pfUI local cache = { } local healthscan = CreateFrame("GameTooltip", "ufiHpScanner", UIParent, "GameTooltipTemplate") healthscan:SetOwner(healthscan,"ANCHOR_NONE") local healthbar = healthscan:GetChildren() local cache_update = CreateFrame("Frame") cache_update:RegisterEvent("UNIT_HEALTH") c...
-- testsupport.lua: A simple UpperCaseFile unit used for Tundra's test harness module(..., package.seeall) local util = require 'tundra.util' local nodegen = require 'tundra.nodegen' local depgraph = require 'tundra.depgraph' local mt = nodegen.create_eval_subclass {} function mt:create_dag(env, data, deps) retur...
-- paralyzer_blue return { ["paralyzer_blue"] = { usedefaultexplosions = false, bluespark = { air = true, class = [[dirt]], count = 1, ground = true, underwater = 1, water = true, properties = ...
-- TP All Cars for get, Car in pairs(workspace.Vehicles:GetChildren()) do if Car.Name == Firetruck.Name then Car:MoveTo(workspace[game.Players.LocalPlayer.Name].Torso.Position + Vector3.new(math.random(0,20),0,math.random(0,20))) end end
local nmap = require "nmap" local rpc = require "rpc" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" description = [[ Detects vulnerabilities and gathers information (such as version numbers and hardware support) from VxWorks Wind DeBug agents. Wind DeBug is a SunR...
local beautiful = require("beautiful") local gears = require("gears") local gfs = require("gears.filesystem") require("config.key") require("config.icons") require("config.menu") require("config.notif")