Skip to content

Instantly share code, notes, and snippets.

View SergeStinckwich's full-sized avatar
🎯
Focusing

Serge Stinckwich SergeStinckwich

🎯
Focusing
View GitHub Profile
@Geal
Geal / repl.st
Created May 24, 2011 09:04
A simple command line REPL (run it with a headless image)
OSProcess thisOSProcess stdOut
nextPutAll: 'Welcome to the simple Smalltalk REPL';
nextPut: Character lf; nextPut: $>; flush.
[ |input|
[ input := OSProcess readFromStdIn.
input size > 0 ifTrue: [
OSProcess thisOSProcess stdOut
nextPutAll: ((Compiler evaluate: input) asString;
nextPut: Character lf; nextPut: $>; flush
]
@SeanTAllen
SeanTAllen / gist:952748
Created May 3, 2011 02:57
Ugly pharo dumping to redline format
class := TestCase.
aStream := String new writeStream .
class superclass == nil
ifTrue: [aStream nextPutAll: 'ProtoObject']
ifFalse: [aStream nextPutAll: class superclass name].
aStream
nextPutAll: class kindOfSubclass;
store: class name;
crlf.