This file contains hidden or 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: Apache2.0/MIT | |
(require quickscript | |
quickscript/base | |
quickscript/library | |
racket/gui/base | |
racket/class | |
racket/file |
This file contains hidden or 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 | |
;;; | |
;;; Stare at your code falling like rocks. | |
(require quickscript | |
framework/preferences ; to disable syncheck | |
racket/class | |
racket/string) |
This file contains hidden or 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
(define map-global-function | |
(let* ([km-global (keymap:get-global)] | |
[table (for/hash ([name (in-list (dict-values (send km-global get-map-function-table)))]) | |
(values name #t))]) | |
(λ (km key name) | |
(unless (dict-has-key? table name) | |
(error "Unknown function" name)) | |
(send km add-function name | |
(λ (in ev) | |
(send km-global call-function name in ev #t))) |
This file contains hidden or 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 | |
;;; From: https://github.com/Quickscript-Competiton/July2020entries/issues/9 | |
;;; License: Apache 2/MIT | |
#| | |
My first submitted Racket Quickscript | |
(mostly a proof-of-concept, to try my hand at writing these) |
This file contains hidden or 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 quickscript | |
racket/gui/base | |
racket/class | |
racket/list | |
racket/match | |
racket/string |
This file contains hidden or 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 racket/gui/base | |
racket/class | |
racket/list | |
quickscript | |
quickscript/utils | |
framework | |
search-list-box) |
This file contains hidden or 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 | |
;;; License: MIT/Apache2 | |
(require quickscript | |
search-list-box) | |
(script-help-string "Show active keybindings") | |
(define-script keybindings |
This file contains hidden or 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: [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) or | |
;;; [MIT license](http://opensource.org/licenses/MIT) at your option. | |
(require racket/list) | |
(define mstructs (make-hasheq)) | |
;; mstruct's can be used just like normal structs, but can also use the nicer `construct` constructor. |
This file contains hidden or 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: [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) or | |
;; [MIT license](http://opensource.org/licenses/MIT) at your option. | |
(require quickscript | |
racket/class) | |
(define-script move-line-up | |
#:label "move-line-up" |
This file contains hidden or 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: [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) or | |
;; [MIT license](http://opensource.org/licenses/MIT) at your option. | |
(require quickscript | |
racket/class) | |
(script-help-string "Saves the interactions to a pdf file") |