content
stringlengths
5
1.05M
hs = {} hs.status = "Progressing" hs.message = "Provisioning IAMPolicyMember..." if obj.status == nil or obj.status.conditions == nil then return hs end for i, condition in ipairs(obj.status.conditions) do -- There should be only Ready status if condition.type == "Ready" then hs.message = condition.message...
utils = utils or {} utils.LOGTYPE_DEFAULT = 1 utils.LOGTYPE_AI = 2 utils.LOGTYPE_LUA = 3 utils.LOGTYPE_GUI = 4 utils.LOGTYPE_SOUND = 5 utils.LOGTYPE_EDITOR = 6 utils.LOGTYPE_LOGIC = 7 utils.LOGTYPE_ANIMS = 8 utils.LOGTYPE_FX = 9 utils.LOGTYPE_MEM = 10 function utils.CreateNElemsArray(_ARG_0_, _ARG_1_) local L2_2 =...
-- Persistent Data local multiRefObjects = { } -- multiRefObjects local obj1 = { ["initY"] = 12; ["worldX"] = 8; ["worldY"] = 45; ["initRoom"] = "assets/initRooms/Starting Point.lua"; ["initX"] = 60; } return obj1
local EffectCfgs = dofile("client/setting/effect_info.lua") return function (Data) local TableString, ErrMsg = Split(tostring(Data), "|") if not TableString then return nil, ErrMsg end for i, Str in ipairs(TableString) do local EffId = tonumber(Str) local EffectId = EffectCfgs[EffId] if not EffectId then...
return {'alom','alomtegenwoordig','alomtegenwoordigheid','alomvattend','alomvattendheid','alopecia','aloud','aloe','alofi','aloysius','aloys','alofs','alons','alonso','alomtegenwoordige','alomvattende','aloude','aloes','aloys','aloysius'}
-- Load support for intllib. local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") local function desc(name, description) if minetest.registered_items[name] then minetest.override_item(name, {description = description}) end end -- -- Function to generate a new ...
------------------------------- --helper functions ------------------------------- function split(text, delimiter) local result = { } local from = 1 local delim_from, delim_to = string.find( text, delimiter, from ) while delim_from do table.insert( result, string.sub( text, from , delim_from-1 ) ) fro...
local M = {} --- Returns a 'statusline' string. --- @param name string: registered name by |stlparts.set()| --- @param opts table|nil: {window_id = nil, hl_group = "StatusLine"} --- @return string: statusline expression string function M.build(name, opts) return require("stlparts.command").build(name, opts) end ---...
-- AdiBags_lootboxes - Adds various chests to AdiBags virtual groups local addonName, addon = ... local AdiBags = LibStub("AceAddon-3.0"):GetAddon("AdiBags") local N = addon.N local MatchIDs local MatchIDs2 local Tooltip local Result = {} local Result2 = {} local function AddToSet(Set, List) for _, v in ipairs(List...
local SHA = {}; --- --@param #string bytes the bytes to read from local function bytesToWord(bytes) if #bytes == 0 then return end local a,b,c,d = bytes:byte(1,4); return bit32.bor(bit32.lshift(a,24),bit32.lshift(b,16),bit32.lshift(c,8),d),bytesToWord(bytes:sub(5)); end local function ...
local playsession = { {"Gerkiz", {6772}}, {"CmonMate497", {447668}}, {"Olekplane1", {3778}}, {"exabyte", {540}}, {"dreadpr", {2031}}, {"maoul", {11623}}, {"PTP17", {991}}, {"jacobmo3", {1824}}, {"kaimix", {2859}}, {"dog80", {62699}}, {"DKarma", {3470}}, {"ruetama", {635712}}, {"PogomanD", {601345}}, {"Ang...
--[[ Creative ZEN hacking required argument (in order): - path to firmware - path to output firmware - path to blob - path to stub ]]-- if #arg < 4 then error("not enough argument to fuzep patcher") end local fw = hwp.load_file(arg[1]) local irq_addr_pool = hwp.make_addr(0x38) local proxy_addr = arm.to_arm(hwp.m...
local _redis = require "kong.plugins.request-throttle.redis" local json = require "cjson" local resty_lock = require "resty.lock" local function sync_counter_to_redis(conf, redis) local keys_array_str = ngx.shared[conf.counter_dict]:get(conf.uuid) if keys_array_str == nil or keys_array_str == '' then r...
local _, CLM = ... -- local UTILS = CLM.UTILS local Profile = {} function Profile:New(entry, name, class, main) local o = {} setmetatable(o, self) self.__index = self o._GUID = "" o.entry = entry o.name = (name ~= nil) and tostring(name) or "" o.class = (class ~= nil) and tostring(clas...
-- 功能:还原 WebSocket 的 HTTP 请求头 -- 阶段:access_by_lua -- 备注:JS 无法设置 ws 的头部,因此信息存储于 query local query, err = ngx.req.get_uri_args() for k, v in pairs(query) do if k == 'url__' then ngx.var._url = v elseif k == 'ver__' then ngx.var._ver = v else ngx.req.set_header(k, v) end end
local M = {} M.test_dir = vim.fn.getcwd() .. "/test" M.test_file_path = function(file) return M.test_dir .. "/files/" .. file end M.edit_test_file = function(file) vim.cmd("e! " .. M.test_file_path(file)) end M.wipeout = function() vim.cmd("bufdo! bwipeout!") end return M
local class = require "lib.lua-oop" require "amour.core" require "amour.stage" require "amour.util.color" local template_stage = class("Stage-Template", Stage) function template_stage:constructor(stageManager) Stage.constructor(self, stageManager) -- don't forget to call superclass constructor end function te...
--[[ Events ]] AddEventHandler("caue-bicycles:showBicycles", function() local data = {} for _, bike in ipairs(Config["Vehicles"]) do local tax = RPC.execute("caue-financials:priceWithTax", bike.price, "Vehicles") bike["tax"] = tax.tax bike["price"] = tax.total table.ins...
-- Submodule for the scheduling of processes in a distributed node. local socket = require 'socket' local copas = require 'copas' local time = require 'concurrent.time' local scheduler = require 'concurrent.scheduler' local concurrent, message, network -- The existing versions of these functions for then schedulers ...
---@class NonPvpZone : zombie.iso.areas.NonPvpZone ---@field private x int ---@field private y int ---@field private x2 int ---@field private y2 int ---@field private size int ---@field private title String ---@field public nonPvpZoneList ArrayList|Unknown NonPvpZone = {} ---@public ---@param arg0 int ---@param arg1 i...
-- https://github.com/ImagicTheCat/love-DPBR -- MIT license (see LICENSE or src/love-DPBR.lua) --[[ MIT License Copyright (c) 2020 ImagicTheCat 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 wi...
opt.regimes = { -- start, end, LR, WD, { 1, 4, 3e-4, 5e-3, }, { 5, 6, 3e-5, 5e-4 }, { 7, 1e8, 3e-6, 0 }, } opt.nEpochs = 6
--- This file is generated by ava-x2l.exe, --- Don't change it manaully. --- @copyright Lilith Games, Project Da Vinci(Avatar Team) --- @see Official Website: https://www.projectdavinci.com/ --- @see Dev Framework: https://github.com/lilith-avatar/avatar-ava --- @see X2L Tool: https://github.com/lilith-avatar/avatar-av...
local Exp = torch.class('nn.Exp', 'nn.Module')
PrePlanningModule = PrePlanningModule or BeardLib:ModuleClass("PrePlanning", ItemModuleBase) PrePlanningModule.required_params = {} function PrePlanningModule:init(...) self.clean_table = table.add(clone(self.clean_table), { {param = "locations", action = function(tbl) for _, v in pairs(tbl...
object_tangible_meatlump_event_meatlump_safe_01_07 = object_tangible_meatlump_event_shared_meatlump_safe_01_07:new { } ObjectTemplates:addTemplate(object_tangible_meatlump_event_meatlump_safe_01_07, "object/tangible/meatlump/event/meatlump_safe_01_07.iff")
--[[ ---> 统一函数指针 --]] local require = require local tonumber = tonumber local s_format = string.format local s_sub = string.sub local n_var = ngx.var local n_log = ngx.log local n_err = ngx.ERR local n_info = ngx.INFO local n_debug = ngx.DEBUG -------------------------------------------------------------------------...
local TestUtil = require("api.test.TestUtil") local InstancedMap = require("api.InstancedMap") local Chara = require("api.Chara") local Item = require("api.Item") local Assert = require("api.test.Assert") local Log = require("api.Log") local Inventory = require("api.Inventory") function test_item_owning_location() ...
local drawableSprite = require("structs.drawable_sprite") local utils = require("utils") local textures = { default = "objects/temple/dashButton00", mirror = "objects/temple/dashButtonMirror00", } local textureOptions = {} for texture, _ in pairs(textures) do textureOptions[utils.titleCase(texture)] = tex...
local focused = false local t = Def.ActorFrame { Name = "ProfilePageFile", InitCommand = function(self) -- hide all general box tabs on startup self:diffusealpha(0) end, GeneralTabSetMessageCommand = function(self, params) if params and params.tab ~= nil then if param...
-- Biter Battles -- mewmew made this -- require "maps.modules.splice_double" require "maps.modules.spitters_spit_biters" require "maps.modules.biters_double_hp" --require "maps.modules.biters_double_damage" require "maps.modules.explosive_biters" require "maps.modules.spawners_contain_biters" require "maps.modules.cus...
local DebugLogger = require "lil.DebugLogger" local CODE_MAP = { reset = 0, bold = 1, faint = 2, italic = 3, underline = 4, crossthrough = 9, black = 30, red = 31, green = 32, yellow = 33, blue = 34, magenta = 35, cyan = 36, white = 37, ["bright black"] = 90...
if regex:IsMatch(input, '[A-ZА-Я]') then return unicode:ToLower(input) else return unicode:ToUpper(input) end
require("import") import "android.webkit.*" import "android.view.View" import "net.fusionapp.core.ui.fragment.WebInterface" import "com.google.android.material.snackbar.Snackbar" import "android.webkit.ValueCallback" import "com.google.android.material.dialog.MaterialAlertDialogBuilder" import "com.google.android.mater...
local data = { _table = {} } function data:add_multi(tbl) for _, v in ipairs(tbl) do self:add(v) end end function data:add(data) self._table[data.id] = data end local unique = require("data/dialog/unique") data:add_multi( { { id = "ignored", root = "core.locale.talk", ...
LinkLuaModifier("modifier_imba_shrine_passive", "components/modifiers/modifier_imba_shrine_passive.lua", LUA_MODIFIER_MOTION_NONE) modifier_imba_shrine_passive_aura = modifier_imba_shrine_passive_aura or class({}) --[[ function modifier_imba_shrine_passive_aura:OnCreated() if not IsServer() then return end -- Fuck ...
object_mobile_dressed_myyydril_serileo = object_mobile_shared_dressed_myyydril_serileo:new { } ObjectTemplates:addTemplate(object_mobile_dressed_myyydril_serileo, "object/mobile/dressed_myyydril_serileo.iff")
--- A floating-point (sub-pixel) rectangle. -- Is converted to a [JUCE Rectangle](http://www.juce.com/api/classRectangle.html) -- @classmod juce.Rectangle_float --- Constuctor with classical arguments. -- @param x left position -- @param y top position -- @param w width -- @param h height -- @within Constructors -- @c...
-- MIT License -- Copyright (c) 2021 David Fletcher -- 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, m...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('GuildInfo_pb', package.seeall) local GUILDINFO = protobuf.Descriptor(); local GUILDINFO_GUILDID_FIELD = protobuf.FieldDescriptor(); local GUILDINFO_GUILDNAME_FIELD = protobuf.FieldDescriptor(); local GUILDINFO_LEADERID_FIELD = prot...
--[[ Main module for Python numpy backend support 2018, KU Leuven, Belgium License: BSD 2-clause --]] local keys = require('ilk.parser').keys local comm = require('ilk.common') local numpycomm = require('ilk.backend.numpy.common') local sourcegen = require('ilk.backend.numpy.source') local testgen =...
module 'mock' -------------------------------------------------------------------- local _questManger function getQuestManger() return _questManger end -------------------------------------------------------------------- CLASS: QuestSessionSchemeEntry () :MODEL{} function QuestSessionSchemeEntry:__init( session, p...
CSystemManager = inherit(cSingleton) CSystemManager.tCommands = {} function CSystemManager:constructor(iServerID) local time = getRealTime() setMinuteDuration(60000) setTime(time.hour, time.minute) self.iServerID = iServerID or 0 self:loadSystemVariables() self:refreshServerSettings("PW4iLife") self.uTimer = ...
-- Example plugins file! -- (suggestion) -> lua/custom/plugins/init.lua or anywhere in custom dir return { { "elkowar/yuck.vim", ft = "yuck" }, { "ellisonleao/glow.nvim", cmd = "Glow" }, }
MathFun = {} -- + function Add(a,b) return a+b end -- - function Minus(a,b) return a+b end -- * function Multi(a,b) return a+b end -- / function Div(a,b) return a+b end
module(..., package.seeall) function switch(appId, animation) return helper:switchApp_withAnimation_(appId, animation) end function switchPage(pageId, animation) return helper:switchPage(pageId, animation) end function push(appId, pageId, useCurrentStack) if not useCurrentStack then useCurrentStack = fal...
LuaCocoa.import("QuartzCore") LuaCocoa.import("Foundation") -- Note: If you modify this file while the application is running -- (which is in the .app bundle currently), -- Leopard FSEvents will notify the application -- that this file has been changed and I reload the script. -- You can do any special handling you ...
vim.cmd [[ let g:floaterm_gitcommit='floaterm' let g:floaterm_autoinsert=1 let g:floaterm_width=0.9 let g:floaterm_height=0.9 let g:floaterm_wintitle=0 let g:floaterm_autoclose=1 ]] local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } map('n', '<leader>j;', ':FloatermToggle<CR>...
util = require('utils') local noremap = utils.noremap require('Navigator').setup() noremap('n', "<c-h>", "<CMD>lua require('Navigator').left()<CR>") noremap('n', "<c-k>", "<CMD>lua require('Navigator').up()<CR>") noremap('n', "<c-l>", "<CMD>lua require('Navigator').right()<CR>") noremap('n', "<c-j>", "<CMD>lua requir...
-- This is a very simple entity configuration. -- It creates a new table called "simpleBox", specifying some key information. simpleBox = { -- This is some information that can be displayed in-game. name = "simple box", description = "Scientifically known as a hexahedron.", -- Internally, this entity will be kn...
local kRange = 1000 local kParasiteSize = 0.15 -- size of parasite blob local kParasiteSound = PrecacheAsset("sound/NS2.fev/alien/skulk/parasite") local oldPerformPrimaryAttack = Parasite.PerformPrimaryAttack function Parasite:PerformPrimaryAttack(player) self.activity = Parasite.kActivity.Primary self.prim...
--[[ ------------------------------------ Description: HPC Vehicle Triggered Portals (OWV Server), Phasor V2+ Copyright (c) 2016-2018 * Author: Jericho Crosby * IGN: Chalwk * Written and Created by Jericho Crosby Script Version: 2.5 ----------------------------------- ]]-- seat = { } function GetRequiredVersion() ...
local helpers = require "spec.helpers" local pl_file = require "pl.file" describe("kong cluster", function() setup(function() helpers.prepare_prefix() end) teardown(function() helpers.clean_prefix() end) it("cluster help", function() local _, stderr = helpers.kong_exec "cluster --help" asser...
ESX = nil local open,peek,mygroup = false,false,"user" function updateNuiData() ESX.TriggerServerCallback("el_scoreboard:getPlayerData", function(a,b,c) SendNuiMessage(json.encode({type="update",data={pd=a,con=b,disc=c},mygroup=mygroup})) end) end Citizen.CreateThread(function() while ESX == nil do Tr...
local Explosion = {} Explosion.__index = Explosion; --- -- Create new explosion object -- @param projectile -- function Explosion:create(projectile) local obj = Entity:create({ name = "Explosion", projectile = projectile, image = nil, damage = 1000 }) local ...
local shell = require("shell") local fs = require("filesystem") local args = shell.parse(...) if #args == 0 then args = {"-"} end local input_method, input_param = "read", require("tty").getViewport() for i = 1, #args do local arg = shell.resolve(args[i]) if fs.isDirectory(arg) then io.stderr:write(string....
---@class gmath.Vector3 local Vector3 = {} ---@param v gmath.Vector3 ---@return boolean function Vector3.isVector3(v) return v ~= nil and #v == 3 and type(v[1]) == "number" and type(v[2]) == "number" and type(v[3]) == "number" end ---@param x number ---@param y number ---@param z number ---@return gmath.Vector3 fun...
local utilities = require "scripts/common/utilities" local StateMachine = require "scripts/common/StateMachine" local teleporter = { Properties = { Destination = { Location = { default = EntityId(), description = "Location to teleport to." }, Direction = { default = EntityId(), description = "Entity descri...
local t = My.Translator.translate My = My or {} My.SideMissions = My.SideMissions or {} local ShipTemplate = function() local ship = My.CpuShip(Util.random({ "Phobos M3", "Phobos T3", "Piranha F8", }), "Outlaw") ship:addTag("local") return ship end local WingmanTemplate = fu...
----------------------------------- -- Area: Davoi -- NPC: Sedal-Godjal -- Mini Quest used in : Whence Blows the Wind -- !pos 185 -3 -116 149 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/settings"); require("scripts/globals/keyitems"); local ID = require("scripts/zo...
--[[ ################################################################################ # # Copyright (c) 2014-2020 Ultraschall (http://ultraschall.fm) # # 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 ...
--- -- @module iterators local types = require("luaplot.types") local DistanceLimit = require("luaplot.distancelimit") local iterators = {} --- -- It is an analog of the 'next' function but for the 'ipairs' one. -- It is used for iterating in Lua 5.2. -- @tparam {any,...} items -- @tparam number index [0, ∞) -- @tre...
xLogs.RegisterCategory("Listings", "xStore") xLogs.RegisterCategory("Purchase", "xStore") xLogs.RegisterCategory("Custom Class", "xStore") xLogs.RegisterCategory("Whitelist", "xWhitelist") xLogs.RegisterCategory("Unwhitelist", "xWhitelist") xLogs.RegisterCategory("Blacklist", "xWhitelist") xLogs.RegisterCategory("Unbla...
local ffi = require "ffi" local ffi_cdef = ffi.cdef local ffi_typeof = ffi.typeof ffi_cdef [[ void nettle_cast5_set_key(struct cast128_ctx *ctx, size_t length, const uint8_t *key); void nettle_cast128_set_key(struct cast128_ctx *ctx, const uint8_t *key); void nettle_cast128_encrypt(const struct ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('UnitDisappear', nil), }, Category = "DustStromStart", Delay = 60000, Effects = {}, Enabled = true, Image = "UI/Messages/dust_storm.tga", Prerequisites = { PlaceObj('PickFromLabel', { ...
-- -- tail-call-optimization.lua -- -- porting from: -- https://github.com/justinethier/cyclone/blob/master/examples/tail-call-optimization.scm -- -- > lua[jit] tail-call-optimization.lua -- ... running forever ... -- -- > luac -l [-o nul or -o /dev/null] -- src -- > luajit -bl src -- > luajit -jdump src --...
ngx.req.read_body() ngx.say("step 3") local key = '12345' local body = ngx.req.get_body_data() if body then end local h = ngx.req.get_headers() local token = h.Authorization md_hash = token:match("([^Token ].+)") local data = body .. key if (ngx.md5(data) ~= md_hash) then ngx.say("Access denied") return end...
object_mobile_nova_orion_employee_01 = object_mobile_shared_nova_orion_employee_01:new { } ObjectTemplates:addTemplate(object_mobile_nova_orion_employee_01, "object/mobile/nova_orion_employee_01.iff")
local dial = function (context, extension) app.noop("context: " .. context .. ", extension: " .. extension); app.dial('PJSIP/' .. extension, 10); local dialstatus = channel["DIALSTATUS"]:get(); app.noop('dialstatus: '..dialstatus); app.set("CHANNEL(language)=ru"); if dialstatus == 'BUSY' ...
require("user.options") require("user.keymaps") require("user.plugins") require("user.colorscheme") require("user.cmp") require("user.lsp") require("user.telescope") require("user.treesitter") require("user.autopairs") require("user.comment") require("user.gitsigns") require("user.impatient") require("user.indent") req...
local class = require 'middleclass' local Object = class.Object local Entity = require 'littletanks.Entity' local EntityManager = class('littletanks.EntityManager') function EntityManager:initialize( options ) assert(options.physicsWorld) self.physicsWorld = options.physicsWorld self.entities = {} end functi...
-- Global to all starfalls local checkluatype = SF.CheckLuaType local registerprivilege = SF.Permissions.registerPrivilege -- Register privileges registerprivilege("prop.create", "Create prop", "Allows the user to create props") registerprivilege("prop.createRagdoll", "Create a ragdoll", "Allows the user to create rag...
--------------------------------------------------------------------------------------------------- -- --filename: game.effect.text.CriticalTextController --date:2019/10/14 10:57:12 --author:heguang --desc:暴击文字动画 -- --------------------------------------------------------------------------------------------------- loc...
--[[---------------------------------------------------------------------------- Application Name: TomatoFinding Description: Finding tomatoes by HSV conversion and segmentation of color image. How to Run: Starting this sample is possible either by running the app (F5) or debugging (F7+F10). Setting br...
return { ["comment"]="% generated by mtxrun --script pattern --convert", ["exceptions"]={ ["n"]=0, }, ["metadata"]={ ["mnemonic"]="et", ["source"]="hyph-et", ["texcomment"]="% This file is part of hyph-utf8 package and resulted from\ % semi-manual conversions of hyphenation patterns into UTF-8 in June 2008....
-- https://github.com/premake/premake-core/issues/1559 premake.override(premake.vstudio.vc2010, "targetFramework", function(oldfn, prj) if prj.clr == "NetCore" then local action = premake.action.current() local tools = string.format(' ToolsVersion="%s"', action.vstudio.toolsVersion) local framework = prj...
--[[ /******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *****************************************...
local update = false local t = Def.ActorFrame{ BeginCommand=cmd(queuecommand,"Set"), OffCommand=cmd(bouncebegin,0.2;xy,-500,0), -- visible(false) doesn't seem to work with sleep OnCommand=cmd(bouncebegin,0.2;xy,0,0), SetCommand=function(self) self:finishtweening() if getTabIndex() == 0 then self:queuecommand...
-- -- Created by IntelliJ IDEA. -- User: mlennox -- Date: 16/06/2016 -- Time: 00:23 -- local data = require "./data" local dataset = data.load_dataset() for k, v in pairs( dataset ) do print(k, v) end
local PLAYER = { ["DisplayName"] = "Default Class", -- Boolean ["TeammateNoCollide"] = true, ["CanUseFlashlight"] = true, ["DropWeaponOnDie"] = false, ["AvoidPlayers"] = true, ["UseVMHands"] = true, -- Default Loadout ["DefaultLoadout"] = { {"weapon_pistol", 255, "Pistol"} ...
return function(s) local function lib(name) local source = Collect('src/common/' .. name .. '/*.c') return Compile(s.common_settings, source) end return { libc = lib('libc'), libkogata = lib('libkogata') } end
return { area = { "roomAdded", "roomRemoved", "updateTick" }, room = { "updateTick", "ready", "npcLeave", "npcEnter", "playerLeave", "playerEnter", "spawn", }, channel = { "channelReceive" }, character = { "attributeUpdate", "combatStart", "combatantAdded", ...
--- Component to trigger an HTTP POST call on room/occupant events -- -- Example config: -- -- Component "event_sync.mydomain.com" "event_sync_component" -- muc_component = "conference.mydomain.com" -- -- api_prefix = "http://external_app.mydomain.com/api" -- -- --- The following are all option...
foo = Foo.new() print("default direct props:") print("foo.int: "..foo.d_int) print("foo.char: "..foo.d_char) print("foo.sstr: "..foo.d_sstr) print("foo.objptr: "..foo.d_objptr) print("foo.objsptr: "..foo.d_objsptr) print("foo.obj: "..foo.d_obj) print("default indirect props: ") print("foo.int: "..foo.int) print("fo...
-- 在使用“==”做等于判断时,要注意对于 table, userdate 和函数, Lua 是作引用比较的。也就是说,只有当两个变量引用同一个对象时,才认为它们相等。可以看下面的例子: local a = { x = 1, y = 0} local b = { x = 1, y = 0} if a == b then print("a==b") else print("a~=b") end
-- choose your keys here -- e.g. if I wanted button 1 to toggle e I would put {e=1}; -- e.g. if I wanted button 3 to toggle e I would put {e=3,f=3,g=2}; keysetup = {f={5,2},a={4,0}}; -- if using mouse set to true mouse = false; -- set to true to log all button presses (useful when you don't know what number a key is) l...
-- Copyright (c) 2016 John Schember <john@nachtimwald.com> -- -- 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, ...
-------------------------------------------------------------------------------- -- Helper functions ------------------------------------------------------------ -------------------------------------------------------------------------------- -- Get absolute value from percent function getAbsolute(max, percent) retu...
function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end local stonePosition = Position(32849, 32282, 10) local stoneItem, leverItem = Tile(stonePosition):getItemById(1304), Tile(Position(32850, 32268, 10)):getItemById(1946) if not stoneIt...
-- Copyright (c) Microsoft Corporation -- All rights reserved. -- MIT License -- 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 t...
local mod_gui = require("mod-gui") for _, player in pairs(game.players) do local button_flow = mod_gui.get_button_flow(player) if button_flow and button_flow.valid then local pp_button = button_flow["pp-toggle-gui"] if pp_button and pp_button.valid then pp_button.destroy() end end end
require("core.lsp").run("clang")
background="terrain" --background="plane" RE.viewpoint():setFOVy(44.999999) rootnode =RE.ogreRootSceneNode() bgnode=RE.createChildSceneNode(rootnode , "BackgroundNode") scale_factor=1 RE.viewpoint():setClipDistances(0.5, 1000) RE.viewpoint():setFOVy(45.000006) RE.viewpoint().vpos:assign(vector3(93.776154, 64.218978...
local generator = require "kong.plugins.soap4kong-generator.generator" local wsdl = require "kong.plugins.soap4kong-generator.wsdl" local xsd2xml = require "kong.plugins.soap4kong-generator.xsd2xml" local validator = {} function validator.validate_base_path(value) if not value:startswith("/") then return ...
local AceLocale = LibStub:GetLibrary("AceLocale-3.0") local L = AceLocale:NewLocale("RaidSummon", "esES", false, true) if not L then return end L["RaidSummon"] = "RaidSummon" L["Language"] = "Español" L["AddonEnabled"] = function(X,Y) return '|cff9482c9RaidSummon:|r versión ' .. X .. ' por ' .. Y .. ' cargado. Traduc...
object_mobile_som_traveler_m = object_mobile_som_shared_traveler_m:new { } ObjectTemplates:addTemplate(object_mobile_som_traveler_m, "object/mobile/som/traveler_m.iff")
--- action functions local CurrentAction = nil local CurrentActionMsg = '' local CurrentActionData = {} local HasAlreadyEnteredMarker = false local LastZone = nil ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getShar...
object_tangible_quest_naboo_theed_borvo_database = object_tangible_quest_shared_naboo_theed_borvo_database:new { } ObjectTemplates:addTemplate(object_tangible_quest_naboo_theed_borvo_database, "object/tangible/quest/naboo_theed_borvo_database.iff")
local bullets = 0 --creates variable function onCreate() for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'PotionNote' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'PotionNote'); --Change texture if getPropertyFromGroup('unspawnNotes',...
command.Register("dog", "Get a random dog image!","fun",function(msg, args) --if command.Cooldown(msg, "dog", 2, "Look, ik dogs are cute, but wait **%s** seconds dude") then return end local res, data = CORO.request("GET", "https://api.thedogapi.com/v1/images/search?limit=1&size=full&mime_types=jpg,png") l...