Skip to content

Instantly share code, notes, and snippets.

@strobemonkey
strobemonkey / chat_room.opa
Created July 26, 2011 06:51
Opa Hello World examples
type message = {author: string
; text: string}
room = Network.cloud("room"): Network.network(message)
user_update(x: message) =
line = <div class="line">
<div class="user">{x.author}:</div>
<div class="message">{x.text}</div>
</div>
@strobemonkey
strobemonkey / Ext.ux.Sprocket.js
Created September 27, 2011 16:28
Ext.ux.Sprocket
/* Hierarchical PubSub for Extjs * Ext.ux.Sprocket.PubSub
* Version: 2.0
*
* Copyright (c) 2008-2009 - David Davis, All Rights Reserved
* [email protected]
* http://xant.us/
*
* License: BSD
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@strobemonkey
strobemonkey / fiddle.response.json
Created October 29, 2011 11:00
AmplifyJS fiddle.response.json
{
"foo" : "bar",
"baz" : "qux"
}
@strobemonkey
strobemonkey / fiddle.response.json
Created October 29, 2011 17:47
AmplifyJS Couchbase
{
"_id": "16082da4d4881adbdf6548012b000848",
"_rev": "1-aeed80105d238d26d5ba3685adbd7b6b",
"collection": "things",
"name": "Aardvark"
}