Skip to content

Instantly share code, notes, and snippets.

View ruxxzebre's full-sized avatar
🎯
Focusing

ruxxzebre ruxxzebre

🎯
Focusing
View GitHub Profile
@SomajitDey
SomajitDey / WSL2-Windows_port-forward.md
Last active August 2, 2025 18:50
How to forward WSL2 port to Windows port and vice versa
@david-a-perez
david-a-perez / fastest_day6_part2.rs
Last active April 22, 2025 05:44
Advent of Code 2023 Day 6 Optimizations
// time: [1.8843 µs 1.8897 µs 1.8955 µs]
pub fn original(input: &[u8]) -> Option<usize> {
let mut idx = 0;
'outer: while idx + 13 < input.len() {
let mut state = 0;
for (next_idx, byte) in input[idx..idx + 14].iter().enumerate().rev() {
let bit_idx = byte % 32;
if state & (1 << bit_idx) != 0 {
idx += next_idx + 1;
continue 'outer;
@tigregalis
tigregalis / build-aseprite-win10.md
Last active August 13, 2025 17:29
building aseprite on windows