content
stringlengths
5
1.05M
local Context = {} Context.__index = Context function Context:new() local context = setmetatable({}, Context) -- Таблица с данными контекста, которая позволяет общаться скриптам с внешним миром context.data = setmetatable({}, { __mode = "v" }) return context end function Context:set(na...
-- DECOM Daemon using the LUA MAL API local mal = require "libmal" local malzmq = require "malzmq" local argparse = require "3rdparty.argparse" local parser = argparse("decomd", "A telemetry decommutation daemon in lua") parser:option("-s --acqd-subscribe", "Acquisition Daemon subscription port number", "5557") parse...
fx_version 'adamant' game 'gta5' description 'Identifier logger created by Tigo#9999' name 'FiveM Identifier Logger' author 'TigoDevelopment' contact 'me@tigodev.com' version '1.0.1' server_only 'yes' server_scripts { '@mysql-async/lib/MySQL.lua', 'locale.lua', 'locales/nl.lua', 'locales/en.lua', ...
--[[ author: Aussiemon ----- Copyright 2019 Aussiemon 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, modify, mer...
glyph_umbral_fragments = class({}) function glyph_umbral_fragments:OnCreated( data ) -- ### VALUES START ### -- self.currency_artifact = 10 self.effectiveness_lightning = 4 self.effectiveness_offensive = -5.0 -- ### VALUES END ### -- if not IsServer() then return end self.perkname = da...
fx_version 'cerulean' game 'gta5' repository 'https://github.com/TFNRP/neons' version '0.1.0' author 'Reece Stokes <hagen@hyena.gay>' client_script { 'constants.lua', 'config.lua', 'util.lua', 'client.lua', } export 'Config'
hour_arr = {"час", "часа", "часова"} angle_arr = {"оштар", "оштар", "оштар", "туп", "прав"}
-->>Services and modules local RunService = game:GetService("RunService") -->>Some useful functions that take a table of properties. local module = {} -->>(Function) [Yields] [Returns time elapsed] heartbeatWait(length: Number) --Uses Runservice.Heartbeat to wait a more exact amount of time module.heartbeatWait = func...
require('scripts/globals/keyitems') require('scripts/globals/quests') require('scripts/globals/status') require('scripts/globals/weaponskillids') tpz = tpz or {} tpz.wsquest = { -------------------------------------- -- Quest: The Walls of Your Mind -- NPC: Oggbi (Port Bastok) -- WS: Asuran Fists ...
local M = {} local core = require "core.core" local relations = require "core.relations" local function get_union_points(union) local p = 0 for k, v in pairs(union) do p = p + get_land_points(v) end return p end local function get_union(land) local union = { land } local chunk_value = get_land_points(land...
------------------------------------------------------------------------------- --- Constants (configuration) local DEFAULT_BG_COLOR = {rgba = function() return 0.5, 0.5, 0.5, 1 end} local DEFAULT_FG_COLOR = {rgba = function() return 1, 0, 0, 1 end} local DEFAULT_FONT = CONFIG.font local DEFAULT_TEXT = "UNKNOWN BACKGR...
data:extend( { { type = "repair-tool", name = "copper-repair-pack", icon = "__More_Repair_Packs__/graphics/items/copper-repair-pack.png", icon_size = 63, subgroup = "tool", order = "b", speed = 2, durability = 300, stack_size =...
ScutReader ={} function ScutReader:new() local instance = {} setmetatable(instance, self) self.__index = self end function ScutReader:readAction() return ScutReader_readAction() end function ScutReader:getInt() return ScutReader_getInt() end function ScutReader:getWORD() return ScutRead...
local default_gui = data.raw["gui-style"].default default_gui["mc_notice_textbox"] = { type = "textbox_style", parent = "textbox", font = "default-mono", font_color = {r=0, g=1, b=0}, disabled_font_color = {r=0, g=0, b=0}, selection_background_color = {r=0, g=0, b=0}, rich_text_setting = "d...
-- copy this file to config.lua and edit as needed -- local cfg = {} cfg.global = {} -- this will be accessible via hsm.cfg in modules ---------------------------------------------------------------------------- local ufile = require('utils.file') -- Reload config on change cfgWatcher = hs.pathwatcher.new(os.getenv(...
------------------------------------------------------------------------------ -- Tree class ------------------------------------------------------------------------------ local ctrl = { nick = "tree", parent = iup.WIDGET, subdir = "elem", creation = "", callback = { selection_cb = "nn", multiselecti...
class("Race") Race.OverflowHandling = { ForceSpectate = 1 , StackSpawns = 2 , -- Forces collision off and spawns more than one player at spawns. } Race.idCounter = 1 function Race:__init(args) EGUSM.StateMachine.__init(self) if settings.debugLevel >= 2 then print("Race:__init") end -- Id ...
--[[-------------------------------------------------------- -- Framework - A library for Lua and LOVE -- -- Copyright (c) 2014-2015 TsT worldmaster.fr -- --]]-------------------------------------------------------- -- This file is usefull to load the dragoon-framework/lua/minimal/init.lua -- when : --...
local metadata = { plugin = { format = 'staticLibrary', -- This is the name without the 'lib' prefix. -- In this case, the static library is called: libSTATIC_LIB_NAME.a staticLibs = { "ObjC", "c++", "z"}, frameworks = {"Tapjoy", "AppLovinMediationTapjoyAdapter", "CFNetwork", "CoreTelephony"}, frameworks...
----------------------------------------- -- ID: 5591 -- Item: Balik Sandvic +1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 3 -- Agility 1 -- Intelligence 3 -- Mind -2 -- Ranged ACC 6 ----------------------------------------- require("scripts/globals/status") require("scripts...
local key = { yen = 95, semicolon = 41, colon = 39, atmark = 33, openbracket = 30, closebracket = 42, hyphen = 27, hat = 24, comma = 93, dot = 47, slash = 44, underscore = 94, } local KeyConstants = { -- Sometimes, some special keys don't work BASIC_KEYS = {"q",...
if __BROWSER__ and __DEV__ then -- [ts2lua]lua中0和空字符串也是true,此处console.info需要确认 -- [ts2lua]console下标访问可能不正确 console[(console.info and {'info'} or {'log'})[1]]( + ) end
--------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local actions = require("user_modules/sequences/actions") --[[ Gene...
-- Bootstrapped Installer for my forked version of Computercraft Big Reactors Control Program -- https://github.com/lpenap/computercraft-bigreactor-control -- -- This code is intended to be executed from pastebin. -- -- The official repo doesn't have this bootstraped installation procedure yet: -- https://github.com/sa...
local TestView = BaseClass() function TestView:Constructor( ) self.UIConfig = { prefab_path = "Assets/AssetBundleRes/ui/test/TestView.prefab", canvas_name = "Normal", components = { -- {UI.PlayOpenCloseSound}, {UI.DelayDestroy, {delay_time=5}}, {UI.Background, {is_click_to_close=true, alpha=0.5}} } ...
local configs = require "nvim_lsp/configs" local util = require "nvim_lsp/util" local server_name = "codeqlls" local root_pattern = util.root_pattern("qlpack.yml") configs[server_name] = { default_config = { cmd = {"codeql", "execute", "language-server", "--check-errors", "ON_CHANGE", "-q"}; file...
print('hello') var a = safemath.bigint('123') pprint('a=', a) var b = safemath.bigint(456) pprint('b=', b) pprint('hex(a)=', safemath.tohex(a)) pprint('int(a)=', safemath.toint(a)) pprint('str(a)=', safemath.tostring(a)) var c = safemath.add(a, b) var d = safemath.sub(a, b) var e = safemath.mul(a, b) var f = safemath.d...
local util = {} function util.pack(...) return { n = select('#', ...); ... } end function util.unpack(t) return unpack(t, 1, t.n) end function util.switch(cases, casevar, ...) local func = cases[casevar] or cases.default if func then assert(type(func) == 'function', 'caseof only excepts table of function...
--- wlight Chat Commands -- -- @topic commands local S = core.get_translator(wlight.modname) --- Manages lighted nodes and debugging. -- -- **Parameters:** -- -- @chatcmd wlight -- @tparam command Command action to be executed. -- @tparam[opt] radius Area radius (default: 20). -- @usage /wlight <command> [ra...
object_tangible_furniture_all_frn_all_deathtrooper_wall_body = object_tangible_furniture_all_shared_frn_all_deathtrooper_wall_body:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_deathtrooper_wall_body, "object/tangible/furniture/all/frn_all_deathtrooper_wall_body.iff")
local env = require "config.env" local ipairs = ipairs local utils = require "lib.tools.utils" local singletons = require "config.singletons" local response = require "lib.response" local ngx_balancer = require "ngx.balancer" local get_last_failure = ngx_balancer.get_...
local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = true, require('compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local pairs = _tl_compat and _tl_compat.pairs or pairs; local string = _tl_compat and _tl_compat....
--[[ MIT License Copyright (c) 2021 Michael Wiesendanger 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, mod...
Config = { Map = "aduermael.hills" } Client.OnStart = function() -- Defines a function to drop -- the player above the map. dropPlayer = function() Player.Position = Number3(Map.Width * 0.5, Map.Height + 10, Map.Depth * 0.5) * Map.Scale Player.Rotation = { 0, 0, 0 } Player.Velo...
----------------------------------------- -- LOCALIZED GLOBAL VARIABLES ----------------------------------------- local ZGV = ZGV if not ZGV then return end local tinsert,tremove,sort,zginherits,min,max,floor,type,pairs,ipairs,unpack = table.insert,table.remove,table.sort,table.zginherits,math.min,math.max,math....
local Class = require("lib.Class") local Circle = Class:derive("Circle") --[[ This class creates a circle from a given x, y, radius The properties available are: intersects(circle) : returns true if intersecting with given circle getCircle() : returns x, y, radius getCentre() : returns x and y of centre (...
module("moonscript.compile", package.seeall) local util = require("moonscript.util") local data = require("moonscript.data") local Set do local _table_0 = require("moonscript.data") Set = _table_0.Set end local ntype do local _table_0 = require("moonscript.types") ntype = _table_0.ntype end local concat, insert...
local L = BigWigs:NewBossLocale("Tol Dagor Trash", "ptBR") if not L then return end if L then L.vicejaw = "Boca-de-alicate de Esgoto" L.thug = "Bandido Maré-férrea" L.seaspeaker = "Falamares Rato de Porão" L.flamecaster = "Lança-chamas Grimpagris" L.officer = "Oficial Grimpagris" L.marine = "Fuzileiro Grimpagris"...
local mod = get_mod("%%name") -- Your mod code goes here. -- https://vmf-docs.verminti.de
Locales['fr'] = { ['skin_menu'] = 'Bienvenue, sur Bristols', ['use_rotate_view'] = 'utilisez ~INPUT_VEH_FLY_ROLL_LEFT_ONLY~ et ~INPUT_VEH_FLY_ROLL_RIGHT_ONLY~ pour tourner la vue.', ['skin'] = 'changer de skin', ['saveskin'] = 'sauvegarder skin dans un fichier', }
#!/usr/bin/lua local site = require 'gluon.site_config' local uci = require('luci.model.uci').cursor() local fastd_mtu_low = tostring(site.fastd_auto_mtu.mtu_fastd_low) local fastd_mtu_high = tostring(site.fastd_auto_mtu.mtu_fastd_high) local DSL_mtu = tostring(site.fastd_auto_mtu.mtu_uplink_max) - '28' local ptarget...
vines.register_vine( 'root', { description = "Roots", average_length = 9, },{ choose_random_wall = true, avoid_nodes = {"vines:root_middle"}, avoid_radius = 5, spawn_delay = 500, spawn_chance = 10, spawn_surfaces = { "default:dirt_with_grass", "default:dirt" }, spawn_on_bottom = true, plan...
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KUF = KUI:GetModule("KUIUnits") local UF = E:GetModule("UnitFrames") --Cache global variables --Lua functions --WoW API / Variables function KUF:Update_PartyFrames(frame, db) frame.db = db do end frame:UpdateAllElements("KUI_UpdateAllElements") end func...
load("A") load("B") load("BRK") load("C")
local LibAnim = LibStub( 'LibAnimation-1.0' ) if ( not LibAnim ) then return end local ZO_ObjectPool = ZO_ObjectPool LootDropAnimPool = ZO_ObjectPool:Subclass() function LootDropAnimPool:New() local result = ZO_ObjectPool.New( self, self.Create, function( ... ) self:Reset( ... ) end ) return result end funct...
local skynet = require "skynet" local fruit = require "fruit" local CMD={} local player = {} ----player[uniid]={agent,money,connecting} local lastresult local MAXCOUNT = 2--最大连任次数 local leavelist = {}--待离开游戏的玩家 local leavedearler --待,不当庄家的id local status = {FREE=1,BUSY=2,OPEN=3}--三个状态无论那个都可以上庄家队列,free不可压,庄家可自由选择当不当庄家...
---------------------------------------------------------------------------------------- -- Corp Missions v1.0 - code library ---------------------------------------------------------------------------------------- -- small library intended to provide functions to add/remove mission to corporations. -- required to mak...
-- DunGener v0.1.1 -- generates a dungeon using the BSP algorithm -- the width and height are arbitrary units -- that can be used for pixels, the pico8 map, or -- something of your own creation. -- @see http://www.roguebasin.com/index.php?title=Basic_BSP_Dungeon_generation -- @see https://eskerda.com/bsp-dungeon-genera...
local ServiceType = require("ServiceType"); local CmdType = require("logic/Const/CmdType"); local Respones = require("Respones"); local Player = require("logic/Player"); local RobotPlayer =require("logic/RobotPlayer"); local Zone = require("logic/Const/Zone"); local MatchMgr = require("logic/MatchMgr"); local RoomState...
#!/usr/bin/env lua function trim(s) return s:match '^%s*(.-)%s*$' end function split(s, delimiter) if not delimiter or delimiter == "" then return s end result = {} for match in (s..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match) end return unpack(result...
-------------------- -- `forall` statement. -- The syntax is `forall VAR SELECT [if CONDN] do` where -- `SELECT` is either `in TBL` or `= START,FINISH` -- -- For example, -- -- forall name in {'one','two'} do print(name) end -- -- forall obj in get_objects() if obj:alive() then -- obj:action() -- end --...
--[[ Remove jobs from the specific set. Input: KEYS[1] set key, KEYS[2] events stream key ARGV[1] jobId ARGV[2] timestamp ARGV[3] limit the number of jobs to be removed. 0 is unlimited ARGV[4] set name, can be any of 'wait', 'active', 'paused', 'delayed', 'completed', or 'failed' ]] ...
local path = require "path" local function is_empty_dir(p) local ok = path.each(path.join(p, '*.*'), function() return true end) return not ok end local function walk_empty_dirs(p, fn) local is_recurse = p:sub(1,1) == '!' if is_recurse then p = p:sub(2) end path.each(path.join(p, '*.*'), fn, { sk...
-- Require statements local ReplicatedStorage = game:GetService("ReplicatedStorage") local Resources = require(ReplicatedStorage:WaitForChild("Resources")) local module = {} -- Libraries local Color = Resources:LoadLibrary("Color") local Enumeration = Resources:LoadLibrary("Enumeration") local Tween = Resources:LoadLi...
RegisterNetEvent('ND_hospital:client:RPCheckPos') AddEventHandler('ND_hospital:client:RPCheckPos', function() TriggerServerEvent('ND_hospital:server:RPRequestBed', GetEntityCoords(PlayerPedId())) end) RegisterNetEvent('ND_hospital:client:RPSendToBed') AddEventHandler('ND_hospital:client:RPSendToBed', function(id, ...
impulse.Relationships = impulse.Relationships or {} impulse.Relationships.Players = impulse.Relationships.Players or {} impulse.Relationships.NPCS = impulse.Relationships.NPCS or {} local function StoreDefaultRelationship(npc) if player.GetCount() == 0 then return end npc.DefaultRelationship = npc:Disposition(pl...
/* SFM Bridge for Garry's Mod This software is licensed under the MIT License. Copyright (c) 2021 KiwifruitDev THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ...
--[[ Libreria in cui finiscono le funzioni non altrimenti categorizzabili --]] local ot = {} --[[ Ritorna un numero random compreso tra i due argomenti, presi come estremo inferiore (primo) e superiore (secondo) dell'intervallo --]] ot.random = function(inf, sup) math.randomseed(os.time()) if inf == nil then ...
function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z) local p = Instance.new("Part") p.TopSurface = 0 p.BottomSurface = 0 p.Transparency = Tran p.Reflectance = Ref p.CanCollide = Coll p.Anchored = Anch p.BrickColor = BrickColor.new(Col) p.formFactor = "Custom" p.Size = Vector3.new(X,Y,Z) p.Parent = P p.Lock...
local TOCNAME,core = ... core.GuildChecker = {}; local GuildChecker = core.GuildChecker; local GuildCheckerFrame; local child; local content1, content2, content3; local allowedGuildsListFontString; local blacklistedPlayersFontString; local intentionallyOpened; allowedGuilds={} UserBlacklist={} core.Patte...
Rectangle = {} function Rectangle:new(x, y, w, h) o = {} setmetatable(o, self) self.__index = self o.x = x o.y = y o.w = w o.h = h return o end function Rectangle:isContained(x, y) if self.x < x and x < self.x + self.w and self.y < y and y < self.y + self.h then return true else return false end end
local ReplicatedStorage = game:GetService("ReplicatedStorage") local fitumi = require(ReplicatedStorage:WaitForChild("fitumi")) local a = fitumi.a return function() local noopSignal = a.fake() a.callTo(noopSignal["Connect"], noopSignal, fitumi.wildcard):returns(a.fake()) return noopSignal end
-- I just want to use premake instead of cmake. -- LOL, I'm not even sure if assimp is correctly built. project "irrXML" location "contrib/irrXML" kind "StaticLib" language "C++" targetdir ("bin/" .. OutputDir .. "/%{prj.name}") objdir ("bin-int/" .. OutputDir .. "/%{prj.name}") files { "contrib...
AddCSLuaFile( "shared.lua" ) --Send shared.lua to the client include( 'shared.lua' ) --Include shared.lua if (SERVER) then function ENT:Initialize() self:SetModel("models/spenser/kek1ch/stalker_neutral0c.mdl") self:SetUseType(SIMPLE_USE) self:SetMoveType(MOVETYPE_NONE) self:DrawShadow(...
fw.ents.registerItem("Tier 1 Money Printer", { model = "models/props_c17/consolebox01a.mdl", entity = "fw_printer_tier1", price = 1500, category = "Printers", max = 8, }) fw.ents.registerItem("Tier 2 Money Printer", { model = "models/props_c17/consolebox01a.mdl", entity = "fw_printer_tier2", price = 3000, cat...
local PATH = (...):gsub('%.init$', '') --INSTANCES return { test = require(PATH..".iTest"), }
---------------------------------------------------- local UnitGetIncomingHeals = UnitGetIncomingHeals; local sIsOthers, sIsOwn, sIsNoInc; function VUHDO_healCommAdapterInitLocalOverrides() sIsOthers = VUHDO_CONFIG["SHOW_INCOMING"]; sIsOwn = VUHDO_CONFIG["SHOW_OWN_INCOMING"]; sIsNoInc = not sIsOwn and not sIsOthers;...
do local Self = {} function Particle(x, y, category) local self = setmetatable({}, {__index = Self}) self.category = category or 'poof' self.x = x self.y = y self.dispose = false self.z = 500 self.frameIndex = 1 self.frame = resource.image[sel...
print("testing bitwise operations") assert(bit32.band() == bit32.bnot(0)) assert(bit32.btest() == true) assert(bit32.bor() == 0) assert(bit32.bxor() == 0) assert(bit32.band() == bit32.band(0xffffffff)) assert(bit32.band(1,2) == 0) -- out-of-range numbers assert(bit32.band(-1) == 0xffffffff) assert(bit32.band(2^33 -...
local function PrintHelp() print("Usage:") print("`/bags show` to show the bag bar.") print("`/bags hide` to hide the bag bar.") end local function HideBags() MicroButtonAndBagsBar:Hide() end local function ShowBags() MicroButtonAndBagsBar:Show() end local eventFrame = CreateFrame("Frame") -- PL...
return Command 'dog' :setCategory 'Images' :setDesc 'Return a random dog image.' :setAliases {'doggy', 'puppy', 'doggo', 'doggie', 'doge', 'pooch', 'poochie'} :run(function(msg, args, util) util.request { url = 'https://some-random-api.ml/img/dog'; }:next(function(res) ...
local _, L = ... if L.locale ~= 'frFR' then return end L["Change the placement and scale of your dialogue options."] = [=[Modifier le placement et l'échelle de vos options de dialogue.]=] L["Change the speed of text delivery."] = [=[Change la vitesse de défilement du texte.]=] L["Customize the talking head frame."] = ...
--[[ Copyright 2019 Konsulko Group author:Edi Feschiyan <edi.feschiyan@konsulko.com> 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 r...
local Asset = {} -- local function stripString(base, s) -- local a = s:sub(base:len()+2,s:len()) -- return a:sub(0, a:find("%.")-1) -- end -- local function loadFiles(base, dir, files, ignore) -- dir = dir or base -- local items = love.filesystem.getDirectoryItems(dir) -- for i,v in ipairs(items) do -- loca...
function createSampleProject(name,cppfile,guid) project(name) uuid(guid) location ("../../build/" .. _ACTION) language "C++" if name == "testPinDialog" then kind "WindowedApp" else kind "ConsoleApp" end files { cppfile } includedirs { "../..","..","/usr/include/" } links { "utility","smartcard++" } if o...
------------------------------------------------------------ ------------------------------------------------------------ ---- Author: Dylan 'Itokoyamato' Thuillier ---- ---- ---- ---- Email: itokoyamato@hotmail.fr ---- ---- ...
modifier_sandra_undeniable_torture = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_sandra_undeniable_torture:IsHidden() return true end function modifier_sandra_undeniable_torture:IsPurgable() return false end -----------------------...
local function new_request(request_instance) local response = platform.new_response(); return response; end return { new = new_response };
local item_value = os.getenv('item_value') local item_type = os.getenv('item_type') local item_dir = os.getenv('item_dir') local warc_file_base = os.getenv('warc_file_base') local url_count = 0 local tries = 0 local downloaded = {} local ignore_patterns = {} local addedtolist = {} local abortgrab = false local ids = ...
AddCSLuaFile() local invis = Color(0, 0, 0, 0) hook.Add("AddToolMenuCategories", "Photon.AddMenuCategory", function() spawnmenu.AddToolCategory("Utilities", "Photon", "Photon") end) local function logoHeader(panel, imgpath) if not imgpath then imgpath = "photon/ui/settings_logo.png" end panel:AddControl("Hea...
--------------------helpers-------------------- function string.char_len(str) local _, len = string.gsub(str, "[^\128-\193]", "") return len end function string.plain_format(str) return string.gsub(str, "(#%[%w+%])", "") end local function is_ASCII_DBC_punct(unicode) if not unicode then return false end -- ...
----------------------------------- -- Area: Gustav Tunnel (212) ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.GUSTAV_TUNNEL] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Com...
data:extend({ { type = "technology", name = "advanced-battery-research-1", icon_size = 128, icon = "__expanded-rocket-payloads__/graphic/iss-128.png", effects = { { type = "worker-robot-battery", modifier = 0.1 ...
local _, class = UnitClass("player") if class ~= "WARLOCK" then return end local DS = LibStub("AceAddon-3.0"):NewAddon("Doom Shards", "AceEvent-3.0", "AceTimer-3.0", "AceConsole-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("DoomShards") local ACR = LibStub("AceConfigRegistry-3.0") ------------------- -- Global...
-------------------------------------------------------------------------------- -- ダンジョンマップデータからタイルマップデータを生成するクラスです. -------------------------------------------------------------------------------- -- import local class = require "flower.class" local DrawableObject = require "flower.DrawableObject" -- class local Du...
--[[ Cloud Manager API This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET requ...
-- In this example we create a menu of the users Documents folder. We -- want to match all files and folders (except for dot-files) local FLM = require("hs._asm.filelistmenu") local eventtap = require("hs.eventtap") -- Here we define an action function which takes the modifiers pressed when the -- menu is clicked on...
local autosave = require("autosave") autosave.setup({ enabled = true, execution_message = "AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"), events = {"InsertLeave", "TextChanged"}, conditions = { exists = true, filename_is_not = {}, filetype_is_not = {}, modifiable =...
---@meta --=== rfswitch === ---@class rfswitch rfswitch = {} ---Transmit data using the radio module. ---@param protocol_id integer @positive integer value, from 1-6 ---@param pulse_length integer @length of one pulse in microseconds, usually from 100 to 650 ---@param repeat_val integer @repeat value, usually from 1...
function main() mml.init() local window = Window.new("MML Lua demo", 640, 480, 1, { "resizable" }) local now = 0 local last = 0 local frame_time = 0 local fps_timer = 0 local fps_string = "fps: 0" local logo = Bitmap:load("mml.png") local font = Font:load("res/jetbrainsmono.ttf", 14); local attribs = wind...
require 'dokx' local tester = torch.Tester() local myTests = {} local package = "dummyPackageName" local sourceFile = "dummySourceFile" local checkTableSize = function(...) dokx._checkTableSize(tester, ...) end local checkComment = function(...) dokx._checkComment(tester, package, sourceFile, ...) end local checkWhi...
-- This script demonstrates how to create a scrolling background. BACKGROUND_WIDTH = 128 BACKGROUND_HEIGHT = 128 SCROLL_SPEED = 1 SCALE = 3 function Start() CreateWindow(BACKGROUND_WIDTH * SCALE, BACKGROUND_HEIGHT * SCALE) SetWindowTitle("Scrolling Background") backgroundImage = LoadImage("images/eris_bac...
require 'colorizer'.setup ({ '*'; }, { rgb_fn = true, RRGGBBAA = true, css = true, css_fn = true, hsl_fn = true })
Global( "g_bgAddonList", { "AlchemyV2", "AstralDamageAnnounce", "AstralEvents", "AstralMap", "BillingBonuses", "BonusPools", "BossPlate", "BuffsAstral", "BugReport", "ChangeRoom", "ChatBubbles", "Checkroom", "ChoiceFaction", "ClientImage", "ComebackGuide", "ContextAuction", "ContextBulletinBoard2", "ContextBuyPopup", ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('AmbientLife', { group = "VisitSpot", id = "Workbar", param1 = "unit", param2 = "bld", param3 = "obj", param4 = "spot", param5 = "slot_data", param6 = "slot", param7 = "slotname", PlaceObj('XPrgCheckExpression', { 'form', "while-do"...
-- LabelCell: a specific UICollectionViewCell with a Text label in it local UiView = require "UIKit.UIView" local NsText = require "UIKit.NSText" local CaTransform3D = require "QuartzCore.CATransform3D" ----------------------------------------------------------------------- -- LabelCell class creation (subclass of UI...
day1 = {"понедељак", "уторак", "среду", "четвртак", "петак", "суботу", "недељу"} day2 = {"понедељак", "уторак", "среду", "четвртак", "петак", "суботу", "недељу"} choice1 = {"првог", "другог", "трећег", "четвртог"} choice2 = {"прве", "друге", "треће", "четврте"} month_n = {"ЈАНУАР", "ФЕБРУАР", "МАРТ", "АПРИЛ", "МА...
--- -- The VNC library provides some basic functionality needed in order to -- communicate with VNC servers, and derivatives such as Tight- or Ultra- -- VNC. -- -- Summary -- ------- -- The library currently supports the VNC Authentication security type only. -- This security type is supported by default in VNC, TightV...
local zmq = require 'lzmq' local context = zmq.init(1) --~ while true do --~ -- Recieve from broadcast --~ local msg = '' --~ if msg.code == 0 then --~ return 0 --~ elseif msg.code == 1 then --~ return 0 --~ elseif msg.code == 3 then --~ return 0 --~ elseif msg.code ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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...