Skip to content

Instantly share code, notes, and snippets.

Busy AF


Busy AF
  • Amsterdam, Netherlands
View GitHub Profile
import matplotlib.pyplot as plt
import numpy as np
min = -5
max = 5
step = .1
width = (max-min)/step
fx0 = lambda x, y: abs(x) + abs(y)
Wouterr0 /
Created October 23, 2021 10:19
Python PNG parser
# PNG spec
import argparse
import binascii
import struct
from typing import cast
parser = argparse.ArgumentParser(prog="png_parse",
description="Parse a PNG file and show the file information",
epilog="See for the PNG spec")
Wouterr0 / hexdump.c
Last active October 23, 2021 10:19
Hexdump file to stdout
View hexdump.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include <math.h>
#define STR_HELPER(x) #x