Skip to content

Instantly share code, notes, and snippets.

View Metaxal's full-sized avatar

Laurent Orseau Metaxal

  • Google DeepMind
  • London, UK
View GitHub Profile
@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 "☯"
@maueroats
maueroats / join-previous-line.rkt
Last active January 16, 2024 16:13
Racket quickscript to join one line to the previous line.
#lang racket/base
;; This file is placed in the public domain.
;; Version 1.5 Added testable version. Now add space only when needed. Related bugs fixed.
;; Version 1.4 Remove duplicate source code from gist.
;; Version 1.3 Get characters directly, per suggestion of Laurent O.
;; Version 1.2 Suggestions by Laurent O: help, menu, url2script-info.
;; Version 1.0 Initial release.
;;
@pmatos
pmatos / contracts.rkt
Created August 1, 2019 06:26
Optional enable Racket Contracts
#lang racket/base
;; ---------------------------------------------------------------------------------------------------
(require (for-syntax racket/base racket/string)
racket/contract
racket/require-syntax racket/provide-syntax
racket/match
racket/list
syntax/parse/define
racket/struct-info)
@khernyo
khernyo / racket-android-build.sh
Last active March 20, 2016 09:20
Make it build the android version properly
#!/bin/bash
set -e
SCRIPT_DIR=$( cd "$( dirname "$0" )" && pwd )
# the location of a clean racket repo which will be copied to avoid "git clone"-ing
REPO=$SCRIPT_DIR/../tools/racket
PLATFORM=linux-x86_64
@tonyg
tonyg / README.md
Created January 16, 2013 17:09
Racket custodians and namespaces for rebootable racket programs

Demonstrates the use of Racket's custodians and namespaces to create enough isolation to "reboot" programs without restarting the whole of Racket, including possibly recompiling and reloading code.

To experiment with this:

$ racket ~/src/racket-experiments$ racket
Welcome to Racket v5.3.1.4.
-> (require "reloader.rkt")
-> (load-and-foo)
Starting worker...

test-mod: "foo"

@jkominek
jkominek / pegasos.rkt
Created October 10, 2011 17:36
Implementation of Pegasos SVM for Racket
#lang racket
; Racket implementation of "Pegasos: Primal Estimated sub-GrAdient SOlver for SVM"
; http://www.cs.huji.ac.il/~shais/papers/ShalevSiSrCo10.pdf
; This is placed in the public domain, all rights are relinquished. Have at it.
; - Jay Kominek, 2011-10-10
(require racket/flonum)
(require (planet neil/levenshtein:1:3/levenshtein))