Stopped reading SICP......
1
Name:
Anonymous
2008-02-15 17:22
and became an Auxiliary cop.
2
Name:
Anonymous
2008-02-15 17:29
M-x auxiliary-mode
3
Name:
Anonymous
2008-02-15 17:48
So I've been wondering, by what means should I learn shell programming?
4
Name:
Anonymous
2008-02-15 18:53
man
5
Name:
Anonymous
2008-02-15 19:02
>>3
You shouldn't. Other than piping, io redirection, and the ampersand/double ampersand bullshit, you should avoid shell scripting.
6
Name:
Anonymous
2008-02-15 19:03
>>5
And what, use PYTHON or PERL?
7
Name:
Anonymous
2008-02-15 19:06
8
Name:
Anonymous
2008-02-15 19:22
woman
9
Name:
Anonymous
2008-02-15 21:02
child
10
Name:
Anonymous
2008-02-16 4:30
11
Name:
Anonymous
2008-02-18 17:06
[code] ............................................________
....................................,.-‘”...................``~.,
.............................,.-”...................................“-.,
.........................,/...............................................”:,
.....................,?......................................................\,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:”........./
..............?.....__.........................................:`.........../
............./__.(.....“~-,_..............................,:`........../
.........../(_....”~,_........“~,_....................,:`........_/
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}
...........((.....*~_.......”=-._......“;,,./`..../”............../
...,,,___.\`~,......“~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-”
............/.`~,......`-...............................\....../\
.............\`~.*-,.....................................|,./.....\,__
,,_..........}.>-._\...................................|..............`=~-,
.....`=~-,_\_......`\,.................................\
...................`=~-,,.\,...............................\
................................`:,,...........................`\..............__
.....................................`=-,...................,%`>--==``
........................................_\..........._,-%.......`\
...................................,<`.._|_,-&``................`\[/code]
12
Name:
Anonymous
2008-02-18 17:07
[sup] ............................................________
....................................,.-‘”...................``~.,
.............................,.-”...................................“-.,
.........................,/...............................................”:,
.....................,?......................................................\,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:”........./
..............?.....__.........................................:`.........../
............./__.(.....“~-,_..............................,:`........../
.........../(_....”~,_........“~,_....................,:`........_/
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}
...........((.....*~_.......”=-._......“;,,./`..../”............../
...,,,___.\`~,......“~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-”
............/.`~,......`-...............................\....../\
.............\`~.*-,.....................................|,./.....\,__
,,_..........}.>-._\...................................|..............`=~-,
.....`=~-,_\_......`\,.................................\
...................`=~-,,.\,...............................\
................................`:,,...........................`\..............__
.....................................`=-,...................,%`>--==``
........................................_\..........._,-%.......`\
...................................,<`.._|_,-&``................`[/sup]
13
Name:
BBTest
2010-01-01 9:37
( defun open-brace-reader ( stream char)
( declare ( ignore char) )
( labels ( ( read-pair ( )
( let ( ( key #1=( read stream t nil t) )
( value #1#) )
`( make-hash-pair ,key ,value) ) ) )
`( make-hash
,@( loop
do ( loop while ( char= ( peek-char nil stream) #\ ) do ( read-char stream) )
if ( char= ( peek-char nil stream) #\,) do ( read-char stream)
else if ( char= ( peek-char nil stream) #\}) do ( progn ( read-char stream) ( return pairs) )
do ( peek-char nil stream)
collect ( read-pair) into pairs) ) ) )
( defun close-brace-reader ( stream char)
( declare ( ignore char stream) )
( error "unmatched close brace") )
;;; Test:
;( with-input-from-string ( i "\"abc\" 12 ,\"dfg\" 23 }")
; ( open-brace-reader i #\{) ) => ( MAKE-HASH ( MAKE-HASH-PAIR "abc" 12) ( MAKE-HASH-PAIR "dfg" 23) )
;;; There is no make-hash/make-hash-pair in CL, and I should have written the
;;; reader function to use the proper hashtable functions, however, in this case
;;; I'll just reimplement them through the standard hashtable functions:
( defun make-hash-pair ( key value) ( list key value) )
( defun make-hash ( &rest pairs)
( let ( ( ht ( make-hash-table :test #'equal) ) )
( dolist ( pair pairs ht)
( destructuring-bind ( key value) pair
( setf ( gethash key ht) value) ) ) ) )
;;; This implementation isn't very efficient. One could change the call to make-hash
;;; to use multiple-value-call and make-hash-pair to use values for some performance improvements
;;; Test:
;CL-USER> ( MAKE-HASH ( MAKE-HASH-PAIR "abc" 12) ( MAKE-HASH-PAIR "dfg" 23) )
;#<HASH-TABLE :TEST EQUAL :COUNT 2 {24A2B2A9}>
;CL-USER> ( maphash #'( lambda ( key value) ( format t "key: ~s, value: ~s~&" key value) ) *)
;key: "abc", value: 12
;key: "dfg", value: 23
;;; Now let's install the new syntax ( in a real-world scenario, you'd want to use one of those
;;; wonderful readtable managers, as you might want to define per-file syntaxes) ,
;;; but this is enough for simple toys like this:
( set-macro-character #\{ #'open-brace-reader)
( set-macro-character #\} #'close-brace-reader)
;;; Test:
;CL-USER> ( maphash #'( lambda ( key value) ( format t "key: ~S, value: ~S~&" key value) ) {"abc" 12 , "dfg" 23, #\Space 'lolwut, :is-this-worth-it 'not-really! })
;key: "abc", value: 12
;key: "dfg", value: 23
;key: #\ , value: LOLWUT
;key: :IS-THIS-WORTH-IT, value: NOT-REALLY!
15
Name:
Anonymous
2013-06-03 20:16
Does anyone know where the Lisp synagogue is?