Skip to content

Instantly share code, notes, and snippets.

# Antnee's Classy Filter! v3.0a
# https://www.pathofexile.com/forum/view-thread/1245785
# Instructions for use:
# Right-click this page, click "select all"
# Right click again, click "Copy"
# Open a new .txt document and paste the contents of this page into it
# USE ANSI ENCODING IF YOU USE NOTEPAD++ OR ANY OTHER TEXT EDITOR
# Click File/Save As
# Select "All Files" from the dropdown menu at the bottom
@ccbrown
ccbrown / DumpHex.c
Last active March 27, 2024 17:32
Compact C Hex Dump Function w/ASCII
#include <stdio.h>
void DumpHex(const void* data, size_t size) {
char ascii[17];
size_t i, j;
ascii[16] = '\0';
for (i = 0; i < size; ++i) {
printf("%02X ", ((unsigned char*)data)[i]);
if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') {
ascii[i % 16] = ((unsigned char*)data)[i];