Skip to content

Instantly share code, notes, and snippets.

Stefan Krecher StefanKrecher

Block or report user

Report or block StefanKrecher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RSI+MA.js
study("RSI+MA", overlay=true)
// data series for RSI with length 14
rsi = rsi(close, 14)
// data series for Moving Average with length 9
ma = sma(close, 9)
// data series for buy signals:
//price should be below the moving average and RSI should be smaller than 40
View SmalltalkGroovyExample.groovy
// Booleans
false.ifTrue { assert false }.ifFalse { assert true };
// Exceptions
{-> throw new NullPointerException("Buh!") }.on(NullPointerException).do { e ->
assert e in Exception
assert e in NullPointerException
assert !(e in ArithmeticException)
StefanKrecher / Smalltalk.groovy
Last active Aug 29, 2015
Smalltalkify Groovy: ifTrue/ ifFalse, on Exception do
View Smalltalk.groovy
class Smalltalk {
static Boolean ifTrue (Boolean self, Closure c) {
if(self) c()
static Boolean ifFalse (Boolean self, Closure c) {
if(!self) c()
static Boolean 'do' (Boolean self, Closure c) {
StefanKrecher /
Created Sep 19, 2012
simple workspace for GNU Smalltalk on Android
PackageLoader fileInPackage: 'Android'.
| layout event droid samples |
droid := Android new.
layout := '<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android=""
StefanKrecher /
Created Jan 5, 2012
Ambrhino (Smalltalk/Amber-, Java-, Javascript-Mixture) example: makes HTTP-GET-Request & display result on a JFrame
| url con is isr br line content pane frame |
url := <new URL('')>.
con := url openConnection.
is := con getInputStream.
isr := <new InputStreamReader(is)>.
br := <new BufferedReader(isr)>.
content := ''.
line := ''.
You can’t perform that action at this time.