content
stringlengths
5
1.05M
ModdedVehicles = {} VehicleStatus = {} ClosestPlate = nil isLoggedIn = true PlayerJob = {} local onDuty = false function DrawText3Ds(x, y, z, text) SetTextScale(0.35, 0.35) SetTextFont(4) SetTextProportional(1) SetTextColour(255, 255, 255, 215) SetTextEntry("STRING") SetTextCentre(true) AddTe...
--[[-------------------------------------------------------------------- Copyright (C) 2013, 2014 Johnny C. Lam. See the file LICENSE.txt for copying permission. --]]-------------------------------------------------------------------- -- This addon tracks the damage taken by the player from non-player sou...
local pool = require "lib.core.db" local ngx_cache = require "lib.cache" local singletons = require "config.singletons" local cjson = require "cjson" local pl_stringx = require "pl.stringx" local tonumber = tonumber local setmetatable = setmetatable local ipairs = ipairs local ne...
local CLK = {} local timezone = require "timezone" function CLK:AddScreen(data) local entry = { f = data.func, duration = data.duration, refresh = data.refresh or data.duration, single = data.singleTime, speed = data.speed, } if data.front then table.insert(...
project "LiquidEnginePlatformTools" basedir "../workspace/platform-tools" kind "StaticLib" configurations { "Debug" } includedirs { "include/liquid/platform-tools" } files { "src/**.cpp", "include/**.h", } filter { "system:linux" } remove...
local idn = require'idn' local prepare = function(str) return (str:gsub('[\n%s]+', ''):gsub('[uU]%+([A-F0-9]+)%s?', function(n) n = tonumber(n, 16) if(n < 128) then return string.char(n) elseif(n < 2048) then return string.char(192 + ((n - (n % 64)) / 64), 128 + (n % 64)) else return string.char(224 ...
-- SIE CONFIDENTIAL -- PhyreEngine(TM) Package 3.18.0.0 -- Copyright (C) 2016 Sony Interactive Entertainment Inc. -- All Rights Reserved. --PhyrePersistentContext -- Script to provide a simple default implementation of the functionality -- required to drive a PCameraControllerComponent. g_lastCameraDirection = {} g_...
local nonil = require 'without-check-nil' local m = {} function m.client() nonil.enable() local name = m.info.clientInfo.name nonil.disable() return name end function m.init(t) m.info = t end return m
--file for all settings for this program limit = 5 --number of rows to display per query --spacing for resource output id_spacing = 6 name_spacing = 15 type_spacing = 35 attribute_spacing = 6
WarningComposition = WarningComposition or {} function WarningComposition.Create(_ARG_0_, _ARG_1_) local L2_2 = WarningComposition.CreateWarningComposition(_ARG_0_, _ARG_1_) return L2_2 end Game.ImportLibrary("gui/scripts/sprites_texturesplashlegal.lua") function WarningComposition.CreateWarningCompos...
local utility = {} function utility.PrintTable1(vecDatas) print("lua table elements:") for tKey, tValue in pairs(vecDatas) do print("\t "..tKey.." => "..tValue) end end function utility.PrintTable2(vecDatas) print("lua table elements:"..#vecDatas) for i=1,#vecDatas do for j=1,#vecDa...
print("[server]init", SERVER_ID, WORKER_ID) package.path = "?;?.lua;lua/?;lua/?.lua" if WORKER_ID ~= 0 then error("[server]only sys can run init.lua") end local sys = "lua/sys/sys.lua" for i = 1, 3 do server.fork(sys); end dofile(sys)
werewolf_howl = class(AbilityBaseClass) ---------------------------------------- LinkLuaModifier( "modifier_werewolf_howl_aura", "modifiers/modifier_werewolf_howl_aura", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_werewolf_howl_aura_effect", "modifiers/modifier_werewolf_howl_aura_effect", LUA_MODIFIER_MOTIO...
require "Items/WorldFiller" overlayMap["location_shop_generic_01_96"] = {gunstore = {"weapons_01_0", "weapons_01_8"}, ammomakerroom = {"weapons_01_0", "weapons_01_8"}, other = {"books&misc_01_88", "books&misc_01_96"}} overlayMap["location_shop_generic_01_97"] = {gunstore = {"weapons_01_1", "weapons_01_9"}, ammomakerro...
//NS2 Reserved Slot local ReservedPlayers = { } local disconnectclients = { } local lastpasswordupdate = 0 local lastdisconnect = 0 local reserveslotactionslog = { } local serverlockstatus = false local ReservedPlayersFileName = "config://ReservedPlayers.json" local function LoadReservedPlayers() ReservedPlayers = ...
local WIM = WIM; -- imports local _G = _G; local table = table; local type = type; local string = string; local pairs = pairs; -- set namespace setfenv(1, WIM); constants.classes = {}; local classes = constants.classes; local classList = { "Druid", "Hunter", "Mage", "Paladin", "Priest", "Rogue", "Shaman"...
--- 模块功能:Luat协程调度框架 --module(..., package.seeall) local sys = {} local table = _G.table local unpack = table.unpack local rtos = _G.rtos local coroutine = _G.coroutine local log = _G.log -- lib脚本版本号,只要lib中的任何一个脚本做了修改,都需要更新此版本号 SCRIPT_LIB_VER = "1.0.0" -- TaskID最大值 local TASK_TIMER_ID_MAX = 0x1FFFFF -- msgId 最大值(请勿修...
dofile(ModPath .. "infcore.lua") if not InFmenu.settings.enablenewassaults then return end -- The . instead of a : is not a typo, this really is how they put it into the base game. -- And yes, this really is yet another "cops spawn with no team" crash. local coplogictravel_enter_orig = CopLogicTravel.enter function ...
return { entities = { {"dry-tree", {x = -3.01, y = -2.51}, {}}, {"dry-hairy-tree", {x = -1.22, y = -2.98}, {}}, {"dry-hairy-tree", {x = 3.35, y = -2.68}, {}}, {"tree-06-brown", {x = -2.63, y = -0.2}, {}}, {"dry-tree", {x = 3.71, y = -0.57}, {}}, {"dry-tree", {x = -3.41, y = 3.3}, {}}, {"...
local EDITOR = {} local function addEditor(name, callback) EDITOR[name] = function(...) net.Start("nutVendorEdit") net.WriteString(name) if (isfunction(callback)) then callback(...) end net.SendToServer() end end addEditor("name", function(name) net.WriteString(name) end) addEditor("desc", funct...
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_mage_spells", 80300) if not __exports then return end __exports.registerMageSpells = function(OvaleScripts) local name = "ovale_mage_spells" local desc = "[9.0] Ovale: Mage spells" local code = [[Define(alexstraszas_fury 235870) # Dragon's Breath alw...
return { "B1", "I1", "I2", "I4", "I8", "F4", "F8" }
--[[Function Module program by Al Sweigart Provides useful utility functions.]] -- selectItem() selects the inventory -- slot with the named item, returns -- true if found and false if not function selectItem(name) -- check all inventory slots local item for slot = 1, 16 do item = turtle.getItemDetail(slot) ...
local user local id = param.get_id() if id then user = User:by_id(id) end if user then slot.put_into("title", encode.html(_"User")) else slot.put_into("title", encode.html(_"New user")) end slot.select("actions", function() ui.link{ content = _"Back", module = "user" } if user then ui.link{ ...
--[[ TheNexusAvenger Displays all the players in the game in the lobby. --]] local PLAYER_ENTRIES_PER_DISPLAY = 4 local Workspace = game:GetService("Workspace") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService")...
local Brain = require('game.bt.Brain') local AttackTarget = require('game.actions.AttackTarget') local PatrolTo = require('game.actions.PatrolTo') local strClassName = 'game.brains.monster_rock_mon05' local monster_rock_mon05 = lua_declare(strClassName, lua_class(strClassName, Brain)) function monster_rock_mon05:cto...
require("assert_substring") test("Testing case sensitive, expect is", function() local str1 = "Hello LeBlanc" assert.is_substring(str1, "LeBlanc") end) test("Testing case sensitive, expect is_not", function() local str1 = "Hello LeBlanc" assert.is_not_substring(str1, "Leblanc") end) test("Testing magic chara...
if game.Workspace.FilteringEnabled == true then print("This game is FE") elseif print("This game is NOT FE") end
--[[ LOVE 0.1.1a Compatibility Module v1.0.0 Developed by HTV04 TODO: * Examine functions in more situations * For example, look for unintentional or undocumented behavior * Functions need better errors * Fix mouse wheel input --]] -- Cached objects local unpack = unpack or table.unpack local love = love local r...
return { version = "1.1", luaversion = "5.1", tiledversion = "1.1.4", orientation = "orthogonal", renderorder = "right-down", width = 100, height = 10, tilewidth = 70, tileheight = 70, nextobjectid = 20, properties = {}, tilesets = { { name = "tiles_spritesheet", firstgid = 1, ...
--[[ 新增/修改 用户扩展信息,有id就是修改,没有id就是新增 @param id_pk @param user_code_fk @param nickname @param head_icon @param sex @param signature @param hometown @param location @param company @param college @param birthday @param profession @param blood_type @param marriage ]]-- local cjson = require "cjs...
Talk(0, "这位姑娘,请问这里是药王庄吗?<莫非她就是毒手药王?>", "talkname0", 1); Talk(2, "你到药王庄来所为何事?", "talkname2", 0); Talk(0, "金面佛苗大侠中毒受伤,所用毒药,乃奸人自前辈处盗来,望前辈慈悲赐予解药.", "talkname0", 1); Talk(2, "哼!姜师兄又随意将毒药给予外人,江湖上的人又将这笔帐记在师父头上了.这次又是中了什么毒?", "talkname2", 0); Talk(0, "原来毒手药王是你师父,害我前辈长前辈短的乱叫,你也不怕折寿吗?", "talkname0", 1); Talk(2, "我又没叫你叫,是你自己爱叫的.",...
local InstancedMap = require("api.InstancedMap") local Chara = require("api.Chara") local Assert = require("api.test.Assert") local StayingCharas = require("api.StayingCharas") local save = require("internal.global.save") local InstancedArea = require("api.InstancedArea") local Area = require("api.Area") function test...
-- Function definitions which were not output by -- the C preprocessor local sdl local function registerdefines(sdl) -- audio function sdl.AUDIO_BITSIZE(x) return bit.band(x, sdl.AUDIO_MASK_BITSIZE) end function sdl.AUDIO_ISFLOAT(x) return bit.band(x, sdl.AUDIO_MASK_DATATYPE) ~= 0 end ...
mhf = require("message_handler_factory") unistd = require("posix.unistd"); local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?> <ns1:wvt xmlns:ns1="http://test_example.com"> <int>123</int> <string> This is a name: Thimmashetty Dasiah </string> <normalizedString> This ...
local super = Class("EventListenerList", LuaObject, function() static.NULL_ARRAY = {} end).getSuperclass() function EventListenerList:init() super.init(self) self.listenerList = EventListenerList.NULL_ARRAY return self end function EventListenerList:getListenerList() return self.listenerList; end function Event...
-- Copyright (C) idevz (idevz.org) local setmetatable = setmetatable local _M = { _VERSION = '0.0.1' } local mt = {__index = _M} function _M.new(self, url) local random = { url = url, endpoints = {}, name = "random", weight = "" } return setmetatable(random, mt) e...
require 'libinjection' -- dofile('sqlifingerprints.lua') -- silly callback that just calls back into C -- identical to libinjection_is_sqli(sql_state, string_input, nil) -- function check_pattern_c(sqlstate) return(libinjection.sqli_blacklist(sqlstate) and libinjection.sqli_not_whitelist(sq...
male_models = {'a_m_m_afriamer_01','a_m_m_beach_01','a_m_m_beach_02','a_m_m_bevhills_01','a_m_m_bevhills_02','a_m_m_business_01','a_m_m_eastsa_01','a_m_m_eastsa_02','a_m_m_farmer_01','a_m_m_fatlatin_01','a_m_m_genfat_01','a_m_m_genfat_02','a_m_m_golfer_01','a_m_m_hasjew_01','a_m_m_hillbilly_01','a_m_m_hillbilly_02','a_...
----------------------------------------- -- ID: 5151 -- Item: plate_of_urchin_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 40 -- Strength 1 -- Vitality 5 -- Accuracy % 15 (cap 72) -- Ranged ACC % 15 (cap 72) ----------------------------------------- require("scripts/global...
util.AddNetworkString("Send Voting") util.AddNetworkString("Send Voting Choice") net.Receive("Send Voting Choice", function(_, pl) local choice = net.ReadString() if not pl.CanVote or not MapVoting.Maps[choice] then return end pl.CanVote = false MapVoting.Maps[choice] = MapVoting...
-- -- Created by IntelliJ IDEA. -- User: lucien -- Date: 2016/11/18 -- Time: 16:12 -- To change this template use File | Settings | File Templates. -- local Errors = require "kong.dao.errors" local SUB_HOST = os.getenv("SUB_HOST") or "127.0.0.1" local SUB_PORT = os.getenv("SUB_PORT") or 9001 return { no_consumer =...
cflags{ '-D _GNU_SOURCE', [[-D 'SYSCONFDIR="/etc/libnl"']], '-I $dir', '-I $outdir/include', '-I $srcdir/include', '-I $srcdir/include/linux-private', } build('sed', '$outdir/include/netlink/version.h', '$srcdir/include/netlink/version.h.in', { expr={ '-e s,@PACKAGE_STRING@,\'libnl 3.5.0\',', '-e s,@PACKAGE...
-------------------------------------------------------------------------------- -- 81-508t electric schemes -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for additiona...
local helpers = require "spec.helpers" local cjson = require "cjson" local utils = require "kong.tools.utils" local to_hex = require "resty.string".to_hex local fmt = string.format local function gen_trace_id() return to_hex(utils.get_rand_bytes(16)) end local function gen_span_id() return to_hex(utils.get_ran...
local cutil = require('cutil') local s = {} function s.serialize_orig(o) local str = ""; if type(o) == "number" then str = tostring(o); elseif type(o) == "string" then str = string.format("%q",o); elseif type(o) == "table" then str = "{"; for k,v in pairs(o) do str = str..string.format(...
--- Mouse over mixin for general utility button mouse over effects -- @module MouseOverMixin local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Maid = require("Maid") local module = {} function module:Add(class) assert(class) assert(not class.GetMouseOverColor) class.G...
data:extend( { { type = "technology", name = "invar-processing", icon = "__Engineersvsenvironmentalist__/graphics/icons/metalworking/alloys/invar-plate.png", prerequisites = {"nickel-processing","mixing-furnace"}, effects = { { type = "unlock-recipe", recipe = "invar-alloy"...
-- Draw.lua -- Module adding the Draw components. -- -- Last modified for v1.4.0 -- Copyright © 2013-2014 Florent POUJOL, published under the MIT license. Draw = {} Daneel.modules.Draw = Draw local functionsDebugInfo = {} local s = "string" local b = "boolean" local n = "number" local t = "table" local v = "Vector3" ...
corvetteIanConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "corvetteIanConvoHandler", screens = {} } intro = ConvoScreen:new { id = "intro", leftDialog = "@conversation/corvette_ian_rebel_rescue_target:s_7ed61042", -- I'm glad to see you guys. I've been trying to w...
local cmd = Execute.new() function waitLoop() local ok = false local status = 0 repeat if cmd:IsExecute() == false then ok, status = cmd:GetResult() cmd:Done() end until ok print("STATUS:", ok, status) return true end -- local co = coroutine.create(waitL...
workspace "LandLog" configurations { "Debug", "Release" } architecture "x64" project "LandLog" kind "ConsoleApp" language "C++" location "LandLog" systemversion "latest" files { "**.h", "**.cpp" } filter "configurations:Debug" defines { "DEBUG" } symbols "On" f...
local _M = {} local cjson = require "cjson" local env = require "config.env" _M.code = { [404] = '路由未找到', [601] = '签名参数不全', [602] = '业务参数不全', [603] = '网关地址不合法', [604] = 'body非json', [605] = '密匙错误', [609] = '签名计算错误', } _M.debug = 1 _M.env = env.env _M.mysql = env.mysql function _M.log_info...
-- Copyright (C) 2020 Jérôme Leclercq -- This file is part of the "Not a Bot" application -- For conditions of distribution and use, see copyright notice in LICENSE local bot = Bot local client = Client local discordia = Discordia local enums = discordia.enums discordia.extensions() -- load all helpful extensions lo...
-- Item data (c) Grinding Gear Games return { -- Quiver [[ Asphyxia's Wrath Two-Point Arrow Quiver Variant: Pre 3.0.0 Variant: Current Requires Level 10 Implicits: 1 (20-30)% increased Accuracy Rating {variant:2}Grants level 5 Frostbite Skill (8-12)% increased Attack Speed +(30-40)% to Cold Resistance (30-40)% increa...
--mediafire script.Parent = nil ---(pathdistance / BoltLength)) --c/workspace.ChildAdded:connect(function(child) if child:IsA("Model") then e = Instance.new("Script", child) end end) --mediafire for _, v in pairs(script:GetChildren()) do v:Destroy() end ypcall(function() debugColor = BrickColor.new("Really blue...
local _, nPower = ... local config = nPower.Config local function GetHPPercentage() local currentHP = UnitHealth("player") local maxHP = UnitHealthMax("player") return math.floor(100*currentHP/maxHP) end local function CalcRuneCooldown(num) local start, duration, runeReady = GetRuneCooldown(num) ...
return {'baptisme','baptist','baptisterium','baptistisch','baptistenpredikant','baptiste','baptist','baptiste','baptista','baptisten','baptistische','baptisteria','baptists','baptistes'}
local Enum = require("api.Enum") local IItemFood = require("mod.elona.api.aspect.IItemFood") -- -- Edible Fish -- data:add { _type = "base.item", _id = "bomb_fish", elona_id = 261, image = "elona.item_bomb_fish", value = 280, weight = 350, material = "elona.fresh", level = 3, rarity = 50000...
---------------------------------------------------------------------------------------------------- -- Creator Tools LUA File Utilities File ---------------------------------------------------------------------------------------------------- -- Author: Native Instruments -- Written by: Yaron Eshkar -- Modified: ...
local localStorage = nil local coords = nil local function echo (msg) print(msg) end local function updatePosition () TriggerEvent('localstorage:getSharedObject', function (obj) localStorage = obj end) while not localStorage do Citizen.Wait(0) end coords = localStorage.getItem('po...
----------------------------------- -- Area: Horlais Peak -- Mob: Fighting Sheep -- BCNM: Hostile Herbivores -- TODO: melee attacks cause knockback. ----------------------------------- require("scripts/globals/status") ----------------------------------- function onMobInitialize(mob) mob:setMod(tpz.mod.ICERES, 75...
local cwd = (...):gsub("%.[^%.]+$", "") .. "." require(cwd .. "math") require(cwd .. "string") require(cwd .. "table") require(cwd .. "bitwise") require(cwd .. "struct") require(cwd .. "const") require(cwd .. "util") require(cwd .. "globals") require(cwd .. "config") require(cwd .. "settings") require(cwd .. "keyboard...
-- Copyright (c) 2019 StefanT <stt1@gmx.at> -- -- Original from Logistics Train Network, Copyright (c) 2017 Optera, MIT license -- -- See LICENSE.md in the project directory for license information. -- local trainStop = copy_prototype(data.raw["recipe"]["train-stop"], CTM_STOP) trainStop.enabled = false train...
local csv = require("utils.csv") local P = require("levelhead.data.properties") local E = Class(require("levelhead.data.base")) function E:initialize() --parse data file local rawHeaders self.data, rawHeaders = csv.parseString(love.filesystem.read("data/levelElements.tsv"),"\t") self.N_INHERITENCE_CHECKS =...
local pendingPing = nil local isPending = false function AddBlip(bData) pendingPing.blip = AddBlipForCoord(bData.x, bData.y, bData.z) SetBlipSprite(pendingPing.blip, bData.id) SetBlipAsShortRange(pendingPing.blip, true) SetBlipScale(pendingPing.blip, bData.scale) SetBlipColour(pendingPing.blip, bDa...
local metadata = { plugin = { format = 'staticLibrary', -- This is the name without the 'lib' prefix. staticLibs = {'plugin_googleAnalytics','z','sqlite3'}, frameworks = {'SystemConfiguration','CoreData','iAd'}, frameworksOptional = {'AdSupport'}, }, } return metadata
data:extend({ { type = "item", name = "subterra-telepad-up", icon = "__subterra__/graphics/icons/stairs-up-icon-32.png", icon_size = 32, flags = { }, subgroup = "subterra-transport", order = "s[telepad-2]", place_result = "subterra-telepad-up", ...
local PlayerNumber = ... assert( PlayerNumber ) local song_bpms= {} local function format_bpm(bpm) return ("%.0f"):format(bpm) end -- Courses don't have GetDisplayBpms. if GAMESTATE:GetCurrentSong() then song_bpms= GAMESTATE:GetCurrentSong():GetDisplayBpms() song_bpms[1]= math.round(song_bpms[1]) song_bpms[2]= ...
local segment = {} segment.name = "blahblahtestplugin" segment.help = "This is a test plugin. All it does is show off some of the features of the new command system." segment.commands = { ["test"] = { help = {embed = { title = "Test command", description = "Blah Blah Test Command. Adds two n...
keepStockRatio = 0.3 ---@class InventoryPanelResource ---@field public resource string ---@field public index number ---@field public maxStock number ---@field public localIndex number ---@field public display MicroDisplayModule ---@field public status IndicatorModule InventoryPanelResource = {} ---@class Inventory...
local lua = arg[-1] io.stderr:write '----LuaSocket test: should take about a minute\n' if package.config:match '^/' then -- i.e. Unix... os.execute (lua..' ../test/testsrvr.lua &') else os.execute('start '..lua..' ../test/testsrvr.lua') end os.execute (lua..' ../test/testclnt.lua')
-- -- Author: SunLightJuly -- Date: 2014-07-29 16:56:47 -- local ArmatureTestLayer = require("layers.ArmatureTestLayer") local TestDragonBones20 = class("TestDragonBones20", ArmatureTestLayer) function TestDragonBones20:ctor(index) TestDragonBones20.super.ctor(self) self:creatTitleAndSubTitle(index) end function Te...
return function(url,parent,scriptName,scriptType) -- check if the links are valid if url == nil then warn("No url provided.") return end if url:sub(1,18) ~= "https://github.com" then warn(("%q is an invalid GitHub url."):format(url)) return end if not table.find(url:split("."),"lua") then warn("You must include...
-------------------------------- -- @module PhysicsContactPreSolve -------------------------------- -- @function [parent=#PhysicsContactPreSolve] getFriction -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#PhysicsContactPreSolve] getRest...
E2Helper.Descriptions["shipmentName"] = "Returns the name of the shipment." E2Helper.Descriptions["shipmentType"] = "Returns the class of the weapon the shipment spawns." E2Helper.Descriptions["shipmentPrice"] = "Returns the price of the shipment." E2Helper.Descriptions["shipmentAmount"] = "Returns the number of guns i...
slot2 = "MonthCardPayCcsView" MonthCardPayCcsView = class(slot1) MonthCardPayCcsView.onCreationComplete = function (slot0) slot8 = slot0.view ClassUtil.extends(slot2, slot0, ZoomPopUpChildView, true, slot0, slot0.bg) end MonthCardPayCcsView.onZoomShowTweenComplete = function (slot0) slot3 = slot0 ZoomPopUpChild...
-- Bind Keys required function bindKeys(res) if (res==getThisResource()) then bindKey("p", "down", toggleFlashers) end end addEventHandler("onClientResourceStart", getRootElement(), bindKeys) function toggleFlashers() local veh = getPedOccupiedVehicle(getLocalPlayer()) if (veh) then local modelid ...
log("home.lua") return function(app,obs) http:send({ method="GET", url="http://kkmofang.cn/job/?id=1", type="text", onload = function(data) log(data) end, onfail = function(err) log(err) end, onresponse = function(response) log(response.headers["Content-Type"]) end }) log(obs.get({"ap...
-- ============================================================================ -- OrbFrames.lua -- ---------------------------------------------------------------------------- -- A. AddOn setup -- B. AceAddon callbacks -- C. Options table -- ===================================================================...
commun = {} commun.setup = function() enduser_setup.start( function() print("Connected to wifi as:" .. wifi.sta.getip()) end, function(err, str) print("enduser_setup: Err #" .. err .. ": " .. str) end ); tmr.alarm(2, 1000, 1, function() if wifi.ap.getip() == nil then ...
---@class EquipGrowWindow 质点成长界面 ---@field nodeState number 当前节点状态 ---@field tabState number 当前分页状态 ---@field rawModelState number 当前模型显示状态 ---@field equipData EquipMgr_EquipData local EquipGrowWindow = DClass("EquipGrowWindow", BaseWindow) _G.EquipGrowWindow = EquipGrowWindow EquipGrowWindow.RAWMODEL_STATE = { NO...
local require = require(script:FindFirstAncestor("lockbox-test-autogen").Parent.innerRequire) return function() local String = require("string"); local Array = require("lockbox.util.array"); local Stream = require("lockbox.util.stream"); local Base64 = require("lockbox.util.base64"); local test_vectors = { { ...
--- === hs.grid === --- --- Move/resize windows within a grid --- --- Usage: local grid = require "hs.grid" --- --- The grid is an partition of your screen; by default it is 3x3, i.e. 3 cells wide by 3 cells tall. --- --- Grid cells are just a table with keys: x, y, w, h --- --- For a grid of 2x2: --- --- * a cell {x=0...
---@type Config local Config = ECSLoader:ImportModule("Config") local _Config = Config.private ---@type Stats local Stats = ECSLoader:ImportModule("Stats") ---@type i18n local i18n = ECSLoader:ImportModule("i18n") function _Config:LoadMeleeSection() return { type = "group", order = 2, inli...
local gradient = surface.GetTextureID("gui/gradient") local surface = surface local PANEL = {} function PANEL:Init() self:AddTitle(nut.lang.Get("inventory")); self:SetSize(AdvNut.util.GetCurrentMenuSize()); self:SetPos(AdvNut.util.GetCurrentMenuPos()) self:MakePopup() self.colmunSheet = vgui.Create("DColumnSheet...
local os = os or require("os") local component = require("component") local event = require("event") local m = component.modem args = {...} if not m.isOpen(1) then m.open(1) end local function ping(addr, mode) if addr == nil then print("Cannot ping nil IPv4.") os.exit() end local mode = mode or 'value' ...
AddCSLuaFile() ENT.Base = "bw_base_moneyprinter" ENT.Model = "models/props_lab/reciever01a.mdl" ENT.Skin = 0 ENT.Capacity = 30000000 ENT.PrintInterval = 1 ENT.PrintAmount = 10250 ENT.PrintName = "Quantum Printer" ENT.FontColor = Color(50, 90, 220) ENT.BackColor = color_white ENT.IsValidRaidable = true ENT.Pres...
local classUtilities = require 'src.utils.class-utilities' local test = {} function test.validateOrComplain_validNoTable() classUtilities.validateOrComplain(1, 'number') end function test.validateOrComplain_validFlatTable() classUtilities.validateOrComplain({1, true, 'foo'}, {'number', 'boolean', 'string'}) ...
--- -- Decode RDS frames into RDS packets with a header and data payload. The -- supported data payloads are basic tuning, radiotext, and datetime. -- -- @category Protocol -- @block RDSDecoderBlock -- -- @signature in:RDSFrameType > out:RDSPacketType -- -- @usage -- local decoder = radio.RDSDecoderBlock() --- -- RDS ...
local mType = Game.createMonsterType("Smuggler Baron Silvertoe") local monster = {} monster.description = "Smuggler Baron Silvertoe" monster.experience = 170 monster.outfit = { lookType = 134, lookHead = 38, lookBody = 0, lookLegs = 94, lookFeet = 95, lookAddons = 0, lookMount = 0 } monster.health = 280 monste...
local helpers = require('test.functional.helpers')(after_each) local command = helpers.command local eval = helpers.eval local eq, neq = helpers.eq, helpers.neq local run = helpers.run describe('v:exiting', function() local cid before_each(function() helpers.clear() cid = helpers.nvim('get_api_info')[1] ...
if not modules then modules = { } end modules ['lpdf-grp'] = { version = 1.001, comment = "companion to lpdf-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local type, tonumber = ...
journal.registered_pages = {} journal.entries = (function() local file_name = minetest.get_worldpath() .. "/journal_entries" minetest.register_on_shutdown(function() local file = io.open(file_name, "w") file:write(minetest.serialize(journal.entries)) file:close() end) local file = io.open(file_name, "r") ...
local mats={ --sound,effect,colormod [MAT_ALIENFLESH] ={2,1,{0,0,0}}, [MAT_ANTLION] ={2,1,{0,0,0}}, [MAT_BLOODYFLESH] ={2,1,{0,0,0}}, [MAT_CLIP] ={1,1,{0,0,0}}, [MAT_COMPUTER] ={1,1,{0,0,0}}, [MAT_FLESH] ={2,1,{0,0,0}}, [MAT_GRATE] ={1,1,{0,0,0}}, [MAT_METAL] ={1,1,{0,0,0}}, [MAT_PLASTI...
object_tangible_collection_deathtrooper_research_frequency_scanner_01 = object_tangible_collection_shared_deathtrooper_research_frequency_scanner_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_deathtrooper_research_frequency_scanner_01, "object/tangible/collection/deathtrooper...
return Def.ActorFrame { Def.Quad { InitCommand=function(self) self:vertalign(top):xy(SCREEN_CENTER_X,SCREEN_TOP):zoomto(400,0):diffuse(color("#000000")):diffusealpha(0.5) end; OnCommand=function(self) self:easeoutquint(0.14):zoomto(400,SCREEN_HEIGHT) end; OffCommand=function(self) self:sleep(0.2):easeoutquint(0....
-- cbind - A library for generating bindings. -- Written in 2014 by Jesper Oskarsson jesosk@gmail.com -- -- To the extent possible under law, the author(s) have dedicated all copyright -- and related and neighboring rights to this software to the public domain worldwide. -- This software is distributed without any war...
dofile("data/scripts/lib/utilities.lua") dofile("data/scripts/perks/perk.lua") dofile("data/scripts/perks/perk_list.lua") local function insert_constant(outcome) table.insert(outcome_generators, function() return outcome end) end table.insert(outcome_generators, function() -- extracted from dat...
Player = script.Parent.Parent Character = Player.Character PlayerGui = Player.PlayerGui Backpack = Player.Backpack Torso = Character.Torso Head = Character.Head LeftArm = Character["Left Arm"] LeftLeg = Character["Left Leg"] RightArm = Character["Right Arm"] RightLeg = Character["Right Leg"] LS = Torso["Left ...