content
stringlengths
5
1.05M
--- A color picker -- @usage include("azimuthlib-uicolorpicker") -- @module UIColorPicker include("utility") include("azimuthlib-uiproportionalsplitter") include("azimuthlib-uirectangle") local elements = {} local ColorMode = { HS = 1, HSA = 2, HSV = 3, HSVA = 4, HV = 5, HVA = 6, HVS = 7, HVSA = 8 } local properties...
------------------------------------------ --- HotFix - 运行时HotFix支持 参考云风方案 --- 替换运行环境中的函数,保持upvalue和运行时的table --- 为开发期设计,尽量替换。最差的结果就是重新启动 --- 原表改变,类型改变 后逻辑由业务保证正确 --- 基于lua 5.3,重定向require,使用env加载实现沙盒 --- 提供一系列回调注册,可以在hotfix前后做处理 ------------------------------------------ --在Module中如果定义此标记,则对此module进行reload操作 --like loc...
local ButtonSFX = script:GetCustomProperty("ButtonSFX") Button = script.parent function Pressed() World.SpawnAsset(ButtonSFX) Events.Broadcast("CreditPurchaseOpen") Events.Broadcast("ClosePurchasePanel") end function Close() Events.Broadcast("CreditPurchaseClose") end Button.releasedEvent:Connec...
pg = pg or {} pg.ViewUtils = class("ViewUtils") pg.ViewUtils.SetLayer = function (slot0, slot1) if IsNil(go(slot0)) then return end go(slot0).layer = slot1 for slot6 = 0, slot0.childCount - 1, 1 do slot0.SetLayer(slot0:GetChild(slot6), slot1) end end pg.ViewUtils.SetSortingOrder = function (slot0, slot1) ...
require 'nn' local NonparametricPatchAutoencoderFactory = torch.class('NonparametricPatchAutoencoderFactory') function NonparametricPatchAutoencoderFactory.buildAutoencoder(target_img, patch_size, stride, shuffle, normalize, interpolate) local nDim = 3 assert(target_img:nDimension() == nDim, 'target image must...
-- Ingenuity Lua Math Performance Test -- BE WARNED, THIS SCRIPT COULD BE UNRESPONSIVE FOR UP TO A MINUTE! -- Observed Results: -- -- LuaJIT: -- -- -- C++ GLM: 1.4ms -- -- -- luaMatrix: 2.0ms -- -- Lua: -- -- -- C++ GLM: 4.4ms -- -- -- luaMatrix: ~40ms! Require("ProjectDir","matrix.lua","matrix"); function Begin() ...
local M = {} M.setup = { cmd = { "lua-language-server" }, root_dir = require("lspconfig.util").root_pattern("stylua.toml", "rc.lua", ".git") or vim.loop.cwd, settings = { Lua = { completion = { enable = true, callSnippet = "Replace", }, runtime = { version = "LuaJIT"...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Message" ENT.Spawnable = true ENT.Category = "BLUES BAR" function ENT:SetupDataTables() self:NetworkVar( "Int", 0, "MessageType") self:NetworkVar( "String", 1, "MessageText") end
-- INSTRUCTIONS -- In the DCS mission do a single trigger, time more (1) that does a DO SCRIPT event -- Paste this code into the DO SCRIPT: -- assert(loadfile("C:/HypeMan/mission_script_loader.lua"))() -- Script File Versions -- Moose version 08 25 2019 (August 25, 2019) -- Mist version 4.3.74 -- HypeMan vers...
--[[ Core - informacje pokazywane podczas pobierania zasobów @author Jakub 'XJMLN' Starzak <jack@pszmta.pl @package PSZMTA.psz-core @copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl> Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie. ]]-- local T_OPIS="Trwa pobieranie zasobów ser...
local driver = require "luasql.postgres" local env = driver.postgres() local conn = env:connect('fusion_development', 'postgres', '', 'localhost') local cursor, message = conn:execute([[ SELECT attname FROM pg_attribute ]]) local row = cursor:fetch ({}, "a") while row do local attnanem = row.attname --print( r...
-- handles plugin system gLoadedPlugins = {} -- lists all lua files in pluginDir and executes them function LoadPlugins (pluginDir,bQuietLoading) local arr_files = dirlist(pluginDir,false,true) local sortedfilenames = {} for k,filename in pairs(arr_files) do table.insert(sortedfilenames,filename) end table.sort(s...
local socket = require("socket") local bit = require("bit") local lpack = require('pack') --message handler --[[ lpack format #define OP_ZSTRING 'z' /* zero-terminated string */ #define OP_BSTRING 'p' /* string preceded by length byte */ #define OP_WSTRING 'P' /* string preceded by length word */ #define OP_SSTRI...
vim.opt_local.spell=true
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'enUS', true) if not L then return end --[===[@debug@ --[[ --@end-debug@]===] L["Bag button features"] = true L["Bank button features"] = true L["Enable chat message"] = true L["KEYWORD_CLASS"] = "Classes" L["KEYWORD_CONJURED_ITEM"] = "Conjured Item" L["KEYWORD_FOOD"]...
local old = workspace.CameraSystemOld local new = workspace.CameraSystem for i,v in pairs(old.Cameras.Static:GetChildren()) do local name = v.Name local part = v.Cam part.Parent = new.Cameras.Static part.Name = name end for i,v in pairs(old.Cameras.Moving:GetChildren()) do v.Parent = new.Cameras.Moving end new....
local function isprime(num) local check = 3 while check * check <= num do if num % check == 0 then return 0 end check = check + 2 end return 1 end local function primes(upto) local count = 2 local val = 5 while val < upto do count = count + ispri...
return function(decompiler) local format = {} do local function R(name) return {"reg", name} end local function K(name) return {"kst", name} end local function RK(name) return {"regkst", name} end local function RR(fromName, toName) return {"regrange", fromName, toName} end local functi...
--- -- @author wesen -- @copyright 2019-2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local TestCase = require "wLuaUnit.TestCase" --- -- Checks that the RowFieldNode works as expected. -- -- @type TestRowFieldNode -- local TestRowFieldNode = TestCase:extend() --- -- The require path for the class...
return function() local Carousel = script.Parent local Container = Carousel.Parent local App = Container.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local mockStyleComponent = require(UIBlox.Utility.mockStyleComponent) local CarouselHeader = require(s...
map = require("src.map") player = require("src.player") clam = require("src.clam") hud = require("src.hud") worker = require("src.worker") sound = require("src.sound") function distance (x1, y1, x2, y2) local dx = x1 - x2 local dy = y1 - y2 return math.sqrt ( dx * dx + dy * dy ) end colors = {} colors["BLUE-D"...
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" local packer_bootstrap if vim.fn.isdirectory(install_path) == 0 then packer_bootstrap = vim.fn.system({ "git", "clone", "https://github.com/wbthomason/packer.nvim", install_path }) vim.cmd([[packadd packer.nvim]]) end require("pa...
local socksleep = require 'socket'.sleep local sleep = function (msec) assert (type(msec) == 'number', "invalid msec parameter for sleep") socksleep (msec * 1E-3) end return sleep
--[[ helper function for ... expects obj.name to exist assigns a 'symbolPrefix' to the obj based on the obj's Lua ptr (in code.uid) then assigns a 'symbols' table with the prefix assigned to each --]] return function(obj, fields) local uid = require 'hydro.code.uid'(obj) obj.symbolPrefix = obj.name..'_'..uid..'_' o...
function getInfo() return { onNoUnits = SUCCESS, -- instant success tooltip = "Gives attack order to units", parameterDefs = { { name = "unitsGroup", variableType = "expression", componentType = "editBox", defaultVal...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Kazween -- Type: Item Deliverer -- !pos -130 -6 95 50 ----------------------------------- local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs") ----------------------------------- function onTrade(player,npc,trade) end function onTrigge...
local rd = {} local join = NONE local diff local frame = CreateUIComponent("Frame", "RaidSaveFrame", "UIParent") local function Print(str, ...) DEFAULT_CHAT_FRAME:AddMessage(str:format(...), 1, 1, 1) end SLASH_RdSave1 = "/rds" function SlashCmdList.RdSave() if GetNumPartyMembers()>0 or GetNumRaidMembers()>0 then r...
-- mpv issue 5222 -- Automatically set loop-file=inf for duration <= given length. Default is 5s -- Use autoloop_duration=n in script-opts/autoloop.conf to set your preferred length -- Alternatively use script-opts=autoloop-autoloop_duration=n in mpv.conf (takes priority) -- Also disables the save-position-on-quit for ...
-- smoketest.lua: quick and dirty test of the major luatweetnacl functions local nacl = require "luatweetnacl" function hex(s) -- return the hex representation of a string return s:gsub(".", function(c) return string.format("%02x", string.byte(c)) end) end function hextos(h) -- parse a hex string return h:gs...
local M = {} function M.parse (arg) local cmd = torch.CmdLine() cmd:option('-ds', 'kitti', 'Dataset') cmd:option('-mc', 'resmatch', 'Matching cost network architecture') cmd:option('-m', 'acrt', 'Training mode (fast | acrt)') cmd:option('-gdn', '', 'Global disparity network architecture') cmd:optio...
local ssl = require 'openssl' local bit = require 'bit' local bor, bxor = bit.bor, bit.bxor local ceil, fmod, max = math.ceil, math.fmod, math.max local byte, char, len, sub = string.byte, string.char, string.len, string.sub local pack = string.pack local concat = table.concat local crypto = {} function crypto.xor_...
require 'nn'; require 'paths'; print("Loading data") if (not paths.filep("cifar10torchsmall.zip")) then os.execute('wget -c https://s3.amazonaws.com/torch7/data/cifar10torchsmall.zip') os.execute('unzip cifar10torchsmall.zip') end trainset = torch.load('cifar10-train.t7') testset = torch.load('cifar10-test.t7'...
package.path = package.path .. ";../?.lua;../?/init.lua" local hui = require "hui" local font = of.TrueTypeFont() font:load("data/font/PrintChar21.ttf", 12) -- set default label font hui.Label.font = font -- set global font offset as some fonts need a litte nudge hui.Label.textOffset.horz = -2 local wm = hui.Win...
-- Translated by @deenz#1284 Locales = { -- NUI Nui = { -- LeftNav leftNav = { actions = 'Acciones', savingAccountCont = 'Cuenta De Ahorros', creditCardsCont = 'Tarjetas de Crédito/Débito', cryptoCurrencyCont = "Criptomoneda <sup class='text-dang...
require 'torch' require 'hdf5' function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end function readClassesHist(file, num_classes) assert(paths.filep(file)) counts = torch.zeros(num_classes) for line in io.lines(file) do --split line by whitespace parts = {} for p in line:g...
--[[ Test the data generator. --]] require 'torch' require 'paths' require 'string' require 'nn' require 'cudnn' require 'nngraph' torch.setdefaulttensortype('torch.FloatTensor') local i1 = nn.Identity()() local i2 = nn.Identity()() local conv1 = nn.SpatialConvolutionMM(10,20,3,3,1,1)(i1) local conv2 = nn.Spati...
data.raw["gui-style"]["default"]["cc-scroll-pane"] = { type = "scroll_pane_style", maximal_height = 400, maximal_width = 600 }
if ( SERVER ) then return end local PanelFactory = {} local panel_metatable = FindMetaTable( "Panel" ) baseclass.Set( "Panel", panel_metatable ) baseclass.Set( "Label", panel_metatable ) baseclass.Set( "EditablePanel", panel_metatable ) -- Keep the old function vgui.CreateX = vgui.Create function vgui.GetC...
--[[ Variables ]] local Scoreboard = {} Scoreboard.Players = {} Scoreboard.Recent = {} --[[ Events ]] RegisterNetEvent("caue-base:sessionStarted") AddEventHandler("caue-base:sessionStarted", function() local src = source local ids = GetIds(src) TriggerClientEvent("caue-scoreboard:AddAllPlaye...
#!/usr/bin/env lua local files={"test.lua"} luacheck = require("luacheck/init") local report = luacheck.check_files(files) for i, file_report in ipairs(report) do print("\n\nreport",i," ",files[i]) for k,v in pairs(file_report) do print(luacheck.get_message(v)) end end
local counter = {} local max_bits = 12 for _ = 1, max_bits do table.insert(counter, 0) end local total_lines = 0 for line in io.lines() do total_lines = total_lines + 1 for i = 1, #line do local c = line:sub(i, i) if c == '1' then local idx = #line - i + 1 counter[idx] = coun...
local function ClassHook(inst) local oldrefresh = inst.Refresh function inst:Refresh() -- call vanilla routine first. then work on the result and adjust it oldrefresh(inst) -- call with inst here, to mimic "self" in inst.Refresh local preferred = 2 -- the preferred skin to use (not 1...
local _G = require "_G" local rawget = _G.rawget local utils = require "oil.kernel.base.Proxies.utils" local TimeoutKey = utils.keys.timeout return function(invoker) return function(self, ...) return invoker(self, ...):getreply(self[TimeoutKey], "cancel") end end
local SoundEffect = require 'utility/SoundEffect' return function(scene, dt) for event in pairs(scene:entities_with('event', 'death')) do local entity = event.death.entity if entity.death_sound then SoundEffect(entity.death_sound):play() end end end
local wibox = require('wibox') local gears = require('gears') local beautiful = require('beautiful') local pi = require('util.panel_item') local dpi = beautiful.xresources.apply_dpi local dir = 'widget.button' local notify = require(dir..'.notif') local settings = require(dir..'.settings') local power = require(dir..'...
-- Instances: local ScreenGui = Instance.new("ScreenGui") local MainGui = Instance.new("Frame") local UICorner = Instance.new("UICorner") local Header = Instance.new("Frame") local UICorner_2 = Instance.new("UICorner") local HeaderText = Instance.new("TextLabel") local Close = Instance.new("ImageButton") local Notific...
return require("packer").startup({ function() use("wbthomason/packer.nvim") use("kyazdani42/nvim-tree.lua") use("kyazdani42/nvim-web-devicons") use("akinsho/bufferline.nvim") use("lukas-reineke/indent-blankline.nvim") use("numToStr/FTerm.nvim") use("norcalli/nvim-colorizer.lua") use({ "catppuccin/nvim...
net = require('net.box') errinj = box.error.injection box.schema.user.grant('guest', 'execute', 'universe') -- Check that formats created by net.box for schema are reused (gh-6217). COUNT = 100 errinj.set('ERRINJ_TUPLE_FORMAT_COUNT', COUNT) connections = {} for i = 1, COUNT do ...
module("toycms", package.seeall) function plugins.date(web) return { today_day = tonumber(os.date("%d", os.time())), today_month_name = month_names[tonumber(os.date("%m", os.time()))], today_year = tonumber(os.date("%Y", os.time())) } end function plugins.archive(web) return { month_list = funct...
object_mobile_azure_cabal_mystril_slicer_03 = object_mobile_shared_azure_cabal_mystril_slicer_03:new { } ObjectTemplates:addTemplate(object_mobile_azure_cabal_mystril_slicer_03, "object/mobile/azure_cabal_mystril_slicer_03.iff")
if not modules then modules = { } end modules ['l-table'] = { version = 1.001, comment = "companion to luat-lib.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local type, next, tostri...
local playsession = { {"Nikkichu", {827922}}, {"Maggnz", {107478}}, {"cahesar", {42716}}, {"KIRkomMAX", {511989}}, {"firstandlast", {26568}}, {"wotwotvodka", {290548}}, {"kendoctor", {821904}}, {"Chesmu", {791142}}, {"hinr", {4782}}, {"Zorky", {11243}}, {"WorldofWarIII", {702265}}, {"yulingqixiao", {676460}...
class("TacticsShipItem", import(".DockyardShipItem")).UpdateExpBuff = function (slot0) return end return class("TacticsShipItem", import(".DockyardShipItem"))
object_mobile_hologram_wookiee_female = object_mobile_hologram_shared_wookiee_female:new { } ObjectTemplates:addTemplate(object_mobile_hologram_wookiee_female, "object/mobile/hologram/wookiee_female.iff")
local n1 = { name = "default:dirt_with_grass" } local n2 = { name = "air" } local n3 = { name = "air", param2 = 240 } local n4 = { name = "default:desert_sandstone_brick" } local n5 = { name = "stairs:stair_desert_sandstone_brick", param2 = 16 } local n6 = { name = "stairs:stair_desert_sandstone_brick", param2 = 12 } l...
return { name = "truemedian/musicord", version = "1.0.0", description = "A port of xieve/musicord for discordia 2.x", tags = { "lua", "discord" }, license = "Unlicense", author = { name = "Nameless", email = "truemedian@gmail.com" }, homepage = "https://github.com/truemedian/musicord", ...
object_tangible_storyteller_prop_pr_eqp_bacta_tank_lg = object_tangible_storyteller_prop_shared_pr_eqp_bacta_tank_lg:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_eqp_bacta_tank_lg, "object/tangible/storyteller/prop/pr_eqp_bacta_tank_lg.iff")
local mod = DBM:NewMod(2030, "DBM-Party-BfA", 1, 968) local L = mod:GetLocalizedStrings() mod:SetRevision("20190505173730") mod:SetCreatureID(122968) mod:SetEncounterID(2087) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 250036", "SPELL_CAST_START 249923 259187 250096 ...
local Queue = {} Queue.__index = Queue function Queue.new() local queue = {first = 0, last = -1, n = 0} setmetatable(queue, Queue) return queue end function Queue:lpush(value) local first = self.first - 1 self.first = first self[first] = value self.n = self.n + 1 end function Queue:rpush(value) local last =...
--[[Compys(TM) TapFAT Tape Configuration Tool v1.54 2021 (C) Compys S&N Systems This is a tool for do some manipulations with TapFAT tapes Please, load "tfatinit" driver firstly ]] local comp = require('component') local fs = require('filesystem') local term = require('term') local event = require('event') local uni...
local Sprite = require 'sprite' local U = require 'util' local Segment = Sprite:extend() function Segment.set(self, x, y, radians) local img = self.images[math.random(#self.images)] Sprite.set(self, img, x, y, radians, 0.45, 0.5) self.shards = {} self.rightHanded = math.random() < 0.7 self.handDelay = 0.3 -- se...
--- The Brogue Map Generator. -- Based on the description of Brogues level generation at http://brogue.wikia.com/wiki/Level_Generation -- @module ROT.Map.Brogue local ROT = require((...):gsub(('.[^./\\]*'):rep(2) .. '$', '')) local Brogue=ROT.Map.Dungeon:extend("Brogue") local PointSet = ROT.Type.PointSet --- Constru...
local json = require("cjson") local encode_base64, decode_base64, hmac_sha1 do local _table_0 = require("lapis.util.encoding") encode_base64, decode_base64, hmac_sha1 = _table_0.encode_base64, _table_0.decode_base64, _table_0.hmac_sha1 end local config = require("lapis.config").get() local hmac hmac = function(str)...
fx_version 'adamant' game 'gta5' this_is_a_map 'yes' supersede_radio "RADIO_01_CLASS_ROCK" { url = "https://stream.live.vc.bbcmedia.co.uk/bbc_radio_one", volume = 0.2, name = "BBC radio 1" } supersede_radio "RADIO_02_POP" { url = "https://media-ssl.musicradio.com/SmoothLondonMP3", volume = 0.2, name = "Smooth Radio" }...
local ____lualib = require("lualib_bundle") local __TS__Class = ____lualib.__TS__Class local __TS__ClassExtends = ____lualib.__TS__ClassExtends local __TS__Decorate = ____lualib.__TS__Decorate local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach local __TS__SourceMapTraceBack = ____lualib.__TS__SourceMapTraceBack _...
AutoCamerable = { getCameras = function() if(autoCamera~=nil) then return {autoCamera} end return {passion.graphics.defaultCamera} end }
minetest.register_on_newplayer(function(player) --print("on_newplayer") if minetest.setting_getbool("give_initial_stuff") then minetest.log("action", "Giving initial stuff to player "..player:get_player_name()) player:get_inventory():add_item('main', 'default:pick_steel') player:get_inventory():add_item('main',...
local awful = require("awful") local beautiful = require("beautiful") require("widgets.mainmenu") local mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu }) return mylauncher
BaseNpc_AddItemToNpc(BaseNpc_GetNpcById({{ action.npc.fields.Id.value }}), "{{ action.selected_item.fields.ScriptName.value }}", {{ action.quantity }})
-- oUF_OrbsConfig: init -- zork, 2018 ----------------------------- -- Variables ----------------------------- local A, L = ... --config table L.C = {} --tag method and event table L.C.tagMethods = {} L.C.tagEvents = {} --config to global scope oUF_OrbsConfig = L.C
fx_version 'cerulean' game 'gta5' server_scripts { 'server.lua', } client_scripts { 'client.lua', }
-- Generate schematics local air = {name = "air"} local san = {name = "default:sand"} local sst = {name = "default:sandstone"} local ssb = {name = "default:sandstonebrick"} local luc = {name = "lucky_block:lucky_block"} local lav = {name = "default:lava_source"} local dir = {name = "default:dirt"} local sow = {name =...
global = require "lib/global" utils = require "lib/utils" local function countDistribution (ownDices, totalDiceCount) unknownDiceCount = totalDiceCount - #ownDices distribution = {} for k, v in pairs(global.diceValues) do ownCount = 0 for ok, ov in pairs(ownDices) do if ov == v or ov == global.sta...
function rename(arg) -- return os.rename(arg.old, arg.new) print("This will rename from " .. arg.old .. " to " .. arg.new) end rename {old = "temp.lua", new = "temp1.lua"}
slot0 = class("WarspiteTransformationPage", import("view.base.BaseActivityPage")) slot0.OnInit = function (slot0) slot0.bg = slot0:findTF("AD", slot0._tf) slot0.btn = slot0:findTF("battle_btn", slot0.bg) slot0.tip = slot0:findTF("help", slot0.bg) slot0.mainAward = slot0:findTF("award", slot0.bg) slot0.subAwards =...
return function() print("fu/init.lua") end
-- -- globals.lua -- Global tables and variables, replacements and extensions to Lua's global functions. -- Copyright (c) 2002-2011 Jason Perkins and the Premake project -- -- The list of supported platforms; also update list in cmdline.lua premake.platforms = { Native = { cfgsuffix = "", }, x...
--[[ -- added by wsh @ 2017-12-19 -- 协程模块:对Lua协程conroutine进行扩展,使其具有Unity侧协程的特性 -- 注意: -- 1、主线程使用coroutine.start启动协程,协程启动以后,首次挂起时主线程继续往下执行,这里和Unity侧表现是一致的 -- 2、协程里可以再次使用coroutine.start启动协程,和在Unity侧协程中使用StartCoroutine表现一致 -- 3、协程里启动子级协程并等待其执行完毕,在Unity侧是yield return StartCoroutine,但是在Lua不需要另外启动协程,直接调用函数即可 -- 4、如果lua侧协程不使用...
local my_c_module = require 'my_c_module' for i = 1,10 do print(my_c_module.self()) end
local app = app local Class = require "Base.Class" local SpottedControl = require "SpottedStrip.Control" local ply = app.SECTION_PLY local Control = Class {} Control:include(SpottedControl) function Control:init(source, label) SpottedControl.init(self) self:setClassName("Source.ExternalChooser.Control") self.so...
--- Fluid -- @classmod Fluid local Fluid = {} setmetatable(Fluid, {__index = require("stdlib/data/core")}) function Fluid:get(fluid, opts) self.fail_if_missing(fluid, "fluid is required") local object = self.get_object(fluid, "fluid") if object then return setmetatable(object, Fluid._mt):extend(...
local QuestManager = require("managers.quest.quest_manager") oldManIntroConvoHandler = conv_handler:new {} function oldManIntroConvoHandler:getInitialScreen(pPlayer, pNpc, pConvTemplate) local convoTemplate = LuaConversationTemplate(pConvTemplate) if OldManOutroEncounter:doesOldManBelongToThePlayer(pPlayer, pNpc) t...
Main = { peds = {}, players = {}, cooldowns = {}, } --[[ Functions ]]-- function Main:SetState(source, ped, state) -- Check entity. if not DoesEntityExist(ped) then return end -- Get entity. local entity = Entity(ped) if not entity or entity.mugged then return end -- Get player. local player = self.players...
local fs = require 'bee.filesystem' local platform = require 'bee.platform' local type = type local ioOpen = io.open local pcall = pcall local pairs = pairs local setmetatable = setmetatable local next = next local ipairs = ipairs local tostring = tostring lo...
--[[请不要修改该文件,2014.4.1]] boyaaCopyright="Copyright © 2008 - 2014 Boyaa Interactive";
music = { alpha = 0, progress = 0, search = false } enableMusic = { state = false } radios = { {img = "files/img/music/radio_1.png", state = false, ip = "http://streaming.shoutcast.com/RadioHunter-TheHitzChannel"}, {img = "files/img/music/radio_2.png", state = false, ip = "http://de-hz-fal-stream01.rautemus...
local Native = require('lib.native.native') ---@class SubAnimType local SubAnimType = { Rooted = Native.ConvertSubAnimType(11), --SUBANIM_TYPE_ROOTED AlternateEx = Native.ConvertSubAnimType(12), --SUBANIM_TYPE_ALTERNATE_EX Looping = Native.ConvertSubAnimType(13), --SUBANIM_TYPE_LOOPING Slam = Native.Co...
local function get(colorscheme, setting, default) local key = colorscheme .. "_" .. setting if vim.g[key] == nil then return default end return vim.g[key] end local config = function(colorscheme) return { bg = get(colorscheme, "transparent_background", false), italic = get(colorscheme, ...
Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"} modelname = "pips" me = game.Players.ImTheCop allowed = {{me.Name, 10}, {"Zewl", 9}, {"Fenrier", 9}} Pos = Vector3.new(-100,1,0) function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break, CF) ...
-- Local variables local duelIcon = nil local bagIcon = nil local fishingIcon = nil local pokedexIcon = nil local caughtsIcon = nil local ropeIcon = nil local path = '/images/topbuttons/' local currentSlot = 0 -- End local variables -- Public functions function init() pokedexIcon = modules.client_topmenu.addRightG...
local authcookie = require 'http.middleware.authcookie' local describe, it, assert = describe, it, assert describe('http.middleware.authcookie', function() it('', function() assert.not_nil(authcookie) end) end)
-- Remote lets you listen for and dispatch remote events. -- -- Slash.notime = Remote["g:NoTime.Chat"]; -- Remote["g:NoTime.Chat"](function(message, who) -- print(("%s said %q"):format(who, message)); -- end); -- -- /notime Hello, everyone! -- -- Remote does no serialization, so it doesn't translate anything other tha...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local DIAGNOSTICS = methods.internal.DIAGNOSTICS local function find_file_output(output, filename) if not output.files then return nil end for _, file in ipairs(output.files) do if file.filename == filename the...
local test = require('test') local Vertex = Vertex local Mesh = Mesh local tostring = tostring test.suite('Mesh Library') test.test('creation', function() local m = Mesh.new() test.assert_equal(#m:getVertices(), 0) test.assert_equal(#m:getIndices(), 0) m = Mesh.new{Vertex.new{1, 2, 3}, Vertex.new{4, ...
-- vim.cmd('source ~/.config/nvim/old_init.vim') require("options") require("plugins") require("plugin-config") require("mappings")
--[[ layout 默认是绝对布局排列方式的 当设置排列方式(横/纵向)后,子节点会自动计算size及position, 从layout左上角开始排列,设置子view position没有效果 Layout容器下布局 ccui.LayoutType = { ABSOLUTE = 0, --绝对布局 默认 子元素按照绝对位置排列 VERTICAL = 1, --垂直平铺 HORIZONTAL = 2, --横向平铺 RELATIVE = 3, --相对布局 } ccui.LinearGravity = { none = 0, left = 1, --左侧对齐 ...
local env = { assert = assert, type = type, tonumber = tonumber, tostring = tostring, require = require, error = error, getmetatable = getmetatable, setmetatable = setmetatable, string = string, table = table, } setfenv(1, env) local path = (...):gsub("[^%.]*$", "") local M = r...
return {'toeareg','toe','toean','toebedeeld','toebedelen','toebedeling','toebedenken','toebehoren','toebereiden','toebereiding','toebereidselen','toebijten','toebinden','toeblaffen','toebrengen','toebroek','toebrullen','toebuigen','toeclip','toedammen','toedekken','toedelen','toedeling','toedenken','toedichten','toedie...
local singbar_details = {} local Screen_width = 0 local detail_width = 0 local proofread = 25 local x_while_left = 0 local x_while_right = 0 local type_desc_list = { [1] = "受到普通攻击时本回合吟唱的效率减半\n受到眩晕、沉默等控制技能时会被打断吟唱", [2] = "受到普通攻击时不会降低吟唱的效率\n受到眩晕、沉默等控制技能时会被打断吟唱", [3] = "受到普通攻击时本回合吟唱的效率减半\n受到眩晕、沉默等控制技能时不会被打断吟...