{-# LANGUAGE ExistentialQuantification #-}
Object model
module Object where
| #lang racket | |
| (require racket/math) | |
| (define (infix-eval expr) | |
| (let ([eval infix-eval]) ; alias | |
| (match expr | |
| ; atoms | |
| [(? number?) expr] | |
| ['pi pi] |
{-# LANGUAGE ExistentialQuantification #-}
Object model
module Object where
| #/bin/sh | |
| VERSION=1.0 | |
| ROOT=`pwd` | |
| PORT=8080 | |
| EXEC_NAME="$0" | |
| WORKER= | |
| IFS=`echo -en "\n\b"` | |
| get_ip() { |
In this tutorial we'll implement some simple
TCP/IP applications with ncat, bash and some
other standard UNIX tools. The principles learned
here can be used to implement networking applications
in other languages.
The $ or # in front of command line examples
denotes the system prompt. Do not type it
| default unit 100 mil; | |
| pcb { | |
| size 100mm 160mm; | |
| origin 10mm 10mm; | |
| dil 14 { | |
| 5 5 12 5; | |
| 5 7 12 7; | |
| mark "74HC00"; |
| nnoremap h :ba<Enter> | |
| nnoremap j 10j | |
| nnoremap k 10k | |
| nnoremap l :fo<Enter> | |
| "javascript to hide statusbar | |
| noremap <silent> <F8> :js toggle_bottombar()<CR> | |
| noremap : :js toggle_bottombar('on')<CR>: | |
| noremap o :js toggle_bottombar('on')<CR>o | |
| noremap O :js toggle_bottombar('on')<CR>O |
| public void init() throws InitializationException { | |
| lockActuator.init(); | |
| modemController.init(); | |
| modemController.addPhoneCallListener((phoneNumber) -> { | |
| eventQueue.offer(new PhoneCallEvent(phoneNumber)); | |
| }); | |
| } | |
| @Override | |
| @SuppressWarnings("SleepWhileInLoop") |
| double x; | |
| double y; | |
| double aika; | |
| double kirkkaus; | |
| double kyllaisyys; | |
| double savy; | |
| public void setup() { | |
| size(320, 240); |
| function message(str) { | |
| system("sleep 0.1"); | |
| printf("%s\r\n", str); | |
| printf(">>> %s\n", str) > "/dev/stderr"; | |
| system("sleep 0.1"); | |
| } | |
| { | |
| printf("<<< %s", $0) > "/dev/stderr"; | |
| if (! initialized) { |