This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. ;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$.widget("ui.mywidget", { | |
options: { | |
autoOpen: true | |
}, | |
_create: function(){ | |
// by default, consider this thing closed. |
NewerOlder