content
stringlengths
5
1.05M
local Template = require "oil.dtests.Template" local template = Template{"Client"} -- master process name Client = [=====================================================================[ orb = oil.dtests.init() local ok, ex = orb:step(0) assert(ok == nil) assert(ex.error == "timeout") ok, ex = orb:step(.1) assert(ok...
----------------------------------- -- Area: Qu'Bia Arena -- Mob: Gladiatorial Weapon -- BCNM: Die by the Sword ----------------------------------- require("scripts/globals/status") ----------------------------------- function onMobInitialize(mob) mob:addMod(tpz.mod.UDMGMAGIC, -100) end function onMobDeath(mob, ...
package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/?.lua" local ShipGenerator = include("shipgenerator") ESCCUtil = include("esccutil") LLTEUtil = include("llteutil") MissionUT = include("missionutility") include("stringutility") include("randomext") function crea...
vRPCoreC = Tunnel.getInterface("bscore", "bscore") vRPJobsS = Proxy.getInterface("jobs") vRPCoreS = {} Tunnel.bindInterface("bscore", vRPCoreS) Proxy.addInterface("bscore", vRPCoreS) local Core = class("bscore", vRP.Extension) Core.User = class("User") Core.tunnel = {} Core.event = {} function Core:__con...
local error = require('app.utils').error local render_to_string = require('app.views.helpers').render_to_string local ngx_print = ngx.print local ngx_header = ngx.header local ngx_req = ngx.req local ngx_HTTP_NOT_ALLOWED = ngx.HTTP_NOT_ALLOWED local template_handler_meta = { __call = function(self) ngx_header...
local Class = require 'class'; return Class { constructor = function(self, precache) self.Cache = precache or {}; self.__mt.__tostring = function() return p(self.Cache) end; end, push = function(self, key, value) self.Cache[key]:push(value) end; toArray...
--module("base64", package.seeall) function tcp_ip_get_src_port(data) return data:byte(35) * 256 + data:byte(36) end function tcp_ip_get_dst_port(data) return data:byte(37) * 256 + data:byte(38) end
local battle_defs = require "battle/battle_defs" local CARD_FLAGS = battle_defs.CARD_FLAGS local BATTLE_EVENT = battle_defs.BATTLE_EVENT -------------------------------------------------------------------- local BATTLE_GRAFTS = { prickle = { name = "Prickle", desc = "If you end y...
local dir = require "memfs.dir" local d = dir(true) d:mkdir("a"):mkdir("aa") --:all(print) assert(d/"a"/"aa") local d2 = dir(true) assert(not pcall(function() d:hardlink("d2", d2) end)) assert(d/"a"/"aa" == d:getnode{"a", "aa"}) print("OK")
--[[ FPS Meter v1.0 - 2020/10/15 by: standardcombo This module calculates players' frame rates and can display their FPS on screen. While it's possible to see frame rate through other means and Core provides good optimization tools, you may want your game to either: 1. Show the FPS (frames per second) to th...
local export = {} local gsub = mw.ustring.gsub local tt = { -- consonants ['ᦀ'] = '˙ʼ', ['ᦁ'] = 'ʼ', ['ᦂ'] = 'k\204\135', ['ᦃ'] = 'x\204\135', ['ᦄ'] = 'n\204\135g', ['ᦅ'] = 'k', ['ᦆ'] = 'x', ['ᦇ'] = 'ng', ['ᦈ'] = 't\204\135s', ['ᦉ'] = 's\204\135', ['ᦊ'] = 'y\204\135', ['ᦋ'] = 'ts', ['ᦌ'] = 's', ['ᦍ'] = 'y', ['ᦎ']...
local http = require "lib/http-code" local copas = require "copas" local modules = require("lib/loader-module") local ServiceCommand = {} ServiceCommand.__index = ServiceCommand ServiceCommand.__deps = { event_bus = "event-bus", -- mqtt = "mqtt-provider" } function ServiceCommand:LogTag() return "ServiceC...
-- See LICENSE for terms local table_find = table.find local table_remove = table.remove local table_rand = table.rand local GameTime = GameTime local Max = Max local Sleep = Sleep local AsyncRand = AsyncRand local orig_WaitInOrbit = SupplyRocket.WaitInOrbit function SupplyRocket:WaitInOrbit(arrive_time, ...) -- ch...
local pattern_escape_replacements = { ["("] = "%(", [")"] = "%)", ["."] = "%.", ["%"] = "%%", ["+"] = "%+", ["-"] = "%-", ["*"] = "%*", ["?"] = "%?", ["["] = "%[", ["]"] = "%]", ["^"] = "%^", ["$"] = "%$", ["\0"] = "%z" } function string.PatternSafe( str ) return ( str:gsub( ".", pattern_escape_replaceme...
local playsession = { {"remarkablysilly", {1418533}}, {"Llzzard", {1362110}}, {"Timfee", {194545}}, {"oakivil", {555222}}, {"brftjx", {71911}}, {"Chesmu", {907975}}, {"Firewall5000", {69792}}, {"Serennie", {957619}}, {"WorldofWarIII", {1528966}}, {"Puph", {971978}}, {"MrJSelig", {551678}}, {"Silverwolf9300"...
--[[ Description: Changes a unit's current experience rating Arguments: Number base_pointer Memory pointer to the current unit - cannot be in hex annotated format, e.g 0x001EF35A = incorrect, 001EF35A = correct Number command_argument Ranging from 0 - 9, the experience rating to give. String optionalHeader...
/*============================================================================================================================================ Expression-Advanced Derma ============================================================================================================================================== Name: ...
LSpeedComp = SimpleClass(LComponent) function LSpeedComp:__init(type,uid,args) self.speed = args[1] end function LSpeedComp:isNeedUpdate() return self.isChange end function LSpeedComp:update(sp) self.speed = sp end
---@class lstg.MBGPlayer:xobject local M = xclass() local mbg = require('util.mbg.__init__') local Main = require('game.mbg.Main') function M:init(path) self.bound = false self.layer = LAYER_TOP + 100 assert(type(path) == 'string') local s = cc.FileUtils:getInstance():getStringFromFile(path) if s ...
local inspect = require 'inspect' local readline = require 'resty.repl.readline' local function output(result, code_len) local value = result:value() -- print an error if not success if not result:is_success() then local err = result:err() if 'table' == type(err) then err = inspect(err) end readline...
object_tangible_event_perk_frn_loyalty_award_plaque_silver = object_tangible_event_perk_shared_frn_loyalty_award_plaque_silver:new { } ObjectTemplates:addTemplate(object_tangible_event_perk_frn_loyalty_award_plaque_silver, "object/tangible/event_perk/frn_loyalty_award_plaque_silver.iff")
--=========== Copyright © 2018, Planimeter, All rights reserved. ===========-- -- -- Purpose: Drop-Down List Item Group class -- --==========================================================================-- class "gui.dropdownlistitemgroup" ( "gui.radiobuttongroup" ) local dropdownlistitemgroup = gui.dropdownlistite...
local t = Def.ActorFrame{}; t[#t+1] = Def.ActorFrame { OnCommand=function(self) if GAMESTATE:IsExtraStage() then self:diffuse(color("#ff5aec")); elseif GAMESTATE:IsExtraStage2() then self:diffuse(color("#ff5a63")); end; end; -- failed song -- LoadActor("../_failed.mp3") .. { StartTransitioningComm...
local async = {} function async.parallel(...) return async.parallel_list({ ... }) end local function empty(done) done() end function async.parallel_list(tasks) if #tasks == 0 then return empty end return function(done) local cnt = 0 for _, task in pairs(tasks) do ...
data:extend{ { name = "packing-tape-pickup", type = "custom-input", key_sequence = "J", action = "lua", localised_name = {"shortcut-name.packing-tape-shortcut"}, }, { name = "packing-tape-shortcut", type = "shortcut", action = "lua", associated_control_input = "packing-tape-pickup", ...
----------------------------------------- -- ID: 4764 -- Scroll of Aero III -- Teaches the black magic Aero III ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(156) end function onItemUse(target) target:addSpell(156) end
local module = ... local restartTimer = tmr.create() restartTimer:register(2000, tmr.ALARM_SINGLE, function() node.restart() end) local function process(request) if request.method == "GET" then if request.query then request.query.restart = request.query.restart or "false" request.query.restore = request.query....
local Maze = require(script.Maze) local Draw = require(script.Draw) return function(count, size, exitCount) local maze = Maze:new(count) local cells = maze:generate() local draw = Draw:new(size) draw:draw(cells, exitCount) end
-- Crafts minetest.register_craft({ output = "mcl_lighting:light_rod 4", recipe = { {"mcl_mobitems:blaze_rod"}, {"mcl_core:iron_ingot"}, }, }) minetest.register_craft({ output = "mcl_lighting:blue_lantern_f", recipe = { {"", "mcl_core:iron_nugget", ""}, {"mcl_core:glass_blue", "mcl_torches:torch...
local _floor, _ceil = math.floor, math.ceil local _sf = string.format local simpleclass = require "simpleclass" local noop = simpleclass.noop local class = simpleclass.class ----- MODULE FUNCTION START ----- return function(Game) --------------------------------- local settings = Game.settings local Pane = Game.g...
local __procedures = {} local procedure = { __callbacks = {}, __events = {}, __doEventCheck = true, running = false, } function new(port, updateRate) local internalID = 0 repeat internalID = internalID + 1 until (__procedures[internalID] == nil) __procedures[internalID] = true loc...
function love.conf(t) t.window.width = 800 -- t.screen.width in 0.8.0 and earlier t.window.height = 500 -- t.screen.height in 0.8.0 and earlier t.window.borderless = false t.window.resizable = true t.window.minwidth = 400 t.window.minheight = 300 t.modules.physics = false t.modules.thread = false t.console =...
local MakePlayerCharacter = require "prefabs/player_common" local assets = { --Asset("ANIM", "anim/wendy.zip"), Asset("ANIM", "anim/wes.zip"), Asset("ANIM", "anim/player_mime.zip"), } local prefabs = { "balloons_empty" } local start_inv = { "balloons_empty", } local fn = function(inst) inst.compo...
--[[ TestName.lua exported by excel2lua.py from file:TestName.xlsx --]] local TestName = { [1] = { Id = 1, name = '剑客', attributes = {{2001,1,10},{3001,1,10}}, Attack = 1, }, [2] = { Id = 2, name = '法师', attributes = {{2001,1...
local persist local defaultMt = {__index = function(self,k) self[k] = {} return self[k] end} local function CollectData() persist.distances = {} for name, prototype in pairs(game.entity_prototypes) do persist.distances[name] = prototype.type == "underground-belt" and prototype.max_underground_distance or nil ...
local random = require'ottery' local randomdata = {} local dupes = 0 local num = 102400 local length = 1024 for i = 1, num do local data = random.hexstring(length) if randomdata[data] then dupes = dupes + 1 end randomdata[data] = true end print(("We generated %d hex strings with a length of %d"):format(num, ...
----------------------------------- -- Area: Meriphataud Mountains -- Mob: Hill Lizard ----------------------------------- require("scripts/globals/regimes") ----------------------------------- function onMobDeath(mob, player, isKiller) tpz.regime.checkRegime(player, mob, 37, 1, tpz.regime.type.FIELDS) tpz.re...
local rand = require "rand" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local http = require "http" local io = require "io" local vulns = require "vulns" description = [[ Exploits a directory traversal vulnerability in phpMyAdmin 2.6.4-pl1 (and possibly other v...
----------------------------------------------------------------------- -- Declare shortcuts and import required modules ----------------------------------------------------------------------- local SCNScene = objc.SCNScene local SCNNode = objc.SCNNode local SCNAction = objc.SCNAction local SCNAudioPLayer = objc.SCNAud...
local console = { name = 'Console', admin = true, print = function(...) rcon.print(...) end, color = {1, 1, 1, 1} } local color = require("utils/color_presets") -- control.lua -- Mar 2019 -- Oarc's Separated Spawn Scenario -- -- I wanted to create a scenario that allows you to spawn in separate locati...
local b16 = require('mini.base16') require('mini.base16').setup({ palette = { base00 = '#000000', base01 = '#242422', base02 = '#484844', base03 = '#6c6c66', base04 = '#918f88', base05 = '#b5b3aa', base06 = '#d9d7cc', base07 = '#fdfbee', base08 = '#ff6c60', base09 = '#e9c062',...
--[[ Hunger Johnson: But even making things like cigarettes Hunger Johnson: I don't knwo if Jovan or Mojo wants cigs (WBA Inf.) M-Sgt. Trenchman-: Jovan liked the idea --]] ITEM.name = "Dutch Cigarettes" ITEM.model = "models/props_lab/box01a.mdl" -- TO BE DETERMINED ITEM.category = "Consumables"; ITEM.desc = "A pack o...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
ys = ys or {} slot1 = ys.Battle.BattleBuffEvent slot2 = ys.Battle.BattleConst.BuffEffectType slot3 = class("BattleFleetBuffUnit") ys.Battle.BattleFleetBuffUnit = slot3 slot3.__name = "BattleFleetBuffUnit" slot3.Ctor = function (slot0, slot1, slot2) slot0._id = slot1 slot0._tempData = slot0.Battle.BattleDataFunction....
function update(...) --[[sb.logInfo("updating") for k, v in pairs {...} do sb.logInfo(string.format("key \"%s\" of type %s", k, type(v))) end]] end function init() --[[for k,v in pairs(mcontroller) do sb.logInfo("mcontroller." .. k) end]] end --setmetatable(_ENV, {__index = function(_, n) sb.logInfo...
function onCreate() --Iterate over all notes for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'smiler_notesdrain' then --Check if the note on the chart is a Bullet Note setPropertyFromGroup('unspawnNotes', i, 'texture', 'smiler_notes'); --Change texture...
local skynet = require "skynet" local netpack = require "skynet.websocketnetpack" local socket = require "skynet.socket" local cluster = require "skynet.cluster" local servicepool = require "servicepool" local mc = require "skynet.multicast" local dc = require "skynet.datacenter" require "skynet.manager" local CMD = {...
--[[ Mail Baby API This is an API defintion for accesssing the Mail.Baby mail service. The version of the OpenAPI document: 1.0.0 Contact: detain@interserver.net Generated by: https://openapi-generator.tech ]] -- error_response class local error_response = {} local error_response_mt = { __name = "error_...
fprp.openHitMenu = fprp.stub{ name = "openHitMenu", description = "Open the menu that requests a hit.", parameters = { { name = "hitman", description = "The hitman to request the hit to.", type = "Player", optional = false } }, returns = { }, metatable = fprp } fprp.PLAYER.drawHitInfo = fprp.stu...
local tiny = require "lib/tiny" local Timer = require "lib/hump/timer" local entity = {} entity.box2d_world = require "engine/entity/physics/box2d_world" -- Tiled map entity.map = require "engine/entity/map/tiled_map" local component = {} local system = {} -- Box2D system system.box2d_world = require "engine/system...
-- local M = {} local dir = cc.Director:getInstance() local _running local listeners = {} local function process() if not _running then return end local cam = cc.Camera:getVisitingCamera() or dir:getRunningScene():getDefaultCamera() if not cam then return end local xx, yy = lst...
-- baseclass for game sprites local SpriteObj = { x = 0, y = 0, w = 16, h = 16, vx = 0, vy = 0, img = 'default', name = 'test object', } SpriteObj.__index = SpriteObj --[[ sets and attaches all key-value pairs from the table [options] to the new object. options *can* be empty but should probably includ...
local Class = require("lib.class") local StateMachine = require("lib.state_machine") local Anim = require("lib.animations") local Sprite = require("lib.sprite") local Rect = require("lib.rect") local B = Class:derive("bear") local bear local idle = Anim(0,0,209,108,8,8,16) local attack = A...
--[[ 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...
--- SOAP Policy -- This policy adds support for a very small subset of SOAP. -- This policy basically expects a SOAPAction URI in the SOAPAction header or -- the content-type header. -- The SOAPAction header is used in v1.1 of the SOAP standard: -- https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528, whereas t...
local gl = require 'gl' local v2 = require 'dokidoki.v2' assert(player, 'missing player argument') picked = false local OFFSET_PIXELS = -4 local SEGMENTS = 16 local RADIUS = 32 local fade = 0.2 local pulse_time = 0 callback = callback or function () end self.sprite.image = assert(game.resources.factory_sprites[p...
local uci = require"luci.model.uci".cursor() local api = require "luci.model.cbi.passwall.api.api" local appname = "passwall" local n = {} uci:foreach(appname, "nodes", function(e) if e.type and e.remarks and e.address and e.port then if (e.type == "V2ray_balancing" or e.type == "V2ray_shunt") or (e.addres...
local state = {} state._NAME = ... local Body = require'Body' local t_entry, t_update, t_exit local motion_inited function state.entry() print(state._NAME..' Entry' ) local t_entry_prev = t_entry -- When entry was previously called t_entry = Body.get_time() t_update = t_entry motion_inited=false end funct...
local render = function(self) end return function(looky) return { build = function(options) local base = looky:makeBaseLayout(options) base.renderCustom = render base.contentWidth = function(self) return self.width end base.contentHeight = function(self) return...
AddCSLuaFile() wmChat.anonyChat.config = wmChat.anonyChat.config or {} local CONFIG = wmChat.anonyChat.config CONFIG.MaxChatLimit = 350 CONFIG.ErrorSound = "ambient/alarms/klaxon1.wav" CONFIG.NextErrorSound = 1
--[[ Very simple demo of using client/master APIs Karl Palsson, April 2016 --]] mb = require("libmodbus") print("using libmodbus runtime version: ", mb.version()) print("using lua-libmodbus compiled against libmodbus: ", mb.VERSION_STRING) local dev = mb.new_tcp_pi("localhost", 1502) print(dev:get_byte_timeout()) pri...
----------------------------------- -- Area: Dynamis - Xarcabard -- Mob: Animated Kunai ----------------------------------- require("scripts/globals/status"); local ID = require("scripts/zones/Dynamis-Xarcabard/IDs"); ----------------------------------- function onMobEngaged(mob,target) if (mob:AnimationSub() ==...
-------------------------------- -- @module EaseBounce -- @extend ActionEase -- @parent_module cc ---@class cc.EaseBounce:cc.ActionEase local EaseBounce = {} cc.EaseBounce = EaseBounce return nil
local PANEL = {} function PANEL:Init() self.title = t'ui.currency.title' end function PANEL:Paint(w, h) DisableClipping(true) draw.RoundedBox(0, -4, -4, w + 8, h + 8, Color(50, 50, 50, 100)) DisableClipping(false) end function PANEL:PaintOver(w, h) if self.title then local text = t(self.title) lo...
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- -- https://github.com/erincatto/Box2D local params = { ... } local BOX2D_ROOT = params[1] local BOX2D_INCLUDE = { BOX2D_ROOT .. "include", BOX2D_ROOT .. "src", } local BOX2D_FILES = { BOX2D_...
function Init() sprites = {} sprites.player = LoadTexture("assets/textures/Ship.png") sprites.triangle = LoadTexture("assets/textures/Triangle.png") require("src/ExampleScript/player") require("src/ExampleScript/level") level:Init() GameState = {State = -1, Play = 0, MainMenu =1, GameOver = 2} GameState.Sta...
local Button = require "ruu.widgets.Button" local Slider = Button:extend() Slider.nudgeDist = 5 -- Hack to try to get global rotation, check two parents up. local function getScreenRotation(node) local p1, p2 local rotZ = gui.get_rotation(node).z -- gui.get_rotation returns a vector3 of euler angles. ...
local Scene = require("lib.scene") local Player = require("../player") local Bar = require("lib.ui.bar") local U = require("lib.utils") local bat = require("../bat") local apple = require("../apple1") local apple1 = require("../apple") local Thorn = require("../thorn") local health = require("../global") ...
local zawszetrue = true Citizen.CreateThread(function() while zawszetrue do Citizen.Wait(0) local ped = GetPlayerPed(-1) GetPlayerWantedLevel(ped) end end) -- discord.gg/exus -- script created by nisu#0007
--[[ # Author : Qwreey / qwreey75@gmail.com / github:qwreey75 # Create Time : 2021-05-11 18:57:26 # Modified by : Qwreey # Modified time : 2021-06-05 01:20:25 # Description : | Time format = yyy-mm-dd hh:mm:ss Time zone = GMT+9 모듈 데이터를 github 로 부터 가져옵니다, http 오...
------------------------------------------------------------- -- Various utilities for visualization through the web server ------------------------------------------------------------- local visualizer = {} require 'torch' disp = nil print(opt) if opt.display_id > 0 then -- [hack]: assume that opt already existed ...
object_static_halloween_item_sitholantern2 = object_static_halloween_shared_item_sitholantern2:new { } ObjectTemplates:addTemplate(object_static_halloween_item_sitholantern2, "object/static/halloween/item_sitholantern2.iff")
-- Copyright 2004-present Facebook. All Rights Reserved. require 'cutorch' require 'nn' local TemporalKMaxPooling, parent = torch.class('nn.TemporalKMaxPooling', 'nn.Module') function TemporalKMaxPooling:__init(k, k_dynamic) parent.__init(self) self.k = k self.k_dynamic = k_dynamic or -1 self.o...
local M = {} -- constants M.YSDK_INIT_ID = 0 M.YACONTEXT_INIT_ID = 1 -- private local cb_id_counter = 2 local function next_cb_id() local id = cb_id_counter cb_id_counter = (cb_id_counter + 1) % 2147483647 if cb_id_counter == 0 or cb_id_counter == 1 then cb_id_counter = cb_id_counter + 1 end ...
--- Module implementing the luarocks-admin "make_manifest" command. -- Compile a manifest file for a repository. module("luarocks.make_manifest", package.seeall) local manif = require("luarocks.manif") local index = require("luarocks.index") local cfg = require("luarocks.cfg") local util = require("luarocks.util") lo...
return {'iwan','iwans'}
local ffi = require "ffi" local C = ffi.C local ffi_gc = ffi.gc require "resty.openssl.include.x509.crl" require "resty.openssl.include.x509.revoked" local bn_lib = require("resty.openssl.bn") local format_error = require("resty.openssl.err").format_error local _M = {} local mt = { __index = _M } local revoked_ptr_c...
local L = BigWigs:NewBossLocale("Mephistroth", "ptBR") if not L then return end if L then L.custom_on_time_lost = "Tempo perdido durante Desvanecer nas Sombras" L.custom_on_time_lost_desc = "Mostra o tempo perdido durante o Desvanecer nas Sombras na barra em |cffff0000red|r." end L = BigWigs:NewBossLocale("Domatrax"...
-- Import the AMQP Client Library local amqp = require("amqp") -- Define the connection URL and Port local host = "127.0.0.1" local port = 5672 -- Connect to AMQP server local ctx = amqp:new({ role = "producer", user = "admin", password = "admin" }) local ok, err = ctx:connect("127.0.0.1",5672) local ok,...
local NORMAL_SPEED = 6 local ORBIT_SPEED = 1 local SPEED = NORMAL_SPEED -- pxl/s local LIFETIME = 10; State = {FREE = 0, ATTRACTED = 1, ORBIT = 2} local targets; local moon; local lifetime = 0; local MAX_LIFETIME = 3; Object.inactive = true; function Local.Init(x, y, vecInit, through_bridge) local TILES = Engin...
local BaseClass = {} BaseClass.__index = BaseClass --[[setmetatable(BaseClass, { __call = function (cls, ...) local self = setmetatable({}, cls) self:_init(...) return self end, })]] function BaseClass:new(init) local self = setmetatable({}, BaseClass) self.value = init return self end function...
-- Borrowed from SLASH'EM -- -- des.level_init({ style = "solidfill", fg = " " }); des.level_flags("mazelevel", "noteleport", "hardfloor", "premapped", "solidify"); des.map([[ ----------------- |.......|...--..| |.-----.|.......| |.---...|.......| |...........--..| |......--...||..| |FFFFF-------|.-| |...........|-....
return { methods = { close = { function(self, args, ret) if self.puppeting then self:unpuppet() end print(("%s [%s] has disconnected"):format(self.name, self.sock:getpeername())) self.sock:close() end }, puppet = { function(self, args, ret) ...
data.raw.player.player.mining_categories = {}
--[[ Copyright 2019 Manticore Games, 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, including without limitation the rights to use, copy, modify, merge, publish, distrib...
local MainUIMenuView = BaseClass(UINode) function MainUIMenuView:Constructor( ) self.viewCfg = { prefabPath = "Assets/AssetBundleRes/ui/mainui/MainUIMenuView.prefab", canvasName = "MainUI", } end function MainUIMenuView:OnLoad( ) local names = { "bag:obj", } UI.GetChildren(self, self.transform, names) se...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local Components = require "moonpie.ui.components" local Player = require "game.rules.player" local connect = require "moonpie.redux.connect" local tables = require "moonpie.tables...
local function EXPORT_GLOBAL(key, value) _G[key] = value eonz.log('exported "' .. key .. '" to the global table') end local function EXPORT_OPT_GLOBAL(opt, def, value) if opt then local key = type(opt) == 'string' and opt or def EXPORT_GLOBAL(key, value) end end -- # Optional Exports -- To export the...
local s = "chocolate,1.29,darkchocolat" local commaPosition = string.find(s, ",") print(commaPosition) local item = string.sub(s, 1, commaPosition-1) local price = string.sub(s, commaPosition+1) print(item) print(price)
local function phpfpm(act) return action.when(physical.path:suffix(".php"), action.when(physical.is_file:is(), act), action.when(request.path:eq("/fpm-status"), act) ) end actions = { ["phpfpm"] = phpfpm, }
require 'nn' require 'rnn' require 'nngraph' require 'hdf5' --[[ Extracts the hidden state and output of a trained model at each time step of a data set. Author: Sebastian Gehrmann --]] cmd = torch.CmdLine() cmd:option('-rnn_size', 650, 'size of LSTM internal state') cmd:option('-num_layers', 2, 'number of layers ...
local suite = yatm_autotest.att:new_suite("YATM Refinery")
--[[--ldoc desc @module paixing_1569_2 @author WahidZhang Date 2018-01-09 19:35:02 Last Modified by WahidZhang Last Modified time 2018-07-03 17:54:14 ]] --[[ paixing_1569_2: paixing_1569_2: 2对及以上两张点数+花色相同的牌 1、相连的对子,牌点必需相邻,主、副不能相连 2、对大王+对小王是独立的连对 注:这里的花色相同,指黑红梅方其中任意一色完全相同 paidiandaxiao_1579_2: ...
local function FLOOD_REQUIRED_ITEMS_INSTALLED() if file.Exists("weapons/arccw_bo1_asp.lua", "LUA") == true and file.Exists("autorun/arccw_autorun.lua", "LUA") == true and file.Exists("weapons/rust_syringe/shared.lua", "LUA") == true then return end if SERVER then print("===================Flood Ins...
local AbstractRecurrent, parent = torch.class('srnn.AbstractRecurrent', 'srnn.RecurrentContainer') function AbstractRecurrent:__init(...) local function prepareTensorTable(nTensor) local rs = {} for _ = 1, nTensor do table.insert(rs, torch.Tensor()) end return rs end parent.__init(self, ...) if self.ini...
print(hello) print("... and a special hello goes out to Rufus!")
-- Generated by github.com/davyxu/tabtoy -- Version: 2.8.10 local tab = { TRecharge = { { Id = 1, Price = 6 }, { Id = 2, Price = 12 }, { Id = 3, Price = 30 }, { Id = 4, Price = 68 }, { Id = 5, Price = 128 }, { Id = 6, Price = 348 }, { Id = 7, Price = 648 } } } -- Id tab.TRechargeById = {} for...
local Functions = require "Functions" local Clock = require "spec_source.Clock" describe( "Functions", function() local callSpy, clock before_each( function() callSpy = spy.new( function(...) return {..., n = select("#", ...)} end ) clock = Clock.setup() end ) after_eac...
Settings = {} Settings.SettingsOptionOne = false
-- Slightly Improved™ Dialogues -- The MIT License © 2016 Arthur Corenzan local NAMESPACE = "SlightlyImprovedDialogues" local settings = {} local panel = { type = "panel", name = "Slightly Improved™ Dialogues", displayName = "Slightly Improved™ Dialogues", author = nil, version = nil, } local op...