Skip to content

Instantly share code, notes, and snippets.

View a2cy's full-sized avatar

a2cy

View GitHub Profile
@a2cy
a2cy / nodebounce.sh
Created August 26, 2024 16:10
Disable double click prevention on linux
#!/bin/sh
sudo mkdir -p /etc/libinput
sudo tee /etc/libinput/local-overrides.quirks >/dev/null <<ENDHERE
[Never Debounce]
MatchUdevType=mouse
ModelBouncingKeys=1
ENDHERE
@a2cy
a2cy / voxel_ray_traversal.py
Last active October 9, 2025 13:43
3d voxel traversal algorithm in python visualized in ursina engine
from ursina import *
def traverse(position, direction, max_distance):
current_position = round(position, ndigits=0)
current_distance = 0
direction.normalize()
step_x = 1 if direction.x >= 0 else -1