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
console.log = (function() { | |
var console_log = console.log; | |
var timeStart = new Date().getTime(); | |
return function() { | |
var delta = new Date().getTime() - timeStart; | |
var args = []; | |
args.push((delta / 1000).toFixed(2) + ':'); | |
for(var i = 0; i < arguments.length; i++) { | |
args.push(arguments[i]); |
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 should be easier, but due to an oversight in the checkpoint id's, it's a tad tricky (you need this revision/id stuff). | |
// I'll rework things to be cleaner in the near future. | |
function pruneHistory(firepadRef) { | |
var characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; | |
function revisionToId(revision) { | |
if (revision === 0) { | |
return 'A0'; | |
} | |
NewerOlder