content
stringlengths
5
1.05M
function fact (n) if n == 0 then return 1 else return n * fact(n - 1) end end writeline('你好乐基') while (true) do if (getkey(65)) then writeline(1) else writeline(0) end sleep(100) end
return {'otman','otmar','otmans','otmars'}
-- !block_url function Command(user, message, command, arguments, modded) if not modded client:Log("INFO","BOT_COMMAND",user+ " attempted to run !block_url without authorization.") return true end client.BlockURL(arguments[1]) end
require "lib.classes.class" local NullControl = require "Overworld.ctrl.controls.NullControl" -------------------------------------------------------------------------------------------------------- -- class: ControlManager -- The basic manager of the current player controls local ControlManager = class(function(self)...
-- import local UIWidgetModule = require 'candy.ui.light.UIWidget' local UIWidgetBase = UIWidgetModule.UIWidgetBase local UIFocusManager = require 'candy.ui.light.UIFocusManager' local UIResourceManagerModule = require 'candy.ui.light.UIResourceManager' local UIResourceManager = UIResourceManagerModule.UIResourceManage...
local t = Def.ActorFrame { OnCommand=function(self) local player = GAMESTATE:GetMasterPlayerNumber() GAMESTATE:UpdateDiscordProfile(GAMESTATE:GetPlayerDisplayName(player)) GAMESTATE:UpdateDiscordScreenInfo((THEME:GetString('DiscordRich',"Select_Song") or "Selecting Song" ).. string.format(" (stage %d)",G...
return function(s) local seen = {} for c in s:lower():gmatch('%a') do if seen[c] then return false end seen[c] = true end return true end
local DF = _G ["DetailsFramework"] if (not DF or not DetailsFrameworkCanLoad) then return end local _ local _rawset = rawset --> lua local local _rawget = rawget --> lua local local _setmetatable = setmetatable --> lua local local _unpack = unpack --> lua local local _type = type --> lua local local _math_floor = ...
return {'amoebe','amok','amokmaker','amoreel','amorf','amortisatie','amortisatiefonds','amortiseren','amourette','amoureus','amoebeabces','amoebedysenterie','amoxicilline','amortisatiekas','amoer','amor','amon','amos','amoeben','amokmakers','amorele','amoreler','amorfe','amortisaties','amortiseerde','amortiseert','amou...
local M = {} function M.setup() -- following options are the default require("nvim-tree").setup({ -- disables netrw completely disable_netrw = true, -- hijack netrw window on startup hijack_netrw = false, -- open the tree when running this setup function open_on_...
--[[ TheNexusAvenger Helper function for determining if two userdata objects are equal. --]] --[[ Returns if two user data are equal. --]] local function Equals(Object1,Object2,CheckedValues) --Create the checked values table if it doesn't exist. if not CheckedValues then CheckedValues = {} end --[[ Perfor...
local new = require "LuaObservable.src.new" --[[ Empty Returns a completed observable ]] return function () return new(_, function (next, err, complete) complete() end) end
--[[------------------------------------------------------------------ Settings ]]-------------------------------------------------------------------- GSRCHUD.config = {} -- namespace GSRCHUD.config.PARAM_CHECK = 0 GSRCHUD.config.PARAM_NUMERIC = 1 GSRCHUD.config.PARAM_TEXT = 2 local PREFIX = 'gsrchud_%s' local GET...
-- import local AnimatorTrackField = require 'candy.animator.AnimatorTrackField' ---@class AnimatorTrackFieldNumber : AnimatorTrackField local AnimatorTrackFieldNumber = CLASS: AnimatorTrackFieldNumber ( AnimatorTrackField ) function AnimatorTrackFieldNumber:isCurveTrack () return true end function AnimatorTrackFie...
C_TaxiMap = {} ---@param uiMapID number ---@return TaxiNodeInfo[] taxiNodes ---[Documentation](https://wow.gamepedia.com/API_C_TaxiMap.GetAllTaxiNodes) ---Returns information on taxi nodes at the current flight master. function C_TaxiMap.GetAllTaxiNodes(uiMapID) end ---@param uiMapID number ---@return MapTaxiNodeInfo...
local MENU_ACTION = 125 player_entity = -1 camera_entity = -1 Editor.setPropertyType("player_entity", Editor.ENTITY_PROPERTY) Editor.setPropertyType("camera_entity", Editor.ENTITY_PROPERTY) local Pages = { MAIN = 0, SETTINGS = 1 } local gui = { shown = false, page = Pages.MAIN } if _G["gui"] == nil then _G["gui"] =...
function mana_fiend_equilibrium_lua(keys) ProcsArroundingMagicStick(keys.caster) if keys.target:TriggerSpellAbsorb(keys.ability) then return end local target = keys.target local caster = keys.caster local ability = keys.ability local damage_modifier = ability:GetSpecialValueFor("damage_multiplier") local mana_b...
--Languages use .lua files inside the languages folder --English is default, any missing strings in the language file will fallback to English function set_language(lang) local s = love.filesystem.read("languages/english.json") TEXT = JSON:decode(s) s = nil if lang ~= "english" then if love.filesystem.exists("la...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) include( "starfall/SFLib.lua" ) assert( SF, "Starfall didn't load correctly!" ) local context = SF.CreateContext() function ENT:UpdateState ( state ) self:SetOverlayText( "- Starfall Processor -\n[ " .. ( self.name or "Ge...
--- === cp.apple.finalcutpro.prefs.GeneralPanel === --- --- General Panel Module. local require = require local log = require("hs.logger").new("GeneralPanel") local tools = require("cp.tools") local just = require("cp.just") local Panel = require("cp.apple.finalcutpro.pre...
--[[----------------------------------------------------------------------------------------------------------------------- Run a console command on someone -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "Cli...
local spell = {} spell["element"] = [[Status]] spell["desc"] = [[Raises chance to distress the enemy]] spell["passive"] = true spell["numericalvalue"] = 0.25 spell["name"] = [[Distress Boost]] spell["status"] = [[Distress]] function spell.activate() state.context.passive(spell, state.battle.participants[state.batt...
local Container, property = class('Container') Container.__description = "Abstract base class used to contain the raw data of Discord objects." local types = {['string'] = true, ['number'] = true, ['boolean'] = true} local function load(self, data) for k, v in pairs(data) do if types[type(v)] then self['_' .. k...
-- 引入base plugin是可选的,也可以直接定义handler,比如像key-auth的定义 local BasePlugin = require "kong.plugins.base_plugin" local access = require "kong.plugins.api-transformer.access" local ApiTransformerHandler = BasePlugin:extend() -- 定义插件的优先级和版本,其中优先级的定义参考https://docs.konghq.com/2.2.x/plugin-development/custom-logic/#plugins-executi...
function init_gateClass() gate = {} gate.types = {} gate.typeIds = {} gate.g = CreateGroup() gate.gClosed = CreateGroup() gate.gOpen = CreateGroup() ---Add a new Gate Type ---@param unitTypeClosed unittype ---@param unitTypeOpen unittype ---@param rotation real ---@return boolean function gate.addType(uni...
local TaskStatus = require("StatusEnum") local function extract(resume, status) if resume[1] then if status == "dead" then table.remove(resume, 1) return TaskStatus.Completed, resume end else return TaskStatus.Canceled, resume[2] end return TaskStatus.Pending, nil end return extract
local rtcadr=0x68 local function select(direction) i2c.start(0) local res=i2c.address(0,rtcadr,direction) if res then print("Addressing successfull") else print("Addressing failed") end return res end local function read_data(startadr,len) local s if select(i2c.TRANSMITTER) then local n...
local timerSimple, next, assert, isfunction, pcall = timer.Simple, next, assert, isfunction, pcall local rate = 0 local GetTable, RemoveID, Create, GetCurrent do local tsks, rntsk, index = {}, false, 0 local function _unpack(tb, k, l) local k, l = k or 1, l or #tb if k <= l then return tb[k], _unpack(tb, k +...
-- Result event: -- dpCore.registerResponse function register(username, password, ...) if type(username) ~= "string" or type(password) ~= "string" then return false end local success, errorType = checkUsername(username) if not success then return false, errorType end success, errorType = checkPassword(passwo...
-- == Ls == -- Copyright (c) 2018 by Rene K. Mueller <spiritdude@gmail.com> -- License: MIT License (see LICENSE file) -- Description: list files -- -- History: -- 2018/02/13: 0.0.4: nicer output, provide "pseudo" directory view by default, '-R' for recursive view -- 2018/01/06: 0.0.3: default 2 columns output (filenam...
local ERROR_CHECKED_SPECIFIC_GAME_WRAPPER = require "error_checked_specific_game_wrapper" return ERROR_CHECKED_SPECIFIC_GAME_WRAPPER.get_module("defs", GAME_ID, "chip_name_defs")
return [[ [en] AuthorTextMGB = Agent Smith (STEAM_0:1:15049625) MGB.GUI.Tabs.Online.Title = Players online MGB.GUI.Tabs.Online.SendReport = Send report MGB.GUI.Tabs.Online.ReportBy = Report by MGB.GUI.Tabs.Bad.Title = Players with reports MGB.GUI.Tabs.Wait.Title = Vote for ban MGB.GUI.Tabs.Wait.Yes = Pros MGB.GUI.Tab...
------------------------------------------------------------------------------ -- v_place.lua: -- -- Functions for selecting vaults, generating rooms from code, analysing for -- geometry and connectability, and finding a placement position on the -- usage grid. -- -------------------------------------------------------...
-- -- tests/base/test_override.lua -- Verify function override support. -- Copyright (c) 2012 Jason Perkins and the Premake project -- local suite = test.declare("base_override") -- -- Setup -- local X = {} function suite.setup() X.testfunc = function(value) return value or "testfunc" end end -- -- S...
require 'nn' local Debugger = torch.class('nn.Debugger', 'nn.Module') function Debugger:__init(str) self.str = str end function Debugger:updateOutput(input) self.output = input print('At ' .. self.str .. ':') if type(self.output) == 'table' then print(self.output) else print({self.output}) end ...
-- Buildat: extension/uistack/init.lua -- http://www.apache.org/licenses/LICENSE-2.0 -- Copyright 2014 Perttu Ahola <celeron55@gmail.com> local log = buildat.Logger("extension/uistack") local magic_sandbox = require("buildat/extension/magic_sandbox") local magic = require("buildat/extension/urho3d").safe local dump = b...
--[[-------------------------------------------------------------------------- luavenster - object oriented GUI on winapi for Lua Copyright (C) 2011 Klaus Oberhofer. See copyright notice in LICENSE file demonstrates tree view control --]]-----------------------------------------------------------------------...
b.dodir("decorations") -- Gravel sheets within stone. minetest.register_ore{ biomes = aurum.biomes.get_all_group("all"), ore_type = "sheet", ore = "aurum_base:gravel", wherein = "aurum_base:stone", clust_scarcity = 1, clust_num_ores = 1, clust_size = 4, noise_params = { offset = 0, scale = 1, spread = {x...
-- Called when modifier_iron_man_form is created -- Swaps the ranged attack and projectile function ChangeAttack( keys ) local target = keys.target local projectile_model = keys.projectile_model -- Saves the original attack capability target.target_attack = target:GetAttackCapability() -- Sets the new projectil...
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" client_scripts { "@NativeUI/NativeUI.lua", "@fivemPD_Essential/generalFunctions-c.lua", "config.lua", "equipementMenu-c.lua" }
-- ************************************************************** -- MASS EFFECT: UNIFICATION Common Function Library -- Aaron Gilbert - Marth8880@gmail.com -- Copyright (c) 2021 Aaron Gilbert. All rights reserved. -- -- About: -- <script description> -- -- Legal: -- REPRODUCTION OR TRANSMISSION OF ALL OR...
-- Emulation of https://github.com/hoelzro/lua-term core module local js = require "js" local node_process = js.global.process local M = {} M.isatty = function(file) if file == io.stdout then return node_process.stdout.isTTY end return false end return M
-- Win32: Test Beeper Service local sys = require("sys") local win32 = assert(sys.win32, "Windows 9x/NT required") local TIMEOUT = 3000 -- milliseconds local FILENAME = [[C:\tmp\lua_msvc.52\bin\beep_svc.lua]] -- EDIT PATH !!! local USE_FOREVER_LOOP = true local svc_name = "Beeper.Lua" while true do local a...
TOOL.Category = "Life Support" TOOL.Name = "#Special Devices - Lights" TOOL.DeviceName = "Special Device" TOOL.DeviceNamePlural = "Special Devices" TOOL.ClassName = "ls3_other_lights" TOOL.DevSelect = true TOOL.CCVar_type = "other_lamp" TOOL.CCVar_sub_type = "small" TOOL.CCVar_model = "models/props_c17/FurnitureBoiler...
DxBlank = inherit(DxElement) function DxBlank:constructor(x, y, width, height) self.type = "dx-blank" end function DxBlank:dx(x, y) x, y = x or self.x, y or self.y dxDrawRectangle(x, y, self.width, self.height, tocolor(self.color.r, self.color.g, self.color.b, self.color.a)) end
local modules = {} -- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -- SYSTEM ------------------------------------------------------- -- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> modules["nvim-lua/plenary.nvim"] = {} modules["nvim-lua/popup.nvim"] = {} -- >>>>>>>>>>>>>>>>>>>>>>>...
local PLUGIN = PLUGIN; local Clockwork = Clockwork; local COMMAND = Clockwork.command:New("ItemSpawnerAdd"); COMMAND.tip = "Add an item spawn at your target position."; COMMAND.text = "[int RadiusX|Default: 64] [int RadiusY|Default: 64] [int NoSpawnRadius|Default: 64]"; COMMAND.flags = CMD_DEFAULT; COMMAND.access = "...
return { entities = { {"defender-remnants", {x = -2.49, y = -5.35}, {}}, {"rock-big", {x = -1.49, y = -3.52}, {}}, {"land-mine", {x = 0.03, y = -3.86}, {force = "enemy", }}, {"sand-rock-big", {x = -0.85, y = -5.2}, {}}, {"rock-big", {x = 2.23, y = -4.98}, {}}, {"land-mine", {x = -2.95, y = -...
local menu = {} menu.load = function (mobile) --load stuff if mobile == false then love.window.setMode(400, 400, {resizable = false} ) xOffs = 0 yOffs = 0 else love.window.setMode(411, 450, {resizable = false} ) xOffs = 5 yOffs = 50 end end menu.clicked = function (x, y) if y >= yOffs and y < y...
Camera = Base:extend("Camera", { pos = nil, angle = nil, scale = nil, ptarget = nil, atarget = nil, starget = nil, pkey = nil, akey = nil, skey = nil, plerp = nil, alerp = nil, slerp = nil, smin = nil, smax = nil, bounds = nil }) function Camera:assign(key, value) local slf = rawget(self, "private") ...
-- Currently unused, but might be useful in the future... -- From... https://github.com/martanne/vis/blob/master/lua/plugins/filetype.lua vis.ftdetect = {} vis.ftdetect.ignoresuffixes = { "~$", "%.orig$", "%.bak$", "%.old$", "%.new$" } vis.ftdetect.filetypes = { actionscript = { ext = { "%.as$", "%.asc$" }, }, ...
local map = { triangles = {}, Boundary = {}, nullpunkt = {}, cars = {}, lastRoundCars = {}, subjects = {}, View = {}, loaded = false, } local Camera = require "lib/hump.camera" local Car = require "car" local mapSubject = require "environment" local CamTargetX = 0 local CamTargetY = 0 local CamStartX = 0 local...
test_run = require('test_run') inspector = test_run.new() engine = inspector:get_cfg('engine') -- basic transaction tests space = box.schema.space.create('test', { engine = engine }) index = space:create_index('primary', { type = 'tree', parts = {1, 'unsigned'} }) -- begin/rollback inspector:cmd("setopt delimiter ';'...
local Player = brixy.AuthorizedUser local Players = game.Players Players.PlayerAdded:Connect(function() local PlayerStatus = brixy:GetPlayerStatus(Player.Token) if PlayerStatus == "Suspended" then Player:Kick("You lack permission to connect to this server.") else break end end g...
RemoveImap(174727090) -- Unknown, possibly causing CTDs -- local isLoaded = false Citizen.CreateThread(function() while not isLoaded do Citizen.Wait(1) local interior = GetInteriorAtCoords(-308.88, 777.37, 118.77) local isValid = IsValidInterior(interior) if isValid then ...
pcall(require, "luarocks.loader") require("awful.autofocus") local gears = require("gears") local awful = require("awful") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local menubar = require("menubar") local help_utils = require("help_utils") local ...
--[[ By: ATrashScripter, ATrashScripter#9599 V1.00 API ProfileServicePlus VARIABLES ProfileServicePlus.ProfileAdded - A signal that fires every time a profile is loaded through ProfileServicePlus:LoadProfile() ProfileServicePlus.ProfileRemoving - A signal that fires every time a profile is released throug...
-- ----------------------------------------------------------------------------- -- Parse -- ----------------------------------------------------------------------------- describe('Params.parse', function() spec('params', function() assert.are.equal(0, #parse.Params('()')) assert.has_subtable({ { value...
-- Demo project for ponyfont... local ponyfont = require "com.ponywolf.ponyfont" local options display.setDefault("background", 0.4,0.4,0.4) local subGroup = display.newGroup() options = { text = "Hello World, it's nice here. I'd love to stay a while...", x = display.contentCenterX, y = display.contentCenterY...
local present1, _ = pcall(require, "lspconfig") local present2, installer = pcall(require, "nvim-lsp-installer") if not (present1 or present2) then vim.notify("Fail to setup LSP", vim.log.levels.ERROR, { title = "plugins", }) return end local on_attach = function(client, bufnr) local function buf_set_keyma...
-- ROBLOX services local Players = game:GetService("Players") local ServerScriptService = game:GetService("ServerScriptService") local findersFolder = ServerScriptService:WaitForChild("Finders") local DomainFinder = require(findersFolder:WaitForChild("DomainFinder", 2)) -- Game services local TeamManager = DomainFinde...
local Global = require 'utils.global' local Game = require 'utils.game' local Token = require 'utils.token' local Task = require 'utils.task' local Server = require 'utils.server' local Event = require 'utils.event' local table = require 'utils.table' local set_timeout_in_ticks = Task.set_timeout_in_ticks local sessio...
local config = require "lapis.config" -- Use rewrite rules to create 'boards.' and 'static.' subdomains -- Currently doesn't work, leave this as false! local subdomains = false -- Maximum file size (update this in scripts.js too!) local body_size = "15m" -- Maximum comment size (update this in scripts.js too!) local...
class("ChangeManifestoCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot5 = getProxy(PlayerProxy).getData(slot4) pg.ConnectionMgr.GetInstance():Send(11009, { adv = slot1:getBody().manifesto }, 11010, function (slot0) if slot0.result == 0 then slot0.manifesto = slot0 slot0:updatePlayer(slo...
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmL5A2_svg() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local s...
--===========================================================================-- -- -- -- System.Web.PageRenderEngine -- -- -- ...
-- Performance Enhancement local U = LUIE.UnitNames local A = LUIE.GetAbility() LUIE.AlertTable = { -- PRIORITY NOTES: -- 1 = VMA/Trial/Dungeon -- 2 = ELITE NPC/QUEST BOSS -- 3 = Normal NPC -- bs = true -- Add indicator for Block Stagger to effect -- auradetect = true -- Detect aura a...
-- copy all globals into locals, some locals are prefixed with a G to reduce name clashes local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,un...
local COMMAND = Command.new('return') COMMAND.name = 'Return' COMMAND.description = 'command.return.description' COMMAND.syntax = 'command.return.syntax' COMMAND.permission = 'assistant' COMMAND.category = 'permission.categories.administration' COMMAND.arguments = 1 COMMAND.immunity = true COMMAND.aliases = { 'return',...
-- tl_ops_cache -- en : cache manager -- zn : 对外缓存管理工具 -- 六种模式,000分别代表dict,redis,store, 例如 : 101代表开启dict,store模式 -- @author iamtsm -- @email 1905333456@qq.com local cache_redis = require("cache.tl_ops_cache_redis"):new(); local cache_dict = require("cache.tl_ops_cache_dict"):new(); local constant_rt = require("co...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] TRAIT.name = "Sickly"; TRAIT.opposite = "Healthy"; TRAIT.description = "First to die when the medicine runs out."; TRAIT.category = "Physical"; TRAIT.icon = "materials/terranova/ui/traits/sickly.png"; TRAIT.negative...
--5.1 -- sunday = "monday";monday = "sunday" -- t = { -- sunday = "monday", -- [sunday] = monday -- } -- print(t.sunday,t[sunday],t[t.sunday]) --5.2 -- a = {} -- a.a=a -- a.a.a.a=3 -- print(a) --5.3 -- a = { -- ["Enter"] = "\n" -- } -- print(a.Enter) --5.4 -- local function CalculatePolynomial(a,x) -- ...
local function createColor(whitelist,blacklist) local cols,clist,cCount = {},{},0 local acls = whitelist or {} local skipWhite = (not whitelist) local skipBlack = (not blacklist) local useall = (not whitelist and not blacklist) local bcls = blacklist or {} local clist = {} for k,v in pai...
require "scripts.core.variable" require "scripts.variables.experience_progress" local experience_max = class(Variable); function experience_max:GetValue() local experience = self.owner:GetValue("experience") or 0 local level = self.owner:GetValue("level") return TotalExperienceForLevel(level + 1) - TotalExperienc...
-- basically monk but 10000x easier b/c meditate until next gcd omegalul -- SAM https://i.imgur.com/8Unt2nH.png -- Midare 1st opener xivopeners_sam = {} xivopeners_sam.supportedLevel = 80 xivopeners_sam.openerAbilities = { Hakaze = ActionList:Get(1, 7477), Jinpu = ActionList:Get(1, 7478), Shifu = ActionLi...
data:extend{ { type = "technology", name = "ZEarlyBots-EarlyLogistics", icon = "__ZEarlyBots__/Graphics/Technology/early-logistic-bots.png", icon_size = 128, prerequisites = {"steel-processing", "logistic-science-pack", "automation", "electronics"}, effects = ...
--[[- Class for magazine groups. @classmod MagazineGroup @author Fenris_Wolf @release 1.0-alpha @copyright 2018 ]] local ItemGroup = require(ENV_RFF_PATH .. "item_group") local MagazineGroup = {} setmetatable(MagazineGroup, { __index = ItemGroup }) return MagazineGroup --[[ function MagazineGroup:spawn(typeModif...
local PeaMacros = CreateFrame("Frame", (...), UIParent) PeaMacros:RegisterEvent("PLAYER_LOGIN") -- Generic event handler PeaMacros:SetScript("OnEvent", function(self, event, ...) self[event](self, ...) end) local class, currentSpec, SpecID, oldSpecID local QUESTION_MARK = "INV_Misc_QuestionMark" -- HELPER FUNCTIONS...
object_tangible_loot_creature_loot_collections_imp_t3_darth_maul = object_tangible_loot_creature_loot_collections_shared_imp_t3_darth_maul:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_imp_t3_darth_maul, "object/tangible/loot/creature/loot/collections/imp_t3_darth_maul.iff")
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras...
-- Perform HTTP-based benchmarking of the route endpoint local common = require("common") done = function(summary, latency, requests) common.write_result_csv(summary, latency, requests) end -- Lancaster, PA to San Diego, CA lancaster2sd_body = '{"locations":[{"lat":40.0381300,"lon":-76.3056686,"name":"Lancaster"}...
local screenW, screenH = guiGetScreenSize() local sec = "" local tick = 0; local r, g, b = 255, 255, 255; local marker_tick = getTickCount(); function drawTurfing() if sec <= 30*1000 then r, g, b = 255, 0, 0; end dxDrawImage(screenW * 0.4632, screenH * 0.0000, screenW * 0.0951, screenH * 0.0322, "file...
return function() local CorePackages = game:GetService("CorePackages") local Roact = require(CorePackages.Roact) local ScrollingTextBox = require(script.Parent.ScrollingTextBox) it("should create and destroy without errors", function() local element = Roact.createElement(ScrollingTextBox, { TextSize = 10, ...
vim.cmd([[ " let g:vimspector_enable_mappings = 'HUMAN' " nmap <leader>dd :call vimspector#Launch()<CR> " nmap <leader>dx :call vimspectorReset<CR> " nmap <leader>de :call vimspectorEval " nmap <leader>dw :call vimspectorWatch " nmap <leader>dw :callvimspector#StepOver() nnoremap <Leader>dd :call vimspector#Launch(...
local House = {}; House.__index = House; local Room = require(script.Room); local Sett = require(script.Parent.Settings); local l = Sett.ROOM_BORDER_LENIANCY; House.new = function(Maze) local Self = {}; Self.Maze = Maze; Self.Rooms = {}; Self.Doors = {}; return setmetatable(Self, House); end; function Hous...
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local f = SimpleForm("firewall", translate("Firewall - Custom Rules"), translate("Custom rules allow you to execute arbritary iptables commands \ which are not otherwise covere...
-- Infineon XMC4700 Relax boot-kit build configuration --[[ Notes: 1) This kit has no SDMMC slot! I have to solder my own slot. :( It is impossible that this kit does not come with an SDMMC interface! :( --]] return { cpu = 'xmc4700f144k2048', components = { sercon = { uart = 0, speed = 115200 }, ...
--- @type StdUi local StdUi = LibStub and LibStub('StdUi', true); if not StdUi then return; end local module, version = 'Tab', 1; if not StdUi:UpgradeNeeded(module, version) then return end; --- ---local t = { --- { --- name = 'firstTab', --- title = 'First', --- }, --- { --- name = 'secondTab', --- title = 'Sec...
local Rojinx = {} Rojinx.createStore = require(script.createStore) Rojinx.combineReducers = require(script.combineReducers) Rojinx.Component = require(script.Component) Rojinx.LoggerMiddleware = require(script.Middlewares.LoggerMiddleware) Rojinx.InspectorMiddleware = require(script.Middlewares.InspectorMiddleware) R...
return function() local SimplePath = require(game:GetService("ReplicatedStorage").SimplePath) local Dummy = workspace.Dummy local Goal = workspace.Goal local Path describe("constructor", function() it("creates a new Path with provided character", function() expect(SimplePath.new(Dummy)).to.be.ok() end) ...
local zeusNP = {} zeusNP.optionEnable = Menu.AddOption({"Hero Specific","Zeus by NP"},"Enabled","") zeusNP.optionKey = Menu.AddKeyOption({"Hero Specific","Zeus by NP"},"Combo Key",Enum.ButtonCode.KEY_SPACE) zeusNP.optionEnableVeil = Menu.AddOption({ "Hero Specific","Zeus by NP","Toggle Items"},"Use Veil Of Discord...
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Skins") local _G = _G local table_insert = table.insert local hooksecurefunc = _G.hooksecurefunc local function SkinObjectiveTracker() local ObjectiveTrackerFrame = _G["ObjectiveTrackerFrame"] local TrackerTexture = K.GetTexture(C["UITextures"].QuestT...
project "OvEditor" language "C++" cppdialect "C++17" files { "**.h", "**.inl","**.cpp", "**.rc" } includedirs { "include", dependdir .. "glfw/include", dependdir .. "stb_image/include", dependdir .. "lua/include", dependdir .. "bullet3/include", dependdir .. "glew/include", dependdir .. "irrklang/include", "%{wks....
M = {} if pcall(require, 'nvim-treesitter') then -- local transform_fn = function(line) -- return line:gsub('%s*[%[%(%{]*[^%[%(%{]*$', '') -- end function M.treesitter_statusline() return require'nvim-treesitter'.statusline { -- transform_fn = transform_fn, separato...
RUBATO_DEF_RATE = 30 RUBATO_OVERRIDE_DT = true RUBATO_DIR = (...):match("(.-)[^%.]+$").."rubato." return { --Overarching functions to set defaults set_def_rate = function(rate) RUBATO_DEF_RATE = rate end, set_override_dt = function(value) RUBATO_OVERRIDE_DT = value end, --Modules timed = require(RUBATO_DIR.."tim...
local Script, super = Class(Event) function Script:init(script, x, y, w, h) super:init(self, x, y, w, h) self.solid = false self.script = script end function Script:onCollide(player) self.world:startCutscene(self.script, self, player) self:remove() return true end function Script:draw() ...
local util = require("tests.test_util") describe("treesitter julia", function() it("parses all symbols correctly", function() util.test_file_symbols("treesitter", "./tests/treesitter/julia_test.jl", { { kind = "Module", name = "mod", level = 0, lnum = 1, col = 0, ...
-------------------------------------------------------------------------------- ----------------------------------- DevDokus ----------------------------------- -------------------------------------------------------------------------------- function Wait(args) Citizen.Wait(args) end function Invoke(args, bool) Citize...
local LAM2 = LibStub("LibAddonMenu-2.0") local FAKETAG = 'MERLINS_REZHELPER_FAKE' local AddonVersion = '2.0.0' local NextPlayer = '' local state = { Hidden = true, ForceBeam = false, SetCloseIcon = false, Angle = 0, Linear = 0, AbsoluteLinear = 0, DX = 0, DY = 0, Color = { R = 1, G =...
return { ["raw/1"] = { pack = function(value) return value end; unpack = function(value) return value; end; } }