- clang & llvm (make sure you have clang-cl)
- cmake (duh)
- git
Install xwin, you can also just use one of the unknown-linux
tarballs from the releases
[package] | |
name = "itertest" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
futures = "0.3.28" | |
pyo3 = "0.19.2" | |
pyo3-asyncio = { version = "0.19.0", features = ["tokio-runtime"] } | |
tokio = { version = "1.32.0", features = ["sync"] } |
Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.
To be able to send a colored text, you need to use the ansi
language for your code block and provide a prefix of this format before writing your text:
\u001b[{format};{color}m
# By default, X-Box 360-compatible controllers are detectable but dysfunctional because they expect the host | |
# to send a particular USB control transfer with some sort of initialization command. | |
# This udev rule will invoke a trivial Python script automatically when the gamepad is connected that emits | |
# the required initialization command. | |
# | |
# Integration: | |
# 1. Put this rule into /etc/udev/rules.d/51-xbox-gamepad.rules | |
# 2. Install pyusb for the root's Python: sudo pip install pyusb | |
# 3. Reload udev rules as root: udevadm control --reload-rules && udevadm trigger | |
# |