Skip to content

Instantly share code, notes, and snippets.

View helmutkian's full-sized avatar

Helmut Kian Rohrbacher helmutkian

View GitHub Profile
@helmutkian
helmutkian / README.md
Created January 26, 2016 05:58
React + D3 Force Layout

This is an example of using ReactJs to render a force directed network graph. D3 performs all the positional calculations for each node and React handles rendering.

@helmutkian
helmutkian / clos_pattern_mixin.md
Created August 1, 2012 00:31
CLOS Mixin pattern

Mixin classes in CLOS are very similar to abstract base classes or interfaces in other object-oriented languages. Like interfaces in Java, they circumvent many of the issues associated with multiple-inheritence.

Imagine a senario in which one is tasked with building a platform-independent GUI framework. At the top of the widgit hierarchy sits a mixin WIDGIT-MIXIN:

(defclass widgit-mixin () ())
@helmutkian
helmutkian / lisp_pattern_factory.md
Created August 1, 2012 00:03
Factory Pattern in Common Lisp
public interface TextBoxFactory {
    
    public TextBox TextBox makeTextBox();
}


public abstract class TextBox {