Skip to content

Instantly share code, notes, and snippets.

View garyburd's full-sized avatar
I am not available until further notice.

Gary Burd garyburd

I am not available until further notice.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am garyburd on github.
  • I am gburd (https://keybase.io/gburd) on keybase.
  • I have a public key whose fingerprint is 0A74 FEE4 D997 7641 0AA7 3AB3 CEE1 F9AB 8CD8 C2FE

To claim this, I am signing this object:

@garyburd
garyburd / rpn.c
Created December 8, 2011 07:47
My first C program
/* rpn.c -- reverse polish notation calculator. G.S.BURD 25-Mar-1984 */
#include <math.h>
#include <stdio.h>
#include <ctype.h>
extern char *fgets();
extern double push(), pop();
/* function codes */
@garyburd
garyburd / gist:1368458
Created November 15, 2011 21:42
Execute child template with map constructed from values in parent template.
package main
import (
"errors"
"log"
"os"
"text/template"
)
func mapfn(kvs ...interface{}) (map[string]interface{}, error) {