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 requests | |
import asyncio | |
import aiohttp | |
import aiofiles | |
get_img_url = lambda i: 'https://cdn.discordapp.com/embed/avatars/' + str(i) + '.png' | |
def download_all_sync(): |
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
# usage: (python3 a.py < a.in) > a.out | |
import time, sys, inspect, platform | |
print = lambda *a, **k: __builtins__.print(str(inspect.currentframe().f_back.f_lineno)+':', | |
*a, file=sys.stderr, **k) if platform.node() in ['surfux', 'ssd'] else ... | |
#--------------------------------------------- | |
''' | |
i know this is 'sort-by-goodness' |
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
# usage: (python3 a.py < a.in) > a.out | |
import time, sys, inspect, platform | |
print = lambda *a, **k: __builtins__.print(str(inspect.currentframe().f_back.f_lineno)+':', | |
*a, file=sys.stderr, **k) if platform.node() in ['surfux', 'ssd'] else ... | |
class EndTestCase(Exception): pass | |
#--------------------------------------------- |
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
""" | |
Play a simple game of pong in a window. | |
Player 0 controls: (W, S) Player 1 controls: (O, L). Quit: (Q) | |
The ball bounces differently if you move while hitting it. | |
This also includes a slight factor of randomness. | |
Requires: pyglet, 10x10 image in directory: "white_square.png" | |
""" |
OlderNewer