Skip to content

Instantly share code, notes, and snippets.

@dualcoding
dualcoding / keybase.md
Created May 6, 2018 10:40
keybase proof of github ownership

Keybase proof

I hereby claim:

  • I am dualcoding on github.
  • I am enw (https://keybase.io/enw) on keybase.
  • I have a public key ASDhHZaw9dHDkANblhw48ocxL333VT5Htgmbo2ETq6u6_go

To claim this, I am signing this object:

@dualcoding
dualcoding / gist:5448588
Last active December 16, 2015 14:28
Broken 'Datatypes in C' hack.
#include <stdio.h>
/* Using 'modetype' instead of 'struct' tells us more about what to expect */
#define modetype struct
/* Make defining a modetype easier */
#define ModeTagItem(Type, Mode) Type##_is_##Mode,
#define ModeTag(Modes) enum { Modes(ModeTagItem) }