content
stringlengths
5
1.05M
--ZFUNC-camelcase-v1 local function camelcase( strlst ) --> str --ZFUNC-cutstr-v1 local function cutstr( str, n ) return str:sub( 1, n ), str:sub( n + 1, #str ) end local str = {} for i, v in ipairs( strlst ) do local left, right = cutstr( v, 1 ) table.insert( str, string.upper( left )...
local AtlasLoot = _G.AtlasLoot local Pet = AtlasLoot.Button:AddType("Pet", "pet") local Item = AtlasLoot.Button:GetType("Item") local AL = AtlasLoot.Locales --lua local type = type local tonumber = tonumber local str_match = string.match -- blizzard local IsAddOnLoaded, LoadAddOn = IsAddOnLoaded, LoadAddOn local Sho...
require "scripts/library/timers" require "scripts.common"; local PickScreenAbilityScript = { CurrentAbility = nil; OwnButton = nil; Info = nil; abilityHandler = nil; ToolTip = nil; AbilityPanel = nil; spawnTickets = {}; init = false; Properties = { ManaText = {default = EntityId()}, Image = {default =...
local Events = require "scripts/ToolKit/events" local Utilities = require "scripts/ToolKit/utilities" local LimitedSpawner = { Properties = { Debug = false, Event = "OnSpawn", }, } function LimitedSpawner:OnActivate() Utilities:InitLogging(self, "LimitedSpawner") self.gameplayList...
local Roact = require(script.Parent.Parent.Parent.Libraries.Roact) local function App(props) return Roact.createElement("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.fromRGB(71, 71, 69) }, props[Roact.Children]) end return App
local frozArena = LibStub("AceAddon-3.0"):GetAddon("frozArena") frozArena.data = { general = { classIcons = { ["DRUID"] = 625999, ["HUNTER"] = 626000, ["MAGE"] = 626001, ["MONK"] = 626002, ["PALADIN"] = 626003, ["PRIEST"] = 626004, ["ROGUE"] = 626005, ["SHAMAN"] = 626006, ["W...
--[[ #part of the 3DreamEngine by Luke100000 jobs.lua - processes all kind of side tasks (shadows, blurring ambient lighting, rendering sky dome, ...) --]] local lib = _3DreamEngine local timeRequirement = { } local executionsPerSecond = { } local executions = { } local times = { } local pointShadowProjectionMatrix ...
local sx, sy = guiGetScreenSize() local sx = sx/1366 local sy = sy/768 local markers = getMarkersTable() local jM2jN = {} for k, v in ipairs (markers) do -- Markers creation. local jMarker = createMarker(v.x, v.y, v.z - 1, "cylinder", 1.5, v.r, v.g, v.b, 255) jM2jN[jMarker] = k end addEventHandler("onClientRender",...
frame_count = 0 frames = {} last_status = nil function IPC_CreateFrames() local size = 12 frame_count = math.floor(GetScreenWidth() / size) -- print("Max bytes that can be stored: " .. (frame_count * 3) - 1) for i=1, frame_count do frames[i] = CreateFrame("Frame", nil, UIParent) ...
object_tangible_item_beast_converted_verne_decoration = object_tangible_item_beast_shared_converted_verne_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_verne_decoration, "object/tangible/item/beast/converted_verne_decoration.iff")
#!/usr/bin/lua local font = dofile(arg[1]) local lookUp = { string.byte(string.rep("\0", 256), 1, -1) } local fontTable = "" -- print("--[[") local maxIndex = 0 for i,v in pairs(font) do local pos = fontTable:len() lookUp[i+1] = pos if i > maxIndex then maxIndex = i end -- print(i, stri...
local M = {} local lsputils = require "config.lsp.utils" function M.config(installed_server) return { -- https://github.com/golang/tools/blob/master/gopls/doc/settings.md experimentalPostfixCompletions = true, analyses = { unusedparams = true, unreachable = false }, codelenses = { generate = true, g...
---@class CS.FairyEditor.DragDropManager ---@field public agent CS.FairyGUI.GObject ---@field public dragging boolean ---@type CS.FairyEditor.DragDropManager CS.FairyEditor.DragDropManager = { } ---@return CS.FairyEditor.DragDropManager function CS.FairyEditor.DragDropManager.New() end ---@param source CS.FairyGUI.GOb...
DefineClass.DustGenerator = { __parents = { "Building" }, properties = { {id = "dust_per_sol", name = T{653, "Dust per Sol"}, editor = "number", default = 6000, category = "Dust Generator" }, {id = "dust_range", name = T{654, "Dust Range"}, editor = "number", default = 70 * guim, category = "Dust Generator"...
cc = cc or {} ---PhysicsBody object ---@class PhysicsBody : Component local PhysicsBody = {} cc.PhysicsBody = PhysicsBody -------------------------------- --- Whether this physics body is affected by the physics world's gravitational force. ---@return bool function PhysicsBody:isGravityEnabled() end -----------------...
-- misc utilities function clone_list(tensor_list, zero_too) -- utility function. todo: move away to some utils file? -- takes a list of tensors and returns a list of cloned tensors local out = {} for k,v in pairs(tensor_list) do out[k] = v:clone() if zero_too then out[k]:zero() end ...
--[[-------------------------------------------------------------------------- -- -- File: UAStalktheLantern.State.RoundLoop.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: November 25, 2010 -- ----------------...
-- Delete these so we can replace all oil products with our own: -- heavy-oil data.raw["fluid"]["heavy-oil"] = nil -- light-oil data.raw["fluid"]["light-oil"] = nil -- petroleum-gas data.raw["fluid"]["petroleum-gas"] = nil -- oil data:extend( { { type = "fluid", name = "oil", default_temperature = 25, ...
-------------------------------------------------------------------------------- -- 81-717 ventilation switching unit -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for ...
-- Converts a LuaJIT bytecode number to name -- -- usage: luajit bcname.lua bytecode_number [bytecode_number2 [...]] -- -- example: -- $ luajit-2.1 bcname.lua 71 72 -- VARG -- ISNEXT -- -- From: http://www.freelists.org/post/luajit/frames-and-tail-calls,1 local function bcnumber_to_name( bcnum ) i...
-- -- 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 ...
-- unsigned ints local io = require "vstruct.io" local u = {} function u.unpack(_, buf) local n = 0 local e = io("endianness", "get") local sof,eof,step if e == "big" then sof,eof,step = 1,#buf,1 else sof,eof,step = #buf,1,-1 end for i=sof,eof,step do ...
local skynet = require("skynet") print("params: ", ...) local CMD = {} function CMD.add(a, b) return a+b end function CMD.print(o) skynet.error(o) end skynet.start(function() skynet.dispatch("lua", function(session, source, cmd, ...) print("session: ", session, "source: ", source, "cmd", cmd, "pa...
function GetMapTexture(id) -- 1134 Tiger's peak -- 2373 Sunglasses arena -- 2167 Robodrome -- 617 Dalaran sewers -- 980 tolviron -- 572 Ruins -- 1672 Blade's edge -- 1552 Ashamane -- 1911 Mugambala -- 1504 Blackrook hold -- 1825 Hookpoint -- 1505 Nagrand if id == 1134...
UIFont = {} UIFont.Small = {} UIFont.Medium = {}
local self = {} GLib.Geometry.IParametricSurface = GLib.MakeConstructor (self) function self:ctor () end function self:Evaluate (t1, t2, out) GLib.Error ("IParametricSurface:Evaluate : Not implemented.") end function self:GetDegree () GLib.Error ("IParametricCurve:GetDegree : Not implemented.") return 2 end func...
require 'mock.gfx.movie.MovieAsset' require 'mock.gfx.movie.MovieClipPlane'
// Wildfire Black Mesa Roleplay // File description: BMRP Xen script // Copyright (c) 2022 KiwifruitDev // Licensed under the MIT License. //********************************************************************************************* // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPL...
-- Copyright (C) Sony Computer Entertainment America LLC. -- All Rights Reserved. -- -- Dependencies -- include "../sledluaplugin/libsce_sledluaplugin-5.1.4.lua" include "../sleddebugger/libsce_sleddebugger.lua" -- -- Premake build script for the sce simple test sample -- sdk_project "libsce_testsimple-5.1.4_samp...
SRC := $(filter-out loadlib.c lua.c luac.c,$(wildcard *.c)) ifneq (llvm, $(TOOLCHAIN)) CFLAGS += -fstack-usage -fconserve-stack endif CFLAGS += -DLUA_MAXCAPTURES=16 -DL_MAXLENNUM=50 # Enable these options to debug stack usage # -Wstack-usage=128 -Wno-error=stack-usage=128 include $(RIOTBASE)/Makefile....
function onTick() for i = 4, 1, -1 do local num = property.getNumber("Input #"..i) if num == 0 then return end local inp = input.getBool(num) if inp ~= true then output.setBool(num, true) end end end
data:extend({ { type = "bool-setting", name = "hw-print", default_value = true, setting_type = "runtime-per-user", }, { type = "bool-setting", name = "hw-stats", default_value = true, setting_type = "runtime-global", }, { type =...
-- This file is generated by proto-gen-lua. DO NOT EDIT. -- The protoc version is 'v3.19.2' -- The proto-gen-lua version is 'Develop' local protobuf = require "protobuf.protobuf" local registry = require "protobuf.registry" local import_public_sub2_a_pb_desc = require "import_public.sub2.a_pb_desc" local import_pub...
local race = { ["human"] = { name = "human", home = "Stormwind City", pos_x = 100, pos_y = 10, pos_z = 100, pos_o = 180, }, ["orc"] = { name = "orc", home = "Orgrimmar", pos_x = 900, pos_y = 10, pos_z = 900, pos_o = 0, }, } return race
-- Begin of auto-script loadMesh("Data/WTF/rollfield.wtf") loadTexture("Data/Images/rollfield.png") loadTexture("Data/Images/grass.png") loadTexture("Data/Images/drewjetfighter.png") loadTexture("Data/WTF/fighter/fighter.png") loadTexture("Data/WTF/fighter/fighter3.png") loadTexture("Data/WTF/fighter/fighter2.png") loa...
local classes = classes; local super = classes.Object; local class = inherit({ name = "UDim", super = super, func = inherit({}, super.func), get = inherit({}, super.get), set = inherit({}, super.set), concrete = true, }, super); classes[class.name] = class; ...
item_greater_tranquil_boots = class(ItemBaseClass) LinkLuaModifier( "modifier_item_greater_tranquil_boots", "items/farming/greater_tranquil_boots.lua", LUA_MODIFIER_MOTION_NONE ) --LinkLuaModifier( "modifier_intrinsic_multiplexer", "modifiers/modifier_intrinsic_multiplexer.lua", LUA_MODIFIER_MOTION_NONE ) LinkLuaModif...
return function(button_list, stepstype, skin_params) local ret = {} local rots = { Left = 90, Down = 0, Up = 180, Right = 270, UpLeft = 135, UpRight = 225, DownLeft = 45, DownRight = 315 } local tap_redir= {} for i, button in ipairs(button_list) do ret[i] = Def.ActorF...
if (SERVER) then AddCSLuaFile() SWEP.Weight = 5 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false end if ( CLIENT ) then SWEP.BobScale = 0 SWEP.SwayScale = 0 SWEP.DrawAmmo = true SWEP.DrawCrosshair = false SWEP.ViewModelFOV = 50 SWEP.ViewModelFlip = false SWEP.CSMuzzleFlashes = true end SWEP....
mapPanel = modules.game_interface.getMapPanel() gameRootPanel = modules.game_interface.gameBottomPanel gameLeftPanel = modules.game_interface.getLeftPanel() gameTopMenu = modules.client_topmenu.getTopMenu() function currentViewMode() return modules.game_interface.currentViewMode end healthCircle = nil manaCircle = ...
STRINGS.TOTOORIAST = {} STRINGS.NAMES.TOTOORIASTAFF1 = "托托莉的法杖Lv1 破棍" STRINGS.RECIPE_DESC.TOTOORIASTAFF1 = "cosplay经常会用到的破棍" STRINGS.CHARACTERS.GENERIC.DESCRIBE.TOTOORIASTAFF1 = "感觉就像拿着一根塑料棍" STRINGS.NAMES.TOTOORIASTAFF2 = "托托莉的法杖Lv2 工具" STRINGS.RECIPE_DESC.TOTOORIASTAFF2 = "集斧头矿锄砍刀锤子铲子于一身" STRINGS.CHARACTERS...
Log = XLAF.Public.Log MgrAds = XLAF.Public.MgrAds MgrAssetBundle = XLAF.Public.MgrAssetBundle MgrAudio = XLAF.Public.MgrAudio MgrBackdoor = XLAF.Public.MgrBackdoor MgrCoroutine = XLAF.Public.MgrCoroutine MgrData = XLAF.Public.MgrData MgrFPS = XLAF.Public.MgrFPS MgrLevel = XLAF.Public.MgrLevel MgrLoading = XLAF.Public.M...
local mod = DBM:NewMod(2036, "DBM-Party-BfA", 1, 968) local L = mod:GetLocalizedStrings() mod:SetRevision("2019043053001") mod:SetCreatureID(122965) mod:SetEncounterID(2085) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 250585", "SPELL_CAST_START 250258", "SPELL_CAST_...
Locales['es'] = { ['invoices'] = 'facturas', ['received_invoice'] = 'has ~r~recibido~s~ una multa', ['paid_invoice'] = 'has ~g~pagado~s~ una multa de ~r~€%s~s~', ['received_payment'] = 'has ~g~recibido~s~ un pago de ~g~€%s~s~', ['player_not_online'] = 'el jugador no está conectado', ['no_money'] = 'you do not hav...
return { { StatKey = 'CommonAttackWarhammer', Group = 'Base', Stat = 'Attack', Min = '2', Max = '8', Likelihood = '', ['Author Notes (will be ignored by script)'] = '', }, { StatKey = 'CommonAttackWarhammer', Group = 'Bonus1', Stat = 'CritChance', Min = '2', Max = '...
local name, ns = ... local path = 'Interface\\AddOns\\AbuEssentials\\Textures\\' --[[ [1] = path..'Font\\Atarian.ttf', [2] = path..'Font\\Defused.ttf', [3] = path..'Font\\AccPrec.ttf', [4] = path..'Font\\ExpresswayFree.ttf', --]] -- Settings for this addon -- Hiding blizzard power auras: ns.Config.HidePowa[1352...
--交差する魂 --Exchanging Souls --scripted by TOP & Lyris & mercury233 function c100272003.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100272003,0)) e1:SetCategory(CATEGORY_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_...
--[[ TheNexusAvenger Displays the player list during the active round. Does not handle the end of rounds. --]] local STAT_TEXT_ASPECT_RATIO = 1.8 local USERNAME_SIZE_ASPECT_RATIO = 8 local LEADERBOARD_ENTRY_HEIGHT_RELATIVE = 0.035 local MINIMUM_LEADERSTAT_HEIGHT = 24 local MAX_SCREEN_WIDTH_RELATIVE = 0.2 local TRIANG...
return {'anschluss','anschluss','ansicht','ansichtkaart','ansjovis','ansjovisfilet','ansjovisvangst','ansi','ans','anse','ansems','ansink','ansing','ansari','ansjovissen','ansichten','ansichtkaarten','ansjovisfilets','ans','anses','ansichtkaartje','ansichtkaartjes'}
AddCSLuaFile() SWEP.Base = "weapon_gwbase" SWEP.Name = "Tumble" SWEP.AbilitySound = "WeaponFrag.Roll" SWEP.AbilityRange = 500 SWEP.AbilityShowTargetHalos = true SWEP.AbilityDuration = 3 SWEP.AbilityCastTime = 0.5 SWEP.AbilityDescription = "Looks like somebody forgot to tie their shoe laces.\n\nAll Seekers...
local bullets = require "org-bullets" bullets.setup { symbols = { "◉", "○", "✸", "✿" } -- or a function that receives the defaults and returns a list -- symbols = function(default_list) -- table.insert(default_list, "♥") -- return default_list -- end, }
function register_carpet(name, recipe, desc, texture, group) minetest.register_node(":carpet:"..name, { description = desc, tiles = {texture}, paramtype = "light", drawtype = "nodebox", groups = group, node_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+0.0625, 0.5} }, }) minetest...
#!/usr/bin/env lua -- Run the Nelua compiler. os.exit(require'nelua.runner'.run(arg))
--This provides wrappers to prevent themes that used functions that are now unavailable from crashing. Scoring={} setmetatable(Scoring,{__index=function() return function() lua.ReportScriptError("Lua scoring unimplemented") end end})
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "ai_translations.lua" ) AddCSLuaFile( "sh_anim.lua" ) AddCSLuaFile( "shared.lua" ) include( "ai_translations.lua" ) include( "sh_anim.lua" ) include( "shared.lua" ) SWEP.Weight = 5 -- Decides whether we should switch from/to this SWEP.AutoSwitchTo = true -- A...
-- vim: ft=lua ts=2 sw=2 -- (seanssel @ 06/2019) local path = (...):gsub("%.init$", ""):match("%.?(.-)$") .. "." -- Syntactic Sugar {{{ local function rine(val) -- Return (val) If it's Not Empty (non-zero-length) return (val and #val>0) and val end local function rit(a) -- Return (a) If it's Table return (type(a) =...
local addonName, RIC = ... -- POPUP MENU CODE BELOW local PopupDepth local function PopupClick(self, arg1, arg2, checked) if type(self.value)=="table" then self.value[arg1]=not self.value[arg1] self.checked=self.value[arg1] if arg2 then arg2(self.value,arg1,checked) end elseif type(self.value)=="function"...
local JSON = require('json') function jsonResponse (opts) opts = opts or {} return function (req, res, nxt) function res:json (tbl) if not res:getHeader('Content-Type') then res:setHeader('Content-Type', 'application/json') end res:finish(JSON.stringify(tbl, opts)) end nxt(...
local ffi = require "ffi" local C = ffi.C require "resty.openssl.include.ossl_typ" require "resty.openssl.include.stack" local OPENSSL_10 = require("resty.openssl.version").OPENSSL_10 local OPENSSL_11_OR_LATER = require("resty.openssl.version").OPENSSL_11_OR_LATER local OPENSSL_30 = require("resty.openssl.version").OP...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA local Player = FindMetaTable('Player') local Entity = FindMetaTable('Entity') SS_MaterialCache = {} function SS_GetMaterial(nam) SS_MaterialCache[nam] = SS_MaterialCache[nam] or Material(nam) return...
Test = require('connecttest') require('cardinalities') local events = require('events') local mobile_session = require('mobile_session') local mobile = require('mobile_connection') local tcp = require('tcp_connection') local file_connection = require('file_connection') local module = require('testbase') c...
return { source = { type = 'dist', -- https://sourcery.mentor.com/GNUToolchain/subscription3130?lite=MIPS location = 'https://sourcery.mentor.com/GNUToolchain/package10395/public/mips-linux-gnu/mips-2012.03-63-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2', sha256sum = '0a2d92bbca29...
Config = { Command = 'notificationsettings', }
--- Some design choices: -- -- - only cache in SHM, since it is a single string value, adding lua-land -- lru caches seems just a waste of memory -- - 404 expected if custom_id isn't found, makes it harder to spot errors -- when configured with a bad path... -- - 200 expected if custom_id is found and a jwt is retu...
local tostring, tonumber, select, type, getmetatable, setmetatable, rawget = tostring, tonumber, select, type, getmetatable, setmetatable, rawget local bit = require('bit') local band, bor, lshift = bit.band, bit.bor, bit.lshift local Types = require('types') local Any, Array = Types.Any, Types.Array local Auxiliary = ...
local fs = require('efmls-configs.fs') local linter = 'psalm' local args = '--no-progress --no-cache --output-format=emacs ${INPUT}' local command = string.format('%s %s', fs.executable(linter, fs.Scope.COMPOSER), args) return { prefix = linter, lintCommand = command, lintStdin = false, lintFormats = { '%.%#:...
local utils = require "go-tools.utils" local M = {} local gomodifytags = "gomodifytags" local function modify(...) local fname = vim.fn.expand "%" local struct_name = require("go-tools.utils.treesitter").get_current_struct() if not struct_name then utils.log "Struct not found" return end local cmd...
-- -- Copyright (C) 2022 Masatoshi Fukunaga -- -- 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, ...
-- Generated by CSharp.lua Compiler local System = System local SharedRails local SystemIO local SystemNumerics local SystemXml local ArrayTrackNode local ListSharedTrain local ListTrackSwitch local ListTrackSegment local DictInt32RailcarModel System.import(function (out) SharedRails = out.SharedRails SystemIO = Sy...
--[=[ Only the caste ID is required, all others have defaults (though default x,y,z exists only when cursor is visible) Includes portions of Rubble's announce.lua and expwent's unit-info-viewer.lua Calls create-unit.lua to spawn the actual creature Runs modtools if DFHack is 0.43.03-r1 or later, otherwise mod...
-------------------------------------------------------------------- scn = mock_edit.createEditorCanvasScene() -------------------------------------------------------------------- CLASS: StyleSheetPreview ( mock_edit.EditorEntity ) :MODEL{} function StyleSheetPreview:onLoad() self:addSibling( mock_edit.CanvasGrid()...
author 'Prefech' description 'Prefech_ALPR (https://prefech.com/)' version '1.0.2' -- Config shared_script 'config/config.lua' -- Client Scripts client_scripts { 'client/main.lua', 'config/cameras.lua' } -- Server Scripts server_scripts { 'server/main.lua' } game 'gta5' fx_version 'cerulean'
local vector = require"library/vector" local is_keyDown = love.keyboard.isDown return core.SystemConstructor("MoveControlSystem",function(...) return { filter = core.tiny.requireAll( "MoveComponent", "MoveControlComponent" ), process = function(self,entity,dt) ...
PLUGIN.name = "Flash window" PLUGIN.author = "STEAM_0:1:29606990" PLUGIN.description = "" if (SERVER) then return end ix.option.Add("flashWindow", ix.type.bool, true, { category = "chat" }) function PLUGIN:InitPostEntity() if (ix.option.Get("flashWindow", true) and system.IsWindows() and !system.HasFocus()) the...
-- Editors: -- AtroCty -- Hewdraw -- Firetoad -- Yahnich, 23.03.2017 -- #1 Talent - Giving gold on lasthits --function modifier_special_bonus_imba_kunkka_1:DeclareFunctions() -- local decFuncs = -- { -- MODIFIER_EVENT_ON_DEATH -- } -- return decFuncs --end --function modifier_special_bonus_imba_kunkk...
local ObjDecode = {} function ObjDecode:GetSource(sourceObj) if type(sourceObj) == 'string' then return sourceObj elseif sourceObj:IsA('ModuleScript') then return sourceObj.Source elseif sourceObj:IsA('ValueBase') then return sourceObj.Value end end function ObjDecode:DecodeLine(line) local split = string....
-- ALF buffer module -- -- This module contains a buffered array of ALF objects. When the buffer is full (max number of entries -- or max payload size accepted by the collector), it is eventually converted to a JSON payload and moved a -- queue of payloads to be sent to the server. "Eventually", because to prevent the ...
#!/usr/bin/env tjost --[[ * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch) * * This is free software: you can redistribute it and/or modify * it under the terms of the Artistic License 2.0 as published by * The Perl Foundation. * * This source is distributed in the hope that it will be use...
return function() local FDK = require(script.Parent.Parent.src.FDK) FDK:wrapEnvironment(getfenv()) local EventClass = import("org.robloxevents.Event") local event = nil describe("Event", function() it("should be ok", function() expect(EventClass).to.be.ok() end) it("should create a Event correctly", f...
-- This file split up into the mods covered -- Industrial Mod by RAPHAEL minetest.register_craft({ output = "fakeblocks:industrial_white_brick", recipe = { {"default:sand", "default:sand", "default:sand"}, {"default:sand", "industrial:white_brick", "default:sand"}, {"default:sand", "default:sand", "default:san...
function MainApp(root) dofile(root .. "/objects/CommonFunctions.lua") dofile(root .. "/objects/MiningT.lua") dofile(root .. "/objects/Communicator.lua") dofile(root .. "/programs/Configuration.lua") dofile(root .. "/programs/Maintenance.lua") dofile(root .. "/programs/GoToPosition.lua") dofile(root .. "/...
local L = BigWigs:NewBossLocale("Dazar, The First King", "zhTW") if not L then return end if L then L.spears_active = "穿刺之矛開始" end L = BigWigs:NewBossLocale("King's Rest Trash", "zhTW") if L then L.guardian = "活化的守護者" L.minion = "祖爾之僕" L.champion = "影裔勇士" L.shadow_witchdoctor = "影裔巫醫" L.warrior = "影裔戰士" L.timal...
return { Button = require(script.Button), Toolbar = require(script.Toolbar), Widget = require(script.Widget), Contexts = require(script.Contexts), }
-- Do not touch this file ! mrobbery.debug = false -- Leave this value if you don't know what you are doing :) function mrobbery.f.ReloadConfig() if file.Exists("museum_robbery/config.txt", "DATA") then mrobberycfg = {} mrobberycfg = util.JSONToTable(file.Read("museum_robbery/config.txt", "DATA"))...
--[[ Copyright (c) 2010-2013 Matthias Richter 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, publish, dis...
local PANEL = {} AccessorFunc( PANEL, "m_bBackground", "PaintBackground", FORCE_BOOL ) AccessorFunc( PANEL, "m_bBackground", "DrawBackground", FORCE_BOOL ) -- deprecated AccessorFunc( PANEL, "m_bIsMenuComponent", "IsMenu", FORCE_BOOL ) AccessorFunc( PANEL, "m_bDisableTabbing", "TabbingDisabled", FORCE_BOOL ) Acc...
if not modules then modules = { } end modules ['typo-dha'] = { version = 1.001, comment = "companion to typo-dir.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- Some analysis by Idr...
RatCrystalNpc = { click = async(function(player, npc) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID if player.quest["reeves_quest"] == 5 then player.quest[...
table.insert( data.raw["technology"]["uranium-ammo"].effects, { type = "unlock-recipe", recipe = "uranium-shotgun-recipe" } ) --table.insert( data.raw["technology"]["military"].effects, { type = "unlock-recipe", recipe = "empty-shotgun-recipe" } )
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...
--[[ Benchmarking script to analyse the loading speed by loading metadata directly from RAM memory. The intent for this code is to show that loading metadata from disk has an insignificant overhead when retrieving metadata stored in RAM. ]] require 'paths' require 'torch' require 'string' require 'xlua' ...
MPVController = { global_config = {} } function MPVController:is_muted() return (tonumber(mp.get_property('volume')) == 0) end function MPVController:get_current_timestamp() local current_timestamp = (mp.get_property('time-pos', -1)) if type(current_timestamp) == "string" then current_timestamp =...
--[[ base.lua Copyright (c) 2020 Daniel Buckley --]] -- Reference to quests index file quests_index_file = "quests/index.lua" -- Define character elements function mk_element(n, ap, at, ba, bs, bh) return {Name=n, ArmorPercent=ap, ArmorTurns=at, BaseAttack=ba, BaseSpeed=bs, BaseHealth=bh} end elements = {} elemen...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_BUBBLES) local condition = Condition(CONDITION_DROWN) condition:setParameter(CONDITION_PARAM_DELAYED, 1) condition:addDamage(50, 5000, -20) local area = createCombatArea(AREA_CROSS6X6) ...
module(..., package.seeall) local localStorage = require 'gameLogic.localStorage' function new(health, mana, soundEffect) local group = display.newGroup() local imageGroup = display.newGroup() local textGroup = display.newGroup() local menuIsOpened = false local potionsBox = display.newImageRect("images/mainSta...
local mod = DBM:NewMod(1469, "DBM-Party-Legion", 10, 707) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17077 $"):sub(12, -3)) mod:SetCreatureID(95887) mod:SetEncounterID(1817) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 193443 194942", "SPELL_PERIOD...
local PLUGIN = PLUGIN PLUGIN.name = "Door System" PLUGIN.description = "Adds a simply configurable door system." PLUGIN.author = "Skay™#2752" --[[ DOOR SYSTEM TEMPLATE ["mapname"] = { -- use status in console { id = 3965, -- Map Creation ID of the door name = "Yo CP's come in boys.", -- Display name of th...
local random = require 'lqc.random' local byte = require 'lqc.generators.byte' local r = require 'lqc.report' local property = require 'lqc.property' local lqc = require 'lqc.quickcheck' local function is_byte(value) return type(value) == 'number' and value % 1 == 0 and value >= 0x00 an...
function love.conf(t) t.title = "Mari0 SE" t.author = "Maurice" t.identity = "mari0_se" t.modules.physics = false t.version = "0.10.1" end
require "import" import "android.widget.*" import "android.view.*" import "android.app.*" local classes = require "android" import "clayout" import "mlayout" import "autotheme" activity.Title = "Java API浏览器" activity.setTheme(autotheme()) function adapter(t) local ls = ArrayList() for k, v in ipairs(t) do ls.a...