Skip to content

Instantly share code, notes, and snippets.


birb birb007

View GitHub Profile
birb007 /
Created Apr 20, 2020
Arguably, code is art.
assert (
lambda f:(lambda x: x(x)
)(lambda y: f(lambda x: y(y)(x))))(
lambda f: lambda n: ( lambda n: n(
lambda f: lambda x: lambda y: y())(
lambda x: lambda y: x()))(n)(
lambda: lambda f: lambda x: f(x))(
lambda: (lambda x: lambda y: lambda f: y(
x(f)))(n)(f(( lambda n: (lambda p: p(
lambda x: lambda y: y))( n((lambda p: (
birb007 / bug.c
Created Apr 19, 2020
Silent but deadly C.
View bug.c
/* Can you find the bug without ASan or Valgrind?
* $ gcc --version
* gcc (Arch Linux 9.3.0-1) 9.3.0
* $ gcc -Wall -Wextra -pedantic bug.c -o bug
#include <stdio.h>
#include <stdlib.h>
enum event_type { SUCCESS, FAILURE, WARNING, DEBUG };