Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am subtra3t on github.
  • I am subtra3t (https://keybase.io/subtra3t) on keybase.
  • I have a public key ASDBHFVUYP4UvLrH45munMb31ynCf0lvLHGxjyfhZT950go

To claim this, I am signing this object:

@subtra3t
subtra3t / urlgd.py
Created February 26, 2021 11:47
is.gd python
import urllib.request
def create(url, format="simple", logstats=False):
ascii_url = ""
for c in url:
if c in "1234567890qwertyuiopasdfghjklzxcvbnm.":
ascii_url += c
else:
ascii_url += "%" + str(int(str(ord(c)), 16))
@subtra3t
subtra3t / main.lua
Created February 24, 2021 10:32
Simple enlarging rectangle
-- A simple enlarging rectangle that stays in the middle of the screen
-- Made with the LOVE 2D framework in Lua
data = {
x = 300,
y = 250,
width = 200,
height = 100,
speed = 50
}
@subtra3t
subtra3t / main.py
Created December 21, 2020 08:21
Python Matrix generator
# This uses Python generators, so you can keep it open 24/7 and it won't crash your device or occupy a single byte of memory!
def matrix():
"""
Pass to this function a single iterative argument (preferably a tuple) that contains the characters or words
that you want the matrix to randomly take values from
"""
from random import randint