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/base | |
;;; License: MIT/Apache2.0 | |
(require browser/external | |
quickscript) | |
(script-help-string "Opens racket-stories.com in the browser.") | |
; Launch https://racket-stories.com in browser |
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/base | |
;;; License: MIT/Apache2.0 | |
(require browser/external | |
quickscript) | |
(script-help-string "Racket news and events.") | |
; Launch https://racket-news.com in browser |
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/base | |
(require browser/external | |
quickscript) | |
(script-help-string "Opens racket-news.com in the browser.") | |
; Launch https://racket-news.com in browser | |
(define-script racket-news | |
#:label "Racket News (browser)" | |
#:menu-path ("&News") | |
#:help-string "Opens racket-news.com." | |
(λ (str) |
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/base | |
(require browser/external | |
quickscript) | |
(script-help-string "Opens racket-news.com in the browser.") | |
; Launch https://racket-news.com in browser | |
(define-script racket-news | |
#:label "Racket News (browser)" | |
#:menu-path ("&News") | |
#:help-string "Opens racket-news.com." | |
(λ (str) |
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/base | |
(require browser/external | |
quickscript) | |
(script-help-string "Opens racket-news.com in the browser.") | |
; Launch https://racket-news.com in browser | |
(define-script racket-news | |
#:label "Racket News (browser)" | |
#:menu-path ("&News") | |
#:help-string "Opens racket-news.com." | |
(λ (str) |
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/gui | |
(require quickscript) | |
;;; License: MIT/Apache2.0 | |
(define (eye-canvas-mixin %) | |
(class % | |
(init-field (eye-diameter 100)) | |
(inherit refresh get-dc client->screen screen->client get-top-level-window) | |
(define pupil-diameter (/ eye-diameter 3)) |
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/gui | |
(define (eye-canvas-mixin %) | |
(class % | |
(init-field (eye-diameter 100)) | |
(inherit refresh get-dc client->screen screen->client get-top-level-window) | |
(define pupil-diameter (/ eye-diameter 3)) | |
(define pupil-r (* 1/2 pupil-diameter)) | |
(define r (/ eye-diameter 2)) | |
(define eye-x r) |
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/base | |
(require quickscript | |
racket/gui) | |
;;; | |
;;; BREAKOUT | |
;;; | |
; Jens Axel Søgaard, Feb 2014 |
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/gui | |
(define things | |
'(["cat" "cat command"] | |
["cow" "moo"] | |
["sheep" "baa"] | |
["dog" "woof"] | |
["bunny" "..."] | |
["cat" "cat command"] | |
["cow" "moo"] |
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/base | |
(provide match-url) | |
(define (match-url str) | |
(regexp-match-positions* #px"https?\\://\\S+" str)) |