Skip to content

Instantly share code, notes, and snippets.

@kennethho
kennethho / draft.txt
Last active August 29, 2015 13:56 — forked from evanzillians/draft.txt
thor
├── contrib
│   ├── bar
│   └── foo
├── include
│   └── thor
│   ├── lib-1
│    │   └── hdr-1.h // names in thor::lib-1
│   └── lib-2
│   └── hdr-2.h // names in thor::lib-2
@kennethho
kennethho / m_days.c
Last active December 18, 2015 18:59 — forked from moskytw/m_days.c
#include <stdio.h>
#define NUM_OF_ELEMENTS(array) (sizeof(array)/sizeof(array[0]))
main() {
int ys[] = {2011, 2012, 2100, 2400};
int i = 0, m = 0;
for(i = 0; i < NUM_OF_ELEMENTS(ys); i++) {