Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env racket
|
||||
#lang racket
|
||||
(define file "NOTES.TXT")
|
||||
(require racket/date)
|
||||
(command-line #:args notes
|
||||
(if (null? notes)
|
||||
(if (file-exists? file)
|
||||
(call-with-input-file* file
|
||||
(λ(i) (copy-port i (current-output-port))))
|
||||
(raise-user-error 'notes "missing ~a file" file))
|
||||
(call-with-output-file* file #:exists 'append
|
||||
(λ(o) (fprintf o "~a\n\t~a\n"
|
||||
(date->string (current-date) #t)
|
||||
(string-join notes))))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue