Skip to content

Instantly share code, notes, and snippets.

View crash_handler.c
#include "crash.h"
#define _GNU_SOURCE
#include <stddef.h> // NULL
#include <stdlib.h> // EXIT_FAILURE
#include <string.h> // strsignal
#include <stdarg.h> // va_list
#include <stdio.h> // vsnprintf
#include <signal.h>
View mph.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import typing
import random
import math
from typeguard import typechecked
class MPH(list):