content
stringlengths
5
1.05M
--[[- This provides a pure Lua implementation of the builtin @{require} function and @{package} library. Generally you do not need to use this module - it is injected into the every program's environment. However, it may be useful when building a custom shell or when running programs yourself. @module cc.require @sin...
local RunService = game:GetService("RunService") if not game:GetService("RunService"):IsServer() then error("CloudCore_Client can be only loaded in client context!") end local Module = {} local _Wrappers = script.Parent.CloudCore_Function:InvokeServer("GetWrappersInfo") for serviceName, members in pairs(_Wrappers) d...
do --- mat4mul !private_G function mat4mul(a11, a21, a31, a41, a12, a22, a32, a42, a13, a23, a33, a43, a14, a24, a34, a44, b11, b21, b31, b41, b12, b22, b32, b42, b13, b23, b33, b43, b14, b24, b34, b44...
-- Routine for NPC "Helena" outside of her inn. velocity = 40 loadRoutine = function(R, W) if (W:isConditionFulfilled("npc_helena2","talked")) then R:setTilePosition(28,51) R:goToTile(28,49) R:setDisposed() else R:setTalkingActiveForce(true) R:setReloadEnabled(true) R:setTilePosition(28,51) R:setFaci...
str = "abcdefghijklmnopqrstuvwxyz" n, m = 5, 15 print( string.sub( str, n, m ) ) -- efghijklmno print( string.sub( str, n, -1 ) ) -- efghijklmnopqrstuvwxyz print( string.sub( str, 1, -2 ) ) -- abcdefghijklmnopqrstuvwxy pos = string.find( str, "i" ) if pos ~= nil then print( string.sub( str, pos, pos+m ) ) end ...
-- Mercurio server overrides -- log_action logs the provided message with 'action' level. local function log_action(msg) minetest.log("action", "[MOD]mercurio: "..msg) end -- format_pos formats the given position with no decimal places local function fmt_pos(pos) return minetest.pos_to_string(pos, 0) end loc...
Locales['pl'] = { ['have_withdrawn'] = 'wyciągnąłeś/aś ~y~x%s~s~ ~b~%s~s~', ['have_deposited'] = 'zdeponowałeś/aś ~y~x%s~s~ ~b~%s~s~', ['free_prop'] = 'wolne mieszkanie', ['property'] = 'mieszkanie', ['enter'] = 'wejdz', ['move_out'] = 'move out from property', ['move_out_sold'] = 'sell property for <span...
--[[ This file is part of halimede. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/pallene/halimede/master/COPYRIGHT. No part of halimede, including this file, may be copied, modified, propagated, or distributed exc...
local E, C, L = select(2, ...):unpack() if not C.actionbar.styles.cooldown.enable then return end ---------------------------------------------------------------------------------------- -- Cooldown count (modified from tullaCC) ---------------------------------------------------------------------------------------- ...
local state = require("loaded_state") local placementUtils = require("placement_utils") local layerHandlers = require("layer_handlers") local viewportHandler = require("viewport_handler") local keyboardHelper = require("keyboard_helper") local configs = require("configs") local utils = require("utils") local toolUtils ...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} for ignore in io.open("ignore-list", "r"):lines() do downloaded[ignore] = true end read_file = functio...
local meta = FindMetaTable("Player") local cachedRunModifiers = {} function meta:getMaxRun() return self.maxRunspeed or 180 end function meta:getMaxWalk() return self.maxWalkspeed or 100 end function meta:setMaxRun(a) self.maxRunspeed = a end function meta:setMaxWalk(a) self.maxWalkspeed = a end function meta...
--[[---------------------------------------------------------------------------- Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found...
----------------------------------- -- Area: Al'Taieu -- Mob: Om'aern ----------------------------------- mixins = {require("scripts/mixins/families/aern")} ----------------------------------- function onMobDeath(mob, player, isKiller) end
--- === cp.apple.finalcutpro.menu === --- --- Final Cut Pro Menu Helper Functions. local require = require --local log = require "hs.logger".new "fcpMenu" local axutils = require "cp.ui.axutils" local destinations = require "cp.apple.finalcutpro.export.destinations" local fcpApp = require "cp...
local args = {} DATA_DIR = paths.thisfile('data') print(DATA_DIR) function args.parse(arg) local cmd = torch.CmdLine() cmd:text() cmd:text('Options:') cmd:option('-test', 0, 'test mode (0 or 1)') cmd:option('-extract', 'test', 'extract features on indicated set') cmd:option('-backend', 'cudnn', '(nn|cunn...
max_fov = 360 max_vfov = 180 lens_width = 2*pi onload = "f_cover" function lens_inverse(x,y) if abs(x) > pi then return nil end local lon = x local lat = atan(y) return latlon_to_ray(lat,lon) end function lens_forward(x,y,z) local lat,lon = ray_to_latlon(x,y,z) local x = lon local y = ...
-- util.AddNetworkString("ClothingStorageSystem.OpenAddItemMenu") -- util.AddNetworkString("ClothingStorageSystem.SendToServerAddFile") -- util.AddNetworkString("ClothingStorageSystem.OpenStorageMenu") -- util.AddNetworkString("ClothingStorageSystem.EntitySpawner")
fprp.PLAYER.isInRoom = fprp.stub{ name = "isInRoom", description = "Whether the player is in the same room as the LocalPlayer.", parameters = {}, returns = { { name = "inRoom", description = "Whether the player is in the same room.", type = "boolean" } }, metatable = fprp.PLAYER } fprp.deLocalise = ...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local maxPlates = 5 --Per table (No more than five can exist at a time per table) function ENT:Initialize() self:SetModel( "models/press-plates/workbench.mdl" ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ...
require("prototypes.entity.vbuck")
---@meta --=== time === ---@class time time = {} ---@class CalendarTable ---@field year integer ---@field mon integer ---@field day integer ---@field hour integer ---@field min integer ---@field sec integer ---Converts calendar table to a timestamp in Unix epoch ---@param calendar CalendarTable @Table containing ca...
objectasteroid = {} objectasteroid_mt = { __index = objectasteroid } function objectasteroid:new(name, tex, x, y, w, h, u, v, nFrames, ang, rad) local entity = {} setmetatable(entity, objectasteroid_mt) entity.name = name entity.texture = tex entity.posx = x entity.posy = y ...
--[[ TheNexusAvenger Tests the SurfaceGuiCrashTest class. --]] local NexusUnitTesting = require("NexusUnitTesting") local SurfaceGuiCrashTest = require(game:GetService("StarterGui"):WaitForChild("NexusVRCompatibilityTester"):WaitForChild("Tests"):WaitForChild("SurfaceGuiCrashTest")) local SurfaceGuiCrashTestTest = N...
------------------------------------------------------------ -- OptionFrame.lua -- -- Abin -- 2010/10/16 ------------------------------------------------------------ local CreateFrame = CreateFrame local pairs = pairs local ipairs = ipairs local type = type local tostring = tostring local tonumber = tonumber local Ge...
----------------------------------- -- Area: Northern San d'Oria -- NPC: Prerivon -- Type: Standard Dialogue NPC -- !pos 142.324 0.000 132.515 231 -- ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") ----------------------------------- function onTrade(player, npc, trade) ...
ProgramsLoc = "%{wks.location}/Source/Programs/" function Program() kind "ConsoleApp" language "C#" location (ProgramsLoc .. "%{prj.name}") targetdir "%{wks.location}/Binaries/%{prj.name}/%{cfg.configuration}/%{cfg.platform}/" files { ProgramsLoc .. "%{prj.name}/**.cs" } end group...
do local protobuf_dissector = Dissector.get("protobuf") -- Get the value of a varint -- https://developers.google.com/protocol-buffers/docs/encoding#varints -- @param tvb - The packet buffer -- @param offset - The offset in the packet buffer local function get_varint(tvb, offset, maxlen) ...
local gql_types = require('graphql.types') local vshard_utils = require('cartridge.vshard-utils') local _ = require('cartridge.lua-api.vshard') local module_name = 'cartridge.webui.api-vshard' local gql_type_vsgroup = gql_types.object({ name = 'VshardGroup', description = 'Group of replicasets sharding the sam...
-- -- Paranoid Pirate queue -- -- Author: Robert G. Jakabosky <bobby@sharedrealm.com> -- require"zmq" require"zmq.poller" require"zmsg" local MAX_WORKERS = 100 local HEARTBEAT_LIVENESS = 3 -- 3-5 is reasonable local HEARTBEAT_INTERVAL = 1000 -- msecs local tremove = table.remove -- Insert ...
if SERVER then else local panel = vgui.Create("DPanel") panel.Paint = function() end bsuMenu.addPage(4, "Commands", panel, "icon16/wand.png") end
local status_ok, lsp_installer = pcall(require, "nvim-lsp-installer") if not status_ok then return end -- Install servers local servers = { "bashls", "emmet_ls", "jedi_language_server", "solargraph", "sumneko_lua", "tailwindcss", "tsserver", "vimls", } for _, name in pairs(servers) do local server...
local function onSpectatePlayer(client, message) local spectatorPlayer = client:GetControllingPlayer() if spectatorPlayer then -- This only works for players on the spectator team. if spectatorPlayer:GetTeamNumber() == kSpectatorIndex then client:GetControllingPlayer():SelectEntity...
x = 4 y = 2 f = compiler.load('x,y = y,x') assert(f and type(f) == 'function') f() assert(x == 2) assert(y == 4) print 'Ok'
local dt = require "decisiontree._env" local bm = {} function bm.CartTrainer(opt) local timer = torch.Timer() local trainSet, validSet = dt.getSparseDummyData(opt) print(string.format("CartTrainer: sparse dataset create: %f samples/sec; %f sec", opt.nExample/timer:time().real, timer:time().real)) local ca...
include("memorytable.lua"); include("memdatabase.lua"); include("bankitem.lua"); CBank = class( function (self) self.MaxSlots = 300; self.BagSlot = {}; local timeStart = getTime(); for slotNumber = 1, self.MaxSlots, 1 do self.BagSlot[slotNumber] = CBankItem( slotNumber ); end if...
-- Zigbee Tuya Button -- -- 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 or agreed to in writing,...
-- import local AssetLibraryModule = require 'candy.AssetLibrary' -- module local RenderMaterialModule = {} -------------------------------------------------------------------- -- RenderMaterialInstance -------------------------------------------------------------------- ---@class RenderMaterialInstance local RenderM...
require('packer').use { 'neovim/nvim-lspconfig', config = function() vim.api.nvim_buf_set_option(0, 'omnifunc', 'v:lua.vim.lsp.omnifunc') -- set up global lsp integrations vim.g.capabilities = vim.lsp.protocol.make_client_capabilities() vim.g.capabilities.textDocument.completion...
local indent = 4 vim.opt.expandtab = true vim.opt.shiftwidth = indent vim.opt.tabstop = indent vim.opt.softtabstop = indent vim.opt.smartindent = true vim.wo.number = true vim.wo.relativenumber = true vim.wo.signcolumn = 'yes' vim.wo.colorcolumn = '120' vim.o.termguicolors = true vim.opt.wrap = false vim.opt.scrollo...
SerializeDialogStateFunction(this, "{{Tale_NextFunctionName}}") {{Tale_NextFunctionName}}(this)
local SchemaElem = {} local M = {Config = {SignsConfig = {}, watch_index = {}, yadm = {}, }, } M.config = {} M.schema = { signs = { type = 'table', deep_extend = true, default = { add = { hl = 'GitSignsAdd', text = '│', numhl = 'G...
DefineClass.SecurityStation = { __parents = { "ElectricityConsumer", "Workplace" }, properties = { { id = "negated_renegades", default = 5, name = T(726, "Neutralized Renegades"), modifiable = true, editor = "number"}, }, } function SecurityStation:GetNegatedRenegades() if not self.working then return 0 end ...
local action = require "action" action.init() action.generate(true) action.clean() action.make()
local fs = filesystem local mainDriveID = nil local nic = nil local bcp = 9998 local rcp = 9997 local finalEEprom = '' local allFilesSent = false local t = computer.millis() starts_with = function(str, start) return str:sub(1, #start) == start end ends_with = function(str, ending) return ending == "" or str:sub(-#end...
require('list') require('game.gameobject') require('game.game_objects.level') require('other') require('content') require('game.globals') require('quadtree') utils = require('utils') core = require('core') GameWorld = class(function(t) end) -- Draw function GameObject:draw() end -- Update function GameObject:update(...
--[[----------------------------------------------------------------------------------------------------------------------- Run Lua on the server -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "Lua" PLUGIN.De...
-- mysql 的配置读取工具 -- 支持从配置读取或是串读取 local cfg = {} function cfg:get_mysql_cfg(config) if type(config) == 'string' then return require('config.mysql')[config] else return config end end function cfg:get_redis_cfg(config) if type(config) == "string" then return require('config.redi...
local infoview = require('lean.infoview') local fixtures = require('tests.fixtures') local helpers = require('tests.helpers') helpers.setup {} describe('infoview', function() describe("startup", function() it('cursor stays in source window on open', function(_) helpers.edit_lean_buffer(fixtures.lea...
-- Plugin list require('plugins.plugins') -- LSP require('plugins.nvim-lspconfig') -- Autocompletion require('plugins.nvim-cmp') require('plugins.luasnip') -- Syntax highlighting require('plugins.nvim-treesitter') -- Python require('plugins.vim-pydocstring') -- Javascript / Typescript require('plugins.vim-jsdoc') ...
ikka_gesul_missions = { { missionType = "assassinate", primarySpawns = { { npcTemplate = "thug", npcName = "Orga Presari" } }, secondarySpawns = { { npcTemplate = "thug", npcName = "a Thug" }, { npcTemplate = "thug", npcName = "a Thug" } }, itemSpawns = {}, rewards = { {...
modifier_nevermore_second_attack_debuff = class({}) function modifier_nevermore_second_attack_debuff:OnCreated(params) if IsServer() then self:SetStackCount(1) end end function modifier_nevermore_second_attack_debuff:OnRefresh(table) if IsServer() then self:IncrementStackCount() end en...
-- dep local sgsub = string.gsub local pairs = pairs local os_execute = os.execute local io_open = io.open local print = print local ansicolors = require 'vanilla.v.libs.ansicolors' -- vanilla local va_conf = require 'vanilla.sys.config' local utils = require 'vanilla.v.libs.utils' local gitignore = [[ # Vanilla clie...
local plat = loader.GetPlatformName() if plat ~= "Unsupported" then loader.WindowedOnEdited() loader.SetWindowXOffset(10) loader.SetWindowYOffset(10) loader.SetWindowWidth(800) loader.SetWindowHeight(600) loader.SetToggleWindowCentered(1) --[[ At this point window is centered, so x & y should not have an...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") EnumDeepLiterals = class.class(KaitaiStruct) function EnumDeepLiterals:_init(io, parent, r...
--空牙団の闘士 ブラーヴォ --Blavo, Fighter of the Skyfang Brigade --Script by nekrozar function c100408019.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100408019,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1,100408019) e1...
ESX = nil local ItemsLabels = {} local ItemLabelsLicenses = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) AddEventHandler('onMySQLReady', function() MySQL.Async.fetchAll( 'SELECT * FROM items', {}, function(result) for i=1, #result, 1 do ItemsLabels[re...
-- mod_ipcheck.lua -- Implementation of XEP-0279: Server IP Check <http://xmpp.org/extensions/xep-0279.html> local st = require "util.stanza"; module:add_feature("urn:xmpp:sic:0"); module:hook("iq-get/bare/urn:xmpp:sic:0:ip", function(event) local origin, stanza = event.origin, event.stanza; if stanza.attr.to the...
object_mobile_angler_king = object_mobile_shared_angler_king:new { } ObjectTemplates:addTemplate(object_mobile_angler_king, "object/mobile/angler_king.iff")
local context = G.botContext -- callback(callbackType, callback) context.callback = function(callbackType, callback) if not context._callbacks[callbackType] then return error("Wrong callback type: " .. callbackType) end if callbackType == "onAddThing" or callbackType == "onRemoveThing" then g_gam...
----------------------------------------------------------------------------- -- Copyright (c) 2015 Intel Research and Development Ireland Ltd. -- -- 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 Licens...
--- -- @classmod Circle local middleclass = require("middleclass") local typeutils = require("typeutils") --- -- @table instance -- @tfield number x -- @tfield number y -- @tfield number radius [0, ∞) local Circle = middleclass("Circle") --- -- @function new -- @tparam number x -- @tparam number y -- @tparam number...
local unique = {} -- List of Database Unique IDs (SQL) by Server ID local fivem = {} -- List of FiveM License IDs by Server ID local scores = {} -- Scores of players (KEYS: 'cop' and 'civ') local positions = {} -- List of positions being saved local zone = { timer = 300, -- Time in minutes betw...
local system = require "coutil.system" newtest "address" -------------------------------------------------------------- do case "empty ipv4" local a = system.address("ipv4") assert(tostring(a) == "0.0.0.0:0") assert(a.type == "ipv4") assert(a.port == 0) assert(a.literal == "0.0.0.0") assert(a.binary == "\0\0\0...
GM.MingeSENTS = GAMEMODE.MingeSENTS or {} GM.MingeIcons = GAMEMODE.MingeIcons or {} --local variables local destructing_keys = { DrawIconModels = true, DrawIconWeaponModels = true, IconCamera = true, ReleaseIconModels = true, SetupIconModels = true } local render_size = 128 --local function local function draw_...
--to contain all debug actions in on table local debug = {} debug.myDebug = true if not hudebug then --make sure that hudebug is made hudebug = require("Libraries.hudebug.hudebug") end hudebug.toggle() --my own variable for tracking info debug.info = {} --set position to far right of screen hudebug.setPosition(l...
require("layouts/default") require("layouts/interleaved") require("layouts/chests") black_list = { "extractor", "underground", "factory.port.marker","vehicle.miner.*attachment", "splitter", "loader", "pumpjack", "water", "factory.connection", "dummy", "proxy"} buttons = {} mode_buttons = {} layout_buttons = {} entity_...
mobs = {} function mobs:register_mob(name, def) minetest.register_entity(name, { hp_max = 100+def.hp_max, physical = true, collisionbox = def.collisionbox, visual = def.visual, visual_size = def.visual_size, mesh = def.mesh, textures = def.textures, makes_footstep_sound = def.makes_footstep_sound, vi...
require "system" require "extensions.timer" AudioManager = class { __name = "AudioManager", bgm = { fading = nil, current = nil, memory = nil }, bgs = { fading = nil, current = nil, memory = nil }, me = { current = nil }...
local hex = require "hex" --[[ send_0x00_S1发送参数(用于升级 导轨节数的变化) a = 时间戳 (一般发送当前时间戳) b = 版本号 (更新时所要发送的版本号) c = 0o r 1 (1代表着强制更新 也就是开启更新) d = 升级版本的字节数 e = 导轨拼接节数 ]] function send_0x00_S1(a, b, c, d, e, f) local info = string.pack(">HbLbbIbb",0xaaaf, 0x00, a, b, c, d, e, f) local sum = hex.checksum(info) retur...
--[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) DButton --]] local PANEL = {} AccessorFunc( PANEL, "m_bBorder", "DrawBorder", FORCE_BOOL ) function PANEL:Init() self:SetContentAlignment( 5 ) ...
--- Low-level and high-level filesystem manipulation library. module "nixio.fs" --- Check user's permission on a file. -- @class function -- @name nixio.fs.access -- @param path Path -- @param mode1 First Mode to check ["f", "r", "w", "x"] -- @param ... More Modes to check [-"-] -- @return true --- Strip the dire...
local L = Grid2Options.L local options = {} Grid2Options:MakeTitleOptions( options, Grid2.versionstring, L["GRID2_WELCOME"], nil, "Interface\\Addons\\Grid2\\media\\icon" ) options.description = { type = "description", order = 1, fontSize = "medium", name = L["GRID2_DESC"] .. "\n" } options.debug = { type = "header"...
--空气质量 --请用自己的token local token = "737aa093c7d9c16b7c6fdc1b70af2fb02bf01e11" local function getInfo(id) local html = asyncHttpGet("http://api.waqi.info/feed/@"..tostring(id).."/","token="..token) local d,r,e = jsonDecode(html) if not r then return "加载失败" end return d.data.city.name.."的空气质量如下:".. ...
AntiCheat.Locales['nl'] = { ['checking'] = '👮 𝗧𝗶𝗴𝗼𝗔𝗻𝘁𝗶𝗖𝗵𝗲𝗮𝘁 | U wordt momenteel gecontroleerd...', ['empty_reason'] = 'Geen reden was opgegeven', ['resource_starting'] = '👮 𝗧𝗶𝗴𝗼𝗔𝗻𝘁𝗶𝗖𝗵𝗲𝗮𝘁 | Is momenteel bezig met opstarten, even geduld aub....', ['unknown_error'] = '🛑 𝗧𝗶𝗴�...
#!/usr/bin/env lua -- A semaphore (traffic light) with a simple GUI. -- Requires: - MoonSC to define the behavior of the semaphore, -- - MoonNuklear to draw the GUI, -- - MoonGLFW for window creation and input handling, -- - MoonGL for rendering. local glfw = require("moonglfw") local gl ...
local data = require("core.data") data.define_prototype("activity") data.add( "core.activity", { eat = { integer_id = 1, }, read = { integer_id = 2, }, travel = { integer_id = 3, }, sleep = { integer_id = 4, }, dig_wall = ...
local Utils = { generateQuads = function (atlas, tileWidth, tileHeight) local quads = {} local width, height = atlas:getDimensions() local sheetWidth = width / tileWidth local sheetHeight = height / tileHeight local spriteCount = 1 for y = 0, sheetHeight - 1 do ...
--[[ Copyright (c) 2015 深圳市辉游科技有限公司. --]] require 'consts' local RoleImages = {} RoleImages[ddz.PlayerRoles.Farmer] = {} RoleImages[ddz.PlayerRoles.Farmer][ddz.Gender.Male] = { win = 'NewRes/paint/paint_farmer_v.png', lose = 'NewRes/paint/paint_farmer_f.png', left = 'NewRes/paint/paint_farmer_default_left.png...
local lspconfig = require "lspconfig" local on_attach = function(client) -- require "completion".on_attach(client) print("'" .. client.name .. "' server attached") end lspconfig.elixirls.setup { cmd = {"/usr/local/bin/elixir-ls/language_server.sh"}, on_attach = on_attach, }
-- Lua functions accept any number of arguments; missing arguments are nil-padded, extras are dropped. function fixed (a, b, c) print(a, b, c) end fixed() --> nil nil nil fixed(1, 2, 3, 4, 5) --> 1 2 3 -- True vararg functions include a trailing ... parameter, which captures all additional arguments as a group of valu...
fx_version 'cerulean' game 'gta5' lua54 'yes' ui_page 'index.html' files { "index.html", "scripts.js", "css/style.css" } client_script { "client.lua", } export "taskBar" export "closeGuiFail"
local allowCountdown = false function onStartCountdown() if not allowCountdown and isStoryMode and not seenCutscene then --Block the first countdown setProperty('camGame.visible', false) setProperty('camHUD.visible', false) runtimer('lowEnd',1,1) allowCountdown = true; return Function_Stop; end setPrope...
local M = {} -- M.my_theme = { -- bg = "#3A3845", -- fg = "#FAF5E4", -- -- black = "#3A3845", -- blue = "#9ADCFF", -- cyan = "#D1E8E4", -- darkblue = "#9ADCFF", -- green = "#BEDBBB", -- oceanblue = "#9ADCFF", -- orange = "#FFA299", -- magenta = "#FFC7C7", -- red = "#FF7878", -- skyblue = "#9ADCFF", -- vio...
require("games/common2/module/layerShowTypeData"); require("games/common2/onlooker/data/onlookerPlayerManager"); local OnlookerSocketCmd = require("games/common2/onlooker/socket/onlookerSocketCmd"); local OnlookerController = class(); OnlookerController.initOnlookerRoom = function(self) Log.d("OnlookerControlle...
if not modules then modules = { } end modules ['lpdf-tag'] = { version = 1.001, comment = "companion to lpdf-tag.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local next = next local...
--gist:2cf8d094009635fe9c42 ----------------------------------------------------------------------------- -- Module declaration ----------------------------------------------------------------------------- local nibutil = {} ----------------------------------------------------------------------------- -- Public functi...
data:extend({ { type = "movement-bonus-equipment", name = "repair-module", take_result = "repair-module", sprite = { filename = "__PocketRepair__/graphics/equip-repair-module.png", width = 64, height = 64, priority = "medium" }, shape = { width = 2, height = 2, type = "full" }, ene...
local TestEZ = require(game:GetService("ReplicatedStorage").TestEz) TestEZ.TestBootstrap:run({ script.Parent }) -- DEBUGGING ---[[ local express: Express = require(game:GetService("ReplicatedStorage").express) local App = express.App local app: App = App.new() app:get("/Test", function(_, res) res:send("Hello Wor...
--------------------------------------------- -- Earth Pounder -- -- Description: Deals Earth damage to enemies within area of effect. Additional effect: Dexterity Down -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: 15' radial -- Notes: --------------------------------------------- require("sc...
-- Copyright (C) Mashape, Inc. local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local cache = require "kong.tools.database_cache" local check_https = require("kong.tools.utils").check_https local SSLHandler = BasePlugin:extend() SSLHandler.PRIORITY = 3000 functi...
require("constants") local StaticLayout = require("map/static_layout") local ruins_areas = { rubble = function(area) return nil end, debris = function(area) return PickSomeWithDups( 0.25 * area , {"rocks"}) end, } local function GetLayoutsForType( name ) local layouts = { ["SINGLE_NORTH"] = StaticLayout....
local helpers = require "spec.helpers" describe("without host set", function() local proxy_client setup(function() local bp = helpers.get_db_utils('postgres', nil, { "redirecting" }) local route = bp.routes:insert({ hosts = { "example.com" }, }) bp.plugins:insert { name = "redirecting...
resource.AddFile("materials/terranova/ui/books/blankbook.png") -- If markerOnly is true, then only change marker position, not text. netstream.Hook("ixSaveBookChanges", function(client, itemID, text, markerOnly, markerPos) markerOnly = markerOnly and markerOnly or false markerPos = markerPos and markerPos or "none...
--(C) 2015 Steven Byrnes --This is the lua script that S4 runs. Generally you don't run this yourself, you let Python call it --(see grating.py) pi = math.pi degree = pi / 180 math.randomseed(os.time()) function almost_equal(a,b,tol) return math.abs(a-b) <= tol * (math.abs(a) + math.abs(b)) end function str_fro...
local super = require("bt.composite") local states = super.states return class { typename = "顺序节点", super = super, ctor = function (self, repeats, ...) super.ctor(self, ...) self.repeats = repeats or 0 end, enter = function (self) local child self.repeated = 0 ...
return { uiEffect = "", name = "莱茵演习", cd = 0, focus_duration = 1, picture = "1", aniEffect = "", desc = "序章俾斯麦秒杀技能", painting = 1, id = 7000, effect_list = {} }
----------------------------------- -- Area: Ghelsba Outpost (140) -- NM: Thousandarm Deshglesh ----------------------------------- mixins = {require("scripts/mixins/job_special")}; ----------------------------------- function onMobDeath(mob, player, isKiller) end;
local _VERSION = "1.4a" if _HOST and fs then return fs end local lfs = require("lfs") local _check _check = function(f) return function(...) local args = { ... } for i, arg in ipairs(args) do assert(("string" == type(arg)), "argument #" .. tostring(i) .. " is not a string") end retur...
---------------------------------------------- -----Contra III hitbox viewer script SNES----- ---------------------------------------------- --Player Colors: --Gold = Invuln --Blue = Vulnerable --Enemy colors: --Red = Can be touched and hit with projectiles --Green = Can be hit with projectiles but has no collision ...