content
stringlengths
5
1.05M
return { Sgyd = 1, Assy = 2, };
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details print('testing lua_exception') -- Verify that no exception is generated function empty_function() end function pass_number_to_error() -- Verify the error value of 42 is part of the exception's stri...
insulate("HashSet Test | ", function() local hashSet = nil setup(function() hashSet = require("HashSet"):new() end) before_each(function() hashSet:clear() end) randomize() test("isEmpty()", function() assert.is_true(hashSet:isEmpty()) end) test("clear(); checking size is 0", function(...
-- Example: FPS and delta-time function love.draw() -- Draw the current FPS. love.graphics.print("FPS: " .. love.timer.getFPS(), 50, 50) -- Draw the current delta-time. (The same value -- is passed to update each frame). love.graphics.print("dt: " .. love.timer.getDelta(), 50, 100) end
return {'salisch','salvadoraan','salvadoraans','salade','saladeschaal','salam','salamander','salamanderkachel','salamanders','salami','salamipolitiek','salamitactiek','salangaan','salariaat','salaris','salarisaanpassing','salarisachterstand','salarisactie','salarisadministratie','salarisbetaling','salariscategorie','sa...
EditLadder = EditLadder or class(EditUnit) function EditLadder:editable(unit) return unit:ladder() ~= nil end function EditLadder:update_positions() self:selected_unit():ladder():set_config() end function EditLadder:build_menu(units) local ladder_options = self:Group("Ladder") self._width = self:NumberBox("Width[cm]...
-- plugins will be installed to the cache directory plugin_home = vim.fn.stdpath('cache') .. '/tmux.nvim' vim_plug_url = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' vim_plug = plugin_home .. '/plug.vim' -- install vim-plug automatically if needed if vim.fn.filereadable(vim_plug) == 0 then v...
require('gitsigns').setup { numhl = true, current_line_blame = true, sign_priority = 5, word_diff = false, }
local request = require 'http.functional.request' local writer = require 'http.functional.response' local json = require 'core.encoding.json' local describe, it, assert = describe, it, assert local function test_cases(app) assert.not_nil(app) it('responds with bad request status code and errors', function() ...
-- don't want to leave these in a real script, but it is a handy tool. function describeElement(element) local tag = '<' .. element.tag .. ' ' for key, value in pairs(element.attributes) do local val = (type(value) == 'table' and '(table)') or value tag = tag .. key .. '=' .. val .. ' ' end broadcastToA...
package("cef") set_homepage("https://bitbucket.org/chromiumembedded") set_description("Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.") set_license("BSD-3-Clause") local buildver = { ["88.2.1"] = "88.2.1+g0b18d0b+chromium-88....
module ('base', package.seeall) require 'lux.object' drawable = lux.object.new {} drawable.__init = { color = {255, 255, 255, 255} }
-- MIT License -- -- Copyright (c) [year] [fullname] -- -- 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...
-- premake5.lua -- ChotuEditor Project workspace "Platform" architecture "x64" configurations{ "Debug", "Release" } startproject "Test" flags{ "MultiProcessorCompile", "FloatFast" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Platform_Detection" location "Platform_Detec...
dbg=require "debugger" function swap(t,i,j) local temp=t[i] t[i]=t[j] t[j]=temp end --this is string comparator --INPUT: x,y are strings function comp(x,y) if x ==nil or y==nil then return false end if x<y then return -1 elseif x == y then return 0 elseif x > y then return 1 else return false e...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
if !ItemUsable then require_relative 'sh_item_usable' end class 'ItemAmmo' extends 'ItemUsable' ItemAmmo.name = 'Ammunition Base' ItemAmmo.description = 'An item that contains some ammo.' ItemAmmo.category = 'item.category.ammo' ItemAmmo.model = 'models/items/boxsrounds.mdl' ItemAmmo.background_color = Color(200, 2...
Locales['fi'] = { -- cloakroom ['cloakroom_menu'] = 'cloakroom', ['cloakroom_prompt'] = 'press ~INPUT_CONTEXT~ to open the ~y~cloakroom~s~.', ['wear_citizen'] = 'citizen wear', ['wear_work'] = 'taxi wear', -- garage ['spawner_prompt'] = 'press ~INPUT_CONTEXT~ to open the ~y~garage~s~.', ['store_veh'] =...
assert:set_parameter("TableFormatLevel", 5) -- when displaying tables, set a bigger default depth ------------------------ -- START TEST HELPERS -- ------------------------ local client, balancer local helpers = require "spec.test_helpers" local gettime = helpers.gettime local sleep = helpers.sleep local dnsSRV = f...
--[[ TODO: Only show speedometer if distance to road < 15 (play around with this threshold) ]]-- local currentVehicle = {} local nodeBlip Citizen.CreateThread(function() while true do Citizen.Wait(0) if (IsPlayerDrivingVehicle()) then local playerCoords = GetEntityCoords(PlayerPedId()) ...
local path = (...):gsub(".init$", "") .. "." require(path .. "cdef") local M = require(path .. "master") local ffi = require("ffi") -- search for fmod shared libraries in package.cpath local paths = { fmod = package.searchpath("libfmod", package.cpath), fmodstudio = package.searchpath("libfmodstudio", packag...
modifier_dire_zombie_rage_aura = class({}) function modifier_dire_zombie_rage_aura:OnCreated(params) self.ms_buff_pct = self:GetAbility():GetSpecialValueFor("ms_buff_pct") self.as_speed = self:GetAbility():GetSpecialValueFor("as_speed") if IsServer() then self.efx = EFX("particles/econ/items/lycan/...
local SPUtil = require(game.ReplicatedStorage.Shared.SPUtil) local CurveUtil = require(game.ReplicatedStorage.Shared.CurveUtil) local NoteBase = require(game.ReplicatedStorage.Local.NoteBase) local NoteResult = require(game.ReplicatedStorage.Shared.NoteResult) local SFXManager = require(game.ReplicatedStorage.Local.SFX...
return {'bob','bob','bobbaan','bobbel','bobbelen','bobbelig','bobbeling','bobben','bobber','bobberen','bobby','bobijn','bobijnen','bobijnklos','bobine','bobo','bobslee','bobsleebaan','bobsleebond','bobsleeen','bobsleeer','bobtail','bobbelgum','bobijnhouder','bobsleeploeg','bobbed','bob','bobbi','bobbie','bobby','bobbin...
local modem = peripheral.wrap("back") local ch = 50002 modem.open(ch) local function send(msg) modem.transmit(ch-1, ch, msg) end local function input() while true do local event, key, held = os.pullEvent("key") if key == keys.up then send("^") elseif key == keys.down then send("v") elsei...
-- perf local tconcat = table.concat local PostgreSqlHelpers = {} -- build location execute name function PostgreSqlHelpers.location_for(options) name = { 'gin', options.adapter, options.host, options.port, options.database, } return tconcat(name, '|') end functio...
local number_lerp = assert(foundation.com.number_lerp) yatm.thermal = yatm.thermal or {} function yatm.thermal.set_heat(meta, name, amount) meta:set_float(name, amount) end function yatm.thermal.get_heat(meta, name) return meta:get_float(name) end function yatm.thermal.update_heat(meta, name, target_heat, amt, ...
-- HUD showing player health and name if player is near and visible. function GM:HUDDrawTargetID() for k,v in pairs(self:GetActivePlayers()) do if v == LocalPlayer() then continue end local distance = self:VecDistance(LocalPlayer():GetPos(), v:GetPos()) if v:Alive() and distance < 600 then local bone = v:Look...
local config = require 'conf' if config.development then serialise = require 'src.development.Serialise' end MOUSE = require 'src.utils.Mouse' KEYS = require 'src.utils.Keys' ASSETS = require 'src.utils.Assets' SHADERS = require 'src.utils.Shaders' -- Modifying from: https://bitbucket.org/rude/love/src/default/s...
--[[ A loosely based Material UI module mui-switch.lua : This is for creating simple toggle switches. The MIT License (MIT) Copyright (C) 2016 Anedix Technologies, Inc. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ass...
-------------------------------- -- @module AnimationCache -- @extend Ref -- @parent_module cc -------------------------------- -- Returns a Animation that was previously added.<br> -- If the name is not found it will return nil.<br> -- You should retain the returned copy if you are going to use it. -- @function [pa...
local map = vim.api.nvim_set_keymap map("n", "|", "<cmd>vsplit <CR><C-w>w<plug>(wintabs_close)<C-w>w", { noremap = true }) map("n", "<Space>l", "<cmd>nohlsearch<CR><C-l>", { noremap = true, silent = true }) map("n", "Y", "yy", { noremap = true, silent = true }) -- fold text map("n", "zl", "zo", { noremap = true, sile...
--- Corona wrapper for **fipMetadataFind**, a metadata iterator. -- Usage : -- -- local freeimage = require("plugin.freeimage") -- local image -- -- ... -- local finder = freeimage.NewMetadataFind() -- local ok, tag = finder:findFirstMetadata("EXIF_MAIN", image) -- -- if ok then -- repeat -- ...
include("shared.lua") SWEP.Author = "Cryotheum" SWEP.Category = "Minge Defense" SWEP.DrawAmmo = false SWEP.DrawCrosshair = false SWEP.Instructions = "Left click to swing wrench and heal buildings, right click to pick up buildings to relocate them." SWEP.PrintName = "Wrench" SWEP.Purpose = "Hit things." SWEP.UseHands =...
--- --- --- File: lua_connect.lua --- report for connect action --- --- --- connect_report = {} function connect_report.execute( resultList) connect_report.doTitle( resultList ) connect_report.doBadStores(resultList) end function connect_report.doTitle( resultList ) local temp local count temp = tgs.repo...
--[[ AscendScripting Script - This software is provided as free and open source by the staff of The AscendScripting Team.This script was written and is protected by the GPL v2. The following script was released by a AscendScripting Staff Member. Please give credit where credit is due, if modifying, redistributing and/...
local IUiElement = require("api.gui.IUiElement") local ISettable = require("api.gui.ISettable") return class.interface("ISidebarView", { get_sidebar_entries = "function" }, {IUiElement, ISettable})
-- Workspace configuration workspace "E+G Study Project" architecture "x86_64" configurations { "Debug", "Release" } language "C++" cppdialect "C++17" defines { "SDL_MAIN_HANDLED" } filter "configurations:Debug" defines { "ESD_DEBUG" } symbols...
-- http://lua-users.org/wiki/StringRecipes local function ends_with(str, ending) return ending == "" or str:sub(-#ending) == ending end if FORMAT:match 'latex' then function Image(elem) local src = elem.src if ends_with(src, '.svg') then elem.src = src .. '.pdf' end return elem end end
local modifiers = require("colorbuddy.modifiers").modifiers local util = require("colorbuddy.util") describe("modifiers", function() it("should return averages well", function() -- mix(#15293E, #012549, 50%) local obj1 = { util.rgb_string_to_hsl("#15293E") } local obj2 = { util.rgb_string_to_hsl("#012549...
--[[ foxBot v1.4 by fox: https://taraxis.com/foxBot-SRB2 Based heavily on VL_ExAI-v2.lua by CobaltBW: https://mb.srb2.org/showthread.php?t=46020 Initially an experiment to run bots off of PreThinkFrame instead of BotTiccmd This allowed AI to control a real player for use in netgames etc. Since they're no longer "b...
hook.Add("Initialize", "nadmin_register_silent_notify", function() nadmin:RegisterPerm({ title = "See Silent Commands" }) end) -- Parse a string as a commandline input function nadmin:ParseArgs(str, normal) local out = {} -- This is the simple table local advOut = {__unindexed = {}} ...
--MUST READ: -- to use this file do the following -- 1)find and replace each capitalized instance of NodeTemplate -- with a capitalized version of your node's name -- 2) find and replace each lowercase instance of nodeTemplate -- with a lowercase version of your node's name(this should be the same as the filename) -- ...
local sqlite3 = require "rspamd_sqlite3" local redis = require "rspamd_redis" local util = require "rspamd_util" local function connect_redis(server, password, db) local ret local conn, err = redis.connect_sync({ host = server, }) if not conn then return nil, 'Cannot connect: ' .. err end if pass...
-- local uv = vim.loop -- local stdin = uv.new_pipe(false) -- local stdout = uv.new_pipe(false) -- local stderr = uv.new_pipe(false) -- local job = vim.loop.spawn( -- 'cargo', { -- args = {'run', 'server'}, -- stdin = stdin, -- stdout = stdout, -- stderr = stderr, -- }, function(code, signal) -- ...
--[=[ Simple rig component to point at attachments given @client @class GripPointer ]=] local ReplicatedStorage = game:GetService("ReplicatedStorage") local BaseObject = require(ReplicatedStorage.Knit.Util.Additions.Classes.BaseObject) local Janitor = require(ReplicatedStorage.Knit.Util.Janitor) local GripPointer...
--[[ tp8_book Uses: Todo: Models: shoe: models/props_junk/Shoe001a.mdl hula: models/props_lab/huladoll.mdl soda: models/props_junk/PopCan01a.mdl kettle: models/props_interiors/pot01a.mdl alcohol: models/props_junk/garbage_glassbottle002a.mdl baby: models/props_c17/doll01.mdl t...
local PANEL = {} function PANEL:Initialize() self:super() self:DockPadding(0,0,0,0) self.m_pCanvas = self:Add("Panel") self.m_pCanvas:SetBGColor(color_blank) self.m_pCanvas:SetBorderColor(color_blank) -- Create the scroll bar self.m_pVBar = self:Add("ScrollBar") self.m_pVBar:DockMargin(-1,0,0,0) self.m_p...
if FirstLoad then CycleFunc = false end ----- CycleMember DefineClass.CycleMember = { parents = { "PropertyObject" }, } function CycleMember:CycleNext(gamepad) local index, objs, text = GetCycleInfo(self) local obj = index and objs and (index < #objs and objs[index + 1] or objs[1]) if obj then InfopanelSlide...
local M = {} function M.readUvarint(r) x = 0 s = 0 for i=0,10,1 do local bs = assert(r:receive(1)) local b = string.byte(bs, 1) if b == nil then return nil, "failed to read" end if(b < 0x80) then if (i > 9 or (i == 9 and b > 1)) then return x, "overflow" end return x | (b << s), nil end ...
function Aran_Water_Elementals(Unit, event, miscUnit, misc) if((Unit:GetHealthPct() < 40) and (Didthat == 0)) then Unit:SpawnCreature(21160, -11167.2, -1914.13, 232.009, 0, 18, 96000000); Unit:SpawnCreature(21160, -11163.2, -1910.13, 232.009, 0, 18, 96000000); Unit:SpawnCreature(21160, -11165.2, -1916.13, 232.00...
-- -- tests/actions/vstudio/vc200x/test_build_steps.lua -- Test generation of custom build step elements. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vs200x_build_steps") local vc200x = p.vstudio.vc200x -- -- Setup/teardown -- local wks, prj fun...
local fun = require "nvim-lsp-installer.core.functional.function" local _ = {} _.equals = fun.curryN(function(expected, value) return value == expected end, 2) _.prop_eq = fun.curryN(function(property, value, tbl) return tbl[property] == value end, 3) _.prop_satisfies = fun.curryN(function(predicate, proper...
local _, private = ... if private.isClassic then return end --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Hook, Skin = Aurora.Hook, Aurora.Skin local Util = Aurora.Util do --[[ AddOns\Blizzard_AzeriteUI.lua ]] do --[[ Blizzard_AzeriteEmpoweredItemUI.xml ]] Hook...
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. -- Credit: challsted(lightline) local molokai = {} local colors = { black = '#232526', gray = '#808080', white = '#f8f8f2', cyan = '#66d9ef', green = '#a6e22e', orange = '#ef5939', pink = '#f92672', red =...
furion_wrath_of_nature_lua = class({}) LinkLuaModifier( "modifier_furion_wrath_of_nature_thinker_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- function furion_wrath_of_nature_lua:OnAbilityPhaseStart() local nFXIndex = ParticleManager:CreateParticle(...
-- -- Created by IntelliJ IDEA. -- User: xiaofa -- Date: 2016/3/29 -- Time: 15:48 -- To change this template use File | Settings | File Templates. -- local _M = { local_ip="10.116.163.54", port="80", db_host = "qdm217211123.my3w.com", db_port = "3306", db_user = "qdm217211123", db_password = "go...
local AL = _G.AtlasLoot.GetLocales("esES") if not AL then return end -- These localization strings are translated on WoWAce: https://www.wowace.com/projects/atlasloot-enhanced/localization AL["--- or ---"] = "--- o ---" AL["%s will finish loading after combat."] = "%s terminará de cargarse después del combate" AL["/a...
--[[ More Blocks: conversion Copyright (c) 2011-2017 Hugo Locurcio and contributors. Licensed under the zlib license. See LICENSE.md for more information. --]] -- Function to convert all stairs/slabs/etc nodes from -- inverted, wall, etc to regular + 6d facedir local dirs1 = {21, 20, 23, 22, 21} local dirs2 = {15, 8...
Config = {} Config.Locations = { [1] = { ["label"] = "Hands Free Carwash", ["coords"] = vector3(26.5906, -1392.0261, 27.3634), }, [2] = { ["label"] = "Hands Free Carwash", ["coords"] = vector3(167.1034, -1719.4704, 27.2916), }, [3] = { ["label"] = "Hands Free...
--ZFUNC-cdr-v1 local function cdr( arr ) --> tail if not arr then return nil end local n = #arr if n <= 1 then return nil end local tail = {} for i = 2, n do table.insert( tail, arr[ i ] ) end return tail end return cdr
local lsp,api = vim.lsp,vim.api local config = require('lspsaga').config_values local window = require('lspsaga.window') local libs = require('lspsaga.libs') local action = require('lspsaga.action') local implement = {} function implement.lspsaga_implementation(timeout_ms) local active,msg = libs.check_lsp_active() ...
local function Probe(region) return region:IsObjectType("Frame") and region:GetName():find("^StaticPopup%d+$") ~= nil end local function Describe(region, strings) local speak = false if not strings then region = Vimp_Reader:GetRoot() strings = {} speak = true end table.inser...
-- Turing machines -- -- Collection of turing machines -- affecting different parameters -- -- TODO -- -- Add midi and output control (similar to awake) and settings to map each machine that makes sense to a midi cc -- Remove require for already imported libraries (i.e. util, see here https://monome.org/docs/norns/ref...
require "Commandeer_CommandHandler" Commandeer_CommandHandler.commands["/looc"] = function(param) if not param or param == "" then return "Usage: /looc [message]"; end processSayMessage(string.format("*%s*%s: ((%s))", "teal", Commandeer_RPName.getRPName(), param)) end Commandeer_CommandHandler.commands["/l"] = C...
object_intangible_pet_massiff = object_intangible_pet_shared_massiff:new { } ObjectTemplates:addTemplate(object_intangible_pet_massiff, "object/intangible/pet/massiff.iff")
function plugindef() finaleplugin.RequireSelection = true finaleplugin.Author = "Carl Vine" finaleplugin.AuthorURL = "http://carlvine.com/?cv=lua" finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/" finaleplugin.Version = "v1.04" finaleplugin.Date = "2022/06/15" ...
local diff = { ["axisDiffs"] = { ["a2001cdnil"] = { ["name"] = "Pitch", ["removed"] = { [1] = { ["key"] = "JOY_Y", }, }, }, ["a2002cdnil"] = { ["name"] = "Roll", ["removed"] = { [1] = { ["key"] = "JOY_X", }, }, }, ["a2003cdnil"] = { ["name"] = "Rudder", ["rem...
-- If LuaRocks is installed, make sure that packages installed through it are -- found (e.g. lgi). If LuaRocks is not installed, do nothing. pcall(require, "luarocks.loader") -- Standard awesome library local gears = require("gears") local awful = require("awful") require("awful.autofocus") -- Widget and layout library...
--- -- @author wesen -- @copyright 2018-2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local BaseContentNode = require "AC-LuaServer.Core.Output.Template.TemplateNodeTree.Nodes.BaseContentNode" --- -- Represents a row field. -- -- @type RowFieldNode -- local RowFieldNode = BaseContentNode:extend() ...
-- code borrowed and modified from kikito/anim8 on github: -- https://raw.githubusercontent.com/kikito/anim8/master/spec/love-mocks.lua -- thank you @kikito! -- Copyright (c) 2011 Enrique García Cota -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated doc...
ENT.Type = "anim" ENT.Base = "bp_base" ENT.PrintName = "Propionic Acid" ENT.Spawnable = true ENT.Category = "Blue's Pharmaceuticals" ENT.RenderGroup = RENDERGROUP_BOTH ENT.ChemicalID = 3 function ENT:SetupDataTables() self:NetworkVar("Int", 0, "LiquidAmount") end
local SettingsPerProxy: {[Proxy]: Settings} = {} local ParentsPerProxy: {[Proxy]: Proxy} = {} local ActiveListeners: ActiveListeners = {} --[=[ @class Proxy Class designed to work as a proxy table. Functions can be connected to listen for key indexing or key changes/additions ```lua local Proxy =...
local BaseInstance = import("./BaseInstance") local Selection = BaseInstance:extend("Selection") return Selection
local List = script.Parent local Llama = List.Parent local t = require(Llama.t) local validate = t.table local function includes(list, value) assert(validate(list)) for _, v in ipairs(list) do if v == value then return true end end return false end return includes
print("\n motor.lua hv180829.1817\n") --timers personnels hvtimer1=tmr.create() hvtimer2=tmr.create() hvtimer3=tmr.create() hvtimer4=tmr.create() --parametres pour les moteurs pin_a_speed = 1 pin_a_dir = 3 pin_b_speed = 2 pin_b_dir = 4 FWD = gpio.LOW REV = gpio.HIGH duty = 1023 --initialise moteur A gpio.mode(pin_...
-- add target target("tbox_test") -- set kind set_kind("binary") -- add defines add_defines("__tb_prefix__=\"tbox_test\"") -- add packages add_packages("tbox") -- add files add_files("*.cpp")
-- Copyright (C) 2018-2021 by KittenOS NEO contributors -- -- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTI...
function createVRML(header) local vrml = {} vrml.__type = 'vrml' vrml.__header = header return vrml end function createPROTO(protoName) local proto = {} proto.__name = protoName proto.__type = 'proto' return proto end function createNode(nodeName, nodeType) local node = {} node.__name = nodeNa...
local has_telescope, telescope = pcall(require, "telescope") if not has_telescope then error("telescope-gitmoji.nvim requires telescope.nvim - https://github.com/nvim-telescope/telescope.nvim") end local gm_actions = require("telescope._extensions.gitmoji.actions") local gm_picker = require("telescope._extensions....
mouse_x = 0 mouse_y = 0 game_width = 0 game_height = 0 game_time = 0 function updateGlobals(dt) game_time = game_time + dt mouse_x = love.mouse.getX() mouse_y = love.mouse.getY() game_width = love.graphics.getWidth() game_height = love.graphics.getHeight() end
local param = config.param return { handler = function(context) context.request.method = context.request.query[param]:upper() return nil, true end, options = { predicate = function(context) if context.request.query[param] then return true end return false end } }
project "Gaff" if _ACTION then location(GetFrameworkLocation()) end kind "StaticLib" language "C++" files { "**.h", "**.cpp", "**.inl", "**.lua" } includedirs { "include", "../../Dependencies/EASTL/include", "../../Dependencies/rapidjson", "../../Dependencies/mpack" } flags { "F...
local lsp_status = require('lsp-status') lsp_status.register_progress() -- local capabilities = vim.lsp.protocol.make_client_capabilities() -- capabilities.textDocument.completion.completionItem.snippetSupport = true require("lspconfig").clangd.setup { capabilities = lsp_status.capabilities, on_attach = lsp_st...
return { TRACER = { prefix = "[trace] ", queueCount = 16, dumpParams = true, dumpResults = true }, CHECKER = { mode = { input = 1, output = 2 }, maxDepth = 3 } }
function DoSubSystemDemand_Bentusi() end CpuBuildSS_DefaultSubSystemDemandRules = DoSubSystemDemand_Bentusi
--- --- Bagels --- Ported by Joe Nellis. --- Text displayed is altered slightly from the original program to allow for --- more (or less) than three digits to be guessed. Change the difficulty to --- the number of digits you wish in the secret code. --- --- difficult is number of digits to use local difficulty = 3 pr...
AddCSLuaFile() ENT.Type = "anim" function ENT:SetupDataTables() self:NetworkVar( "Bool",0, "Disabled" ) self:NetworkVar( "Bool",1, "CleanMissile" ) self:NetworkVar( "Bool",2, "DirtyMissile" ) self:NetworkVar( "Entity",0, "Attacker" ) self:NetworkVar( "Entity",1, "Inflictor" ) self:NetworkVar( "Entity...
local Buffer = require("neogit.lib.buffer") local GitCommandHistory = require("neogit.buffers.git_command_history") local git = require("neogit.lib.git") local cli = require('neogit.lib.git.cli') local util = require("neogit.lib.util") local notif = require("neogit.lib.notification") local config = require("neogit.conf...
object_tangible_quest_quest_start_shared_borvo_acklay_armor = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/quest/quest_start/shared_borvo_acklay_armor.iff" } ObjectTemplates:addClientTemplate(object_tangible_quest_quest_start_shared_borvo_acklay_armor, "object/tangible/quest/quest_star...
local _, ns = ... local len = string.len local gsub = string.gsub local format = string.format local match = string.match local floor = math.floor local tags = oUF.Tags.Methods local events = oUF.Tags.Events local function FormatValue(value) if value >= 1e6 then return tonumber(format("%.1f", value/1e6)...
local gamedata = {} gamedata.map_scroll_speed = 50 gamedata.difficulty = 1 gamedata.pattern_speed = 1 collision_categories = { player = 1, player_bullet = 2, enemy = 3, enemy_bullet = 4, } collision_masks = { player = 12, enemy = 2, } playerdata = { movespeed = 300, slow_mp = 3, } screen = { w = 640, h =...
local mod_name = minetest.get_current_modname() local function log(level, message) minetest.log(level, ('[%s] %s'):format(mod_name, message)) end log('action', 'CSM loading...') local mod_storage = minetest.get_mod_storage() local function load_waypoints() if string.find(mod_storage:get_string('waypoints')...
--[[==[ TFMv2 (Time Formatting Module version 2) - format time with ease and flexibility. by TheCarbyneUniverse (inspired by goldenstein64's version of TFM 1) ]==]] local TFM = {} TFM._SECS_MIN_ = 60 TFM._SECS_HR_ = 60 * TFM._SECS_MIN_ TFM._SECS_DAY_ = 24 * TFM._SECS_HR_ TFM.SECS_MON = 30 * TFM._SECS_DAY_ TFM.SEC...
function Create_XSYS_initiator(CustomGroup, playerIndex, shipID) _ALERT("Initializing X System in CustomCode Scope...") SobGroup_CreateIfNotExist("X_RunningGroup") dofilepath("data:leveldata/multiplayer/resdata/XCustomCodeFunction.lua") dofilepath("data:leveldata/multiplayer/resdata/CustomCode_Custom.lua") end...
local bytecode = require "luavm.bytecode" print "required bytecode" local args = {...} print("Got args: ",args[1]) local file = table.remove(args,1) print("File: ",file) local bc = bytecode.load(string.dump(loadfile(file))) print("Loaded bytecode") bytecode.dump(bc)
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Dresaron", 1466, 1656) if not mod then return end mod:RegisterEnableMob(99200) --mod.engageId = 1838 -- START fires prior to engaging the boss local first = true ---------------...
return PlaceObj("ModDef", { "title", "Rotate All Buildings", "version", 1, "version_major", 0, "version_minor", 1, "image", "Preview.png", "id", "ChoGGi_RotateAllBuildings", "steam_id", "1566471085", "pops_any_uuid", "e22c2a8a-60a1-4736-9c11-b4ecbe14dce0", "author", "ChoGGi", "lua_revision", 1001569, "code"...
local files = require 'files' local vm = require 'vm' local lang = require 'language' local config = require 'config' local guide = require 'parser.guide' local define = require 'proto.define' local requireLike = { ['include'] = true, ['import'] = true, ['require'] = true, ['load'] = ...
--[[ s:UI Class Power Bar Martin Karer / Sezz, 2014 http://www.sezz.at --]] local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI"); local M = S:CreateSubmodule("PowerBar", "Gemini:Hook-1.0"); local log, cfg; ----------------------------------------------------------------------...