Skip to content

Instantly share code, notes, and snippets.

View gknauth's full-sized avatar

Geoffrey Knauth gknauth

View GitHub Profile
#!/bin/bash
PGV=93
PGBIN=/opt/local/lib/postgresql${PGV}/bin
PGDEFDB=/opt/local/var/db/postgresql${PGV}/defaultdb
PGLOG=/opt/local/var/log/postgresql${PGV}/postgres.log
DBUSER=${USER}
## I had ALREADY used MacPorts to install the latest PostgreSQL server.
# sudo port -v selfupdate
@gknauth
gknauth / randlist.rkt
Created August 7, 2011 19:00
generate list of numbers from 0 to n-1 but in randomized order
#lang racket
; shuffle-list is interesting, check it out!
(require games/cards/utils)
; seed the random number generator
(random-seed (modulo (current-milliseconds) 10000))
; generates list of numbers from 0 to n-1 but in randomized order
(define (random-number-list n)