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
;(function($){ | |
$.extend($, { | |
getParam: function(n,u) { | |
if(!u) var u = window.location.search; | |
var match = RegExp('[?&]' + n + '=([^&]*)').exec(u); | |
return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); | |
} | |
}) | |
})(window.Zepto || window.jQuery) |
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
<?php | |
define ("SERIAL_DEVICE_NOTSET", 0); | |
define ("SERIAL_DEVICE_SET", 1); | |
define ("SERIAL_DEVICE_OPENED", 2); | |
/** | |
* Serial port control class | |
* | |
* THIS PROGRAM COMES WITH ABSOLUTELY NO WARANTIES ! | |
* USE IT AT YOUR OWN RISKS ! |