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
| <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> | |
| <html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'> | |
| <head> | |
| <title>Demo (jPlayer 1.2.0) : jPlayer as a stylish audio player</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
| <script type="text/javascript" src="/static/js/jquery.min.1.4.2.js"></script> | |
| <script type="text/javascript" src="/static/js/jplayer/js/jquery.jplayer.min.js"></script> | |
| <link rel='stylesheet' href='/static/css/player.css' type='text/css'/> | |
| <script> | |
| (function(exports) { |
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
| var dir = function(object) { | |
| var util = require('util'); | |
| process.stdout.write(util.inspect(object,true,0) + '\n'); | |
| var prefix = ''; | |
| var list = function(obj) { | |
| if (!obj || !obj.__proto__) { | |
| return; | |
| } |
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
| var http = require('http'); | |
| var fs = require('fs'); | |
| var common = require('common'); | |
| var server = require('router').create(); | |
| server.get('/pattern/{id}/{one}/{two}/{three}/{four}/{five}.png', function(request, response) { | |
| var options = { | |
| host: 'www.colourlovers.com', | |
| port: 80, |
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
| var common = require('common'); | |
| var Delimited = common.emitter(function(socket) { | |
| var self = this; | |
| var buffer = ''; | |
| socket.setEncoding('utf-8'); | |
| socket.setTimeout(2*60*1000, function() { | |
| socket.destroy(); | |
| }); |
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
| module.exports = (function(){ | |
| var env = {}; | |
| // The port for the server to listen on. | |
| env.port = process.env.PORT || process.argv[3] || 8081; | |
| env.app = {}; | |
| // Fully qualified host of the data API | |
| env.app.apiEndpoint = 'http://localhost:8082'; |
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
| var message = function(id, facebook, callback) { | |
| var messages = []; | |
| common.step([ | |
| function(next) { | |
| facebook.api('/' + id + '/feed', next); | |
| }, | |
| function(data, next) { | |
| messages = fbfeed().normalize(data).data; | |
| if(!data.paging || !data.paging.next) { |
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
| joule:examples ian$ node usb_stick.js 720726 | |
| { _readableState: | |
| { highWaterMark: 0, | |
| buffer: [], | |
| length: 0, | |
| pipes: null, | |
| pipesCount: 0, | |
| flowing: false, | |
| ended: false, | |
| endEmitted: false, |
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
| ian@ubuntu:~/decoding-carelink$ sudo ./bin/mm-bolus.py --port /dev/ttyUSB0 --serial 913995 --init --515 --units 10 | |
| ## do stuff with an insulin pump over RF | |
| using ` Namespace(dryrun=False, init=True, no_postlude=False, no_prelude=False, no_rf_prelude=False, port='/dev/ttyUSB0', serial='913995', strokes_per_unit=10, units=10.0, verbose=None) ` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` |
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
| ## do stuff with an insulin pump over RF | |
| using ` Namespace(basal=True, clock=True, dryrun=False, init=False, minutes=30, no_postlude=False, no_prelude=False, no_rf_prelude=False, parsed_data=<open file '<stdout>', mode 'w' at 0x7f34233e8150>, port='/dev/ttyUSB0', reservoir=True, serial='913995', status=True, temp=True, verbose=None) ` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` |
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
| ian@ubuntu:~/diacon/decoding-carelink$ sudo ./bin/mm-send-comm.py --port /dev/ttyUSB0 --serial 913995 --init tweak Bolus --params 0 --params 40 | |
| ## do stuff with an insulin pump over RF | |
| using ` Namespace(begin=None, bytesPerRecord=None, command='tweak', descr=None, dryrun=False, effectTime=None, end=None, init=True, maxRecords=None, name=None, no_postlude=False, no_prelude=False, no_rf_prelude=False, other='Bolus', page=None, params=[0, 40], port='/dev/ttyUSB0', postfix=None, prefix=None, prefix_path='', save=False, saveall=False, serial='913995', verbose=None) ` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` | |
| ``` |
OlderNewer