Skip to content

Instantly share code, notes, and snippets.

View pythonmcpi's full-sized avatar
💭
sometimes i wonder why my code works

Pipythonmc pythonmcpi

💭
sometimes i wonder why my code works
  • Somewhere
View GitHub Profile
@pythonmcpi
pythonmcpi / 0_readme.md
Last active June 12, 2024 14:46
Mapping of discord.py Permissions attribute names to permission names and descriptions displayed in the Discord client

This gist provides a mapping of discord.py Permissions attributes to the names and descriptions shown in the Discord client. If the client has multiple names/descriptions for guild/channel or different channel types, the version listed here should be the most generic one.

discord.py version at time of generation: 2.4.0a, commit 895d6c Discord client: build 301179

@pythonmcpi
pythonmcpi / lisp.js
Last active January 25, 2024 07:07
lisp-like syntax for javascript. This should not be allowed within 100 meters of production code. Demo: https://jsfiddle.net/pipythonmc/16Lcozxu/
const lisp = (() => {
const lib = {
version: '2.0.0',
};
lib.ast = {};
const DIGITS = /^[0-9]+$/;
function rawToken (token, line, col) {