Skip to content

Instantly share code, notes, and snippets.

@unthingable
unthingable / DataDictJSOexample.java
Created January 19, 2012 16:03
JSNI return types with CellTable
public class DataDictJSO extends JavaScriptObject {
...
public final native void put(String key, String obj) /*-{
this[key] = obj;
}-*/;
/**
* A slick way to get down to the object.
* @param keys can be "foo" or "foo.bar.baz"
* @param <T>
@unthingable
unthingable / tabbar.hs
Last active August 29, 2015 14:02
simple tabbed panel example
import Window
import Mouse
import Graphics.Input (Input, input, clickable)
import Dict
-- UTIL
enumerate : [a] -> [(Int, a)]
enumerate l = zip [1..length l] l