content
stringlengths
5
1.05M
local print, tostring, _G, pcall, ipairs, isnumber = print, tostring, _G, pcall, ipairs, isnumber local e, f, g, h, s print('has debug', debug ~= nil) if not debug then error('no debug') end print('----- debug.getfenv, debug.setfenv') f = function(a) return 'f:' .. tostring(a) .. '|' .. tostring(b) end s, e, g = pcal...
local array = require('containers/array') local map = require('containers/map') local set = require('containers/set') local optionDescription = require('program-options/option-description') local optionsDescription = {} optionsDescription.__index = optionsDescription function optionsDescription.new(caption) ch...
-- start.lua PX2_SM:CallFile("DataEditor/scripts/functions.lua") PX2_SM:CallFile("DataEditor/scripts/mainframe.lua") PX2_SM:CallFile("DataEditor/scripts/stageview.lua") PX2_SM:CallFile("DataEditor/scripts/menus.lua") PX2_SM:CallFile("DataEditor/scripts/toolbars.lua")
local anim8 = require('libs.anim8') local Shot = {} function Shot:new(world, x, y, a, spriteset, name) name = name or '' local shot = {} setmetatable(shot, self) self.__index = self shot.b = love.physics.newBody(world, x, y, 'dynamic') shot.b:setMass(1) shot.s = love.physics.newCircleShape(3) shot...
object_intangible_vehicle_barc_speeder_pcd = object_intangible_vehicle_shared_barc_speeder_pcd:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_barc_speeder_pcd, "object/intangible/vehicle/barc_speeder_pcd.iff")
--[[ © 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 --]] local Clockwork = Clockwork; local SysTime = SysTime; local IsValid = IsValid; loc...
--- The style interpreter. -- @module wonderful.style.interpreter local class = require("lua-objects") local textBuf = require("wonderful.style.buffer") local lexer = require("wonderful.style.lexer") local node = require("wonderful.style.node") local parser = require("wonderful.style.parser") local property = require...
---------------------------------------- -- -- Copyright (c) 2015, Hadriel Kaplan -- -- author: Hadriel Kaplan <hadrielk@yahoo.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not _G['pcapng_te...
object_tangible_furniture_all_event_flag_game_neut_banner = object_tangible_furniture_all_shared_event_flag_game_neut_banner:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_event_flag_game_neut_banner, "object/tangible/furniture/all/event_flag_game_neut_banner.iff")
--- Functions -- @section local _ITEMS = {} local Dyn = require 'ta.dynamo' local Env = require 'ta.item_env' local ip = require 'solstice.itemprop' local ipc = ip.const local Cre = require 'solstice.creature' local env_mt = { __index = table.chain(M.env, ipc) } --- Load item file. -- @param file Item file to load....
--- --- @author Dylan MALANDAIN, Kalyptus --- @version 1.0.0 --- created at [24/05/2021 10:02] --- local ItemsSettings = { CheckBox = { Textures = { "shop_box_blankb", -- 1 "shop_box_tickb", -- 2 "shop_box_blank", -- 3 "shop_box_tick", -- 4 "shop...
function firstToUpper(str) return (str:gsub("^%l", string.upper)) end local main = {} print("Loading Feature Lib") main.menu, a = loadsubmodule("featurelib", "menu") main.menu.init() main.items = {} main.registeritem = function (item_name, script_name) item_name_l = item_name:lower() script_name = tostrin...
local logger = require 'rspamd_logger' rspamd_config:register_symbol({ name = 'ANY_A', score = -1.0, group = "any", callback = function() return true, 'hello3' end }) rspamd_config:add_condition('ANY_A', function(task) logger.infox(task, 'hello from condition1') task:insert_result('ANY_A', 1.0, 'hel...
--==================================================================================== -- #Author: Jonathan D @Gannon --==================================================================================== --==================================================================================== -- --=====================...
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
return { Points = { [9] = { x = -287.3926, scale = 0.3, y = 186 }, [2] = { x = 258.6738, scale = 0.39, y = -138 }, [3] = { x = 432.695, scale = 0.4, y = -174 }, [4] = { x = -494.4178, scale = 0.46, y = -468 }, [10] = { x = 93.65373, scale = 0.38, y = -114 ...
function onCreate() makeLuaSprite('CWall', 'CWall', -800, -500); setScrollFactor('CWall', 0.9, 0.9); makeLuaSprite('CFloor', 'CFloor', -350, 300); setScrollFactor('CFloor', 1.2, 1.2); scaleObject('CFloor', 0.9, 0.9); makeAnimatedLuaSprite('anim', 'Porker Lewis', 1300, -1000); scaleObject('Porker Lewis', 0.7...
require("nvim-test.runners.busted"):setup { command = "vusted", }
num_enemies = 2 boss_fight = false experience=450 gold=100 function start() addEnemy("Evil", 50, 60); addEnemy("Evil", 70, 90); end function get_speech() return nil end function get_item() if (getRandomNumber(2) == 0) then return ITEM_ELIXIR end return -1 end
config = { var0 = { tmpl1 = { tmpl2 = { class = { var0 = 1 } } } } }
------------------------------------------------------------------------------------------------ -- The Lasers module. -- -- @module lasers -- @author Łukasz Durniat -- @license MIT -- @copyright Łukasz Durniat, Mar-2018 ------------------------------------------------------------------------------------------------ ...
local a,b=myFunc()
_addon.name = 'Itemizer' _addon.author = 'Ihina' _addon.version = '3.0.1.2' _addon.command = 'itemizer' require('luau') defaults = {} defaults.AutoNinjaTools = true defaults.AutoItems = true defaults.Delay = 0.5 defaults.version = "3.0.1.1" defaults.UseUniversalTools = {} defaults.UseUniversalT...
local skynet = require "skynet" local harbor = {} function harbor.globalname(name, handle) handle = handle or skynet.self() skynet.send(".cslave", "lua", "REGISTER", name, handle) end function harbor.queryname(name) return skynet.call(".cslave", "lua", "QUERYNAME", name) end function harbor.link(id)...
-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function lure.rom.newLineBoxObject( ) local self = lure.rom.newBoxObject( {nodeType=1, boxType=3, formatingContext=2, nodeDesc="ROMLineBoxNode"} ) --=================================================================== -- PROPERT...
describe('mach.format_value', function() local format_value = require 'mach.format_value' it('should format basic types', function() assert.are.same('3', format_value(3)) assert.are.same("'hello'", format_value('hello')) assert.are.same('true', format_value(true)) end) it('should format functions'...
PLoop(function() namespace "KittyBox.Layout" __Sealed__() class "LinearLayout"(function() inherit "ViewGroup" __Sealed__() struct "LayoutParams"(function() __base = KittyBox.Layout.LayoutParams member "gravity" { Type = Gravity } --...
--[[ level.lua Provides level structures used by the generator to build maps. ]] require("entities") require("level") require("tileset") --[[ Structure The base structure. Really just exists to ensure that each structure is a class and has a build function. ]] Structure = { width = 0, height = 0, palette =...
local ctypes = {} local util = require("titan-compiler.util") local inspect = require("inspect") local typed = require("typed") local equal_declarations local add_type = typed("TypeList, string, CType -> ()", function(lst, name, typ) lst[name] = typ table.insert(lst, { name = name, type = typ }) end) -- Co...
R'commented'.setup { hooks = { before_comment = require('ts_context_commentstring.internal').update_commentstring, }, comment_padding = ' ', keybindings = { n = ',c', v = ',c', nl = ',c' }, prefer_block_comment = false, set_keybindings = true, ex_mode_cmd = 'Comment', }
-- hammerspoon config require('luarocks.loader') require('modules.inputsource_aurora') -- Hammerspoon reload hs.hotkey.bind({'option', 'cmd'}, 'r', hs.reload) -- WindowHints hs.hints.hintChars = {'1', '2', '3', '4', 'Q', 'W', 'E', 'R'} hs.hotkey.bind({'shift'}, 'F1', hs.hints.windowHints) local f13_mode = hs.hotkey....
local diff_table = {} local item_attributes = {} local max_durability = tonumber(minetest.settings:get("crafting_durability.max_durability_limit")) or 1000 ------------------------------------------- ---- Local functions ------------------------------------------- local function register_crafting_durability() -- Cr...
local dna = LibStub("AceAddon-3.0"):GetAddon("dna") local L = LibStub("AceLocale-3.0"):GetLocale("dna") dna.class_action = {} dna.class_action.__index = dna.class_action --[[ -- syntax equivalent to "MyClass.new = function..." function MyClass.new(init) local self = setmetatable({}, MyClass) self.value =...
local ffi = require 'ffi' local uni = require 'ffi.unicode' ffi.cdef[[ int MessageBoxW(unsigned int hWnd, const wchar_t* lpText, const wchar_t* lpCaption, unsigned int uType); ]] local MB_ICONQUESTION = 0x00000020 local MB_OK = 0x00000000 local function messagebox(hwnd, text, caption, type) local wtext ...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Gimbal" ENT.WireDebugName = "Gimbal" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self:GetPhysicsObject():...
---@meta ---@class ccs.ActionTimeline :cc.Action@all parent class: Action,PlayableProtocol local ActionTimeline={ } ccs.ActionTimeline=ActionTimeline ---* ---@return self function ActionTimeline:clearFrameEndCallFuncs () end ---* add a frame end call back to animation's end frame<br> ---* param animationName @ad...
function onSay(cid, words, param, channel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have " .. getPlayerMoney(cid) .. " gold.") return true end
--[[ minted -- enable the minted environment for code listings in beamer and latex. MIT License Copyright (c) 2019 Stephen McDowell 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 restri...
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.ViewModelFlip = true SWEP.PrintName = "P228 Compact" SWEP.IconLetter = "y" SWEP.Slot = 2 SWEP.Slotpos = 2 end SWEP.HoldType = "pistol" SWEP.Base = "rad_base" SWEP.ViewModel = "models/weapons/v_pist_p228.mdl" SWEP.WorldModel = "models/w...
--[[ Name: LibDeformat-3.0 Author(s): ckknight (ckknight@gmail.com) Website: http://www.wowace.com/projects/libdeformat-3-0/ Description: A library to convert a post-formatted string back to its original arguments given its format string. License: MIT ]] local _, ADDONSELF = ... -- local MAJOR, MINOR = "ScrollingTable"...
object_draft_schematic_dance_prop_prop_ribbon_spark_l_s02 = object_draft_schematic_dance_prop_shared_prop_ribbon_spark_l_s02:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_ribbon_spark_l_s02, "object/draft_schematic/dance_prop/prop_ribbon_spark_l_s02.iff")
local Com = require "meiru.com.com" ---------------------------------------------- --ComHeader ---------------------------------------------- local ComHeader = class("ComHeader", Com) function ComHeader:ctor() end local slower = string.lower function ComHeader:match(req, res) local header = {} -- log("req.rawhead...
local HTTP = require("http") local Utils = require("utils") HTTP.create_server("0.0.0.0", 8080, function (req, res) local body = Utils.dump({req=req,headers=req.headers}) .. "\n" res:write_head(200, { ["Content-Type"] = "text/plain", ["Content-Length"] = #body }) res:finish(body) end) print("Server li...
local recipe_infos = {} local long_pipes = { ["se-space-pipe-long-j-3" ] = "", ["se-space-pipe-long-j-5" ] = "", ["se-space-pipe-long-j-7" ] = "", ["se-space-pipe-long-s-9" ] = "", ["se-space-pipe-long-s-15"] = "", } local belt_colors = { "blue", "cyan", "green", "magenta", "red", "white", ...
-- -- Copyright 2012 Aaron MacDonald -- -- 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...
CommandConst = { EnterState = 'EnterState', CloseWindow = 'CloseWindow', FormationChanged = 'FormationChanged', WindowCBackToB = 'WindowCBackToB', AdjustHeadView = 'AdjustHeadView', }
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Chemioue -- Type: NPC Quest -- !pos 82.041 -34.964 67.636 26 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:...
local cauldron, sounds = {}, {} local S = minetest.get_translator("xdecor") -- Add more ingredients here that make a soup. local ingredients_list = { "apple", "mushroom", "honey", "pumpkin", "egg", "bread", "meat", "chicken", "carrot", "potato", "melon", "rhubarb", "cucumber", "corn", "beans", "berries", "grapes", ...
-------------------------------------------------------------------------------- -- Handler.......... : onInit -- Author........... : -- Description...... : -------------------------------------------------------------------------------- ------------------------------------------------------------------------------...
local ffi = require("ffi") local bits_ioctl = require("bits/ioctl") ffi.cdef[[ int ioctl (int, int, ...); ]] local exports = { ioctl = ffi.C.ioctl; } setmetatable(exports, { __call = function(self, tbl) tbl = tbl or _G; for k,v in pairs(self) do tbl[k] = v; end return self; end, }) return exports
-- x64 ioctl differences return function(s) local arch = { ioctl = { } } return arch end
if SERVER then AddCSLuaFile() util.AddNetworkString("ThirdOTSPacket") util.AddNetworkString("ThirdOTSReq") net.Receive("ThirdOTSReq", function(len, ply) local t = net.ReadBool() local state = net.ReadBool() if t then ply:SetNW2Bool("ThirtOTS", state) else ply:SetNW2Bool("ThirtOTS_SStatus", state) ...
local re = require 're' local make_context = require 'parse.json.make.context' local make_read_value = require 'parse.json.make.read.value' local pdef_document = [[ %SPACE %VALUE !. ]] return function(context) context = context or make_context() context.VALUE = make_read_value(context) return re.compile(pdef_doc...
Frame = class() function Frame:init(left, bottom, right, top) -- you can accept and set parameters here self.left = left self.right = right self.bottom = bottom self.top = top end function Frame:overlaps(f) if self.left > f.right or self.right < f.left or self.bottom > f.top or self.top < ...
return { { "button", { background_color = { 78, 189, 255, 255 }, border_radius = 4, text_color = { 19, 86, 128, 255 }, text_align = "center", line_height = 2, padding = { 0, 15 }, cursor = "hand", text_shadow = { 0, 1 }, text_shadow_color = { 200, 2...
--从高到低 --^ --not - (unary) --* / --+ - --.. --< > <= >= ~= == --and --or --除了^和..所有的运算符左连接 -- --[[ a+i < b/2+1 <--> (a+i) < ((b/2)+1) 5+x^2*8 <--> 5+((x^2)*8) a < y and y <= z <--> (a < y) and (y <= z) -x^2 <--> -(x^2) x^y^z <--> x^(y^z) --]]
--[[ Play caller ID/envelope information. ]] -- Coming from where? Could be either prior to playing the message, or from -- the advanced menu options. from = args(1) -- Always play both if we're coming from the advanced options. if from == "advanced_options" then play_envelope = "yes" play_caller_id = "yes" --...
build_path = os.getenv("BUILDDIR") package.cpath = build_path..'/test/box/?.so;'..build_path..'/test/box/?.dylib;'..package.cpath log = require('log') net = require('net.box') c = net.connect(os.getenv("LISTEN")) box.schema.func.create('function1', {language = "C"}) id = box.func["function1"].id function setmap(tab)...
local B = require("core.Broadcast") local Logger = require("core.Logger") local Combat = loadfile("bundles/bundle-example-combat/lib/Combat.lua")() local wrapper = require("core.lib.wrapper") return { aliases = { "attack", "slay" }, command = function(state) ---comment ---@param self any ---@pa...
return {'paquay'}
t = {"a", "b", "c"} index, el = next(t) print(index) print(el) index, el = next(t, index) print(index) print(el) index, el = next(t, index) print(index) print(el) index, el = next(t, index) print(index) print(el)
require("core/object"); require("gameData/gameData"); require("libs/json_wrap"); -------------------------------- --用户等级配置 ----------------------------------- local UserLevelConfig = class(GameData); UserLevelConfig.initData = function(self) self.m_localVersion = -1; self.m_level = {}; end UserLe...
local status_ok, key = pcall(require, "which-key") if not status_ok then return end key.setup { plugins = { marks = true, -- shows a list of your marks on ' and ` registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode -- the presets plugin, adds help for a bunc...
-- --[[ ---> 用于将当前插件提供为具体系统的上下文 -------------------------------------------------------------------------- ---> 参考文献如下 -----> / ----------------------------------------------------------------------------------------------------------------- --[[ ---> 统一函数指针 --]] -------------------------------------------------------...
---@module WeaponAmmoBase 枪械模块:枪械子弹基类 ---@copyright Lilith Games, Avatar Team ---@author Sharif Ma local WeaponAmmoBase = class('WeaponAmmoBase') ---WeaponAmmoBase类的构造函数 ---@param _id number 子弹ID ---@param _count number 拾取的数量 ---@param _character PlayerInstance 拾取的玩家 function WeaponAmmoBase:initialize(_id, _count, _ch...
------------ CONFIGURATION ---------------- -- set this to false if you do not want to enable automatic "recharging" TUNING.CONEMISSILE_REEQUIP = true ------------------------------------------- PrefabFiles = { "conemissile", } STRINGS = GLOBAL.STRINGS RECIPETABS = GLOBAL.RECIPETABS Recipe = GLOBAL.Recip...
--- Utility functions for Restia -- @module restia.utils -- @author DarkWiiPlayer -- @license Unlicense local utils = {} local lfs = require 'lfs' local colors = require 'restia.colors' local escapes = { ['&'] = '&amp;', ['<'] = '&lt;', ['>'] = '&gt;', ['"'] = '&quot;', ["'"] = '&#039;', } do local buf = {} fo...
local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRPani = {} vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP","vrp_attitudes") BMclient = Tunnel.getInterface("vrp_attitudes","vrp_attitudes") vRPani = Tunnel.getInterface("vrp_attitudes","vrp_attitudes") Tunnel.bin...
local trimstring = require 'trimstring' local t = require 'testhelper' t( trimstring(''), '' ) t( trimstring('a'), 'a' ) t( trimstring(' a'), 'a' ) t( trimstring('a '), 'a' ) t( trimstring(' a '), 'a' ) t( trimstring(' a a'), 'a a' ) t( trimstring('a a '), 'a a' ) t( trimstring(' a a '), 'a a' ) t( trimstring(' \ns...
return { Name = "to"; Description = "Teleports you to another player."; Group = "DefaultDebug"; Args = { { Type = "player"; Name = "target"; Description = "The player to teleport to." } }; }
chats = {} function dl_cb (arg, data) var_dump(arg) var_dump(data) end function tdcli_update_callback (data) var_dump(data) if (data.ID == "UpdateNewMessage") then local msg = data.message_ local d = data.disable_notification_ local chat = chats[msg.chat_id_] if ((not d) and chat) then if ...
--------------------------------------------------------------------------------------------- -- Issue https://github.com/SmartDeviceLink/sdl_core/issues/995 --------------------------------------------------------------------------------------------- -- Preconditions: -- 1. Core, HMI started. -- 2. App is registered o...
local len = table.maxn Node = class() -- attributes: -- changed: has changed since last iteration -- wp, rp: write and read protection -- aa: argument alias information -- tl: thread-local bags (that do not need protection) -- assign: assignment information -- writes, reads: which variables are being read/written -- p...
local win = window.new("Run Program",nil,40) do win:setResizable(false) local inputBox = UIElement.UITextbox.new(win,nil,20) inputBox:focusOn() inputBox:setCallback(function(keyIn) if love.filesystem.isFile("progs/"..keyIn) then local ok, chunk, result ok, chunk = pc...
-- Declare all of the components local components = {} components.position = function(entity, x, y) entity.position = { x = x, y = y } end components.movementDirection = function(entity, x, y) entity.movementDirection = { x = x, y = y } end components.dimensions = function(entity, w, h) entity.dimensions = { w = ...
local datasets = require 'dataset-init' local Threads = require 'threads' Threads.serialization('threads.sharedserialize') local M = {} local DataLoader = torch.class('DataLoader', M) function DataLoader.getDataFaces(opt, split) print('=> Building dataset...') base_dir = opt.data..'landmarks/' dirs = path...
local utils = require "kong.tools.utils" local singletons = require "kong.singletons" local conf_loader = require "kong.conf_loader" local cjson = require "cjson" local api_helpers = require "kong.api.api_helpers" local Schema = require "kong.db.schema" local Errors = require "kong.db.errors" local sub = string.sub lo...
----------------------------------- -- Area: Temple of Uggalepih -- NPC: ??? (Crimson-toothed Pawberry NM) -- !pos -39 -24 27 159 ----------------------------------- local ID = require("scripts/zones/Temple_of_Uggalepih/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrade(pla...
--[[ Copyright 2012-2015 The Luvit 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...
--[[ Description: ClientSide command handler. Author: Sceleratis Date: 12/25/2021 --]] local Root, Utilities, Service, Package; local RemoteCommands = {} local Commands = { DeclaredCommands = { } } --// Output local Verbose = false local function DebugWarn(...) if Verbose and Root and Root.Warn then Root.Wa...
-- THREADS --------------------------------------------------------------------- -- Setup Citizen.CreateThread(function() -- Initialize ESX while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end -- Fetch player data Citizen.Wait(500...
local M = {} function M.check_health() local configs = require 'nvim_lsp/configs' for _, top_level_config in pairs(configs) do -- the folder needs to exist local new_config = top_level_config.make_config(".") local cmd, _ = vim.lsp._cmd_parts(new_config.cmd) if not (vim.fn.executable(cmd) == 1) th...
local utf8 = require "ng.utf8" local s = "привет" assert(utf8.RuneCount(s) == 6) local rune, size rune, size = utf8.DecodeRune(s) assert(rune == 1087) assert(size == 2) rune, size = utf8.DecodeLastRune(s) assert(rune == 1090) assert(size == 2) rune, size = utf8.DecodeRune(s, 3) assert(rune == 1088) assert(size == ...
--!A cross-platform build utility based on Lua -- -- 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...
function SetChallengePointsTag(uuid) local cp = GetVarInteger(uuid, "LLENEMY_ChallengePoints") if cp == nil or cp < 0 then cp = 0 end LeaderLib.PrintDebug("[EUO:UpgradeInfo.lua:SetChallengePointsTag] Character ("..uuid..") CP("..tostring(cp)..")") for k,tbl in pairs(ChallengePointsText) do if cp >= tbl.Min and cp...
----------------------------------- -- -- Zone: Southern_San_dOria_[S] (80) -- ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria_[S]/IDs"); require("scripts/globals/missions"); require("scripts/globals/settings"); require("scripts/globals/chocobo") require("scripts/globals/quests"...
--- Syntax sugar. -- return { --- Sweeten a function. This effectively allows functions taking multiple -- arguments to be "called without parentheses." You probably don't need -- to use this. -- -- @param fn A function taking a fixed number of non-optional arguments. -- -- @param argc The number of argu...
local skynet = require "skynet" skynet.start(function() print("Main Server start") local console = skynet.newservice( "testmongodb", "127.0.0.1", 27017, "testdb", "test", "test" ) print("Main Server exit") skynet.exit() end)
if not modules then modules = { } end modules ['back-exp'] = { version = 1.001, comment = "companion to back-exp.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- Todo: share properti...
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Bob's Mods -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if not (reskins.bobs and reskins.bobs.triggers.assembly.entities) then return end -- Flag available for Mini-Machines compatibility ...
local maxId = 0 local fprpVars = {} local fprpVarById = {} -- the amount of bits assigned to the value that determines which fprpVar we're sending/receiving local fprp_ID_BITS = 8 local UNKNOWN_fprpVAR = 255 -- Should be equal to 2^fprp_ID_BITS - 1 fprp.fprp_ID_BITS = fprp_ID_BITS function fprp.registerfprpVar(name, ...
local S = pulse_network.S function pulse_network.add_storage_cell(id, texture, desc, add_types, add_items) minetest.register_node(id, { stack_max = 16, tiles = texture, sounds = trinium.sounds.default_metal, description = desc, groups = {cracky = 1, pulsenet_slave = 1}, on_pulsenet_connection = function(_...
object_mobile_dressed_tatooine_icon_tosche = object_mobile_shared_dressed_tatooine_icon_tosche:new { } ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_icon_tosche, "object/mobile/dressed_tatooine_icon_tosche.iff")
CheatCoreCM = CheatCoreCM or {} local modVehicles = {} -- do not modify --correct format is: modVehicles["MODID"] = { {"display name (can be anything)", "vehicle ID", "category name (can be anything)"} } --table key must be the modID defined in the mod's modinfo.txt file, i.e modVehicles["FRUsedCars"] for Filibuster ...
local date = require("../init") local deepEqual = require("deep-equal") require("tap")(function(test) test("date-strptime-simple-date", function() local str = "Jan 01 1970" local pos, got = date.strptime(str, "%b %d %Y") local expected = { year = 1970, month = 1, day = 1, hour = 0...
--- --- 控制空闲时是否允许屏幕睡眠 --- Created by sugood(https://github.com/sugood). --- DateTime: 2020/10/24 14:13 --- local menuBarItem = nil local setCaffeine= function() if config ~=nil and config[1].caffeine == 'on' and menuBarItem == nil then print("设置状态栏") menuBarItem= hs.menubar.new() menuBarItem...
local alias = minetest.register_alias -- Remove duplicated items from the carbone subgame because of Moreores mod -- Stone alias("default:stone_with_tin", "default:stone") alias("default:stone_with_silver", "default:stone") -- Lump alias("default:tin_lump", "default:stone") alias("default:silver_lump", "default:stone")...
local PAIStrings = { -- ================================================================================================================= -- Language specific texts that need to be translated -- -- =============================================================================================================...
-- A small game to learn LUA and some game dev function love.load() -- Init basics love.window.setTitle("Eliberate Us") love.window.setIcon( love.image.newImageData("assets/img/player.png") ) bg = love.graphics.newImage("assets/img/background.png") introbg = love.graphics.newImage("assets/img/...
Key = { -- LBUTTON = 0x01, -- RBUTTON = 0x02, CANCEL = 0x03, -- MBUTTON = 0x04, -- XBUTTON1 = 0x05, -- XBUTTON2 = 0x06, BACK = 0x08, TAB = 0x09, CLEAR = 0x0c, RETURN = 0x0d, SHIFT = 0x10, CONTROL = 0x11, MENU = 0x12, PAUSE = 0x13, CAPITAL = 0x14, KANA = 0x15, HANGEUL = 0x15, HANGUL =...