Skip to content

Instantly share code, notes, and snippets.

View QuanyiLi's full-sized avatar
🏠
Working from home

Quanyi Li QuanyiLi

🏠
Working from home
View GitHub Profile
@damascenodiego
damascenodiego / test_ff.py
Last active April 10, 2025 20:37
Code to test the force feedback feature in steering wheel controllers (tested wth the Logitech G29)
import evdev
from evdev import ecodes, InputDevice
device = evdev.list_devices()[0]
evtdev = InputDevice(device)
val = 65535 # val \in [0,65535]
evtdev.write(ecodes.EV_FF, ecodes.FF_AUTOCENTER, val)
@yrevar
yrevar / imagenet1000_clsidx_to_labels.txt
Last active January 29, 2026 17:42
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',