content
stringlengths
5
1.05M
-------------------------------- -- @module ShatteredTiles3D -- @extend TiledGrid3DAction -- @parent_module cc ---@class cc.ShatteredTiles3D:cc.TiledGrid3DAction local ShatteredTiles3D = {} cc.ShatteredTiles3D = ShatteredTiles3D -------------------------------- --- brief Initializes the action with a range, shatter ...
-- Bozosort description -- See : http://en.wikipedia.org/wiki/Bogosort#Related_algorithms -- Checks if an array is sorted local function is_sorted(array, comp) local array_len = #array if array_len <= 1 then return true end for i = 2, array_len do if not comp(array[i-1], array[i]) then return false ...
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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 ...
function GBaySideBarClosed(DFrame, tab, settingbtnclicked, data, firstjoined) if IsValid(SideBarOpened) then SideBarOpened:Remove() end hook.Call("GBaySideBarClosed") LocalPlayer().GBayOpenMenuTabStatus = false if IsValid(GBayDFrameLogo) then GBayDFrameLogo:Remove() end if IsValid(SideBarClosed) then Si...
---------------------------------------- -- -- VerticalScrollingFrame.lua -- -- Creates a scrolling frame that automatically updates canvas size -- ---------------------------------------- local plugin = _G.StudioWidgetsPluginGlobalDistributorObject local GuiUtilities = require(script.Parent.GuiUtilities) local Verti...
local function is_empty(string) return string == nil or string == "" end return is_empty
return { name = "Recluse Archer", appearance = 'archer', max_hp = 12, }
local StateManager = require("CoreLib.State.StateManager") local Arena = require("Objects.Arena") local AsteroidGenerator = require("Objects.AsteroidGenerator") local DemoScene = StateManager:CreateAsyncState("DemoScene") function DemoScene:Start() local localCam = cameraNode_:GetScriptObject() localCam:No...
workspace "gmsv_antifreeze" configurations { "Release", "Release64", "Debug", "Debug64" } location ( "projects/" .. os.get() ) project "gmsv_antifreeze" kind "SharedLib" language "C++" cppdialect "C++11" editandcontinue "Off" vectorextensions "SSE4.1" includedirs "../include/" targetprefix "" ta...
local _, ns = ... local stylesheet = ns.stylesheet local function PowerBarPostUpdate(power, unit, cur, min, max) if power.OnUpdate then power.OnUpdate(cur, min, max) end end local function PowerBarPostUpdateColor(power, unit, r, g, b) local bg = power.bg if(bg) then local mu = bg.multiplier or...
--[[ MrFlappy.lua Copyright (C) 2016 Kano Computing Ltd. License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2 This is the dialogue you can have with Mr Flappy in Overworld on the Logic Lake 01. ]]-- return { type = "repeat", dialogues = { --- 1) Welcome dialogue ------------------------------...
dependencies = { basePath = "./deps" } function dependencies.load() dir = path.join(dependencies.basePath, "premake/*.lua") deps = os.matchfiles(dir) for i, dep in pairs(deps) do dep = dep:gsub(".lua", "") require(dep) end end function dependencies.imports() for i, proj in pairs(dependencies) do if type(...
local u = require("utils") -- ---------------- -- Window switching -- ---------------- -- Alt + hjkl: jump between windows -- Alt + HJKL: move windows around u.nmap("<a-h>", "<c-w>h", { noremap = true }) u.nmap("<a-j>", "<c-w>j", { noremap = true }) u.nmap("<a-k>", "<c-w>k", { noremap = true }) u.nmap("<a-l>", "<c-w>...
local say = require("say") local assertions = require("spec.assertions") local hammerspoonMocker = require("spec.mock-hammerspoon") assertions:init(say, assert) -- Generate `requirePackage` function to mock external dependencies local function requirePackageMocker(mocks) mocks = mocks or {} local defaultMock...
local _G = getfenv(0) local unpack = unpack local AtlasLoot = _G.AtlasLoot local Search = {} AtlasLoot.Addons.Search = Search local AL = AtlasLoot.Locales local db function Search.Init() db = AtlasLoot.db.Addons.Search AtlasLoot.SlashCommands:Add("search", Search.Open, "/al search - Search") end AtlasLoot:AddInitFu...
local Nefia = require("mod.elona.api.Nefia") local Area = require("api.Area") local Map = require("api.Map") local ElonaCommand = require("mod.elona.api.ElonaCommand") local Feat = require("api.Feat") local IFeat = require("api.feat.IFeat") local Assert = require("api.test.Assert") local TestUtil = require("api.test.Te...
-- Needs lpack to unpack binary data. require "pack" -- Import relevant base types. local types = require "base.types" require "base.vec2" require "base.vec3" -- Module aliases. local vec2 = types.vec2 local vec3 = types.vec3 -- Loads a procedural texture source file into a FlexRender texture. -- Returns the resourc...
--[[------------------------------------------------------ lut.Test test --]]------------------------------------------------------ package.path = './?.lua;'..package.path local lub = require 'lub' local lut = require 'lut' local should = lut.Test('lut.Test', { coverage = false }) function should.assertTrue(...
TrapConfig = { } TrapConfig[1]={id=1,remark='ๆ™ฎ้€šไผคๅฎณ้™ท้˜ฑ',remark2='',TrapLv=0,skinId=10008,clientType=2,type=1,hitEffectId={},triggerEffectId=51003021,deathEffectId=303024,stateEffectId=0,lifetime=12000,exeWay=2,validCount=0,coolDown=3000,checkX=3,checkZ=3,hp=10,target=1,bornType=2,bornAngle=0,bornlength=5,moveType=1,moveSp...
local L = LibStub:GetLibrary("AceLocale-3.0"):GetLocale("Grid2") local Grid2 = Grid2 -- shared methods local function GetTexCoordEmpty() return 0,0.05,0,0.05 end local function GetTexCoordIcon() return 0.55, 0.93, 0.07, 0.42 end local text = L["combat"] local function GetText(self,unit) return t...
quest = {"proda tako da u silosu ostane ", "doda u silos, ako u silos moลพe da stane "} relat = {" manje ", " viลกe ", " ne viลกe ", " ne manje "}
dofile "configs.lua" local uv = require "luv" local passive = assert(uv.new_tcp()) assert(passive:bind(host, port)) assert(passive:listen(conncount, function (err) assert(not err, err) local stream = uv.new_tcp() assert(passive:accept(stream)) local missing = msgtotal*msgsize assert(stream:read_start(function (e...
--[[Arcane Orb Author: chrislotix Date: 05.01.2015.]] function ArcaneOrb( keys ) local ability = keys.ability local caster = keys.caster local mana = caster:GetMana() local target = keys.target local summon_damage = ability:GetLevelSpecialValueFor("illusion_damage", (ability:GetLevel() -1)) local extra_damage ...
-- On map load writes the current season to gamelog.txt local seasons = { [-1] = 'Nothing', -- worldgen [0] = 'Spring', [1] = 'Summer', [2] = 'Autumn', [3] = 'Winter', } local args = {...} local function write_gamelog(msg) local log = io.open('gamelog.txt', 'a') log:write(msg.."\n") l...
-- Get file to touch local tArgs = { ... } if #tArgs == 0 then print( "Usage: touch <path>" ) return end -- Error checking local sPath = shell.resolve( tArgs[1] ) if not fs.isReadOnly( sPath ) then file = fs.open(sPath, 'a') file.writeLine('') file:close() return else if fs.isDir( sPath ) then ...
-------------------------------------------------------------------------------- -- GY-MCU680V1 module for NodeMCU -- LICENCE: http://opensource.org/licenses/MIT -- @shimosaurus, 1 Mar 2019 -------------------------------------------------------------------------------- --Use: --require("mcu680"):init(Tx_pin, Rx_pin) -...
local CorePackages = game:GetService("CorePackages") local Cryo = require(CorePackages.Cryo) local Rodux = require(CorePackages.Rodux) local InspectAndBuyFolder = script.Parent.Parent local AssetInfo = require(InspectAndBuyFolder.Models.AssetInfo) local SetAssets = require(InspectAndBuyFolder.Actions.SetAssets) local S...
return { version = "1.2", luaversion = "5.1", tiledversion = "1.2.3", orientation = "orthogonal", renderorder = "right-down", width = 100, height = 300, tilewidth = 32, tileheight = 32, nextlayerid = 8, nextobjectid = 472, properties = {}, tilesets = { { name = "test-t...
---@class CS.UnityEngine.HumanBone : CS.System.ValueType ---@field public limit CS.UnityEngine.HumanLimit ---@field public boneName string ---@field public humanName string ---@type CS.UnityEngine.HumanBone CS.UnityEngine.HumanBone = { } return CS.UnityEngine.HumanBone
html = {} function html:input(type, value) return string.format('<input type="%s" value="%s"/>', type, value) end
local rng = require'rng' -- global facility function function random(len) return RNG.new():octet(len) end return rng
--[[ Copyright 2012 The lev 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 agree...
---------------------------------------------------------------------- -- -- This script performs training and testing for evaluation on -- covnet model on a -- classification problem. -- -- -- Ritambhara Singh ---------------------------------------------------------------------- require 'torch' -------------------...
-- first strip out UTF8 BOM from files with powershell local lfs = require "lfs" local FRAMEXML = "../#FrameXML/Generate-Globals/wow-ui-source/" -- too lazy to parse FrameXML_TBC.toc or whatever the new file loading structure is local flavors = { mainline = {FRAMEXML.."Interface"}, tbc = { FRAMEXML.."Interface", ...
local function onEvent(self, event, rollID, ...) if GetZoneText() ~= "Zul'Gurub" then -- Only want to run this in ZG return end texture, name = GetLootRollItemInfo(rollID) if(string.find(name," Coin") or string.find(name,"Hakkari Bijou")) then RollOnLoot(arg1, 1) end ...
local Modules = script.Parent.Parent.Parent.Parent local Roact = require(Modules.Roact) local ComplexStringInput = require(script.Parent.ComplexStringInput) local uDimPattern = "^([%-%d%.]+),([%-%d%.]+)$" local function createUDimFromString(str) local scale, offset = str:match(uDimPattern) if not scale or not off...
byteCode = { 0x1a, 0x53, 0x47, 0x30, 0x33, 0x00, 0x00, 0x53, 0x43, 0x31, 0x31, 0x00, 0x00, 0x53, 0x43, 0x30, 0x35, 0x00, 0x00, 0x53, 0x43, 0x30, 0x33, 0x00, 0x00, 0x41, 0x53, 0x48, 0x54, 0x00, 0x00, 0x53, 0x57, 0x35, 0x36, 0x00, 0x00, 0x53, 0x44, 0x30, 0x31, 0x00, 0x00, 0x53, 0x44, 0x31, 0x33, 0x00, 0x00, ...
curse_protection = { cast = function(player) local duration = 285000 player:sendAction(6, 20) player:sendStatus() player:sendAnimation(11) player:playSound(702) player:setDuration("curse_protection", duration) end, uncast = function(player) player:sendMinitext("End of protection") end }
function onCreate() makeLuaSprite('theRoom','room',-600,-350) addLuaSprite('theRoom',false) setLuaSpriteScrollFactor('theRoom', 0.9, 0.9); makeLuaSprite('theShadow','shadow',-400, -300) addLuaSprite('theShadow',true) setLuaSpriteScrollFactor('theShadow', 0, 0); makeAnimatedLuaSprite('doomKitty','doo...
---------------------- -------------------- -- Table Functions ---------------- -------------- ------------ ---------- -------- ------ ---- -- ------------------ -- Private Functions -------- ------ ---- -- -- ref: https://web.archive.org/web/20131225070434/http://snippets.luacode.org/snippets/Deep_Comparison_of_Two...
return { -- Poke = {mapName, huntType} ["Bellsprout"] = {"Route 24", "grass"}, ["Caterpie"] = {"Viridian Forest", "grass"}, ["Diglett"] = {"Digletts Cave Entrance 2", "cave"}, ["Doduo"] = {"Route 16", "grass"}, ["Drowzee"] = {"Route 11", "grass"}, ["Geodude"] = {"Rock Tunne...
local io = {} io.width = 64 * 2 io.init = function(gameboy) io.canvas = love.graphics.newCanvas(64, 400) io.gameboy = gameboy io.background_image = love.graphics.newImage("images/debug_io_background.png") end io.draw = function(x, y) love.graphics.setCanvas(io.canvas) love.graphics.clear() love.graphics....
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT return function(l, t, r, b) return setmetatable({ left = l, right = r, top = t, bottom = b, contains = function(self, x, y) return x...
local _, ns = ... ---------------------------------------------------------------------------------------- -- Settings for DarkUI Option GUI ---------------------------------------------------------------------------------------- ns.Categories = {} ns.OptionList = {} ns.Hooks = {} ns.opt_widgets = {}
resource_manifest_version "05cfa83c-a124-4cfa-a768-c24a5811d8f9" file 'int_medical.ytyp' data_file 'DLC_ITYP_REQUEST' 'int_medical.ytyp'
---@type ZxUIText local ZxUIText = LibStub("AceAddon-3.0"):GetAddon("ZxUIText") ---@class CoreFactory47 local CoreFactory47 = {} CoreFactory47.__index = CoreFactory47 ZxUIText.CoreFactory47 = CoreFactory47 CoreFactory47._frameEnableToggleList = {} CoreFactory47._prevDisabledOptionsList = {} ---@param curModule table...
local TCls = {prop = nil} function TCls:new(o) o = o or {} setmetatable(o, self) self.__index = self self.prop = 123 return o end function TCls:pp() print(self.prop) end local tc = TCls:new(nil) tc:pp()
--Config ScriptHost:LoadScript("scripts/settings/experimental.lua") ScriptHost:LoadScript("scripts/settings/tracking.lua") ScriptHost:LoadScript("scripts/settings/fileio.lua") ScriptHost:LoadScript("scripts/settings/settings.lua") ScriptHost:LoadScript("scripts/settings/defaults.lua") --Essentials ScriptHost:LoadScrip...
supplyLimit("Fighter",48) supplyLimit("Frigate",60) supplyLimit("Capital",16) supplyLimit("Utility",56) supplyLimit("ResourceController",8) supplyLimit("Platform",60)
--!nocheck --[[ Filename: TenFootInterface.lua Written by: jeditkacheff Version 1.0 Description: Setups up some special UI for ROBLOX TV gaming --]] -------------- CONSTANTS -------------- local HEALTH_GREEN_COLOR = Color3.new(27/255, 252/255, 107/255) local DISPLAY_POS_INIT_INSET = 0 local DISPLAY_ITEM_OFFSET...
local function colorEqual(a,b) return a[1] == b[1] and a[2] == b[2] and a[3] == b[3] and a[4] == b[4] end return function(path) local info = assert(require('levels.'..path), "Cannot load level "..path) local m = love.image.newImageData("levels/"..path..".png") local color_to_code = { {{m:getPixel(0,0)}, {1,0,0,...
return (function(RedisDb) function RedisDb:hdel(self,k, ...) local arg = {...} assert(#arg > 0) local r = 0 local x = RedisDb.xgetw(self,k,"hash") for i=1,#arg do assert((type(arg[i]) == "string")) if x[arg[i]] then r = r + 1 end x[arg[i]] = nil end if empty(self,k) then...
data:extend( { ---- Celluluse { type = "item", name = "bi-cellulose", icon = "__Bio_Industries__/graphics/icons/cellulose.png", flags = {"goes-to-main-inventory"}, subgroup = "intermediate-product", order = "b[cellulose]", stack_size = 200 }, --- BioReactor { type = "item"...
--[[ TTT -> Boot Entry (ServerSide) by Tassilo (https://github.com/TASSIA710) --]] -- Generic stuff local start = SysTime() AddCSLuaFile("sh_logging.lua") include("sh_logging.lua") -- Print start Log.Info("------------------------------") Log.Info("Booting...") -- Load shared AddCSLuaFile("shared.lua") incl...
local module = {} local Sending = {} local SpyMode = false local Connected = false local Confirmation = false local Id = "" local SearchWord = "" local BaseURL = "http://omegle.com/" local http = game:GetService("HttpService") local chatservice = game:GetService("Chat") local Event = Instance.new("BindableEvent") ...
-- Generated by CSharp.lua Compiler local System = System local SlipeMtaDefinitions System.import(function (out) SlipeMtaDefinitions = Slipe.MtaDefinitions end) System.namespace("Slipe.Server.Acl", function (namespace) -- <summary> -- Class that wraps static ACL functions -- </summary> namespace.class("AclFil...
Key = require("lib.Keyboard") Tween = require("lib.Tween") local GPM = require("lib.GamepadMgr") local SM = require("lib.SceneMgr") local Event = require("lib.Events") local sm local gpm = GPM({"assets/gamecontrollerdb.txt"}) function love.load() --Love2D game settings love.graphics.setDefaultFilter('neares...
tigris.magic.register_potion("tigris_magic:health_potion", { description = "Health Restoration Potion", longdesc = "Restores a large amount of health.", color = "#F00", emblem = "defense", on_use = function(itemstack, player) player:set_hp(player:get_hp() + 7) return true end, })...
--[[--ldoc desc @Module GameScene8.lua @Author JasonLiu Date: 2018-10-24 10:51:43 Last Modified by: JasonLiu Last Modified time: 2018-10-25 11:48:48 ]] local BetViewCtr = require("app.demo.JasonLiu.module.bet.BetViewCtr") local function main() local scene = cc.Scene:create() scene:addChild(Bet...
local colors = { head = Color(192, 57, 43, 255), back = Color(236, 240, 241, 255), text = Color(255, 255, 255, 255), text_blue = Color(52, 152, 219, 255), btn = Color(52, 73, 94, 255), btn_hover = Color(44, 62, 80, 255), btn_disabled = Color(52, 73, 94, 150), open = Color(46, 204, 113, 255), open_hover = Color...
-- Event notes hooks function onEvent(name, value1, value2) if name == 'Regeneration' then heal = tonumber(value1); setProperty('health', getProperty('health') + heal); end targetAlpha = tonumber(value2); if duration > 0 then duration = duration - 1 * elapsed; setProperty('health', getProperty('healt...
add_rules("mode.debug","mode.release") option("configure") set_default(true) set_showmenu(true) option("demo") set_default(true) set_showmenu(true) option("demo_path") set_showmenu(true) if has_config("configure") then target("configure1") on_load(function ( target ) im...
-- -- Created by IntelliJ IDEA. -- User: macbookair -- Date: 09/04/17 -- Time: 22:48 -- To change this template use File | Settings | File Templates. -- --[[ -- TODO: - * Gerar SQL CREATE TABLE * Gerar SQL Insert * Gerar SQL Select * Gerar SQL Where * Gerar SQL order * Gerar SQL group ]] local class = re...
--[[ ยฉ 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] TRAIT.name = "Outgoing"; TRAIT.opposite = "Shy"; TRAIT.description = "Let's head out, I'm ready for a good time."; TRAIT.category = "Mentality"; TRAIT.icon = "materials/terranova/ui/traits/outgoing.png";
-- use { -- "luisiacc/gruvbox-baby", -- config = function() -- require("colorschemes.gruvbox_baby") -- end -- } vim.g.transparent_mode = 1 vim.cmd("colo gruvbox-baby")
--Scope: 1 local move = table.move local insert = table.insert local remove = table.remove local create = table.create local function setmeta() end --see Source file for implementation local function getIndex(self, num, pos) return type(num) == 'number' and (num > 0 and num or num + #self + 1) or error('bad argument ...
return { no_consumer = true, fields = { url = { required = true, type = "url" }, path = { required = true, type = "string" }, authResponseHeaders = { type = "array" }, connect_timeout = { default = 30000, type = "number" }, send_timeout = { default = 30000, type = "number" }, read_timeout = ...
local redis = require "resty.redis" local persona = require 'persona' local config = ngx.shared.config -- Only load config once. TODO Needs a /reload url to reload config / unset it. if not config then local f = assert(io.open(ROOT_PATH .. "/etc/config.json", "r")) local c = f:read("*all") f:close() ...
local util = require("terrautil") local List = require("terralist") local function expectedtype(typeobj,value) local err = ("expected '%s' but found '%s'"):format(tostring(typeobj),type(value)) local mt = getmetatable(value) if mt then err = ("%s (metatable = %s)"):format(err,tostring(mt)) end ...
requestBrowserDomains({"google.com", "youtube.com", "twitch.tv", "pandora.com", "twitch.tv", "www.twitch.tv", "static-cdn.jtvnw.net", "www-cdn.jtvnw.net", "api.twitch.tv", "web-cdn.ttvnw.net", "media-cdn.twitch.tv", "player.twitch.tv"}) -- request browser domain local sx, sy = guiGetScreenSize(); local webView = Brows...
local kong = kong return { ["/cache/:key"] = { GET = function(self) -- probe the cache to see if a key has been requested before local ttl, err, value = kong.cache:probe(self.params.key) if err then kong.log.err(err) return kong.response.exit(500, { message = "An unexpected er...
-- Modules local bouncyWalls = require "modules.bouncyWalls" local bubbleCntl = require "modules.bubbleCntl" local composer = require "composer" local controls = require "modules.controls" local dynamicBackground = require "modules.dynamicBackground" local fonts = require "modules.fonts" local memoryManagement = requir...
function executeClean(interval) doCleanMap() doBroadcastMessage("Game map cleaned, next clean in " .. table.concat(string.timediff(interval / 1000)) .. ".") return true end function onThink(interval) doBroadcastMessage("Game map cleaning within 30 seconds, please pick up your items!") addEvent(executeClean, 30000...
--[================================[ @Language.ko-KR @Summary [Player]์—๊ฒŒ [DestPlayer]์˜ ์‹œ์•ผ๋ฅผ [State]ํ•ฉ๋‹ˆ๋‹ค. @Group ์‹œ์•ผ @param.Player.TrgPlayer @param.DestPlayer.TrgPlayer @param.State.TrgSwitchState @Language.us-EN @Summary [Player]์—๊ฒŒ [DestPlayer]์˜ ์‹œ์•ผ๋ฅผ [State]ํ•ฉ๋‹ˆ๋‹ค. @Group ์‹œ์•ผ @param.Player.TrgPlayer @param.DestPlayer.TrgPlay...
-- @Date : 2016-01-27 10:43:48 -- @Author : Miao Lian (miaolian19890421@163.com) -- @Version : 1.0 -- @Description : local common_lib = require 'sim_ulucu_sys_lib.units.sim_common_lib' local error = error local pairs = pairs local setmetatable = setmetatable local _M = {_VERSION = "0.01"} local fu...
return require('packer').startup(function() local config = function(name) require(string.format('plugins.%s', name)) end use('wbthomason/packer.nvim') -- packer can manage itself use('neovim/nvim-lspconfig') use({ 'nvim-treesitter/nvim-treesitter', config = config('treesitter'), run = 'TSUpd...
game:DefineFastFlag("AvatarExperienceBackgroundThemeFix", false) return function() return game:GetFastFlag("AvatarExperienceBackgroundThemeFix") end
-- Lua is dynamically and weakly typed --[[ ^ Strong | Ruby | Erlang | Java | C# | Haskell Python | ...
--ใƒ–ใƒผใƒˆใƒปใ‚นใ‚ฟใƒƒใ‚ฌใƒผใƒ‰ --Boot Stagguard --Scripted by Eerie Code function c70950698.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(70950698,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_HAND) e1:SetCode(EVEN...
local i18n = require("core.i18n") i18n.add { death_by = { chara = { transformed_into_meat = { active = { by_spell = "็ฒ‰ใ€…ใฎ่‚‰็‰‡ใซๅค‰ใˆใŸใ€‚", by_chara = "็ฒ‰ใ€…ใฎ่‚‰็‰‡ใซๅค‰ใˆใŸใ€‚", }, passive = "{name($1)}ใฏ็ฒ‰ใ€…ใฎ่‚‰็‰‡ใซๅค‰ใˆใ‚‰ใ‚ŒใŸใ€‚", }, destroyed = { ...
local ffi = require "ffi" require "resty.openssl.include.x509" require "resty.openssl.include.x509v3" local altname_lib = require "resty.openssl.x509.altname" local stack_lib = require "resty.openssl.stack" local _M = {} local stack_ptr_ct = ffi.typeof("OPENSSL_STACK*") local STACK = "DIST_POINT" local new = stack_...
--[[ desc: Blind, A buff of Blind. author: Musoucrow since: 2019-5-4 alter: 2019-5-11 ]]-- local _CONFIG = require("config") local _SOUND = require("lib.sound") local _RESMGR = require("actor.resmgr") local _ECSMGR = require("actor.ecsmgr") local _FACTORY = require("actor.factory") local _Effect_Colorize = ...
---------------------------------------- -- Factory Inventory: Display Manager -- -- By W3asel (1337joe) -- ---------------------------------------- -- This display commissioned by Vifrevaert for Honest Vif's store at Utopia Station -- Bundled: ${date} -- Latest version always available here: https://du....
ESX.Trace = function(str) if Config.EnableDebug then print('ESX> ' .. str) end end ESX.SetTimeout = function(msec, cb) local id = ESX.TimeoutCount + 1 SetTimeout(msec, function() if ESX.CancelledTimeouts[id] then ESX.CancelledTimeouts[id] = nil else cb() end end) ESX.TimeoutCount = id return id...
object_mobile_dressed_npe_neina = object_mobile_shared_dressed_npe_neina:new { } ObjectTemplates:addTemplate(object_mobile_dressed_npe_neina, "object/mobile/dressed_npe_neina.iff")
local mixin, oldVersion = LibStub("LibJayOptions"):RegisterControl("CheckButton", 0, "CheckButton") if not mixin then return end ---@param self table ---@param motion boolean local function OnEnter(self, motion) if self:IsEnabled() then self.callbacks:TriggerEvent("OnEnter", self, motion) end end ---@param self tabl...
require("prototypes.constants") require("prototypes.functions") data:extend({ { type = "recipe-category", name = "oil-asif" } }) function computeAdvOilProcRecipe(name, compression_ratio, productivity_factor) local normal_time, _ = getItemCreateTime(name) local base_recipe = data.raw.recipe[name] speed_bonu...
local login_pin_map = require("qnFiles/qnPlist/hall/login_pin"); local login_regAccount= { name="login_regAccount",type=0,typeName="View",time=0,report=0,x=0,y=0,width=0,height=0,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignCenter, { name="shiled",type=1,typeName="Image",time=77270266,report=0,x=0...
package.path = './scripts/?.lua;' .. package.path package.cpath = './scripts/?.dll;' .. package.cpath local ffi = require("ffi") local inspect = require 'inspect' local defs = require 'gta2-def' local CPed = require 'cped' print("gta2.lua") ffi.cdef[[ struct UISettings { bool open; bool do_show_cycles; ...
freya_pain_reflection = class({}) LinkLuaModifier("modifier_freya_pain_reflection", "heroes/hero_freya/modifier_freya_pain_reflection.lua", LUA_MODIFIER_MOTION_NONE) if IsServer() then function freya_pain_reflection:OnSpellStart() self:GetCaster():AddNewModifier(self:GetCaster(), self, "modifier_freya_pain_reflecti...
-- httpserver-static.lua -- Part of nodemcu-httpserver, handles sending static files to client. -- Author: Marcos Kirsch return function (connection, req, args) --print("Begin sending:", args.file) --print("node.heap(): ", node.heap()) if args.isGzipped and req.isCheckModifiedRequest() then -- todo: rea...
local M = {} M.bg = '#000000' M.fg = '#ffffff' local function hexToRgb(hex_str) local hex = '[abcdef0-9][abcdef0-9]' local pat = '^#(' .. hex .. ')(' .. hex .. ')(' .. hex .. ')$' hex_str = string.lower(hex_str) assert(string.find(hex_str, pat) ~= nil, 'hex_to_rgb: invalid hex_str: ' .. tostring(hex_str)) ...
fx_version 'bodacious' game 'gta5' client_script 'client.lua' server_script 'server.lua'
ShuttleDropoff = { promptBody = { "Which shuttle would you like to spawn? (\"lambda\", \"shuttle\", \"transport\", \"theed transport\").", "Move to the location where you'd like the shuttle to land and type \"here\" in the box to set its spawn point.", "Would you like the shuttle to spawn NPCs upon landing? (\"y...
-- This script template has each of the script entry point functions. -- They are described in detail in VR-Forces Configuration Guide. -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Global Variables. Global variables get saved when a scenario gets checkpointed. -- They get re-initialize...
return { -- Version: 1 (0x0) -- ... -- Issuer: C = US, ST = California, L = San Francisco, O = Kong, OU = Core, CN = ssl-example.com -- Validity -- Not Before: Apr 24 14:36:29 2020 GMT -- Not After : Feb 7 14:36:29 2294 GMT -- ... -- -- Note: Version 1 was accomplished by using a openssl.cnf fi...
AddCSLuaFile() -- the main object ArcCW = {} ArcCWInstalled = true ArcCW.GenerateAttEntities = true for _, v in pairs(file.Find("arccw/shared/*", "LUA")) do include("arccw/shared/" .. v) AddCSLuaFile("arccw/shared/" .. v) end for _, v in pairs(file.Find("arccw/client/*", "LUA")) do AddCSLuaFile("arccw/...
local warning = require "warning" local util = require "util" local plugin = {} local function plugin_environment( name ) local env = {} local plugin = { name = name, mode = "*", data = {}, load = function( self, builder ) end, state = function() return {} end, file_lookup_callbacks = {}, file_read_a...
always_load('freesurfer') always_load('Xvfb') always_load('mesa') local version = myModuleVersion() local base = "/vf/users/MEGmodules/modules/mne_bids_pipeline" .. version local scripts = base .. "_extras/scripts" family("mne_bids_pipeline") prepend_path("PATH", pathJoin(base,"bin")) prepend_path("PATH", scripts) l...
object_tangible_loot_mustafar_must_painting_03 = object_tangible_loot_mustafar_shared_must_painting_03:new { } ObjectTemplates:addTemplate(object_tangible_loot_mustafar_must_painting_03, "object/tangible/loot/mustafar/must_painting_03.iff")