Skip to content

Instantly share code, notes, and snippets.

@aherrman
aherrman / gist:224258
Created November 2, 2009 16:26
LocalConnection size limit workaround helpers attempt
/**
* Calculates the size of an object. This is based on SharedObject.getSize().
* @param o The object to get the size of
* @return The size of the object.
*/
public static function getObjectSize(o:Object):Number {
var so:SharedObject = SharedObject.getLocal("__getObjectSizeHelper");
so.data.o = o;
var size:Number = so.getSize();
so.clear();
@aherrman
aherrman / gist:204107
Created October 7, 2009 14:51
Firefox search plugin to open document in google docs
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Google Viewer</os:ShortName>
<os:Description>View document in google docs</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIjSURBVHjanJFfSFNRHMe/9+xud/+62ubmYIEFoZUpvrQ99JD1HFFvPQVhZVIo5KugElTkSKOoDAZB4EsP1WtQFBixF4shtWkMi4bztpzuunvddPd0znSVeQ3yB18u5/7O9/P7nnMESim2qgej0XabJPXX+evb3bKMxYUcctnsh1KxOHixs+MZ3yNsBRgeuXthf0vraEPTAVBiQXWfBQa+TiWQmko+YpCzpoC+voHDR44dHd/d3IZCcWVT3ymJSE3GMfN5+hT5uykIgrTT6xnY29y6wWywQYt6CT+WlvFdXUbTwRYQQvpFk/RefyAY0o3fP7hRUXWIFgKHTYRQLkMrUwiSq80M4MzldZka9Jc5k9dYbCtqnRJkuxWSaIGLrRfyDGoCIGllPs0mBYtasTLZxgzc7HPbUeOwVVIQCMgyADEBrIxPfIyVtAK00ip4ED69xr6WwOuSKpC0kkUsnnxtBtA9FhWRe48RkB0gAljktbM7mXiazLyK29EnWDWMwU3POBQZicxm5npnVQppRy16zp2GL+CDlRC42fMlZ9KIjj3HRDzR+e7p/Ycb7uD6jcjlcDjU663