Skip to content

Instantly share code, notes, and snippets.

View dtomic28's full-sized avatar

Danijel Tomić dtomic28

View GitHub Profile
@AlexSoulEdge
AlexSoulEdge / config.cfg
Last active January 29, 2024 14:04
[CS:GO] Default Config File -> \Steam\userdata\358696705\730\local\cfg
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
@ikautak
ikautak / reverse_bit.c
Last active March 21, 2024 17:55
reverse MSB LSB bit.
unsigned char reverse_bit8(unsigned char x)
{
x = ((x & 0x55) << 1) | ((x & 0xAA) >> 1);
x = ((x & 0x33) << 2) | ((x & 0xCC) >> 2);
return (x << 4) | (x >> 4);
}
unsigned short reverse_bit16(unsigned short x)
{