Skip to content

Instantly share code, notes, and snippets.

View dotmh's full-sized avatar

Martin Haynes dotmh

View GitHub Profile
Information for device Controller (VID=0x045E PID=0x028E):
Connection Information:
------------------------------
Device current bus speed: FullSpeed
Device supports USB 1.1 specification
Device supports USB 2.0 specification
Device address: 0x000F
Current configuration value: 0x01
Number of open pipes: 7
@penguinbroker
penguinbroker / log.js
Created November 17, 2011 07:51
Paul Irish's logging solution
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
if(this.console) {
arguments.callee = arguments.callee.caller;
var newarr = [].slice.call(arguments);
(typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr));
}