A metatable can be defined like
local t = setmetatable({}, {
__tostring = function() return 'custom tostring behavior!' end
})
Here are the metamethods that you can define, and their behavior
/* | |
* Stripe WebGl Gradient Animation | |
* All Credits to Stripe.com | |
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and | |
* commented out for now. | |
* https://kevinhufnagl.com | |
*/ | |
//Converting colors to proper format | |
function normalizeColor(hexCode) { |
The goal of this protocol is for Bob to get Alice to perform a Diffie-Hellman key exchange blindly, such that when the unblinded value is returned, Alice recognizes it as her own, but can’t distinguish it from others (i.e. similar to a blind signature).
Alice:
A = a*G
return A
Bob:
Y = hash_to_curve(secret_message)
r = random blinding factor
import aspose.words as aw | |
# Load the PDF file | |
doc = aw.Document("PDF.pdf") | |
# Save the document as HTML | |
doc.save("Document.html") |
# Heliodex 2022/05/20 | |
# Last edited 2022/05/20 | |
# Checks every minute to see if a Roblox user is online, and pings a discord webhook if that status has changed. | |
import requests | |
import json | |
from time import sleep | |
from dateutil import parser | |
while True: |
# Heliodex 2022/05/13 | |
# Last edited 2022/09/29 -- Update the latest comment thread automatically every 100 upmanships | |
# In response to repeated requests to create a bot that corrects peoples' upmanships | |
import praw | |
import praw.models.reddit.comment | |
completedComments = open("ids.txt", "r+") | |
lines = completedComments.read().split() | |
specialChars = ["#", "`", "*", "_", "~", "^", |
// Find the latest version of this script here: | |
// https://gist.github.com/rsms/a8ad736ba3d448100577de2b88e826de | |
// | |
const EM = 2048 | |
interface FontInfo { | |
familyName :string | |
styleName :string | |
unitsPerEm :int | |
ascender :int |
-- Roblox's Luau as a Luau script | |
-- Translated using https://github.com/Rerumu/Wasynth | |
local luau_script = [[ | |
print("Hello, World!") | |
]] | |
local Integer = (function() | |
local Numeric = {} | |
local NUM_ZERO, NUM_ONE, NUM_SIX_FOUR |
An update to how all the projects I'm working on are going. Probably will do this a few times yearly.
TSBB (Typing Simulator But Better), a typing game I've been working on alongside a few others and the sort-of succesor to Typing Simulator by S-GAMES, has been stuck in development hell for... sixteen months now.
It's essentially complete though (i promise), and all that is needed is a name for the project. Please give suggestions, as I have basically no ideas. "Typing Simulator" is already polluted with games in Roblox search results, and "TSBB" isn't catchy or descriptive.
local NilDependency = newproxy(true) | |
local Metatable = getmetatable(NilDependency) | |
function Metatable:__tostring() | |
return "NilDependency" | |
end | |
local function GetDependencies(...) | |
local Length = select("#", ...) | |
local Dependencies = table.create(Length) |