Skip to content

Instantly share code, notes, and snippets.

View spdegabrielle's full-sized avatar
🏠
Working from home

Stephen De Gabrielle spdegabrielle

🏠
Working from home
View GitHub Profile
@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

@spdegabrielle
spdegabrielle / autocomplete-everywhere.md
Last active August 27, 2020 22:33
a terrible abuse of user defined keybindings
  1. save
  2. Edit->Keybindings->Add user-defined keybindings...
  3. enjoy!
@spdegabrielle
spdegabrielle / esq.rkt
Created August 16, 2020 22:54
Programming Languages as Operating Systems
#lang racket/gui
;; The repl editor class
(define esq-text%
(class text%
;; lexical access to inherited methods:
(inherit insert last-position get-text erase)
;; private fields:
(define prompt-pos 0)
(define locked? #t)
@spdegabrielle
spdegabrielle / esq.rkt
Created August 16, 2020 22:54
Programming Languages as Operating Systems
#lang racket/gui
;; The repl editor class
(define esq-text%
(class text%
;; lexical access to inherited methods:
(inherit insert last-position get-text erase)
;; private fields:
(define prompt-pos 0)
(define locked? #t)
@spdegabrielle
spdegabrielle / keyboard shortcuts.md
Created August 15, 2020 16:58
DrRacket Keyboard shortcuts

C-‹key› means press the Control key

M-‹key› (MacOS: [Esc] followed by but can also be set to [⌘]command or ALT ([⌥]option))

But these are not in the 'Show Keybindings' dialog;

The modifier identifiers are:

s: — All platforms: Shift

#lang racket/base
(require racket/match racket/list racket/port racket/string
flomat)
;;;
;;; Homogeneous coordinates for 3 dimensions
;;;
; Follow the tutorial
; http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/