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
function doWorker(arr, callback) { | |
var responses = {}; | |
arr.wait(function(name, next) { | |
var worker = F.worker(name, name); | |
worker.on('message', function(obj) { | |
// Save the message | |
responses[name] = obj; | |
// We have a result, continue ... |
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
Verifying that +petersirka is my blockchain ID. https://onename.com/petersirka |
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
// A simple SVG animation | |
$.fn.transform = function(obj, duration, easing, complete) { | |
var REG_TRANSFORM = /\}(?=\w)/g; | |
var REG_ROTATE = /[-0-9\.\s]+/; | |
var REG_TRANSLATE = /[-0-9\.]+(\,|\s)?[-0-9\.]+/; | |
var REG_SCALE = /[0-9\.]+/; | |
var REG_SKEW = /[-0-9\.]+/; | |
if (typeof(easing) === 'function') { |
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
/** | |
* Simple XML parser | |
* @param {String} xml | |
* @return {Object} | |
*/ | |
function parseXML(xml) { | |
var beg = -1; | |
var end = 0; | |
var tmp = 0; |
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
function assign(obj, path, fn) { | |
if (obj === null || typeof(obj) === 'undefined') | |
return obj; | |
var arr = path.split('.'); | |
var model = obj[arr[0]]; | |
for (var i = 1; i < arr.length - 1; i++) | |
model = model[arr[i]]; |
NewerOlder