content
stringlengths
5
1.05M
local M = {} M.state = { target_pane = nil, COMMAND_CHARS_LIMIT = 10000 } M.set_target_pane = function (pane) M.state.target_pane = pane end local CONSTANTS = { visual = 'visual', visual_line = 'visual_line', visual_block = 'visual_block' } -- list_panes_text is output of 'tmux list-panes -a' local get_...
--- -- Plan module -- @classmod fourmi.plan -- @author Benoit Giannangeli -- @license MIT -- @copyright Benoit Giannangeli 2019 local colors = require "term.colors" local log = require "fourmi.log" local planMt = { --- -- Run the plan -- @tparam plan self __call = function(self) local time...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB --Cache global variables --Lua functions local _G = _G local pairs, type, unpack, assert = pairs, type, unpack, assert local tremove, tContains, tinsert, wipe = tremove, tContains, tinsert, table.wipe local lower, f...
local key = ModPath .. ' ' .. RequiredScript if _G[key] then return else _G[key] = true end local table_insert = table.insert local table_remove = table.remove local WGT_OCCLUDED = 40000000000000 local WGT_UNKNOWN = 39000000000000 local max_tasks = FullSpeedSwarm.settings.max_tasks function FullSpeedSwarmUpdateMax...
-- Create a proxy on _G __index/__newindex to get direct access to registers without having -- to use registers lib directly. So instead of having registers.write("rax", 1) we can say rax = 1 local register_names = { ["rflags"] = true, ["eflags"] = true, ["rax"] = true, ["eax"] = true, ["ax"] = true, ["ah"] ...
if not Utils:IsInGameState() then do return end end if not Utils:IsInHeist() then do return end end if not Network:is_server() then UT.showMessage("host only", UT.colors.error) do return end end local crosshairRay = Utils:GetCrosshairRay() if not crosshairRay then UT.showMessage("nothing to copy...
-- -- Autogenerated by Thrift -- -- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING -- @generated -- local Thrift = require 'Thrift' local TType = Thrift.TType local TMessageType = Thrift.TMessageType local __TObject = Thrift.__TObject local TApplicationException = Thrift.TApplicationException local ...
--[[ LuiExtended License: The MIT License (MIT) --]] -- Effects namespace LUIE.Data.CrowdControl = {} local CrowdControl = LUIE.Data.CrowdControl -- CrowdControl.aoePlayerUltimate -- CrowdControl.aoePlayerNormal -- CrowdControl.aoePlayerSet -- CrowdControl.aoeTrap -- cc.aoeBoss -- CrowdControl.a...
-- -- Recharges a battery cart -- if not yatm_cluster_energy then return end
local system = require "coutil.system" local stateco = require "coutil.coroutine" newtest "coroutine" ------------------------------------------------------------ do case "compilation errors" for v in ipairs(types) do local ltype = type(v) if ltype ~= "string" and ltype ~= "number" then asserterr("string or m...
--- A simple colour class. -- Is converted to a [JUCE Colour](http://www.juce.com/api/classColour.html) -- @classmod juce.Colour --- Constuctor with classical arguments. -- @param r red -- @param g green -- @param b blue -- @param[opt] a alpha -- @within Constructors -- @constructor -- @function Colour --- Constuctor...
ClassType = require('ClassType.init') Utils = require('Utils.init') local Object = { _type = ClassType.OBJECT } function Object:new(class) if string.lower(class._type) == 'class' then local o = {} Utils:clone(o, class) setmetatable(o, { __index = Object, __newindex = function(t, k, v) ...
local udtype = require("udtype") local typex = udtype.type print ("Commencing module test for 'udtype'") --io.read() assert(typex("hello") == "string", "expected string") assert(typex(nil) == "nil", "expected nil") assert(typex(13) == "number", "expected number") assert(typex(true) == "boolean", "expected bo...
-- http://query.yahooapis.com/v1/public/yql?q=select%20item.forecast%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22munic%2C%20de%22)%20and%20u%3D%27c%27%20limit%203&format=json yaw = { url1 = "GET /v1/public/yql?q=select%20item.forecast%20from%20weather.for...
-- ~/.config/nvim/lua/bootstrap.lua: -- automatically install `chiyadev/dep` on startup local path = vim.fn.stdpath "data" .. "/site/pack/deps/opt/dep" if vim.fn.empty(vim.fn.glob(path)) > 0 then vim.fn.system { "git", "clone", "--depth=1", "https://github.com/chiyadev/dep", ...
local K, C = unpack(select(2, ...)) if C["Unitframe"].Enable ~= true then return end local Module = K:GetModule("Unitframes") local oUF = oUF or K.oUF if not oUF then K.Print("Could not find a vaild instance of oUF. Stopping FocusTarget.lua code!") return end local _G = _G local CreateFrame = _G.CreateFrame loca...
---protobuf模块 --@script gg.codec.protobuf --@author sundream --@release 2018/12/25 10:30:00 --@usage --一个完整的protobuf包格式如下 -- ----------------- -- |len|header|body| -- ----------------- -- len为2字节大端,表示header的长度 -- header是消息头,是一个protobuf消息,一般包含消息ID,会话ID等数据 -- body是消息体,是一个protobuf消息(消息ID在header中指定) local pb ...
u_execScript("common.lua") -- pAltBarrage: spawns a series of cAltBarrage function pAltBarrage(mTimes, mStep) local delay = getPerfectDelayDM(THICKNESS) * 5.6 for i = 0, mTimes do cAltBarrage(i, mStep) t_wait(delay) end t_wait(delay) end -- pSpiralDir: spawns a spiral of cWallEx func...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.alias.lua_e=function(args) if #args >= 1 then local f,err =loadstring(args[1]) if f then f() else io.stderr:write(err,"\n") end end end nyagos....
local render = { sx = love.graphics.getWidth(), sy = love.graphics.getHeight(), x = 0, y = 0, zoom = 1, zoomTarget = 1, } render.update = function(dt) render.dt = dt render.sx = love.graphics.getWidth() render.sy = love.graphics.getHeight() render.zoom = render.zoom + (render.zo...
client_async = require "websocket.client_async" connected=false function init(self) self.ws = client_async({ connect_timeout = 5, -- optional timeout (in seconds) when connecting }) self.ws:on_connected(function(ok, err) if ok then print("Connected") connected = true else print("Unable to connect", ...
vim.cmd [[ let dirvish_mode = ':sort ,^.*/,' command! -nargs=? -complete=dir Explore Dirvish <args> command! -nargs=? -complete=dir Sexplore belowright split | silent Dirvish <args> command! -nargs=? -complete=dir Vexplore leftabove vsplit | silent Dirvish <args> "augroup dirvish_config " autocmd! " autocmd FileTyp...
--[[ 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...
Number_Properties_Priority = 1.0 -- Default - on conflict higher is used... Number_Properties = { } String_Properties_Priority = 1.0 String_Properties = { }
--- -- Represent numbers at compile time (to avoid loss of precision). --- do local function __eq(a, b) return (lemma.type(a) == lemma.type(b)) and (tostring(a) == tostring(b)) end local function __tostring(e) return ':'..e.str end local t = {} local mt = { class = 'Number', implements = nil, __index = t, __t...
_VERSION = 'v5 2021-12-10' --[[-- ---------------------------------------------------------------------------- Kartaverse - OpenUSD Scene Exporter - v5 2021-12-10 04.42 PM by Andrew Hazelden www.andrewhazelden.com andrew@andrewhazelden.com Overview --------- The "OpenUSD Scene Exporter" script allows you to export P...
-- This is the primary barebones gamemode script and should be used to assist in initializing your game mode -- Set this to true if you want to see a complete debug output of all events/processes done by barebones -- You can also change the cvar 'barebones_spew' at any time to 1 or 0 for output/no output BAREBONES_DE...
---@class htexture 纹理(遮罩/警示圈) htexture = { --- 系统自带遮罩 DEFAULT_MARKS = { WHITE = "ReplaceableTextures\\CameraMasks\\White_mask.blp", --白色迷雾 BLACK = "ReplaceableTextures\\CameraMasks\\Black_mask.blp", --黑色迷雾 HAZE = "ReplaceableTextures\\CameraMasks\\HazeFilter_mask.blp", --薄雾 GROUN...
-- @file godot_dictionary.lua Wrapper for GDNative's Dictionary -- This file is part of Godot Lua PluginScript: https://github.com/gilzoide/godot-lua-pluginscript -- -- Copyright (C) 2021 Gil Barbosa Reis. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and assoc...
local function shift(list, shifts) local listType = type(list) assert(listType == "table", "expected a table for first argument, got " .. listType) shifts = shifts or 1 local shiftsType = type(shifts) assert(shiftsType == "number" and shifts % 1 == 0, "expected an integer for second argument, got " .. shiftsType...
-- initially based on https://github.com/nodemcu/nodemcu-firmware/blob/master/lua_examples/webap_toggle_pin.lua -- start wifi client or AP mode --dofile('wificlient.lua') dofile('wifiap.lua') -- LED init (strip with 72 leds) print("Initializing LED strip...") ws2812.init() strip_buffer = ws2812.newBuffer(6, 3) ws2812...
-- Put functions in this file to use them in several other scripts. -- To get access to the functions, you need to put: -- require "my_directory.my_file" -- in any script using the functions local M = {} M.rooms = {} M.elevators = {} M.keypuzzle = {} M.paused = false M.map = nil M.map_visited = nil M.current_elevator...
-- Author: Divran local Obj = EGP:NewObject( "Poly" ) Obj.w = nil Obj.h = nil Obj.x = nil Obj.y = nil Obj.vertices = {} Obj.verticesindex = "vertices" Obj.HasUV = true -- Returns whether c is to the left of the line from a to b. local function counterclockwise( a, b, c ) local area = (a.x - c.x) * (b.y - c.y) - (b.x ...
TOOL.Category = "Wire Extras/Visuals/Indicators" TOOL.Name = "Adv. Hud Indicator 2" TOOL.Command = nil TOOL.ConfigName = "" if ( CLIENT ) then language.Add( "Tool_wire_adv_hud_indicator_2_name", "Adv. HUD Indicator 2 ! (Wire)" ) language.Add( "Tool_wire_adv_hud_indicator_2_desc", "Spawns an Adv. HUD Indic...
repeat task.wait() until game:IsLoaded() == true local customdir = (shared.VapePrivate and "vapeprivate/" or "vape/") local betterisfile = function(file) local suc, res = pcall(function() return readfile(file) end) return suc and res ~= nil end local function GetURL(scripturl) if shared.VapeDeveloper then if not b...
local awful = require('awful') local gears = require('gears') local wibox = require('wibox') local beautiful = require('beautiful') local dpi = beautiful.xresources.apply_dpi local clickable_container = require('widget.clickable-container') local icons = require('theme.icons') local spawn = require('awful.spawn') loca...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' 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...
--- === hs.doc === --- --- Create documentation objects for interactive help within Hammerspoon --- --- The documentation object created is a table with tostring metamethods allowing access to a specific functions documentation by appending the path to the method or function to the object created. --- --- From the Ham...
--@name Simple Custom Prop --@author Name --@server local fidelity = 16 local x, y, z = 15, 10, 5 local convexes = { -- cube { Vector(0, 0, 0), Vector(x, 0, 0), Vector(x, y, 0), Vector(0, y, 0), Vector(0, 0, z), Vector(x, 0, z), Vector(x, y, z), Vector(0, y, z), }, -- cylinder { ...
-- https://github.com/rmagatti/auto-session vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal" require("auto-session").setup({ log_level = "info", auto_session_enable_last_session = false, auto_session_root_dir = vim.fn.stdpath("data") .. "/sessions/", auto_session...
--@import see.io.Peripheral function AbstractPeripheral:init(location) if not Peripheral.isPresent(location) then throw(InvalidArgumentException:new(1, "see.base.String: location", "invalid location")) end self.location = location end
-- STYLES local styles = data.raw['gui-style'].default styles['green_button'] = { type = 'button_style', parent = 'button', default_graphical_set = { base = {position = {68, 17}, corner_size = 8}, shadow = default_dirt }, hovered_graphical_set = { base = {position = {102, 17...
--- @classmod core.physics.CollisionShape --- Defines the shape of a @{core.physics.Solid}. -- -- There are different types of collision shapes, each of them has its own -- constructor function. local engine = require 'engine' local class = require 'middleclass' local Scheduler = require'core/Scheduler' local Coll...
-- Your normal yeast minetest.register_craftitem("yatm_brewery:yeast_brewers", { basename = "yatm_brewery:yeast", base_description = "Yeast", description = "Brewer's Yeast", groups = { yeast = 1, yeast_brewers = 1, }, inventory_image = "yatm_yeast_brewers.png" }) -- Wine! minetest.register_craf...
--[[ Purpose: Library to load plugins from the framework and schema and retrieve plugins that have been loaded. --]] nut.plugin = nut.plugin or {} nut.plugin.buffer = nut.plugin.buffer or {} --[[ Purpose: Library to load plugins from the framework and schema and retrieve plugins that have been loaded. --]] functi...
Scene_Splash = Scene_Base:extend("Scene_Splash") function Scene_Splash.prototype:enter() self._splash = require("lib.splashes.o-ten-one")() local scene = self self._splash.onDone = function () scene:startFadeout() end self._alpha = 1 self._splashCanvas = love.graphics.newCanvas(love.graphics.getDim...
-- konko-mods.lua -- --------------------------- -- Mods:Insert(start, len, ease, modpairs, [offset], [plr]) - Writes mods to branch -- start - Starting time -- len - Length to full percentage -- ease - Ease function -- modpairs - {{end_p, mod, [begin_p]}, ...} -- end_p - Ending percent --...
return { summary = 'Get the depth buffer used by the Canvas.', description = [[ Returns the depth buffer used by the Canvas as a Texture. If the Canvas was not created with a readable depth buffer (the `depth.readable` flag in `lovr.graphics.newCanvas`), then this function will return `nil`. ]], ar...
local DowntimeService = require(6317978171) -- Or require by using the file path. (Requiring by ID is better for quicker updates.) local Players = game:GetService("Players") -- Example #1: Kicking Players if Datastores are down. Players.PlayerAdded:Connect(function(player) if DowntimeService:GetDatastoreAPIStatus...
-------------------------------------------------------------------------------- -- -- This file is part of the Doxyrest toolkit. -- -- Doxyrest is distributed under the MIT license. -- For details see accompanying license.txt file, -- the public copy of which is also available at: -- http://tibbo.com/downloads/a...
-- If you have any suggestions you can create an issue at https://github.com/Kistras/2q2WxkSZhzU --------------- -- Remove holos if script was reloaded if HOLOBUILDER then for k,e in pairs(HOLOBUILDER.Holograms) do if e.Entity then e.Entity:Remove() end end end -- For interaction with other scripts HOLOBUILDER...
local function reject() return false end local function set_broken(cell) local vid = random_surface(64, 64) resize_image(vid, 1, 1) cell.types = {{}, {}} cell:set_content(vid) cell.row:invalidate() end local function set_dead(cell, source, status) set_broken(cell) if #status.last_words > 0 then cell:set_err...
----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- CLASS DECLARATION -------------------------------------------------------- local _T = {}; _T.__index = _T; --TODO cross reference w/ c_client/storage.cpp ...
require("prototypes.recipe") data:extend({ { type = "custom-input", name = "bluebuild-autobuild", key_sequence = "b", consuming = "none" },{ type = "custom-input", name = "bluebuild-autodemo", key_sequence = "n", consuming = "none" } })
describe('#uint', function() local uint local random_uintstr setup(function() uint = require"novus.util.uint" function random_uintstr() local out = {} for i = 1, 19 do out[i] = math.random(0, 9) end return table.concat(out) ...
function Boton(text,x,y,w,h,bg_ima,bg_ima_hover) local self = {} self.pos = {} self.pos.x = x self.pos.y = y self.text = text local iw = w or 0 local ih = h or 0 if bg_ima then iw = bg_ima:getWidth() ih = bg_ima:getHeight() end self.w = math.max(love.graphics.get...
-- automatically generated by the FlatBuffers compiler, do not modify -- namespace: ExtraInfo local flatbuffers = require('flatbuffers') local ReqBody = {} -- the module local ReqBody_mt = {} -- the class metatable function ReqBody.New() local o = {} setmetatable(o, {__index = ReqBody_mt}) return o end ...
repoRoot = os.getcwd() include ("BuildConfig.lua") -- Custom library: include ("Premake/Library.lua") workspace "SAMPEDGEngine" location "Build" platforms { "x86", "x64" } configurations { "Debug", "Release" } -- Linux specific configuration. if os.host() == "linux" then defines { "LINUX" } end -- MSBuild...
local battery = peripheral.find("thermal:energy_cell") local energy = battery.getEnergy print(energy)
C_ItemUpgrade = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_ItemUpgrade.CanUpgradeItem) ---@param baseItem ItemLocationMixin ---@return boolean isValid function C_ItemUpgrade.CanUpgradeItem(baseItem) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_ItemUpgrade.ClearItemUpgrade) function ...
AddCSLuaFile() SWEP.Base = "weapon_gwbase" SWEP.Name = "Shockwave" SWEP.AbilitySound = "ambient/energy/zap1.wav" SWEP.AbilityRange = 300 SWEP.AbilityShowTargetHalos = true SWEP.AbilityDuration = 4 SWEP.AbilityCastTime = 0.5 SWEP.AbilityDescription = "Somehow you can emit a shockwave that stuns all seekers within $Ab...
_APL_LEVEL=arg[1] and tonumber(arg[1]) or 2 apl=require"apl" print ("APL Level ".._APL_LEVEL) apl:import() idiom = require "finnaplidiom" local char = string.char local function Str(x,y) if type(x)=='table' then return char(unpack(x)) else return char(x) end end apl.register(1,Str,'§','Str') local tests = {} test...
local u = require("modules.utils.utils") local sorters = require("telescope.sorters") TelescopeMapArgs = TelescopeMapArgs or {} local map_tele = function(key, f, options, buffer) local map_key = vim.api.nvim_replace_termcodes(key .. f, true, true, true) TelescopeMapArgs[map_key] = options or {} local mode = "n"...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. krayt_dragon_tissue_rare = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/component/weapon/blaster_power_handler_enhancement_krayt.iff", craftingValues = { {"maxdamage",70,165,0}, ...
-- Copyright (C) 2013 Piotr Gaertig -- SHA1 shortcut function handler for nginx-big-upload pipeline -- This is stateless handler, it saves .sha1 file with SHA1 context data. -- yarshure hack sha1 to md5 local ffi = require('ffi') local tonumber = tonumber local string = string local ngx = ngx local table = table local...
local iPN = ...; assert(iPN,"[Graphics/PaneDisplay text.lua] No PlayerNumber Provided."); local PaneItems = Def.ActorFrame{} local DanceGames = { ["dance"] = true, ["pump"] = true, ["techno"] = true, ["para"] = true, ["maniax"] = true, ["ds3ddx"] = true, ["ez2"] = true } local gm = GAMESTATE:GetCurrentGame():Ge...
-- vsnip setup: https://github.com/hrsh7th/nvim-cmp/wiki/Example-mappings#vim-vsnip local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil end local feedkey = function(k...
require 'torch' require 'nn' require 'optim' opt = { dataset = 'folder', batchSize = 128, loadSize = 64, fineSize = 64, ngf = 96, -- # of gen filters in first conv layer ndf = 96, -- # of discrim filters in first conv layer nThreads = 4, -- # of data...
local has_cmp, cmp = pcall(require, 'cmp') local utils = require '_.utils' local M = {} local check_back_space = function() local col = vim.fn.col('.') - 1 if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then return true else return false end end -- Use (s-)tab to: --- move to prev/next ...
local function input(event) local top = SCREENMAN:GetTopScreen() if event.DeviceInput.button == "DeviceButton_left mouse button" then if event.type == "InputEventType_Release" then if not SCREENMAN:get_input_redirected(PLAYER_1) then if isOver(top:GetChild("Overlay"):GetChild("PlayerAvatar"):GetChild("Avatar...
male_roba = Creature:new { objectName = "@mob/creature_names:roba_male", socialGroup = "roba", faction = "", level = 15, chanceHit = 0.31, damageMin = 160, damageMax = 170, baseXp = 831, baseHAM = 2400, baseHAMmax = 3000, armor = 0, resists = {5,5,5,5,5,5,5,-1,-1}, meatType = "meat_carnivore", meatAmount ...
require("util") local main = {} local function find_resources(surface, position, range, resource_category) local resource_category = resource_category or 'basic-solid' local top_left = {x = position.x - range, y = position.y - range} local bottom_right = {x = position.x + range, y = position.y + range} local ...
local frozen = true local loading = false Citizen.CreateThread(function() while true do Citizen.Wait(0) if frozen == true then SetEntityInvincible(GetPlayerPed(-1),true) SetEntityVisible(GetPlayerPed(-1),false) FreezeEntityPosition(GetPlayerPed(-1),true) end end end) AddEventHandler("playerSpawned",f...
local size = cc.Director:getInstance():getWinSize() local scheduler = cc.Director:getInstance():getScheduler() local BattleFieldScene = class("BattleFieldScene",function() return cc.Scene:create() end) ---------------------------------------- ----Sprite3DBasicTest ---------------------------------------- local S...
--------------------------------------------------- -- ___ _ -- -- | __| |___ _ __ _____ __ _____ _ _ -- -- | _|| / -_) '_ \/ _ \ V V / -_) '_| -- -- |___|_\___| .__/\___/\_/\_/\___|_| -- -- |_| -- -- ...
local tablex = require 'pl.tablex' local utils = require 'pl.utils' local copy = tablex.deepcopy local append = table.insert local coroutine = coroutine local resume = coroutine.resume local assert_arg = utils.assert_arg permute = {} local permgen permgen = function (a, n, fn) if n == 0 then fn(a) ...
local M = {} local function send() local nodes_table = { vehicle_id = obj:getID(), nodes = {} } for k, node in pairs(v.data.nodes) do local position = obj:getNodePosition(node.cid) table.insert(nodes_table.nodes, {position.x, position.y, position.z}) end obj:queueGameEngineLua("network.send_m...
UMF_REQUIRE "/" ---@class Location: Entity local location_meta = global_metatable( "location", "entity" ) --- Tests if the parameter is a location entity. --- ---@param e any ---@return boolean function IsLocation( e ) return IsEntity( e ) and e.type == "location" end --- Wraps the given handle with the location cl...
--[[ MailSlurp API MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - ...
local specialQuests = { --Choose one chest [2215] = Storage.AnnihilatorDone, [26300] = Storage.SvargrondArena.RewardGreenhorn, [27300] = Storage.SvargrondArena.RewardScrapper, [28300] = Storage.SvargrondArena.RewardWarlord } local questsExperience = { [2215] = 100000, --anni } local questLog = { --Various chest...
--!strict -- Loader -- Stephen Leitnick -- January 10, 2021 --[[ Loads all ModuleScripts within the given parent. Loader.LoadChildren(parent: Instance): module[] Loader.LoadDescendants(parent: Instance): module[] --]] local Loader = {} type Module = {} type Modules = {Module} function Loader.LoadChildren(p...
object_tangible_terminal_crafting_assembly_terminal = object_tangible_terminal_shared_crafting_assembly_terminal:new { } ObjectTemplates:addTemplate(object_tangible_terminal_crafting_assembly_terminal, "object/tangible/terminal/crafting_assembly_terminal.iff")
local PANEL = Gvue.new_panel() PANEL.element_name = 'text' function PANEL:draw(w, h) draw.SimpleText( self.html.inner_html, self.context.attributes.font_family, 0, 0, self.context.attributes.color ) end function PANEL:rebuild() local text_wide, text_tall = util.text_size(self.html.inner_html...
local nets = { "ResetHull", "SetBlind", "SetHull", "PlayFreezeCamSound", "PlayerSwitchDynamicLight", "DisableDynamicLight", "PH_ShowTutor", "CheckAdminFirst", "CheckAdminResult", "SvCommandReq", "SvCommandSliderReq", "SendTauntStateCmd", "CL2SV_PlayThisTaunt", "PH_ForceCloseTauntWindow"...
local mono = libs.mono mono.subsets = { triple = { "Mono", "Clr.Native", "Libs.Native" }, libs = { "Clr", "Host", "Libs" } } function mono:getTriplesBuildCommand(arch, config) local tripleSubsets = "" for _, v in ipairs(mono.subsets.triple) do if tripleSubsets:len() > 0 then tripleSubsets = triple...
ITEM.name = "Кровать" ITEM.desc = "Деревянная кровать, хотя она по корману не каждому холопу" ITEM.model = "models/aoc_furniture/bed_01.mdl" ITEM.width = 4 ITEM.height = 2
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KS = KUI:GetModule("KuiSkins") local S = E:GetModule("Skins") -- Cache global variables -- Lua functions local _G = _G local pairs, unpack = pairs, unpack -- WoW API / Variables local SpellBookFrame = _G["SpellBookFrame"] local SpellBookPageText = _G["SpellBookPa...
local highlight = require('vgit.highlight') local it = it local describe = describe local eq = assert.are.same describe('highlight:', function() describe('setup', function() it( 'should override state highlights with highlights specified through the config', function() highlight.setup({ ...
-- varDecl x, y = 1, 2; -- label ::LBL_A:: -- whileStat gotoStat while 1 == 2 do goto LBL_A end -- doStat do print("something"); end -- repeatStat repeat x = 2 + 3 or 1 + 2 until y == 2 -- forStat for i = 1, 5, 2 do print(i) end for i = 1, 5 do print(i) end -- forInStat a = {"1", "2", "3"} for i, v in ipairs(a) ...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISDetachItemHotbar : ISBaseTimedAction ISDetachItemHotbar = ISBaseTimedAction:der...
Button = script.parent local BACKGROUNDIMAGE = script:GetCustomProperty("BackgroundImage"):WaitForObject() local IsEnabled = script:GetCustomProperty("IsEnabled") local Slot = script:GetCustomProperty("Slot") local Level = script:GetCustomProperty("Level") local LOCAL_PLAYER = Game.GetLocalPlayer() local CurrentSlot ...
-- Configure NVim Web Devicons -- require("nvim-web-devicons").setup({ -- Your personal icons can go here. override = {}, -- Globally enable default icons. default = true })
--[=[ Utility for Roblox character objects that involve promises. @class CharacterPromiseUtils ]=] local require = require(script.Parent.loader).load(script) local Maid = require("Maid") local Promise = require("Promise") local CharacterPromiseUtils = {} --[=[ Returns a promise that will resolve once a character...
--rewrite this lib (P.S: done) --P.S: air stands for Advanced Input Recognition, although technically it's not entirely advanced air = {} air.match_strings = function(string) local strings = {} string = string:gsub("\"(.-[^\\])\"",function(capt) string_id = string_id + 1 strings["%str"..string_id] = capt:gs...
return { chongzhi_rank={ { opengame_day=7, rank_index=0, reward_item={ item_id=30519, num=1, is_bind=1 }, limit_chongzhi=6888 }, { opengame_day=7, rank_index=1,...
-- vim: ft=lua ts=2 sw=2 et: --- Library Functions local lib={} --- Return a number that is not above or below `lo` or `hi`. -- If outside that range, return one of `lo` and `hi`. -- @number z -- @number lo -- @number hi -- @return number function lib.cap(z,lo,hi) if z < lo then return lo elseif z > ...
local fio = require('fio') local t = require('luatest') local g = t.group() local h = require('test.helper') g.before_each(function() g.cluster = h.Cluster:new({ datadir = fio.tempdir(), server_command = h.entrypoint('srv_multisharding'), cookie = h.random_cookie(), replicasets = {...
local utils = require("neo-tree.utils") local M = { FLAG = "<FLAG>", LIST = "<LIST>", PATH = "<PATH>", } -- For lists, the first value is the default value. local arguments = { action = { type = M.LIST, values = { "close", "focus", "show", }, }, position = { type = M.LIST...
local wozy = { -- x,y,z,rx,ry,rz,model {-28.84,-273.45,5.5,0,0,180,407}, {-22.51,-273.4,5.5,0,0,180,407}, {-13.69,-273.4,5.5,0,0,180,407}, {-2.81,-291.60,5.59,0,0,90,544}, {-31.73,-290.24,5.45,0,0,270,400}, -- LV {1751.75,2070.74,11.07,0,0,180,407}, {1770.37,2072.38,11.07,0,0,180,407}, {1764.39,2069.11,11.3...
AddCSLuaFile() DEFINE_BASECLASS( "sent_tv_io_base" ) ENT.PrintName = "IO: Capacitor" ENT.Author = "raubana" ENT.Information = "" ENT.Category = "Tunnel Vision" ENT.Editable = true ENT.Spawnable = true ENT.AdminOnly = true ENT.RenderGroup = RENDERGROUP_OPAQUE ENT.NumInputs = 2 ENT.NumOutputs = 1 lis...