This guide assumes your version of discord.py
is updated to at least v1.0 or greater.
You can check your version with pip show discord.py
.
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
""" | |
This gist shows how to run asyncio loop in a separate thread. | |
It could be useful if you want to mix sync and async code together. | |
Python 3.7+ | |
""" | |
import asyncio | |
from datetime import datetime | |
from threading import Thread | |
from typing import Tuple, List, Iterable |
Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
The list is maintained by maxi#0666. If anything is broken or missing, please DM me on Discord. Thank you!
This skin list is not up-to-date anymore. Head over to this site for the actual document.
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
# Inside WSL... | |
# Install virt-manager | |
sudo apt install -y virt-manager | |
# Add youself to kvm and libvirt group | |
sudo usermod --append --groups kvm,libvirt "${USER}" | |
# Fix-up permission to avoid "Could not access KVM kernel module: Permission denied" error | |
sudo chown root:kvm /dev/kvm |
... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.
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": "detailed forest landscape with lots of vibrant flowers and sakura trees", | |
"30": "anime 1girl reimu, view from behind", | |
"160": "anime 1girl reimu holding a grilled apple", | |
"280": "grilled apple", | |
"355": "anime 1girl kirisame marisa witch flying on a broomstick holding a grilled apple", | |
"500": "anime 1girl kirisame marisa witch flying on a broomstick", | |
"527": "anime 1girl kirisame marisa witch flying on a broomstick towards an intricate detailed mansion", | |
"987": "grilled apple stub", | |
"1347": "anime 1girl patchouli knowledge", |
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
{ | |
"W": 768, | |
"H": 512, | |
"tiling": false, | |
"seed": 1733594390, | |
"sampler": "Euler a", | |
"seed_resize_from_w": 0, | |
"seed_resize_from_h": 0, | |
"steps": 25, | |
"ddim_eta": 0.0, |
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
{ | |
"skip_video_for_run_all": false, | |
"fps": 24, | |
"make_gif": false, | |
"ffmpeg_location": "/home/kabachuha/.local/lib/python3.8/site-packages/imageio_ffmpeg/binaries/ffmpeg-linux64-v4.2.2", | |
"ffmpeg_crf": "17", | |
"ffmpeg_preset": "slow", | |
"add_soundtrack": "File", | |
"soundtrack_path": "bad_apple.webm", | |
"r_upscale_video": false, |