This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |