Skip to content

Commit

Permalink
Remove some unneeded things from utils.rkt.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Dec 17, 2024
1 parent 81c17f8 commit 8344871
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions a86/scribblings/utils.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,5 @@
(syntax->datum #'fn)))))
#`(filebox (link (string-append "code/" fn) (tt fn)) (form #,(datum->syntax #'form s)))))]))

(define-syntax (filebox-include-fake stx)
(syntax-case stx ()
[(_ form fn . s)
#`(filebox (link (string-append "code/" fn) (tt fn)) (form . #,(map syntax-e (syntax->list #'s))))]))

(define (save-file f s)
(with-output-to-file f (λ () (display s)) #:exists 'replace))

(define (binary i [len 0])
(typeset-code #:block? #f #:indent 0
(string-append "#b"
(~a (number->string i 2)
#:left-pad-string "0"
#:align 'right
#:min-width len))))

0 comments on commit 8344871

Please sign in to comment.