Skip to content

Instantly share code, notes, and snippets.

Avatar

Geoffrey Knauth gknauth

View GitHub Profile
View gist:8495554
#!/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 Aug 7, 2011
generate list of numbers from 0 to n-1 but in randomized order
View randlist.rkt
#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)