content
stringlengths
5
1.05M
name = "Level Up - Power Plant" author = "Tester" description = [[This script will catch shiny or rare Pokemon and will Level up first Pokemon of your team in Power Plant.]] mpaName = "Power Plant" -- Change map name as you want. X = 48 Y = 12 pokecenter_Name = "Route 10 Pokecenter" -- choose different pokecent...
return { id = "kitchen", name = "Kitchen", cost = 20000, width = 3, upkeep = 100, sprites = { { name = "base", animations = { idle = { first = 0, last = 0, speed = 1, }, }, playing = "idle", }, }, }
---------------------------------------------------------------------------------- -- Simple hitzone script by Infinite Rain, based on a sample by Unreal Software -- ---------------------------------------------------------------------------------- if not CSample then require("sys/lua/CS2D-AmplifiedScripting") CSampl...
require "TriggerKit/TriggerKit.lua" function initialize(scene) -- Callback을 순서대로 "트리거 발동, 트리거 발동 후 지속, 트리거 끝남"을 의미 ---- ex) TriggerType.SMILE ------ smileCallBack : 처음 웃을때 한번 호출 ------ ingSmileCallBack : 계속 웃고 있으면 매 프레임마다 계속 호출 ------ endSmileCallBack : 웃다가 안웃으면 한번 호출 -- 자신이 쓰고 싶은 트리거 타입과 CallBack만 지정해서 ...
local topInset, leftInset, bottomInset, rightInset = display.getSafeAreaInsets() local aspectRatio = display.pixelHeight / display.pixelWidth local portraitWidth, portraitHeight = 320, 480 if topInset > 0 or leftInset > 0 or bottomInset > 0 or rightInset > 0 then if aspectRatio > 2.1 then portraitWidth, portraitHeig...
local require = require local builder = require "oil.builder" local arch = require "oil.arch.base" module "oil.builder.base" BasicSystem = arch.BasicSystem {require "oil.kernel.base.Sockets" } ClientChannels = arch.SocketChannels {require "oil.kernel.base.Connector" } ClientBroker = arch.Cli...
local M = {} M.init = function(conf) local sched = require 'sched' local toribio = require 'toribio' sched.run(function() local motor = toribio.wait_for_device(conf.motor) motor.init_mode_joint() motor.set_speed(conf.speed) while true do motor.set_position(conf.min) repeat sched.sleep(0.5) ...
local Typer = require(script.Parent.Parent.Parent.Typer) local function copyDeep(dictionary) local new = {} for key, value in next, dictionary do if type(value) == "table" then new[key] = copyDeep(value) else new[key] = value end end return new end return Typer.AssignSignature(Typer.Table, copyDeep)...
-- ============================================================================= -- __ __________ ______ -- / \ / \_____ \ / __ \ -- \ \/\/ // ____/ > < -- \ // \/ -- \ -- \__/\ / \_______ \______ / -- \/ \/ \/ -- init.lua --- Initialization file for ...
net.Receive("ChristmasCredits:Purchase", function(_, ply) local npc = net.ReadEntity() if not (npc:GetClass() == "xyz_christmas_credits_npc") then return end if npc:GetPos():Distance(ply:GetPos()) > 500 then return end if npc.cooldown > CurTime() then return end npc.cooldown = CurTime() + 0.5 local item = net.R...
local shieldingword = { [1] = {ID=1,Desc="刘晓波"}, [2] = {ID=2,Desc="和平奖"}, [3] = {ID=3,Desc="回民吃猪肉"}, [4] = {ID=4,Desc="习近平"}, [5] = {ID=5,Desc="毛民进党"}, [6] = {ID=6,Desc="妹妹淫水"}, [7] = {ID=7,Desc="1989六四"}, [8] = {ID=8,Desc="性爱电影"}, [9] = {ID=9,Desc="李红智"}, [10] = {ID=10,Desc="梁光烈"}, [11] = {ID=11,Desc="成人BT"}, [12] = {...
--Coded By: NickWill86 EndorEwokTreeVillage02ScreenPlay = ScreenPlay:new { numberOfActs = 1, } registerScreenPlay("EndorEwokTreeVillage02ScreenPlay", true) function EndorEwokTreeVillage02ScreenPlay:start() if (isZoneEnabled("endor")) then self:spawnMobiles() end end function EndorEwokTreeVillage02ScreenPlay:s...
local path = ... -- basic components require(path .. ".Transformable") -- physics require(path .. ".Physics") require(path .. ".ColliderRectangle") require(path .. ".ColliderCircle") require(path .. ".Movement") -- render require(path .. ".Sprite") require(path .. ".RenderCircle") require(path .. ".RenderRectangle") ...
local lpeg = require('lpeg') -- Lexical Elements local Space = lpeg.S(" \n\t")^0 local Number = lpeg.C(lpeg.P"-"^-1 * lpeg.R("09")^1) * Space local TermOp = lpeg.C(lpeg.S("+-")) * Space local FactorOp = lpeg.C(lpeg.S("*/")) * Space local Open = "(" * Space local Close = ")" * Space -- Grammar local Exp, Term, Factor ...
local Camera = {} Camera.__index = Camera function Camera.new(args) local camera = setmetatable({}, Camera) camera:init(args) return camera end function Camera:init(args) self.game = assert(args.game) self.x, self.y = args.x or 0, args.y or 0 self.scale = args.scale or 1 self.game:setDrawHandler("camera", sel...
--- -- @module CmdrService -- @author Quenty local require = require(script.Parent.loader).load(script) local PermissionService = require("PermissionService") local Promise = require("Promise") local CmdrService = {} function CmdrService:Init(serviceBag) assert(not self._cmdr, "Already initialized") self._cmdr =...
local M = { } local function totitle(opts) return opts.title or opts.prompt and opts.prompt:gsub('%s*$', '') :gsub(':$', '') or nil end local function browse(opts, on_choice) vim.validate { opts = { opts, 'table', true }, ...
local _, CLM = ... local LOG = CLM.LOG local UTILS = CLM.UTILS local MODULES = CLM.MODULES local MODELS = CLM.MODELS local GUI = CLM.GUI local CONSTANTS = CLM.CONSTANTS local ProfileManager = MODULES.ProfileManager local RosterManager = MODULES.RosterManager local LootManager = MODULES.LootManager local RaidManager...
SLASH_RELOAD1 = '/rl' function SlashCmdList.RELOAD(msg, editbox) ReloadUI() end SLASH_SHAGUPLATES1 = '/shaguplates' function SlashCmdList.SHAGUPLATES(msg, editbox) if ShaguPlates.gui:IsShown() then ShaguPlates.gui:Hide() else ShaguPlates.gui:Show() end end SLASH_GM1, SLASH_GM2 = '/gm', '/support' func...
local taxpercent = 1 setElementData(root, "AURtax.tax", taxpercent) function getCurrentTax () setElementData(root, "AURtax.tax", taxpercent) return taxpercent end function setTaxRating (plr, cmd, newtax) if (getTeamName(getPlayerTeam(plr)) == "Staff") then setElementData(root, "AURtax.tax", math.abs(newtax)) ...
if GetLocale() ~= "deDE" then return end local L ------------ -- Omen -- ------------ L = DBM:GetModLocalization("Omen") L:SetGeneralLocalization({ name = "Omen" }) ------------------------------ -- The Crown Chemical Co. -- ------------------------------ L = DBM:GetModLocalization("d288") L:...
do TestSkynetIADS = {} function TestSkynetIADS:setUp() self.numSAMSites = SKYNET_UNIT_TESTS_NUM_SAM_SITES_RED self.numEWSites = SKYNET_UNIT_TESTS_NUM_EW_SITES_RED self.testIADS = SkynetIADS:create() self.testIADS:addEarlyWarningRadarsByPrefix('EW') self.testIADS:addSAMSitesByPrefix('SAM') end function TestSkyne...
local skynet = require "skynet" local service_address local function start_service(max_threads) service_address = skynet.uniqueservice("blockingfile", max_threads) end local function ensure_start_service() if not service_address then start_service(4) end return service_address end local function blocking_open...
-- Code from bncastle -- https://github.com/bncastle/love2d-tutorial/blob/Episode4/class.lua -- is published under MIT license. local Class = {} Class.__index = Class --default implementation function Class:new() end --create a new Class type from our base class function Class:derive(type) local cls = {} cls["__ca...
local PLY = FindMetaTable("Player") function PLY:AddHint(txt, typ, len) notification.AddLegacy(txt, typ, len) end net.Receive("Player_AddHint", function() local txt = net.ReadString() local typ = net.ReadInt(32) local len = net.ReadInt(32) LocalPlayer():AddHint(txt, typ, len) end)
workspace "oxide2" configurations { "Debug", "Release" } platforms { "x64", "x32" } location "premake" filter {"system:windows"} characterset "MBCS" filter {} -- Set up platforms filter {"platforms:x32"} architecture "x32" filter {"platforms:x64"} architec...
local cURL = require "cURL" -- open output file f = io.open("smartcitydata.txt", "w") cURL.easy{ url = "https://api.smartcitizen.me/v0/devices/1616/readings?sensor_id=4&rollup=1d&from=2015-07-23&to=2015-07-30", writefunction = f } :perform() :close() -- close output file f:close()
-- Allows using full userdata objects in dictionaries -- particularly REManagedObjects local ManagedObjectDict = { new = function(self, o) o = o or {} return setmetatable(o, self) end, __index = function(t, key) return rawget(t, key:get_address()) end, __newindex = function(t...
module ('mapgenerator', package.seeall) do require 'map.generator.utility' function generate_cave_from_grid(grid) local width, height = grid.width, grid.height local function walls_nearby( grid, map, j, i, range_j, range_i ) local width, height = grid.width, grid.height local missing_j =...
local inspect = require('inspect'); local dbRequest = function (dbconn, dbname) local collection = 'trunk'; local getOutgoingTrunks = function () local cursor = dbconn:query(dbname..'.'..collection, { category = 'default' }); local trunk = cursor:next(); return trunk o...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterUsableItem('test_ciazowy', function(source) local xPlayer = ESX.GetPlayerFromId(source) xPlayer.removeInventoryItem('test_ciazowy', 1) TriggerClientEvent('test_ciazowy:start', source) end) ESX.RegisterUsableItem('...
print2(inspect(sandbox1)) { ac1 = nil --[[<function 1>]], vc = { applycontrol = nil --[[<function 1>]], control = 1, curval = 0, prevval = 0, update = nil --[[<function 2>]], valgetter = nil --[[<function 3>]] }, vg1 = nil --[[<function 3>]], x = 1 } { ac1 = nil --[[<function 1>]],...
function add(a, b) return a + b end function sub(a, b) return a - b end print("你好世界") a = 1 b = 2 print(add(a, b))
 function ConfigMenu() local main = createFrame("Config Menu") main:MakePopup() RestoreCursorPosition() end function createLabel(text, color) end function createSetting() --sd end -- Listen for callback from server when pressing F1 (help menu) net.Receive("Minigolf.ConfigMenu", function() ConfigMenu() end)
--[[ Copyright 2019 The Spin-Scenario Authors. All Rights Reserved. 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...
local core = require "sys.core" local worker = require "cluster.worker" local proto = require "proto.cluster" local gate = require "gate" local router = require "router" local rand = math.random local lprint = core.log local forward = gate.forward core.start(function() local master = assert(core.envget("master_listen"...
----------------------------------------- -- Spell: Disseverment -- Delivers a fivefold attack. Additional effect: Poison. Accuracy varies with TP -- Spell cost: 74 MP -- Monster Type: Luminians -- Spell Type: Physical (Piercing) -- Blue Magic Points: 5 -- Stat Bonus: INT+1, MND-1 -- Level: 72 -- Casting Time: 0.5 seco...
--====================================================================-- -- dmc-wamp-rpc-caller: App Config -- -- for specific application configurations -- --====================================================================-- --[[ All variables below are available to the application. While this file is part of t...
return { [2]={ --x1 y1 x2 y2 --0 0 1 1 [10000] = { -300, 1980, 10185, -5880, -- zone 10000 } } }
-- When a player join the game -- function Event.initPlayer(event) local player = getPlayer(event.player_index) if player == nil then return end if player.controller_type == defines.controllers.cutscene then return end --player.force.technologies["DimensionalOre"].researched = true if getMFPlayer(player.name) == n...
local vo = vim.opt_local vo.tabstop = 4 vo.shiftwidth = 4 vo.softtabstop = 4
require "scripts.core.item" require "gamemode.Spark.modifiers.modifier_movement_speed"; BottleOfQuicksilver = class(Item) function BottleOfQuicksilver:OnCreated () self:SetCastingBehavior(CastingBehavior(CastingBehavior.PASSIVE)); end function BottleOfQuicksilver:GetModifiers () return { "modifier_movement_speed...
local ids = { ["exitmap1"] = 49, ["book1"] = 59, ["write1"] = 44, ["pop1"] = 1, ["kill1"] = 8, ["kill2"] = 9, ["trap1"] = 70, ["more1"] = 10, ["getgold1"] = 11, ["paygold1"] = 12, ["equip1"] = 13, ["get1"] = 14, ["get2"] = 15, ["drop1"] = 16, ["drink1"] = 17, ["eat1"] = 1...
module(...,package.seeall) -- Ingress packet drop monitor timer. local ffi = require("ffi") -- Every 100 milliseconds. local interval = 1e8 local with_restart = core.app.with_restart local now = core.app.now ingress_drop_monitor = { threshold = 100000, wait = 20, last_flush = 0, last_value = ffi.new('u...
local function setup() local has_packer, packer = pcall(require, 'packer') local has_util, util = pcall(require, 'packer.util') if not has_packer or not has_util then error('Expected packer to be installed') end return packer.init({ package_root = util.join_paths(vim.fn.stdpath('data'), 'site', 'pack'), ...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISChopTreeAction : ISBaseTimedAction ISChopTreeAction = ISBaseTimedAction:derive(...
return { ["baseline"] = { ["action"] = { ["perm_media"] = "http://www.roblox.com/asset/?id=6031215982"; ["sticky_note_2"] = "http://www.roblox.com/asset/?id=6031265972"; ["gavel"] = "http://www.roblox.com/asset/?id=6023565902"; ["table_view"] = "http://www.roblox.com/asset/?id=6031233835"; ["home"] = ...
--- -- Filter a complex or real valued signal with a single-pole high-pass IIR -- filter. -- -- $$ H(s) = \frac{\tau s}{\tau s + 1} $$ -- -- $$ H(z) = \frac{2\tau f_s}{1 + 2\tau f_s} \frac{1 - z^{-1}}{1 + (\frac{1 - 2\tau f_s}{1 + 2\tau f_s}) z^{-1}} $$ -- -- $$ y[n] = \frac{2\tau f_s}{1 + 2\tau f_s} \; x[n] + \frac{2\...
-- this gets called starts when the level loads. function start(song) -- arguments, the song name print("modchart loaded!") for i=0,3 do -- fade out the first 4 receptors (the ai receptors) tweenPosXAngle(i, _G['defaultStrum'..i..'X'] + 725,getActorAngle(i) - 980, 0.6, 'setDefault') end for i = ...
---@return Player function Player(...) end ---@class Player local cls = Player() ---@return any function cls:GetPing(...) end ---@return any function cls:GetCameraLocation(...) end ---@return any function cls:Unsubscribe(...) end ---@return any function cls:GetAccountID(...) end ---@return any function cls:Super(...
local ib = require ('util.img_button') local pi = require ('util.panel_item') local beautiful = require ('beautiful') local awful = require ('awful') local dpi = beautiful.xresources.apply_dpi -- local wibox = require ('wibox') local next_tag = ib { image = 'tag-next.svg', recolor = true, hide_tooltip = true, ...
local status_ok, toggleterm = pcall(require, "toggleterm") if not status_ok then vim.notify("toggleterm not found") return end toggleterm.setup { -- size can be a number or function which is passed the current terminal size = function(term) if term.direction == "horizontal" then return 15 elseif ...
-------------------------------------------------------------------- --Env -------------------------------------------------------------------- --[[ PROJECT ENVIRONMENT VARIABLES * should be set by either editor or runtime launcher ]] -- GII_VERSION_MAJOR = 0 -- GII_VERSION_MINOR = 1 -- GII_VERSI...
love.graphics.setDefaultFilter("nearest", "nearest") local Cpml = require("lib.cpml") local Concord = require("lib.concord").init({ useEvents = true, }) local C = require("src.components") local S = require("src.systems") local CubeMesh = require("cubeMesh") local Game = Concord.instance() local c...
local a = require("plenary.async_lib") local formatting = a.async_void(function(bufnr) vim.lsp.buf.formatting() a.await(a.scheduler()) vim.api.nvim_command(bufnr .. "bufdo! silent noautocmd update") end) return formatting
local Camera = require('camera') local config = require('config.cfg') local obj = assets.loadModel("assets/models/sponza.wmdl") if obj == nil then print("Unable to load model.") return end assets.loadMaterials(obj) engine.setClearColor(1, 1, 1, 1) local cam = Camera.new(Vector3.new(-2.5, 0, 0)) local speed ...
fx_version 'cerulean' games { 'gta5' } server_only 'yes' --[[ THIS SCRIPT WAS MADE BY PITERMCFLEBOR DON'T CHANGE THE SCRIPT NAME OR REMOVE THIS SIGN Remove Github API Limitation? https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token#creating-a-t...
util.AddNetworkString("CW20_DEPLOYANGLE") util.AddNetworkString("CW20_DEPLOY") util.AddNetworkString("CW20_THROWGRENADE") util.AddNetworkString("CW20_GLOBALDELAY") util.AddNetworkString("CW20_FORCESTATE") util.AddNetworkString("CW20_M203ON") util.AddNetworkString("CW20_M203OFF") util.AddNetworkString("CW20_M203OFF_REL...
-- Slam a unit into the ground -- https://gist.github.com/IndigoFenix/8543557 args={...} local unit=dfhack.gui.getSelectedUnit() if unit == nil then local unit = df.unit.find(tonumber(args[2])) end local strength=args[1] if unit == nil then print('No unit selected') return end if strength ==...
--[[-------------------------------------------------------------------------- -- -- File: UAStalktheLantern.Ui.RoundLoop.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: August 03, 2010 -- ---------------------...
--[[ RedWeb browser by DvgCraft Requirements: - Wireless modem - Advanced computer - IDS and webserver VERSION 0.9.14.3 DATE 31-05-2016 Protocols: - app:// - web:// - search:// ]]-- -- Variables local path = "/.DvgFiles/data/RedWeb" loca...
--[[ This system has a general issue where the reset causes it to remove all of the NPCs. Because of other complications this kills all of the current npcs, which triggers a bunch of things, like opening doors and finished objectives. Because of performance, that is done over a few seconds. Therefore each system may...
--[[ J0sh the healer bot ]] AddCSLuaFile() ENT.Type = "anim" ENT.DisableDuplicator = true ENT.Model = Model( "models/combine_scanner.mdl" ) ENT.RenderGroup = RENDERGROUP_BOTH if SERVER then util.AddNetworkString("yawd.j0shbot") else ENT.AutomaticFrameAdvance = true end local healing_loop = Sound( "items/suitcharg...
-- triggers scripts when a syndrome is applied --author expwnent local usage = [====[ modtools/syndrome-trigger ========================= Triggers dfhack commands when syndromes are applied to units. Arguments:: -clear clear all triggers -syndrome name specify the name of a syndrome -comm...
local skynet = require "skynet" local tinsert = table.insert local smatch = string.match local sgmatch = string.gmatch local function timeout(ti) if ti then ti = tonumber(ti) if ti <= 0 then ti = nil end else ti = TIMEOUT end return ti end local function list() return skynet.call(".launcher", "lua"...
function jtorch._saveSpatialConvolutionMMNode(node, ofile) -- The layout is as follows: -- 1. filter width (int) -- 2. filter height (int) -- 3. filter input features (int) -- 4. filter output features (int) -- 5. padding -- 6. filter weights (float array) -- 7. filter Biases (float) ofile:writeInt(n...
LANGUAGE = "c" ML_PARAM_LIST_COUNT_THRESHOLD = 1 ML_SPECIFIER_MODIFIER_LIST = true INTRO_FILE = "page_index.rst" CREF_DB = true
--- Speech to text transcription handler, Watson Speech to Text API. -- -- Uses Watson's Speech to Text service. The service requires a valid developer -- account and API key, see -- [here](https://cloud.ibm.com/catalog/services/speech-to-text) for more information. -- -- @module speech_to_text_watson_handler -- @au...
--[[ The MIT License (MIT) Copyright (c) 2016 Simon "Tenry" Burchert 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, mod...
local addonName = ... local addon = _G[addonName] or CreateFrame("Frame", addonName) local backpackButton = MainMenuBarBackpackButton local backpackButtonText = MainMenuBarBackpackButtonCount function addon:UpdateFreeSlotCount() backpackButtonText:SetText(format("(%d)", backpackButton.freeSlots)) end function addo...
---[Documentation](https://www.wowace.com/projects/ace3/pages/api/ace-addon-3-0) ---@class AceAddon-3.0 local AceAddon = {} ---@class AceAddon local addon = {} ---[Documentation](https://www.wowace.com/projects/ace3/pages/api/ace-addon-3-0#title-2) function addon:Disable() end ---[Documentation](https://www.wowace.c...
local callback = require "lj-async.callback" local ffi = require "ffi" local cb_t = callback("int(*)(int)") local cb = cb_t(function(n) print(n); return n end) assert(cb:funcptr()(123) == 123) cb:free()
if SL.Global.GameMode ~= "Casual" then local player = ... local pn = ToEnumShortString(player) local PlayerState = GAMESTATE:GetPlayerState(player) -- grab the song options from this PlayerState local PlayerOptions = PlayerState:GetPlayerOptionsArray(0) -- start with an empty string... local optionslist = "" ...
local System = Xile.class() Xile.System = System local from = Xile.from function System:init() local _nodes = {} local _qry = from(_nodes):keys() -- important assumes first arg to be key self.nodes = function(self,...) local key = select(1,...) local item = _nodes[key] ...
ITEM.name = "Aluminium" ITEM.description = "itemAluminiumDesc" ITEM.price = 3 ITEM.model = "models/mosi/fallout4/props/junk/components/aluminum.mdl"
local Native = require('lib.stdlib.native') ---@class Button : Agent local Button = class('Button', require('lib.stdlib.oop.agent')) return Button
object_tangible_loot_creature_loot_collections_space_booster_mark_04_kessel = object_tangible_loot_creature_loot_collections_space_shared_booster_mark_04_kessel:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_booster_mark_04_kessel, "object/tangible/loot/creature/loot/collecti...
CLASS.name = "Civil Worker's Union" CLASS.faction = FACTION_CITIZEN function CLASS:CanSwitchTo(client) return false end CLASS_CWU = CLASS.index
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseVipPeriodList_pb', package.seeall) local VIPPERIOD = protobuf.Descriptor(); local VIPPERIOD_MONTH_FIELD = protobuf.FieldDescriptor(); local VIPPERIOD_YUANBAOPRICE_FIELD = protobuf.FieldDescriptor(); local VIPPERIOD_VOUCHERPRICE_...
HUD_IW_MAX = 8 HUD_IW_TICK = 0.4 if minetest.is_singleplayer() == true then HUD_IW_TICK = 0.2 end HUD_SB_SIZE = {x = 24, y = 24} HUD_HEALTH_POS = {x = 0.5,y = 1} HUD_HEALTH_OFFSET = {x = -262, y = -87} HUD_AIR_POS = {x = 0.5, y = 1} HUD_AIR_OFFSET = {x = 15, y = -135} HUD_HUNGER_POS = {x = 0.5, y = 1} HUD_HUNGER_OFF...
test_run = require('test_run').new() REPLICASET_1 = { 'storage_1_a', 'storage_1_b' } REPLICASET_2 = { 'storage_2_a', 'storage_2_b' } test_run:create_cluster(REPLICASET_1, 'router') test_run:create_cluster(REPLICASET_2, 'router') util = require('util') util.wait_master(test_run, REPLICASET_1, 'storage_1_a') util.wait_...
local PLAYER = FindMetaTable("Player") function PLAYER:IsHuman() return self:Team() == TEAM_HUMANS end function PLAYER:IsZombie() return self:Team() == TEAM_ZOMBIES end
WTF("foo")
local Request = require('request') local match, gmatch do local _table_0 = require('string') match = _table_0.match gmatch = _table_0.gmatch end Request.prototype.parse_cookies = function(self) self.cookies = { } if self.headers.cookie then for cookie in gmatch(self.headers.cookie, '[^;]+') do local...
local Random = math.random local Broadcast = require("core.Broadcast") local wrapper = require("core.lib.wrapper") local CommandParser = wrapper.loadBundleScript("lib/CommandParser", "bundle-example-lib"); local say = Broadcast.sayAt return { ...
local ffi = require "ffi" local ffi_cast = ffi.cast local C = ffi.C ffi.cdef[[ typedef unsigned char u_char; uint32_t ngx_murmur_hash2(u_char *data, size_t len); ]] return function(value) return tonumber(C.ngx_murmur_hash2(ffi_cast('uint8_t *', value), #value)) end
object_building_mustafar_dungeon_lava_cave_must_lava_cave = object_building_mustafar_dungeon_lava_cave_shared_must_lava_cave:new { customObjectName = "Lava Cave", } ObjectTemplates:addTemplate(object_building_mustafar_dungeon_lava_cave_must_lava_cave, "object/building/mustafar/dungeon/lava_cave/must_lava_cave.iff")
--[[========================================= _ _ _ | | | | | | /\ /\ | | | | | | / \ _ __ _ __ / \ _ __ ___ | | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __| | |___| |__| / ____ \| |_) | |_) / ____ \| | | (__ |______\____/_/ \_\ .__/| .__/_/ \_\_| \___| Scripting Pro...
require("gameData/gameData"); --@brief 个人的排行信息 UserRankInfo = class(GameData); UserRankInfo.Delegate = { onUserRankInfoCallBack = "onUserRankInfoCallBack"; } UserRankInfo.initData = function(self) self.m_data = {}; -- V["rankType"]["flag"]["mid"] = info self.m_updateFlagMap = {}; end --@override ...
-- character name = {specific insult} return { abed = {'You are a foreigner, not able to comprehend anyone or anything, even something as undemanding as time.'}, troy = {'You are a cotton-picking jock boy who is impossibly far from being a grown-up.'}, shirley = {'You are a minority, a fragile personality, and ...
local BLOCK = require 'Core.Modules.logic-block' local INFO = require 'Data.info' local M = {} local function showTypeScroll(event) if event.phase == 'began' then display.getCurrentStage():setFocus(event.target) event.target.click = true elseif event.phase == 'moved' then if ma...
default_policy = {} default_policy.endpoints = {} default_policy.policy = { ["move"] = true, -- moves session items when metadata target.node changes ["follow"] = true, -- moves session items to the default device when it has changed -- Set to 'true' to disable channel splitting & merging on nodes and enable...
SILE.hyphenator.languages["es"] = {}; SILE.hyphenator.languages["es"].patterns = { "1b", "4b.", "2bb", "2bc", "2bd", "2bf", "2bg", "2b1h", "2bj", "2bk", "2bm", "2bn", "2bp", "2bq", "2bs", "2bt", "2bv", "2bw", "2bx", "2by", "2bz", "1c", "4c.", "2cb", "2cc", "2cd", "2cf", "2cg", "2cj", "2ck", "2cm", "2cn", "2cp", "2cq", ...
test_run = require('test_run').new() engine = test_run:get_cfg('engine') _ = box.space._session_settings:update('sql_default_engine', {{'=', 2, engine}}) format = {} format[1] = {'id', 'integer'} s = box.schema.create_space('test', {format = format}) box.execute("SELECT * FROM \"test\";") box.execute("INSERT INTO \"te...
--- -- HUD base class. -- @class HUD -- @section old_ttt local surface = surface -- Fonts surface.CreateFont("TraitorState", {font = "Trebuchet24", size = 28, weight = 1000}) surface.CreateFont("TimeLeft", {font = "Trebuchet24", size = 24, weight = 800}) surface.CreateFont("HealthAmmo", {font = "Trebuchet24", size = ...
----------------------------------- -- Area: Apollyon NE -- Mob: Cronos ----------------------------------- require("scripts/globals/limbus") local ID = require("scripts/zones/Apollyon/IDs") function onMobSpawn(mob) mob:setMod(tpz.mod.UDMGPHYS, -100) end function onMobDeath(mob, player, isKiller, noKiller) i...
function GUIMessages() local self = {} local function showMsgInColor(msg,color) if (term.isColor()) then term.setTextColor(color) print(msg) term.setTextColor(colors.white) else print(msg) end end function self.showErrorMsg(msg) showMsgInColor(msg,colors.red) print...
local mysql = exports.mrp_mysql local banCache = {} local banAffectedSerial = {} local banAffectedIP = {} local banAffectedAccount = {} local lastBan = nil local lastBanTimer = nil local removeBan_ = removeBan function banAPlayer(thePlayer, commandName, targetPlayer, hours, ...) if exports["mrp_integration"]:isPlayer...
------------------------------------------------------------------------------- -- SF Helper for Starfall -- By Jazzelhawk ------------------------------------------------------------------------------- --- TO DO --- --- search page SF.Helper = {} SF.Docs = {} local helper = SF.Helper local docs_set = false local set...
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Copyright 2016-2020 The Node.lua Authors. All Rights Reserved. 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.apach...