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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
post_image_to_facebook: function(d, f) { | |
var flashData = f[0]; | |
var bs = window.atob( flashData.image ); // data from flash without mime type and base64 identifier | |
var ia = new Uint8Array(bs.length); | |
for (var i = 0, a = bs.length; i < a; i++) { | |
ia[i] = bs.charCodeAt(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
class ByteArrayHelper | |
{ | |
public static function getSegments(source : ByteArray, size: int = 1000) : Array | |
{ | |
var result : Array = []; | |
if(!source) | |
{ | |
return result; |
NewerOlder