Skip to content

Instantly share code, notes, and snippets.

View mtmiller's full-sized avatar

Mike Miller mtmiller

View GitHub Profile
@mtmiller
mtmiller / democ99.c
Created March 8, 2011 02:40
democ99.c - Demonstration program to separate C89 from C99
/* democ99.c - Demonstration program to separate C89 from C99
*
* Copyright (C) 2011 Mike Miller
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@mtmiller
mtmiller / ansicolortable
Created February 6, 2011 04:24
ansicolortable - display ANSI colours
#!/bin/sh
#
# ansicolortable - display ANSI colours.
#
# Copyright (C) 2011 Mike Miller
# Copyright (C) 2006 Wouter Bolsterlee
# License: CC-BY-SA-3.0
#
export esc="\033["
printf "\t 40\t 41\t 42\t 43\t 44 45\t46\t 47\n"