Skip to content

Instantly share code, notes, and snippets.

View ralsei's full-sized avatar
💤
tired

Tulip Amalie ralsei

💤
tired
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ix on github.
  • I am arcetera (https://keybase.io/arcetera) on keybase.
  • I have a public key whose fingerprint is BB87 C758 8151 FAF9 55CE 22A7 6691 0FE5 66D5 9754

To claim this, I am signing this object:

Personal build notes

2020-02-24

Tasks

Make sure comp bot moves

Notes

WoF

Current scaling function is $$0.03ln(d+1)+0.05$$ where $d$ is the number of colors from the target

Auton

@ralsei
ralsei / nightmare.rkt
Created June 14, 2021 14:57
I added delimeters to Racket to make it easier to find the end of a block :)
#lang racket/base
(module nightmare racket/base
(provide (rename-out [nightmare-#%app #%app]))
(require (for-syntax racket/base
racket/list
racket/match
syntax/parse))
(define-for-syntax (tser lst)
(match lst
@ralsei
ralsei / please-dont-use-this.rkt
Created June 21, 2021 02:07
Ergonomic O(1) arrays for Racket :)
#lang racket/base
(require (for-syntax racket/base
racket/syntax)
syntax/parse/define)
(provide define-aaarray aaarray-ref)
(define-syntax (define-aaarray stx)
(syntax-parse stx
[(_ name:id val:expr ...)
#:with (to-def ...) (for/list ([(_ idx) (in-indexed (in-list (attribute val)))])
@ralsei
ralsei / anscombe.rkt
Last active August 2, 2021 21:57
Anscombe's quartet in Racket, using Graphite and Sawzall
#lang racket
(require graphite
sawzall
threading)
;; anscombe's quartet, from R
;; each "x1" "y1" pair has extremely similar summary statistics
(define anscombe
(row-df [x1 x2 x3 x4 y1 y2 y3 y4]
10 10 10 8 8.04 9.14 7.46 6.58