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 curly-fn racket/base | |
| (provide λ + | |
| (rename-out [hash-percent-app #%app] | |
| [hash-percent-datum #%datum] | |
| [hash-percent-module-begin #%module-begin])) | |
| (require (for-syntax racket/hash | |
| syntax/id-table) | |
| (except-in macrotypes/typecheck #%module-begin) |
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 turnstile/lang | |
| (provide (rename-out [app #%app]) | |
| Integer String Maybe) | |
| (require (postfix-in - racket/base)) | |
| (define-syntax-category kind) | |
| (define-base-kind ★) |
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/port | |
| (only-in syntax/module-reader lang-reader-module-paths) | |
| syntax/readerr) | |
| (provide make-extension-reader) | |
| (define default-read-spec | |
| (lambda (in) |
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 (for-syntax racket/base | |
| racket/syntax | |
| syntax/parse | |
| syntax/transformer) | |
| racket/lazy-require | |
| racket/promise | |
| racket/runtime-path) |
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 ffi/unsafe | |
| ffi/unsafe/define | |
| net/base64 | |
| openssl/libcrypto | |
| (rename-in racket/contract [-> ->/c]) | |
| racket/match | |
| racket/random | |
| 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 (for-syntax racket/base | |
| racket/syntax | |
| syntax/parse) | |
| racket/contract | |
| racket/match) | |
| (provide define-datatype) |
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
| function fish_prompt | |
| set -l red (tput setaf 1) | |
| set -l green (tput setaf 2) | |
| set -l yellow (tput setaf 3) | |
| set -l blue (tput setaf 4) | |
| set -l magenta (tput setaf 5) | |
| set -l cyan (tput setaf 6) | |
| set -l lgray (tput setaf 7) | |
| set -l gray (tput setaf 8) | |
| set -l lred (tput setaf 9) |
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
| module Pi where | |
| import Data.List (genericLength) | |
| import Control.Arrow (Arrow, (<<<), (***), arr) | |
| import System.Random (newStdGen, randoms) | |
| type Point a = (a, a) | |
| chunk2 :: [a] -> [(a, a)] | |
| chunk2 [] = [] |
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 typed/racket/base | |
| (require (for-syntax racket/base | |
| racket/sequence | |
| racket/syntax | |
| syntax/parse | |
| syntax/stx) | |
| racket/match) | |
| (begin-for-syntax |
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/generic | |
| (prefix-in base: racket/base) | |
| (prefix-in base: racket/list)) | |
| ;; some simple interfaces — these are unchanged | |
| ;; --------------------------------------------------------------------------------------------------- | |
| (define-generics iterator |