content
stringlengths
5
1.05M
-- (Super)MultiFurnace Controller (did I mention, it's SUPER!?) -- This app is designed to wrap up to 4 of kepler155c's furni.lua (multiFurni) arrays and divide up workload, -- it functions as a straight drop-in for furni.lua and no other adjustments are required to make it work. -- Additionally, you get the ability to...
local PANEL = {} AccessorFunc( PANEL, "m_strName", "Name" ) AccessorFunc( PANEL, "m_strPath", "Path" ) AccessorFunc( PANEL, "m_strFilter", "FileTypes" ) AccessorFunc( PANEL, "m_strBaseFolder", "BaseFolder" ) AccessorFunc( PANEL, "m_strCurrentFolder", "CurrentFolder" ) AccessorFunc( PANEL, "m_strSearch", "Sea...
WorldManager = WorldManager or BaseClass(BaseHotUpdate) function WorldManager:__init() if WorldManager.Instance then ErrorLog("[WorldManager] Attemp to create a singleton twice !") end WorldManager.Instance = self end function WorldManager:__delete() WorldManager.Instance = nil end function WorldManager:GetCW...
--- Returns Get/Convert and Check functions for the given Enum -- EnumItems can also be Strings, Integer -- See: https://developer.roblox.com/en-us/articles/Enumeration local t = require(script.Parent.t) local IsValidEnumValue = t.union( t.EnumItem, t.integer, t.string ) local function EnumType(enum) assert(t.En...
-- This file was @generated by Tarmac. It is not intended for manual editing. return { icons = { activity = "rbxassetid://7072977617", airplay = "rbxassetid://7072977798", ["alert-circle"] = "rbxassetid://7072978559", ["alert-octagon"] = "rbxassetid://7072978894", ["alert-triangle"] = "rbxassetid://707298028...
local current = (...) local load load = function(path) local succ, loaded = pcall(require, path) if not (succ) then local LC_PATH = current .. '.' .. path succ, loaded = pcall(require, LC_PATH) if not (succ) then LC_PATH = current:gsub("%.[^%..]+$", "") .. '.' .. path succ, loaded = pcall(re...
vim.g.python3_host_prog = config_dir .. "providers/python3/.venv/bin/python3" vim.g.python_host_prog = config_dir .. "providers/python2/.venv/bin/python2"
local bytes = require('lib.bytes') local detection = require('lib.attacks.detection') local english = require('lib.english') local pkcs7 = require('lib.padding.pkcs7') local toolbox = require('lib.toolbox') function figure_out_block_size(oracle) --[[ Given an oracle, determines the block size it is using for encrypt...
#!/usr/bin/env tarantool print[[ -------------------------------------------------------------------------------- -- #267: Bad exception catching -------------------------------------------------------------------------------- ]] box.cfg{ logger="tarantool.log", slab_alloc_arena=0.1, } function pcalltest() ...
-- ensure.lua: tools to ensure correct code behaviour -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) local error, tostring, pcall, type, pairs, select, next = error, tostring, pcall, type, pairs, select, next local math_min, math_max, math_a...
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local triggers = {} local mattata = require('mattata') local redis = require('libs.redis') function triggers:init() triggers.commands = mattata.commands(self.info.use...
local tbl1 = {} tbl1["key"] = 22 tbl1["key"] = tbl1["key"] + "11" for k, v in pairs(tbl1) do print(k .. " => " .. v) end print(tbl1.key) print(tbl1["key"]) local tbl2 = {"apple", "pear", "orange", "grape"} for k, v in pairs(tbl2) do print(k .. " => " .. v) end local tbl3 = {} for i = 1, 10 do tbl3[i] = i ...
tigris.include("wool.lua") tigris.include("milk.lua") tigris.include_dir("mobs")
function Client_PresentSettingsUI(rootParent) UI.CreateLabel(rootParent).SetText('Players get a fort every ' .. Mod.Settings.TurnsToGetFort .. ' turns'); end
-- Generated by CSharp.lua Compiler local System = System local SlipeSharedGameWorld System.import(function (out) SlipeSharedGameWorld = Slipe.Shared.GameWorld end) System.namespace("Slipe.Server.GameWorld", function (namespace) -- <summary> -- Class representing an Object in MTA -- </summary> namespace.class...
local Class = require( "belove.libraries.Class" ) -- ============================================================================= -- BQuad -- ============================================================================= local BQuad = Class( "BQuad" ) function BQuad:load( quad, pivot ) self.quad = quad --...
--- === cp.ui.Toolbar === --- --- Toolbar Module. local require = require local axutils = require "cp.ui.axutils" local Button = require "cp.ui.Button" local Do = require "cp.rx.go.Do" local Element = require "cp.ui.Ele...
if not modules then modules = { } end modules ['s-mod-00'] = { version = 1.000, comment = "companion to mult-aux.mkiv", author = "Wolfgang Schuster", copyright = "Wolfgang Schuster", license = "GNU General Public License" } thirddata = thirddata or { } thirdda...
Config = {} Config.Debug = GetConvarInt('spanser_immersion_debug', 0)
local level = {} function level.load(filename) local result = {} local f = assert(io.open(filename, "r")) local count = 0 while true do local levelLine = {} local line = f:read("*line") if line == nil then break end for i = 1, #line do local c = line:sub(i,...
require("prototypes.item.item") require("prototypes.entity.armoured-draisine") require("prototypes.entity.rail-car") require("prototypes.recipe.recipe")
slot0 = { [Vector3] = 1, [Quaternion] = 2, [Vector2] = 3, [Color] = 4, [Vector4] = 5, [Ray] = 6, [Bounds] = 7, [Touch] = 8, [LayerMask] = 9, [RaycastHit] = 10, [int64] = 11, [uint64] = 12 } function slot1() slot1 = getmetatable return function (slot0) if slot0(slot0) == nil then return 0 end r...
-- -- from src/tarai.c -- -- int tarai(int, int, int) to tarai -- tarai to tak(*) -- -- *) https://en.wikipedia.org/wiki/Tak_(function) -- local function tarai(x, y, z) if x <= y then return y end return tarai(tarai(x-1,y,z), tarai(y-1,z,x), tarai(z-1,x,y)) end local function tak(x, y, z) if x <= y then return ...
print "Hello, World"
data:extend({ { type = "sound", name = "ping-sound", variations = { { filename = "__Map Ping__/sound/Ping1.ogg", volume = 0.75 }, { filename = "__Map Ping__/sound/Ping2.ogg", volume = 0.75 }, { filename = "__Map Ping__/sound/Ping3.ogg", volume = 0.75 }...
----------------------------------- -- Ability: Afflatus Solace -- Inspires you to draw strength from the healing spells you cast. -- Obtained: White Mage Level 40 -- Recast Time: 1:00 -- Duration: 2 hours ----------------------------------- require("scripts/globals/status") ----------------------------------- functio...
local ffi = require("ffi") dofile("../common/ffi_util.inc") ffi.cdef[[ typedef enum enum_i { FOO_I = -1, II = 10 } enum_i; typedef enum enum_u { FOO_U = 1, UU = 10 } enum_u; enum_i call_ei_i(int a) asm("call_i"); enum_u call_eu_i(int a) asm("call_i"); int call_i_ei(enum_i a) asm("call_i"); int call_i_eu(enum_u a) a...
local _0_0 = nil do local name_23_0_ = "conjure.client.janet.netrepl.server" local loaded_23_0_ = package.loaded[name_23_0_] local module_23_0_ = nil if ("table" == type(loaded_23_0_)) then module_23_0_ = loaded_23_0_ else module_23_0_ = {} end module_23_0_["aniseed/module"] = name_23_0_ module_...
local runCheck = require('./index') require('tap')(function (test) test("HTTP", function (expect) runCheck({ id = 30, target = "luvit.io", module = "http", timeout = 10000, }, { url = "http://luvit.io/", body_matches = { title = "title>([^<]+)", }, }, exp...
--------------------------------------------- -- Filamented Hold -- Reduces the attack speed of enemies within a fan-shaped area originating from the caster. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") ----...
PdkController.initViewSiganl = function (slot0) slot5 = slot0 slot0.model.currentUserChangedSignal.add(slot2, slot0.model.currentUserChangedSignal, slot0.onCurrentUserChanged) slot5 = slot0 slot0.model.autoDicChangedSignal.add(slot2, slot0.model.autoDicChangedSignal, slot0.onAutoDicChanged) slot5 = slot0 slo...
local M = {} local bufferline_config = {} M.config = function() bufferline_config = { active = true, keymap = { normal_mode = { ["<S-l>"] = ":BufferNext<CR>", ["<S-h>"] = ":BufferPrevious<CR>", }, }, } end M.setup = function() local keymap = require "keymappings" keymap....
shell.run("/zOS/System/Boot.lua")
--- @class GCSoundPatch --- CSoundPatch class. --- Created with Global.CreateSound local GCSoundPatch = {} --- Adjust the pitch, alias the speed at which the sound is being played. --- This invokes the GM:EntityEmitSound. --- @param pitch number @The pitch can range from 0-255. --- @param deltaTime number @The ...
--orgy train=require(307227743) gr={} for _, p in pairs(game.Players:GetPlayers()) do table.insert(gr, p) if #gr==3 then print"orgy time" for i=1, 3 do gr[i]:LoadCharacter() end wait() train(gr[1].Character, gr[2].Character, gr[3].Character) gr={} ...
function startscreeninit() startstatedelay = 30 -- Play the menu music playmusic(16) end function startscreenupdate() if startstatedelay < 0 then if btn(1) then gamestate__numplayers, gamestate__playstate, gamestate__startstate = 1, true, false resetplaystate() end if btn(0) then ...
-- [===[ local a local b, c = true, "f\0o" -- Comment --[[ Long ]] --[==[ comment. ]==] do local x = 1 local y = 1. local z = .1 local n = 0x0.8p-1 local y = (a:b[[]]) local s = "\0\1\2\3\4\5\6\7\8\9\10\11\12\13\\\01499\15\16\17\18\19\"\20\21\22\23¤\24\25\26\27\28\29\30\31~ëÓ§\255`\0011\1\z \xff\u{b4}" loc...
local notify = require'notify' return function(message, level) notify(message, level, { title = 'lir.nvim', timeout = 500 }) end
-- the size of the dungeon in cells local dungeon_size = { ["fine"] = 11, ["dimin"] = 13, ["tiny"] = 17, ["small"] = 21, ["medium"] = 27, ["large"] = 35, ["huge"] = 43, ["gargant"] = 55, ["colossal"] = 71, } return setmetatable({ dungeon_size = dungeon_size, }, {})
__MANY2ONEFILES={} function requireLuaString(str) if not package.loaded[str] then package.loaded[str] = true local res = load(__MANY2ONEFILES[str]) res = res(str) if res ~= nil then package.loaded[str] = res end end return package.loaded[str] end __MANY2ONEFILES['...
local L = Grid2Options.L Grid2Options:RegisterStatusOptions("combat", "combat", function(self, status, options) self:MakeStatusStandardOptions(status, options) self:MakeSpacerOptions(options, 30) options.useEmptyIcon = { type = "toggle", order = 150, width = "full", name = L["Use Empty Icon"], desc = L["D...
local _utils = require("nui.utils")._ local defaults = require("nui.utils").defaults local is_type = require("nui.utils").is_type local event = require("nui.utils.autocmd").event local Popup = require("nui.popup") local function parse_lines(lines) local data = { lines = {}, total_lines = 0, max_line_leng...
//________________________________ // // NS2 CustomEntitesMod // Made by JimWest 2012 // //________________________________ // modified from WorlToolTop Script.Load("lua/ExtraEntitiesMod/LogicMixin.lua") class 'LogicWorldTooltip' (Entity) LogicWorldTooltip.kMapName = "logic_worldtooltip" local net...
local Llama = { Dictionary = require(script.Dictionary); List = require(script.List); Set = require(script.Set); equalObjects = require(script.equalObjects); isEmpty = require(script.isEmpty); None = require(script.None); } return Llama
local onlooker_barrage_pin_map = require("qnFiles/qnPlist/games/onlooker_barrage_pin"); local onlooker_barrage_item= { name="onlooker_barrage_item",type=0,typeName="View",time=0,x=0,y=0,width=200,height=60,visible=1,fillParentWidth=0,fillParentHeight=0,nodeAlign=kAlignTopLeft, { name="bg_props",type=1,typeName="Ima...
---@class PrivateChannel ---@field client Client ---@field parent Container|Client ---@field createdAt number ---@field id SnowflakeId ---@field timestamp string ---@field mentionString string ---@field type enums.channelType ---@field messages WeakCache ---@field name string ---@field recipient User local PrivateChan...
-- Controllers local list_tasks = require "src.controller.list_tasks" -- Utils local date = require "date.date" local utils = require "src.utils" local print_task = utils.print_task local todate = utils.todate return function(parser) local list_tasks_command = parser:command("list-tasks") list_tasks_command:s...
return function() it("should load successfully", function() require(script.Parent) end) end
#!/usr/bin/env lua -- -- The contents of this file are subject to the Mozilla Public -- License Version 1.1 (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.mozilla.org/MPL/ -- -- Software distributed under the License is distrib...
--- Everything is global, so that it will be available in the REPL --- For use in REPL, not used here util = require("utils") sp_to_p = util.sp_to_p sp_to_in = util.sp_to_in node_type = util.node_type node_subtype = util.node_subtype link_nodes = util.link_nodes make_glyph = util.make_glyph make_glue ...
Signal = Signal or require "libs.hump.signal" local Class = require "libs.hump.class" local socket = require "socket" local IRC = Class {} local utils = require "utils" function IRC:init(settings) self.settings = settings if self.settings.dummy then return end self.joined = false self.names = {} self.comma...
require("busted.runner")() describe("#sdk SDK.Utils.Table", function() -- before_each initialization local Table before_each(function() Table = require("sdk/utils/table") end) describe("Compare()", function() describe("when both tables have the same reference", function() ...
local metadep = {} function metadep.inject_num_assign(name, num) inject_statement(aster.Assign{{aster.Id{name}}, {aster.Number{num}}}) end return metadep
return { summary = 'The base object.', description = [[ This is not a real object, but describes the behavior shared by all objects. Think of it as the superclass of all LÖVR objects. In addition to the methods here, all objects have a `__tostring` metamethod that returns the name of the object's ...
local gen_code = require 'Q/UTILS/lua/gen_code' local plpath = require "pl.path" local srcdir = "../gen_src/" local incdir = "../gen_inc/" if ( not plpath.isdir(srcdir) ) then plpath.mkdir(srcdir) end if ( not plpath.isdir(incdir) ) then plpath.mkdir(incdir) end local operator_file = assert(arg[1], "operator file no...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA SWEP.PrintName = "Infinity Gauntlet" SWEP.Instructions = "*snap*" SWEP.Slot = 0 SWEP.SlotPos = 0 SWEP.DrawAmmo = true SWEP.m_WeaponDeploySpeed = 9 SWEP.ViewModel = "models/swamp/v_infinitygauntlet.mdl" SWEP.W...
object_tangible_quest_menagerie_terminal_08 = object_tangible_quest_shared_menagerie_terminal_08:new { } ObjectTemplates:addTemplate(object_tangible_quest_menagerie_terminal_08, "object/tangible/quest/menagerie_terminal_08.iff")
kSYN_PAUSE = 0b1 kSYN_RUN = 0b10 kSYN_WIN = 0b100 kSYN_END = 0b1000 function synch_init() current = 0 beamline_origin = vec(-8,80) synch_beamline = make_beamline(beamline_origin) synch_beamline:set_elements("_____C_____M_____M_____M_____M_____M_____M_____M_____M_____M_____M_____M_____M_____C_____________")...
buffer = Procedural.TextureBuffer(128) Procedural.Cell(buffer):setDensity(4):setRegularity(234):process() Procedural.Threshold(buffer):process() tests:addTextureBuffer(buffer) dotfile = tests:getDotFile("texture_28", "Threshold_Demo") dotfile:set("Cell", "texture_cell_smooth", "Threshold", "texture_threshold")
-- connect all the libs Pow=require "shared.lib.powlov.pow" Img=require "shared.res.img" Flux=Pow.flux Entity=Pow.entity BaseEntity=Pow.baseEntity -- shortcuts Debug=Pow.debug log=Pow.debug.log draw=love.graphics.draw Inspect=Pow.inspect serialize=Pow.pack deserialize=Pow.unpack _str=serialize ...
require('rollisch.nvim-web-devicons') require('rollisch.indent_blankline') require('rollisch.treesitter') require('rollisch.telescope') require('rollisch.completion') require('rollisch.lsp')
local K, C = unpack(select(2, ...)) local Module = K:NewModule("Minimap", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0") local _G = _G local string_sub = string.sub local C_Timer_After = _G.C_Timer.After local CreateFrame = _G.CreateFrame local GameTimeFrame = _G.GameTimeFrame local GarrisonLandingPageMinimapButton =...
local M = {} --- Gets a copy of the config that would be used by lspconfig. Without side effects. --@returns a fresh config function M.extract_config(name) -- needed so we can restore the initial state at the end local was_config_set = require("lspconfig/configs")[name] local was_package_loaded = package.loaded[...
--[[ Modified (@fondlez): - added: A.requires() for namespace with multiple modules. Order matters. - changed: made safe and flexible by becoming addon-scoped. - changed: fully commented for future clarity. Original credit: @shirsig, author of "aux-addon" --]] -- Customize for every addon by re-assigning the addon g...
T.xcode4_workspace = { } local suite = T.xcode4_workspace --[[suite.--]]local CONSTANT_PROJECT_NAME = "MyProject" local sln, prj function suite.teardown() sln = nil prj = nil end function suite.setup() _ACTION = "xcode4" sln = solution "MySolution" configurations { "Debug", "Release" } platforms ...
return { tllach = { acceleration = 0.045, brakerate = 0.24, buildcostenergy = 10802, buildcostmetal = 704, builddistance = 180, builder = true, buildpic = "tllach.dds", buildtime = 25000, canguard = true, canhover = true, canmove = true, canpatrol = true, canreclamate = 1, ca...
require 'cunn' local iproc = require 'iproc' local gm = {} gm.Image = require 'graphicsmagick.Image' local data_augmentation = require 'data_augmentation' local pairwise_transform_utils = {} function pairwise_transform_utils.random_half(src, p, filters) if torch.uniform() < p then local filter = filters[torch...
fx_version 'adamant' games { 'gta5' } client_scripts { 'config.lua', 'client/client.lua', } server_scripts { 'config.lua', 'server/update.lua', } -- -- NUI -- ui_page 'nui/dist/index.html' files { 'nui/dist/index.html', 'nui/dist/app.css', 'nui/dist/app.js', 'nui/dist/img/radi...
--quartz minetest.register_node(minetest.get_current_modname()..":quartz_block", { description = "Quartz Block", tiles = {"quartz_block.png"}, }) minetest.register_node(minetest.get_current_modname()..":quartz_slab", { description = "Quartz Slab", drawtype = "nodebox", tiles = {"quartz_block.png"},...
--Set color dialog script. --When form load. function ud_set_color_fm_load(self) self.color = "" return 1 end --When form show. function ud_set_color_fm_show(self) local ui = self:GetUI() self.Left = (ui.Width - self.Width) / 2 self.Top = (ui.Height - self.Height) / 2 local co...
return { ACTIONFAIL = { SHAVE = { AWAKEBEEFALO = "DANGER! TARGET IS AWAKE", GENERIC = "THAT IS NOT A VALID SHAVE TARGET", NOBITS = "THERE IS NO STUBBLE TO SHAVE", }, STORE = { GENERIC = "IT IS AT CAPACITY", NOTALLOWED = "THAT INPUT IS NOT ALLOWED", }, }, ACTIONFAIL_GENERIC = "ACTION NOT A...
pcall(require, 'impatient') vim.g.did_load_filetypes = 1 vim.g.loaded_matchparen = 1 vim.g.loaded_zipPlugin = 1 vim.g.loaded_zip = 1 vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' local backupdir = vim.fn.stdpath('data') .. '/backup' local swapdir = vim.fn.stdpath('data') .. '/swap' local undodir = vim.fn.stdpath(...
local function isBlunt(item) if not item:isWeapon() then return false end for k,v in ipairs(item.subtype.attacks) do if v.edged then return false end end return true end local function activateArtifactChanges() local eventful=require('plugins.eventful') eventful.enableEvent(eventful.eventType['ITEM_CREATED'],...
local Engine = Xile.class() Xile.Engine = Engine Engine.__call = function(self,...) return self:item(...) end local List = Xile.List local from = Xile.from function Engine:init(engineCache) local _system = {update=List(),draw=List(),touched=List(),collide=List()} local _sysqry = from(_system):keys()...
-- -- codeblocks_cbp.lua -- Generate a Code::Blocks C/C++ project. -- Copyright (c) 2009 Jason Perkins and the Premake project -- function premake.codeblocks_cbp(prj) -- alias the C/C++ compiler interface local cc = premake.gettool(prj) _p('<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>') _p('<Co...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Administrator. --- DateTime: 18-9-18 下午4:03 --- tree = {} tree[1] = {x = 0, y = 0, links = {2}} tree[2] = {x = 48, y = 0, stats = {'4% Increased HP', 'hp_multiplier', 0.04}, links = {3}} tree[3] = {x = 96, y = 0, stats = {'6% Increased HP', 'hp_mul...
-- -- Please see the license.txt file included with this distribution for -- attribution and copyright information. -- function onInit() powergroup.onValueChanged = onGroupChanged; end function update(bLocked) displaygroup.setReadOnly(bLocked); powergroup.setReadOnly(bLocked); if bLocked then displaygroup.se...
--[[ Copyright (C) Udorn (Blackhand) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the ...
-- Stencilshadows -- we generate a l3dshadowmodel from a given l3dmodel or l3dprimtive -- l3dmodels must always have closed geometry function addshadow(sun,hostl3d,alwaysvisible) -- create the models in the second to last layer -- it is important that shadowmodels are drawn -- after regular geometry. local shadow...
-- ##################### -- stimulants -- ##################### print("Loading mod: stimulants...") dofile(minetest.get_modpath("stimulants").."/cannabis.lua") dofile(minetest.get_modpath("stimulants").."/wine.lua")
return { author = "Jet", name = "StringUtility", description = "Adds a bunch of new features for strings.", version = "1.0.0" }
function game.get_ammo_list() local last_ammo_name = game.GetAmmoName(1) local ammo_table = { last_ammo_name } while last_ammo_name != nil do last_ammo_name = game.GetAmmoName(table.insert(ammo_table, last_ammo_name)) end return ammo_table end -- A function to check whether all of the arguments in vara...
-- Copyright: 2015-2020, Björn Ståhl -- License: 3-Clause BSD -- Reference: http://durden.arcan-fe.com -- -- Description: The display- set of functions tracks connected displays -- and respond to plug/unplug events. They are also responsible for the -- creation of tiler- window managers and manual or automatic migratio...
local Binding = require("prox.input.Binding") local pmath = require("prox.math") local MultiBinding = class("prox.input.MultiBinding", Binding) function MultiBinding:initialize(bindings) Binding.initialize(self) self._bindings = {} if bindings then for i,v in ipairs(bindings) do table.insert(self._bindings, v...
remmer_dune_scavenger = Creature:new { objectName = "@mob/creature_names:remmer_dune_scavenger", socialGroup = "remmer", faction = "", level = 20, chanceHit = 0.33, damageMin = 180, damageMax = 190, baseXp = 1609, baseHAM = 4500, baseHAMmax = 5500, armor = 0, resists = {115,5,125,135,-1,5,5,-1,-1}, meatTyp...
include( "class" ) local KLEIRenderSceneClass = class() local function smootherstep( edge0, edge1, t ) if (t <= edge0) then return 0.0 elseif t >= edge1 then return 1.0 else t = (t - edge0) / (edge1 - edge0) return t*t*t*(t*(t*6 - 15) + 10) end end function KLEIRenderSceneClass:init() local sett...
project "optick" kind "StaticLib" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") defines { "OPTICK_EXPORTS", "OPTICK_ENABLE_GPU_D3D12=1", "OPTICK_ENABLE_GPU_VULKAN=0", "_SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING" } fil...
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("array_assertions", function() it("can check if an array includes an item", function() local t = {1,2,3,4,5,6,7} assert.array_includes(1, t) ...
local mock = require('luassert.mock') local ruby_code_actions = require('ruby-code-actions') local insert_frozen_string_literal_generator = ruby_code_actions.generators.insert_frozen_string_literal_generator local autocorrect_with_rubocop_generator = ruby_code_actions.generators.autocorrect_with_rubocop_genera...
toggleControl( 'action', false ) -- yay, that key has no purpose either way local scoreboardRows = {} local scoreboardGrid local updateInterval = 1000 --ms local indent = ' ' local playerCount local localPlayer = getLocalPlayer() local rootElement = getRootElement() local players = {} local columns = {...
-- @.filter.lua -- @.filter = function(collection, predicate, selfArg, reject) local t = {} for k, v in _.iter(collection) do local check = callIteratee(predicate, selfArg, v, k, collection) if reject then if not check then _.push(t, v) end e...
local wk = require("which-key") wk.setup { layout = { spacing = 4 }, triggers = {"<leader>"} } wk.register({ d = 'kill line to null register', e = { name = '+Edit...', p = '`packages.lua` file', s = '`settings.lua` file', m = '`keymaps.lua` file', }, p = { name = '+Packages...', s = 'synchronize'...
function PackIEEE754SP(number) if number == 0 then return string.char(0x00, 0x00, 0x00, 0x00) elseif number ~= number then return string.char(0xFF, 0xFF, 0xFF, 0xFF) else local sign = 0x00 if number < 0 then sign = 0x80 number = -number end ...
local function delay(x) return (function() return x end) end local function set_filter_infotext(data, meta) local infotext = data.wise_desc.." Filter-Injector" if meta:get_int("slotseq_mode") == 2 then infotext = infotext .. " (slot #"..meta:get_int("slotseq_index").." next)" end meta:set_string("infotext", inf...
casesWindow = guiCreateWindow(0.43, 0.40, 0.15, 0.19, "AUR ~ Cases", true) guiWindowSetSizable(casesWindow, false) guiSetAlpha(casesWindow, 1.00) guiSetVisible(casesWindow, false) casesLabel = guiCreateLabel(0.00, 0.18, 1.00, 0.22, "You have 5 cases", true, casesWindow) guiLabelSetHorizontalAlign(casesLabel, "center",...
object_tangible_furniture_all_outbreak_lung_vat = object_tangible_furniture_all_shared_outbreak_lung_vat:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_outbreak_lung_vat, "object/tangible/furniture/all/outbreak_lung_vat.iff")
object_tangible_collection_plant_07 = object_tangible_collection_shared_plant_07:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_plant_07, "object/tangible/collection/plant_07.iff")
--[[ SIMPLOO - Simple Lua Object Orientation The MIT License (MIT) Copyright (c) 2016 maurits.tv 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 li...
--string ext function string.split(str, split) local splitlist = {} string.gsub(str, '[^'..split..']+', function(w) table.insert(splitlist, w) end ) return splitlist end function string.coventable(table) return require "pb/serpent".block(table) end
local Draw = { } local p = module.load("sutynkatarina", "spell/Passive"); local q = module.load("sutynkatarina", "spell/q"); local w = module.load("sutynkatarina", "spell/w"); local e = module.load("sutynkatarina", "spell/e"); local r = module.load("sutynkatarina", "spell/r"); local menu = module.load("sutynkatar...