This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
-- Argument By-Reference Signal Wrapper -- | |
-- This is a signal class implemented by wrapping a BindableEvent, which -- | |
-- passes the event arguments by reference instead of by value, and which -- | |
-- still works corectly even with SignalBehavior = deferred. -- | |
-------------------------------------------------------------------------------- | |
local Signal = {} | |
Signal.__index = Signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
-- Fast Signal-like class -- | |
-- This is a Signal class that is implemented in the most performant way -- | |
-- possible, sacrificing correctness. The event handlers will be called -- | |
-- directly, so it is not safe to yield in them, and it is also not safe to -- | |
-- connect new handlers in the middle of a handler (though it is still safe -- | |
-- for a handler to specifically disconnect itself) -- | |
-------------------------------------------------------------------------------- | |
local Signal = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local rowMT = { | |
__index = function(tb, key) | |
local col = {} | |
tb[key] = col | |
return col | |
end, | |
} | |
local grid = setmetatable({}, { | |
__index = function(tb, key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local upValueArray = {1} | |
return { | |
ParameterGenerator = function() | |
end; | |
Functions = { | |
["Empty loop"] = function() | |
for i = 1, 10000 do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ArrayVector1 = {1, 2, 3, 4} | |
local ArrayVector2 = {1, 2, 3, 4} | |
local ArrayVector3 = {1, 2, 3, 4} | |
local ArrayVector4 = {1, 2, 3, 4} | |
local DictVector1 = {x = 1, y = 2, z = 3, w = 4} | |
local DictVector2 = {x = 1, y = 2, z = 3, w = 4} | |
local DictVector3 = {x = 1, y = 2, z = 3, w = 4} | |
local DictVector4 = {x = 1, y = 2, z = 3, w = 4} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
-- Batched Yield-Safe Signal Implementation -- | |
-- This is a Signal class which has effectively identical behavior to a -- | |
-- normal RBXScriptSignal, with the only difference being a couple extra -- | |
-- stack frames at the bottom of the stack trace when an error is thrown. -- | |
-- This implementation caches runner coroutines, so the ability to yield in -- | |
-- the signal handlers comes at minimal extra cost over a naive signal -- | |
-- implementation that either always or never spawns a thread. -- | |
-- -- | |
-- API: -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ASignal = require(game:GetService("ServerStorage").ASignal) | |
local FSignal = require(game:GetService("ServerStorage").FSignal) | |
local function FireMany(sig) | |
sig:Connect(function() end) | |
sig:Connect(function() end) | |
sig:Connect(function() end) | |
sig:Connect(function() end) | |
sig:Connect(function() end) | |
sig:Connect(function() end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import urllib.parse | |
import re | |
top_decks_url = "https://www.masterduelmeta.com/api/v1/top-decks?limit=0" | |
included_cards = { | |
"Lightning Storm": 1, | |
"Solemn Judgment": 1, |