Sha256: 159f8fe01f236d7fffbb1de8bec42f9159dadab6cfc7c331f2225b3563ee1cc4

Contents?: true

Size: 625 Bytes

Versions: 107

Compression:

Stored size: 625 Bytes

Contents

#lang racket

;; draw a graph of cos and deriv^3(cos)
(require plot)
(define ((deriv f) x)
  (/ (- (f x) (f (- x 0.001))) 0.001))
(define (thrice f) (lambda (x) (f (f (f x)))))
(plot (list (function ((thrice deriv) sin) -5 5)
            (function cos -5 5 #:color 'blue)))

;; Print the Greek alphabet
(for ([i (in-range 25)])
  (displayln
   (integer->char
    (+ i (char->integer #\u3B1)))))

;; An echo server
(define listener (tcp-listen 12345))
(let echo-server ()
  (define-values (in out) (tcp-accept listener))
  (thread (λ ()
             (copy-port in out)
             (close-output-port out)))
  (echo-server))

Version data entries

107 entries across 105 versions & 9 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/rouge-2.0.7/lib/rouge/demos/racket
tdiary-5.0.5 vendor/bundle/gems/rouge-2.1.1/lib/rouge/demos/racket
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rouge-2.0.7/lib/rouge/demos/racket
rouge-2.1.1 lib/rouge/demos/racket
rouge-2.1.0 lib/rouge/demos/racket
tdiary-5.0.4 vendor/bundle/gems/rouge-2.0.7/lib/rouge/demos/racket
rouge-2.0.7 lib/rouge/demos/racket
rouge-2.0.6 lib/rouge/demos/racket
rouge-2.0.5 lib/rouge/demos/racket
rouge-2.0.3 lib/rouge/demos/racket
rouge-2.0.2 lib/rouge/demos/racket
rouge-2.0.1 lib/rouge/demos/racket
rouge-2.0.0 lib/rouge/demos/racket
rouge-1.11.1 lib/rouge/demos/racket
rouge-1.11.0 lib/rouge/demos/racket
rouge-1.10.1 lib/rouge/demos/racket
rouge-1.10.0 lib/rouge/demos/racket
gitlab-rouge-1.9.2 lib/rouge/demos/racket
rouge-1.9.1 lib/rouge/demos/racket
rouge-1.9.0 lib/rouge/demos/racket