Skip to content

Instantly share code, notes, and snippets.

@leandrosilva
leandrosilva / README
Created August 29, 2010 04:05
Erlectricity sample (Erlang <-> Ruby)
This sample is strongly based on Erlectricity, avaliable from:
http://github.com/mojombo/erlectricity
The echo.rb is the same, but the echo.erl is really a little bit better. It's because I refactored it to
extract functions to send and receive messages and also (and more important) introduce some patterns on
receive statement to matching other messages (specially to receive exit_status messages from "dead" ports).
More sugar is always good. At least for me. ;)
(function($){
$.widget("ui.mywidget", {
options: {
autoOpen: true
},
_create: function(){
// by default, consider this thing closed.