This file contains hidden or 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
| require "rubygems" | |
| require "eventmachine" | |
| module Echo | |
| def receive_data data | |
| send_data(data) | |
| end | |
| end | |
| EM.epoll |
This file contains hidden or 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
| require 'rubygems' | |
| require 'pp' | |
| require 'logger' | |
| $LOAD_PATH << File.dirname(__FILE__) | |
| require 'proxy/base' | |
| require 'proxy/wibox_proxy' | |
| require 'sensors/reading' | |
| require 'sensors/sensor' |
This file contains hidden or 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
| Array.prototype.each = function(fn, scope) { | |
| var count = 0; | |
| while(count < this.length) { | |
| fn.call(scope || window, this[count], count) | |
| count++; | |
| } | |
| }; | |
| Array.prototype.search = function(fn) { | |
| var result = []; |
This file contains hidden or 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
| UrlEncoder = { | |
| /** | |
| * Encode a [deeply] nested object for use in a url | |
| * Assumes Array.each is defined | |
| */ | |
| encode: function(params, prefix) { | |
| var items = []; | |
NewerOlder