This gist will outline all the bad practices shown by the youtuber Lucas in his Making a discord bot series
This file contains hidden or 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
{ | |
"0": "General error (such as a malformed request body, amongst other things)", | |
"10001": "Unknown account", | |
"10002": "Unknown application", | |
"10003": "Unknown channel", | |
"10004": "Unknown guild", | |
"10005": "Unknown integration", | |
"10006": "Unknown invite", | |
"10007": "Unknown member", | |
"10008": "Unknown message", |
Neuralblock Website: https://ai.neuralblock.app
To use it just save it to a file then use
python filename.py videoid
replace filename with your file name and videoid with the video id
This file contains hidden or 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
{ | |
' ': ['\xa0', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200a', '\u202f', '\u205f', '\u3000'], | |
'!': ['︕', '﹗', '!'], | |
'!?': ['⁉'], | |
'"': ['"'], | |
'#': ['﹟', '#'], | |
'$': ['﹩', '$'], | |
'%': ['﹪', '%'], | |
'&': ['﹠', '&'], | |
"'": ['''], |
Got code that looks like this, and it's not working properly?
if x == "foo" or "bar" or "baz":
Python is interpreting this as though it was this:
if (x == "foo") or ("bar") or ("baz"):
If the first expression (x == "foo"
) isn't true, the second ("bar"
) will be, so this compound conditional always passes.
Try this instead:
This file contains hidden or 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
__future__ | |
__hello__ | |
__phello__ | |
_abc | |
_aix_support | |
_ast | |
_asyncio | |
_bisect | |
_blake2 | |
_bootsubprocess |
I hereby claim:
- I am wasi-master on github.
- I am wasimaster (https://keybase.io/wasimaster) on keybase.
- I have a public key whose fingerprint is 0214 4B65 1422 C52E A8C5 5E39 5B87 09DF C524 5072
To claim this, I am signing this object:
This file contains hidden or 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
@-moz-document domain("wikipedia.org") { | |
/* ==UserStyle== | |
@name Dracula for Wikipedia | |
@version 0.1.0 | |
@description Dark theme for Wikipedia | |
@namespace wasi-master/dracula-wikipedia | |
@author Wasi Master <[email protected]> (https://wasi-master.github.io) | |
@homepageURL https://github.com/dracula/wikipedia | |
@supportURL https://github.com/dracula/wikipedia/issues | |
@updateURL https://github.com/dracula/wikipedia/raw/master/wikipedia.user.css |
This file contains hidden or 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
eval(eval('str(str)[+all([])]')+'t'+eval(''+eval('str(str)[+all([])]')+eval('str(str'+eval('str('+str(eval)[eval(str((+all([])))+str((+all([[]]))))]+'l'+str(eval)[eval(str((+all([])))+str((all([])+all([])+all([])+all([])+all([])+all([]))))]+'at((+all([]))))[(+all([]))]')+str(str)[+all([])]+str(eval)[eval(str((+all([])))+str((all([])+all([])+all([])+all([])+all([])+all([]))))]+str(eval)[(all([])+all([]))]+str(eval)[(all([])+all([])+all([])+all([])+all([])+all([])+all([])+all([]))]+'t)[(all([])+all([])+all([])+all([]))]')+'r('+str((+all([])))+str((all([])+all([])))+str((+all([[]])))+')')+eval('str('+str(eval)[eval(str((+all([])))+str((+all([[]]))))]+'l'+str(eval)[eval(str((+all([])))+str((all([])+all([])+all([])+all([])+all([])+all([]))))]+'at((+all([]))))[(+all([]))]')+eval(''+eval('str(str)[+all([])]')+eval('str(str'+eval('str('+str(eval)[eval(str((+all([])))+str((+all([[]]))))]+'l'+str(eval)[eval(str((+all([])))+str((all([])+all([])+all([])+all([])+all([])+all([]))))]+'at((+all([]))))[(+all([]))]')+str(str)[ |
OlderNewer