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
# A B***nfuck jit using RPython | |
# To compile: | |
# *path-to-rpython* --continuation --translation-backendopt-print_statistics --lto --translation-backendopt-really_remove_asserts -Ojit --output bf bf.py | |
from rpython.rlib.rfile import llexternal | |
from rpython.rtyper.lltypesystem import rffi | |
from rpython.rlib import jit | |
from rpython.rlib.rarithmetic import intmask | |
c_getchar = llexternal('getchar', [], rffi.INT, save_err=rffi.RFFI_SAVE_ERRNO) |
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
# What this script does: | |
# 1: Download pypy2 windows binary | |
# 2: Rename exe to pypy2.exe (optional) | |
# 3: Append to Path | |
# 4: Download pypy3 source | |
# 5: add variable "rpython" and set it to {pypy3 source}\rpython\bin | |
# 6: Download pypy3 binary because we don't want to take a few years to build from source | |
# 7: Append to Path | |
# 7: To use rpython: | |
# pypy %rpython% {args} {file} |
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 os | |
import asyncio | |
import discord | |
from typing import Union | |
from discord_components import DiscordComponents, Button, ButtonStyle | |
from discord.ext import commands | |
bot = commands.Bot(command_prefix=";",help_command=None) | |
DiscordComponents(bot) |
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 discord | |
from discord.ext import commands | |
TOKEN="lmao not leaking my token again" | |
client=discord.Client() | |
bot = commands.Bot(command_prefix='-') | |
title='' | |
author='' | |
author_icon='' |