content
stringlengths
5
1.05M
return { name = "cloudflare-dns.com", label = _("Cloudflare"), resolver_url = "https://cloudflare-dns.com/dns-query", bootstrap_dns = "1.1.1.1,1.0.0.1,2606:4700:4700::1111,2606:4700:4700::1001", help_link = "https://one.one.one.one/family/", help_link_text = "Cloudflare.com", default = true }
local z_removed_for_weap = 75 AddEvent("OnDimensionCreated", function(id, name) if name == "base" then for i,v in ipairs(weapons_shops) do local npc = CreateNPC(v[1], v[2], v[3], v[4]) SetNPCNetworkedClothingPreset(npc, 25) AddNPCInDimension(npc, id) table.insert(onl...
--require("mobdebug").start() -- Uncomment for ZeroBrain IDE debuger support --We're using these visual pads and buttons to show real pad and button states! dofile("helpers/OnScreenDPad.lua") dofile("helpers/OnScreenButton.lua") dofile("helpers/VirtualResolution.lua") appWidth = 640 appHeight = 480 virtualResolution...
-- -- func.lua An example of input file for ex_levmar.exe. It contains -- several data sets that are selected by if..then..elseif..else operator. -- This example demonstates that the user can actively use Lua language. -- -- Data set for fitting is taken from: -- Graybill F.A. and Iyer H.K. Regression analysis. Concep...
-- Generate bytecode object opt.add("bytecode=name", "Generate a lua file to bytecode object", function(name, file, fileout, ...) if file == nil then msg.header() msg.indent("Usage: "..RAVABIN:gsub("^.*/", "").." --bytecode [options]\n") gen.bytecode() end if name == true then name = file:gsub("%..-$", ""):...
local skynet = require "skynet" local queue = require "skynet.queue" local socket = require "skynet.socket" local cs = queue() local tinsert = table.insert local tremove = table.remove local tconcat = table.concat local CMD = {} local queues = {} local resps = {} local function sendto(clientfd, arg) -- local r...
-- config.lua -- Apr 2017 -- Configuration Options -- -- You should be able to leave most of the settings here as defaults. -- The only thing you definitely want to change are the welcome messages. -------------------------------------------------------------------------------- -- Messages ------------------...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if item:getActionId() ~= 1000 then return false end fromPosition.z = fromPosition.z + 1 player:teleportTo(fromPosition) return true end
-- Creator: -- AltiV - February 23rd, 2019 LinkLuaModifier("modifier_item_imba_rod_of_atos_debuff", "components/items/item_rod_of_atos.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_imba_rod_of_atos", "components/items/item_rod_of_atos.lua", LUA_MODIFIER_MOTION_NONE) item_imba_rod_of_atos = class...
-- Removes water from buckets (for lye-making). --[====[ fix/dry-buckets =============== Removes water from all buckets in your fortress, allowing them to be used for making lye. Skips buckets in buildings (eg a well), being carried, or currently used by a job. ]====] local emptied = 0 local water_type ...
require(5672807068).JointDistortion(owner.Name)
--SETABLE VARS-- --almost all vars are in "blocks", "blocks per second" or just "seconds". Should be obvious enough what's what. --also maxyspeed, bounceheight, koopajumpforce need to be updated in game.lua as well. portalgundelay = 0.2 gellifetime = 2 bulletbilllifetime = 20 bigbilllifetime = 20 kingbilllifetime = 50...
_addon.name = "autoSC" _addon.author = "Godchain" _addon.version = "1.0" _addon.commands = {"autoSC", "asc"} res = require("resources") enabled = true player = windower.ffxi.get_player() step = 1 ws_timing = 11 -- weapon_skills = {"Catastrophe", "Exenterator", "Cross Reaper", "Leaden Salute", "Catastrophe"} -- weapon...
local colorMapping = {} colorMapping.iconColors = { ["__base__/graphics/icons/automation-science-pack.png"] = {r = 1.0, g = 0.1, b = 0.1}, ["__base__/graphics/icons/chemical-science-pack.png"] = {r = 0.2, g = 0.2, b = 1.0}, ["__base__/graphics/icons/logistic-science-pack.png...
function __TS__StringSplit(source, separator, limit) if limit == nil then limit = 4294967295 end if limit == 0 then return {} end local out = {} local index = 0 local count = 0 if (separator == nil) or (separator == "") then while (index < (#source - 1)) and (coun...
local function validate_client_id(client_id) if client_id == "allowed-subscriber-id" then return true -- client we allow elseif client_id == "not-allowed-subscriber-id" then return false -- client we disallow else return -- client we dont know end end function auth_on_reg...
return { summary = 'Apply a Material to the Mesh.', description = [[ Applies a Material to the Mesh. This will cause it to use the Material's properties whenever it is rendered. ]], arguments = { { name = 'material', type = 'Material', description = 'The Material to apply.' } ...
-- -- Copyright 2020 IBM Corporation -- 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 wr...
lok_mercenary_patrol2_neutral_none = Lair:new { mobiles = {{"mercenary_commander",1},{"mercenary_elite",1}}, spawnLimit = 6, buildingsVeryEasy = {}, buildingsEasy = {}, buildingsMedium = {}, buildingsHard = {}, buildingsVeryHard = {}, mobType = "npc", buildingType = "none" } addLairTemplate("lok_mercenary_pat...
--[[ Setup: Connect a display, and name the slot it connects to, to "display" load the code onto the appropriate sections ( unit>>start() and unit>>tick(time) ) edit the lua parameters (right.click>>advanced>>edit lua parameters) activate the board. presto! ]] --[[ drop it into...
object_building_general_coru_skyscraper_17 = object_building_general_shared_coru_skyscraper_17:new { } ObjectTemplates:addTemplate(object_building_general_coru_skyscraper_17, "object/building/general/coru_skyscraper_17.iff")
return { { name = "2016-03-10-160000_req_trans_schema_changes", up = function(_, _, factory) local plugins, err = factory.plugins:find_all {name = "request-transformer"} if err then return err end for _, plugin in ipairs(plugins) do for _, action in ipairs {"remove", ...
if (SERVER) then SWEP.Weight = 10 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false end if ( CLIENT ) then SWEP.PrintName = "Medkit" SWEP.Author = "Black Tea" SWEP.Instructions = "Left Click to Swing." SWEP.ShowViewModel = true SWEP.ShowWorldModel = true end SWEP.Base = "hl2_melee" SWEP....
local utils=require "leda.utils" s1=leda.stage{ name="s1", handler=function (i) i=0 while i<10 do leda.send(1,string.format("print('event %d') leda.send(1,'string')",i)) leda.sleep(0) i=i+1 end leda.send(1,"leda.quit()") end, init=function() require "string" ...
sendFileBuf = {} fileSendFlag = 0 fd = nil function guessType(filename) local types = { ['.css'] = 'text/css', ['.js'] = 'application/javascript', ['.html'] = 'text/html', ['.png'] = 'image/png', ['.jpg'] = 'image/jpeg', ['.ico'] = 'image/jpeg' } for ext, type in pairs(types) do if s...
--[[ local function PlayerPane( PlayerNumber ) local t = Def.ActorFrame { InitCommand=function(self) self:name("PlayerPane" .. PlayerNumberToString(PlayerNumber)); -- ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen"); end }; t[#t+1] = Def.ActorFrame { Name = "Background"; Def.Quad { InitC...
local doodle = {} local palette = { {0,0,0,255}, --Black 1 {28,43,83,255}, --Dark Blue 2 {127,36,84,255}, --Dark Red 3 {0,135,81,255}, --Dark Green 4 {171,82,54,255}, --Brown 5 {96,88,79,255}, --Dark Gray 6 {195,195,198,255}, --Gray 7 {255,241,233,255}, --White 8 {237,27,81,255}, --...
require 'lib.behavior3.core.Composite' local memSequence = b3.Class("MemSequence", b3.Composite) b3.MemSequence = memSequence function memSequence:ctor(...) -- b3.MemSequence.ctor(self) b3.Composite.ctor(self) -- b3.MemSequence.super.ctor(self , ...) self.name = "MemSequence" end function memSequence:open(...
--[[-- encoded_path_element = -- string which can't contain evil stuff like "/" encode.file_path_element( path_element -- string to be encoded ) This function is encoding a string in a way that it can be used as a file or directory name, without security risks. See the source for details. --]]-- fu...
local Promise = require(script.Parent.Parent.Parent.Parent.Promise) local function GetTimeFromOsClock() return Promise.Resolve({ Accuracy = 0; Offset = 0; Time = os.clock(); }) end return GetTimeFromOsClock
-- See LICENSE for terms -- some sound funcs to use with the sounds defined below: --~ handle = PlaySound(sound, _type, volume, fade_time, looping, point_or_object, loud_distance) --~ StopSound(handle) --~ IsSoundPlaying(handle) --~ SetSoundVolume(handle, volume, time) --~ GetSoundVolume(handle) --[[ PlaySound("Objec...
--[[ // FileName: MasterControl // Version 1.0 // Written by: jeditkacheff // Description: All character control scripts go thru this script, this script makes sure all actions are performed --]] -- [[ Constants ]]-- local ZERO_VECTOR3 = Vector3.new(0, 0, 0) local STATE_JUMPING = Enum.HumanoidStateType.Jumping loc...
--[[ Variables ]] Config = { SellNpcItems = { ["joint"] = { minprice = 20, maxprice = 40, minamount = 1, maxamount = 3 }, ["1gcocaine"] = { minprice = 40, maxprice = 70, minamount = 1, maxa...
local diff = { ["axisDiffs"] = { ["a2001cdnil"] = { ["changed"] = { [1] = { ["filter"] = { ["curvature"] = { [1] = 0, }, ["deadzone"] = 0, ["invert"] = true, ["saturationX"] = 1, ["saturationY"] = 1, ["slider"] = false, }, ["key"] = "JOY_Y", ...
Link = Class('Link') local g_Map = {} local DEFAULT_NORMAL_COLOR = {255, 255, 0} local DEFAULT_HOVER_COLOR = {255, 0, 0} local function onDestroy() g_Map[source] = nil end local function onMouseEnter() local self = g_Map[source] self.hover = true self:_updateColor() end local function onMouseLea...
--[[ Name: job_npcs.lua ]]-- GAMEMODE.Map:RegisterNPCSpawn{ UID = "cop_job", pos = { Vector( -8815.959961, -5587.968750, 10 ) }, angs = { Angle( 0, -90, 0 ) }, } GAMEMODE.Map:RegisterNPCSpawn{ UID = "cop_spawn_car", pos = { Vector( -7568.031250, -5587.962402, 25 ) }, angs = { Angle( 0, -180, 0 ) }, } GAM...
local actions = {} local utils = require("keyfactor.utils") local CTRL_V = "\22" -- Would be nice if NVIM api exposed a nicer way to do this. (Or if &opfunc could be a function -- instead of a string!) -- TODO when script-local stuff works better, use s: instead of Keyfactor prefix -- KeyfactorSetCallback is a hack t...
local love = require "love" local enemy = require "Enemy" local button = require "Button" math.randomseed(os.time()) local game = { difficulty = 1, state = { menu = true, paused = false, running = false, ended = false }, -- these are the amount of points the user has ga...
function TryGetSquareUnderMouse(mouseWolrd) local file = math.floor(mouseWolrd[1] / 120) local rank = 7 - math.floor(mouseWolrd[2] / 120) selectedPieceSquare = IndexFromCoord(file, rank) return file >= 0 and file < 8 and rank >= 0 and rank < 8 end function DragPiece(pieceCoord, mousePos) Board.Squa...
local Typer = require(script.Parent.Parent.Parent.Typer) local function get(dictionary, key) return dictionary[key] end return Typer.AssignSignature(Typer.Table, Typer.NonNil, get)
-- Libraries class = require 'middleclass' tween = require 'tween' Stick = require 'Stick' Shape = require 'Shape' local SCALE, SPACE = 90, 20 local WIDTH, HEIGHT = 800, 600 -- A shape for each digit local hour1, hour2, minute1, minute2, second1, second2 local prevTime local timer function love.load() math.rand...
local utils = require("utils") local speedRingChallenge = {} speedRingChallenge.name = "FrostHelper/SpeedRingChallenge" speedRingChallenge.nodeLineRenderType = "line" speedRingChallenge.placements = { name = "normal", data = { width = 16, height = 16, timeLimit = 1.0, name = "fh_...
--- 模块功能:socket客户端数据接收处理 -- @author openLuat -- @module socketLongConnection.socketInMsg -- @license MIT -- @copyright openLuat -- @release 2018.03.28 module(...,package.seeall) --- socket客户端数据接收处理 -- @param socketClient,socket客户端对象 -- @return 处理成功返回true,处理出错返回false -- @usage socketInMsg.proc(socketClient) function p...
local utils = require('utils') local format_disabled_var = function() return string.format('format_disabled_%s', vim.bo.filetype) end local M = {} M.formatToggle = function(value) local var = format_disabled_var() vim.g[var] = utils._if(value ~= nil, value, not vim.g[var]) end M.format = function() if not v...
-- Post-exit handling code (incl. errorhandler) -- Part of Live Simulator: 2 -- See copyright notice in main.lua local log = require("logging") local PostExit = {list = {}} function PostExit.add(func) PostExit.list[#PostExit.list + 1] = func if log.getLevel() >= 4 then log.debug("postExit", debug.traceb...
return function(name,base) local klass, base_ctor = {} if base then for k,v in pairs(base) do klass[k] = v end klass._base = base base_ctor = rawget(base,'new') end klass.__index = klass klass._is = name klass._class = klass return setmetatable(klass,{ __call = function(klass,...) ...
--[[ - Version: 0.1 - Made by Tom Tuning @ 2018 - Mail: tom.tuning@sas.com ****************** - INFORMATION ****************** -- object oriented programming functions -- support inheritence --]] ---------------------------------------------------------------------------------------------------- -----...
-- Call Lua Module Demo -- -- Your Lua modules may be stored in the /.lua/ folder. -- -- In our /.init.lua global scope earlier, we ran the code: -- -- mymodule = require "mymodule" -- -- Which preloaded the /.lua/mymodule.lua module once into the server -- global memory template from which all request handlers are ...
dofile("scripts/scanCodes.lua") dofile("scripts/input.lua") dofile("scripts/gameMath.lua") dofile("scripts/utility.lua") dofile("scripts/entity.lua") dofile("scripts/objectPool.lua") math.randomseed( os.time() ) dofile("spaceGame/scripts/spaceGame.lua")
local Keybind = {} Keybind.add_global_keybinds = function(keybinds) for _, keybind in pairs(keybinds) do keybind[4] = keybind[4] or {} API.nvim_set_keymap(keybind[1], keybind[2], keybind[3], keybind[4]) end end Keybind.add_buffer_keybinds = function(keybinds) for _, keybind in pairs(keybi...
return { include = function() includedirs { "../vendor/citizen_enet/include/" } end, run = function() targetname 'citizen_enet' language 'C++' kind 'StaticLib' add_dependencies("vendor:xenium") add_dependencies("vendor:citizen_util") defines { "HAS_INET_NTOP", "HAS_I...
object_draft_schematic_dance_prop_prop_ribbon_l_s06 = object_draft_schematic_dance_prop_shared_prop_ribbon_l_s06:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_ribbon_l_s06, "object/draft_schematic/dance_prop/prop_ribbon_l_s06.iff")
minetest.register_on_joinplayer(function(player) player:set_clouds({height=150}) end)
local json = require('json') local core = require('core') local wotclient = require('wot/client') ---@class consume local exports = {} -- ------------------------------------------------------------ -- ConsumedThing ---@class ConsumedThing local ConsumedThing = core.Emitter:extend() ---@param thingInstanc...
TweakDataHelper = TweakDataHelper or {} local tdh = TweakDataHelper tdh._storage = {} tdh._callbacks = {} function tdh:ModifyTweak(data, ...) local dest_tbl = tweak_data or self._storage local path = {...} local key = table.remove(path) for _, k in pairs(path) do dest_tbl[k] = dest_tbl[k] or {...
require 'image' require 'slider' im = image.load('scaled.png')[1] slider = Slider() slider:load(im) -- print(im) local s = slider:slide() while s do image.display(s) s = slider:slide() end -- image.display(im[{{1, im:size(1)}, {50, 150}}])
local Chara = ELONA.require("core.Chara") local Input = ELONA.require("core.Input") local GUI = ELONA.require("core.GUI") local I18N = ELONA.require("core.I18N") local Internal = ELONA.require("core.Internal") local Item = ELONA.require("core.Item") local table = table local common = require("../common.lua") local fu...
-- Inofficial MetalPortfolio Extension for MoneyMoney -- Fetches Metal price via goldapi.io API -- Returns metal prices as securities -- -- Username: Metal symbol [XAU - Gold, XAG - Silver, XPT - Platinum, XPD - Palladium, DJI - Dow Jones ] comma seperated with number of shares in brackets (Example: "XAU(2),XAG(1.4)") ...
return { name = "xsys", version = "1.0.2", require = { luajit = "2.0" }, license = "MIT <http://opensource.org/licenses/MIT>", homepage = "http://scilua.org/xsys.html", description = "extended Lua system", }
local _unpack = unpack local _max = math.max local _min = math.min -- Find and return the absolute vertices for any given set of vertices. local function getAbsoluteVertices( t ) if type(t) == "table" then local n, l, x, y = 1, #t, {}, {} for i = 1, l, 2 do x[n] = t[i] y[n] = t[i+1] n = n+1 end loc...
local TestView = class("TestView",cc.load("boyaa").mvc.BoyaaView); local BehaviorExtend = cc.load("boyaa").behavior.BehaviorExtend; BehaviorExtend(TestView); TestView.btnList = { [1] = { name = "注册自定义事件", fn = "evenDiy", }, [2] = { name = "发送自定义事件", fn = "sendEvenDiy", }, [3] = { name ...
return { summary = 'Draw the Model.', description = 'Draw the Model.', arguments = { x = { type = 'number', default = '0', description = 'The x coordinate to draw the Model at.' }, y = { type = 'number', default = '0', description = 'The y coordinate to draw the Mod...
-- If these states are modified, they are restored to the given default values restored = { -- render states { 'AlphaBlendEnable', 'False' }, { 'SeparateAlphaBlendEnable', 'False' }, { 'AlphaTestEnable', 'False' }, { 'ClipPlaneEnable', '0' }, { 'ColorWriteEnable', 'Red | Green | Blue | Alpha' }, { 'FogEn...
ok,err = nyagos.setrunewidth(100,100) if not ok then print("NG:","return value is not true:",err) os.exit(1) end ok,err = nyagos.setrunewidth() if ok then print("NG:","did not return parameter error") os.exit(1) end ok,err = nyagos.setrunewidth(1) if ok then print("NG:","did not retu...
local util = require("spec.util") describe("build.tl", function() it("defaults to the generated_code folder", function() util.run_mock_project(finally, { dir_structure = { ["tlconfig.lua"] = [[return { build_dir = "build", }]], ["foo.tl"] = [[print(r...
CLASS.name = "Metro Dweller" CLASS.desc = "Commonfolk of the Metro." CLASS.faction = FACTION_DWELLER CLASS.color = Color(126, 80, 21) CLASS.pay = 4 CLASS.payTime = 3600 --1 hour in seconds function CLASS:onCanBe(client) return true end CLASS_DWELLER = CLASS.index
--[[ File: src/animations/animationset.lua Author: Daniel "lytedev" Flanagan Website: http://dmf.me Defines a set of animations ]]-- local Animation = require("src.animations.animation") local AnimationFrame = require("src.animations.animationframe") local AnimationSet = Class{function(se...
--- Token to use for deleting -- @classmod DataStoreDeleteToken -- @author Quenty return newproxy()
----------------------------------- -- Area: Caedarva Mire -- NPC: Kwadaaf -- Type: Entry to Alzadaal Undersea Ruins -- !pos -639.000 12.323 -260.000 79 ----------------------------------- require("scripts/globals/keyitems") ----------------------------------- function onTrade(player, npc, trade) if (trade:getIt...
-->> assert_func :: boolean >> void local function assert_func(v) if not v then error('assert failed') end end local function foo1() -->> bar :: number >> number local function bar(v) return v + 1 end -- OK bar(1) bar(1.1) assert_func(10 > 1) -- ERROR bar(...
local gen_parse = function() local function parse(s, index, t, str_acc, stack) local head = s:sub(1, 1) local tail = s:sub(2) local top = stack[#stack] if head == "" then if(str_acc ~= "") then table.insert(t, str_acc) end return true, index-1 elseif head == " " ...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] CW_KOREAN = Clockwork.lang:GetTable("Korean"); CW_KOREAN["DoorToolNameText"] = "문...
local machine = require 'res/scripts/libs/statemachine' local deque = require 'res/scripts/libs/deque' require 'res/scripts/Animation' Animation = { Idle = CharAnimation.Swordsman.idle.id, Run = CharAnimation.Swordsman.run.id, Squat = CharAnimation.Swordsman.squat.id, Sword_Attack_1 = CharAnimation.Sw...
-- changes: -- -- since device is normalized we also need to change weights based on current window aspect for it to feel 'right' -- need to kill animation speed on scaling / relayout -- need to have a switch to use 'stepper nav' -- local navcfg = { axis_map = {-1, 1, 1}, axis_scale = {5, 5, 3}, -- when at the extr...
-- -- tests/test_clang.lua -- Automated test suite for the GCC toolset interface. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("tools_clang") local clang = p.tools.clang local project = p.project -- -- Setup/teardown -- local wks, prj, cfg ...
local _M = { _VERSION = '1.0' } local strutil = require("acid.strutil") local ngx = ngx local max_log_entry = 128 local function addfield(tbl, str, fld, sep) if fld ~= nil then table.insert(tbl, str) table.insert(tbl, strutil.placeholder(fld, fld or '-', '%.3f')) if sep then ta...
--- -- Create a source or binary release package. --- --- -- Helper function: run a command while hiding its output. --- local function execQuiet(cmd, ...) cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log" local z = os.execute(cmd) os.remove("_output_.log") os.remove("_error_.log") return ...
function Duplication_CopyCP(source,dupe) local cp = GetVarInteger(source, "LLENEMY_ChallengePoints") SetVarInteger(dupe, "LLENEMY_ChallengePoints", cp) SetChallengePointsTag(dupe) end local CopyBoosts = { "Movement", "MovementSpeedBoost", "FireResistance", "EarthResistance", "WaterResistance", "AirResistance"...
require("common/commonScene") local AboutUsScene = require("hall/aboutus/aboutUsScene"); require("hall/aboutus/aboutUsController"); local aboutus = require(ViewPath .. "hall/aboutus/aboutus"); AboutUsState = class(CommonState); AboutUsState.ctor = function(self) self.m_controller = nil; end AboutUsState....
--[[ @author: Mohamed Aziz Knani (medazizknani@gmail.com) @since: 16/07/2016 NOTE: This my first project using lua and love2d, so I have no prior knowledge of lua and love2d. I also build a simple AI that will just follow the ball when the velocity is positive (the ball is going toward the oponne...
local msrpc = require "msrpc" local nmap = require "nmap" local smb = require "smb" local stdnse = require "stdnse" local string = require "string" local table = require "table" local vulns = require "vulns" description = [[ Detects Microsoft Windows systems vulnerable to denial of service (CVE-2009-3103). This script...
local function get_cluster_nodes() return { 'localhost:3013', 'localhost:3014' } end return { get_cluster_nodes = get_cluster_nodes }
local F, C = unpack(select(2, ...)) tinsert(C.themes["FreeUI"], function() for i = 1, 5 do local tab = _G["FriendsFrameTab"..i] tab.bg = F.ReskinTab(tab) local hl = _G["FriendsFrameTab"..i.."HighlightTexture"] hl:SetPoint("TOPLEFT", tab.bg, C.Mult, -C.Mult) hl:SetPoint("BOTTOMRIGHT", tab.bg, -C.Mult, C.Mult...
task("list-deps") set_menu({ -- Settings menu usage usage = "xmake list-deps [target]", description = "List dependencies used by the engine or a specific target", options = { {'t', "target", "v", nil, "Target name" } } }) on_run(function () import("core.base.option") import("core.base.task") import("core.p...
-------------------------------------------------------------------------------- -- @type DungeonTiledGenerator -- ダンジョンマップデータからタイルマップデータを生成するクラスです. -------------------------------------------------------------------------------- -- import local class = require "flower.class" local table = require "flower.table" -- c...
local t = {} --Custom Addon Framework t["caf_menu_title"] = "Custom Addon Framework Menu" t["caf_menu_tab_title"] = "Custom Addon Framework" --Life Support t["Life Support"] = "Life Support" t["Generator"] = "Generator" t["Generators"] = "Generators" t["Storage Device"] = "Storage Device" t["Storage Devices"]...
object_draft_schematic_item_item_planning_table_dearic_imp = object_draft_schematic_item_shared_item_planning_table_dearic_imp:new { } ObjectTemplates:addTemplate(object_draft_schematic_item_item_planning_table_dearic_imp, "object/draft_schematic/item/item_planning_table_dearic_imp.iff")
function make() dofile("lib.lua") dofile("cells.lua") dofile("lurch.lua") end
pg = pg or {} pg.enemy_data_statistics_94 = { [100008] = { cannon = 20, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 80000, air = 0, rarity = 1, dodge = 0, torpedo = 40, durability_growth = 2040, antiaircraft = 0, reload_growth = 0, dodge_growth = 0, hit_growth ...
return { ansix923 = require "resty.nettle.padding.ansix923", base64 = require "resty.nettle.padding.base64", iso7816_4 = require "resty.nettle.padding.iso7816-4", ["iso7816-4"] = require "resty.nettle.padding.iso7816-4", iso10126 = require "resty.nettle.padding.iso10126", nopadding ...
-- Local instances of Global tables -- local PA = PersonalAssistant local PAB = PA.Banking local PAC = PA.Constants local PAHF = PA.HelperFunctions local PAEM = PA.EventManager -- --------------------------------------------------------------------------------------------------------------------- local _writTable lo...
local nio = require('nio') local const = require('const') local bit = require('bit') local sock = nio.tcp() local epoll = nio.epoll_create() local connected = true local ret, err = nio.connect(sock, 'www.baidu.com', 80) if ret == -1 and err == const.EINPROGRESS then connected = false end local evt = bit.bor(const....
--- 模块功能:socket长连接功能测试.测试保活探针keep-alive的作用。 -- 与服务器连接成功后 -- -- 每隔10秒钟发送一次"heart data\r\n"字符串到服务器 -- -- 每隔20秒钟发送一次"location data\r\n"字符串到服务器 -- -- 与服务器断开连接后,会自动重连 -- @author openLuat -- @module socketLongConnection.testSocket1 -- @license MIT -- @copyright openLuat -- @release 2018.03.27 module(...,package.seeall) req...
-- -- Author: Your Name -- Date: 2017-04-13 10:09:26 -- local version = "3.0"; local v3 = [[ Date: 2017-4-14 fix: 1. 底层允许重复加载 ]]
local app = { name = "MeteoRain", tilesets = { "overlay.bmp", "tiles.bmp", }, spritesheets = { "sprites.bmp", }, audio = { "music.raw", "sfx_gameover.raw", "sfx_crash.raw", }, scripts = { "main.lua", }, misc = { } } return app
--[[ Copyright 2020 DeepMind Technologies Limited. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
local License = {} License.__index = License local _cache = {} function License.validate(root_path) if _cache[root_path] then return nil end local license_path = root_path .. "LICENSE" local f = io.open(license_path, "r") if not f then return "not found license: " .. license_path end local lic...
-- these should probably be made better later -- this largely just says "the water pool is a square" -- "with this amount of air over it" WATER_HEIGHT = 32 -- "top" of water WATER_DEPTH = 140 -- "bottom" of water WATER_WIDTH = 180 -- "width"; the left edge of the ground starts here GAME_WIDTH = 206 -- Width of "gam...
--buddyinfo.lua -- Reference -- http://andorian.blogspot.com/2014/03/making-sense-of-procbuddyinfo.html -- local pow = math.pow local headingpattern = "Node%s+(%d+).*zone%s+(%w+)%s+(.*)" local chunkpatt = "(%d+)" local function buddyinfo(path) local tbl = {} for str in io.lines(path) do local numa_node, zone, nu...
-- Copyright (c) 2017-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 in the PATENTS file in the same directory. local ZeroNet, Modul...