https://apple.stackexchange.com/questions/94330/how-can-i-convert-a-dmg-to-iso-on-mac-os-x-preferably-for-free
hdiutil makehybrid -iso -joliet -o [filename].iso [filename].dmg
hdiutil makehybrid -iso -joliet -o [filename].iso [filename].dmg
// e.g. console.save({hello: 'world'}) | |
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; | |
} | |
if(!filename) filename = 'console.json' | |
if(typeof data === "object"){ | |
data = JSON.stringify(data, undefined, 4) |
function dataUrItoBlob(dataUri) { | |
var binary = atob(dataUri.split(',')[1]); | |
var mimeString = dataUri.split(',')[0].split(':')[1].split(';')[0]; | |
var array = []; | |
for (var i = 0; i < binary.length; i++) { | |
array.push(binary.charCodeAt(i)); | |
} | |
return new Blob([new Uint8Array(array)], { type: mimeString }); | |
}; |