Skip to content

Instantly share code, notes, and snippets.

View spdegabrielle's full-sized avatar

Stephen De Gabrielle spdegabrielle

View GitHub Profile
@spdegabrielle
spdegabrielle / botracket.json
Last active April 6, 2023 16:40
Tracery bots
{
"origin": ["#code#"],
"code": ["'(I love you)",
"(quote (I love you))",
"(list 'I 'love 'you)",
"(list (quote I) (quote love) (quote you))",
"(cons 'I (cons 'love (cons 'you '())))",
"(cons 'I (cons 'love (list 'you)))",
"(cons 'I (list 'love 'you))",
"(cons 'I '(love you))",
@spdegabrielle
spdegabrielle / level.rkt
Last active April 2, 2023 11:58
level data for untitled maze game
(vector
;0 4 8 2 6 0 4 8
"╔═══╗║T║╔════╕╒════╗║T║╔═══╗"
"║.*.║║t║║..*.║║.*..║║t║║.*.║"
"║...╚╝t╚╝.┌┐.║║.┌┐.╚╝t╚╝...║"
"║.........││.║║.││.........║"
"║.┌──┐.*..└┘.╚╝.└┘..*.┌──┐.║"
"║.└──┘................└──┘.║"
"║.┌──┐.┌┐.┌──────┐.┌┐.┌──┐.║"
"║.└──┘.││.└──┐┌──┘.││.└──┘.║"
@spdegabrielle
spdegabrielle / tracery.json
Created September 22, 2022 16:07
love racket bot tracery json
{
"origin": ["#code#"],
"code": ["'(I love you)",
"(quote (I love you))",
"(list 'I 'love 'you)",
"(list (quote I) (quote love) (quote you))",
"(cons 'I (cons 'love (cons 'you '())))",
"(cons 'I (cons 'love (list 'you)))",
"(cons 'I (list 'love 'you))",
"(cons 'I '(love you))",
@spdegabrielle
spdegabrielle / current-value-fancy.rkt
Created July 23, 2022 19:17 — forked from alex-hhh/current-value-fancy.rkt
Interactive overlays with the Racket Plot Package
#lang racket
(require racket/gui mrlib/snip-canvas plot pict racket/draw)
(define (pie-slice w h angle)
(define nangle (let ((npi (floor (/ angle (* 2 pi)))))
(- angle (* 2 pi npi))))
(define (draw dc dx dy) (send dc draw-arc dx dy w h (- (/ nangle 2)) (/ nangle 2)))
(dc draw w h))
(define item-font (send the-font-list find-or-create-font 12 'default 'normal 'normal))
@spdegabrielle
spdegabrielle / factcalc.rkt
Created February 22, 2022 17:24
(factorial 1000000)
#lang racket
(require math/number-theory)
(factorial 1000000)
@spdegabrielle
spdegabrielle / SketchingSVG.rkt
Created December 31, 2021 14:41
how to save an svg in Sketching
A couple of days a ago it was discussed how to save an svg in Sketching. Here is an example.
```
#lang sketching
(require (only-in racket/draw svg-dc%)
(only-in sketching/parameters current-dc))
(define WIDTH 200)
(define HEIGHT 200)
(define OUTPUT "my-svg.svg")
@spdegabrielle
spdegabrielle / insert-☯.rkt
Last active November 11, 2021 17:06
insert-☯.rkt
#lang racket/base
(require quickscript)
(script-help-string "A collection of keyboard shortcuts to support the Qi language.")
;; ☯
(define-script insert-☯
#:label "☯"
@spdegabrielle
spdegabrielle / paint.rkt
Created October 17, 2020 15:18 — forked from Metaxal/paint.rkt
A very simple painting program
#lang racket/gui
;; 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 pict)
(define line-width-init 1)
(define my-canvas%
@spdegabrielle
spdegabrielle / cer.md
Created September 26, 2020 19:49 — forked from amyjko/cer.md

Computing education research (CER), also known as computer science education (CSEd), is the study of how people learn and teach computing, broadly construed. This FAQ will teach you more about the field and how you might contribute to it.

What is computing education research?

First, CER is not teaching. Teaching is helping people acquire knowledge, skills, attitudes, beliefs, identities. Research is discovery and invention. Teachers teach computing, whereas computing education researchers make discoveries about this teaching and learning, and invent new ways for these teaching and learning to occur. CER is an example of discipline-based education research, like math education research or science education research, all of which are part of the broader field of education and learning sciences research.

CER is also not educational technology. Computing education researchers often create educational technologies to support the learning and teaching of computing, but CER is not explicitly concerned with the