Skip to content

asukiaaa/racket-practice

Repository files navigation

racket-practice

Setup

Environment

Downlad and install racket.

Download Racket

Editor

Install emacs.

Add the line as ~/.emacs.d/init.el to load melpa.

(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)

Start emacs and type M(Esc or Alt)-x + list-package then install racket-mode and paredit.

Add the following lines for ~/.emacs.d/init.el to activate paredit for racket.

(require 'paredit)
(add-hook 'racket-mode-hook 'paredit-mode)
(add-hook 'racket-repl-mode-hook 'paredit-mode)

On racket-mode, you can execute your code on repl by typing Ctrl-c twice.

Programs

first-program

./first-program

first-server

raco pkg install --auto web-server
racket first-server.rkt

You can access http://localhost:8001/first-page

first-gui

racket first-gui.rkt

Run with using standanlone file.

raco exe --gui first-gui.rkt
./first-gui

second, third gui

racket second-gui.rkt
racket thirg-gui.rkt

serial monitor

sudo apt install libserialport-dev
raco pkg install --auto libserialport
racket serial-monitor.rkt

first contract

racket first-contract.rkt

References

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages