Skip to content

Instantly share code, notes, and snippets.

View greut's full-sized avatar
:shipit:
available for hire

Yoan Blanc greut

:shipit:
available for hire
View GitHub Profile
@greut
greut / gist:98523
Created April 20, 2009 13:04 — forked from ask/gist:98452
def test_json(encode, decode):
data = {
"foo": u"The quick brown fæx jomps øver da læzy dåg",
}
x = encode(data)
print("ENCODED: %s" % x)
e = decode(x)
print("DECODED: %s" % e)
import simplejson
// jQuery makes me lazy :-)
$(document).ready(function($) {
var toReplace = "/trans.gif";
$('img[src$=png]').each(function() {
$(this).css({
width: $(this).width() + 'px',
height: $(this).height() + 'px',
filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + $(this).attr('src') + "', sizingMethod='scale')"
}).attr('src', toReplace);
});