Skip to content

Instantly share code, notes, and snippets.

View Heliodex's full-sized avatar
📉
Programstinating

Lewin Kelly Heliodex

📉
Programstinating
View GitHub Profile
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)
@Heliodex
Heliodex / updateNov22.md
Created November 24, 2022 19:15
project update for projects

Heliodex Project Update - November 2022

An update to how all the projects I'm working on are going. Probably will do this a few times yearly.

TSBB

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.

@Rerumu
Rerumu / luau_in_luau.lua
Last active October 14, 2024 09:43
Luau translated to Luau, as a Studio compatible script
This file has been truncated, but you can view the full file.
-- 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
// 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
@Heliodex
Heliodex / upmanshipCorrector.py
Last active September 29, 2022 13:50
PRAW Reddit bot to correct wrong counting comments from r/oneupmanship
# 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 = ["#", "`", "*", "_", "~", "^",
@Heliodex
Heliodex / OnlineWebhookPinger.py
Created May 20, 2022 23:35
Ping a discord webhook to notify of the online status of a Roblox user.
# 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:
@aspose-com-gists
aspose-com-gists / pdf-to-html.py
Last active January 7, 2025 14:38
Convert PDF to HTML in Python
import aspose.words as aw
# Load the PDF file
doc = aw.Document("PDF.pdf")
# Save the document as HTML
doc.save("Document.html")

Blind Diffie-Hellman Key Exchange (blind ecash)

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

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

Operators

/*
* 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) {