This file contains hidden or 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
javascript:(function() { | |
var bookmarklet = { | |
init: function() { | |
this.parse(); | |
}, | |
parse: function() { | |
page = ""; | |
/* you must be viewing songs ie. http://www.rdio.com/people/nloko/collection/songs/ | |
when exporting a collection and this will only export the songs loaded in view, |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-git.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or 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
self.text = self.event.text; | |
__weak id wself = self; | |
NSString *imageUrl = self.event.imageUrl; | |
self.image = nil; | |
self.overlay.image = nil; | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
UIImage *image = [[wself downloadImage:imageUrl] scaleWithWidth:cellWidth]; | |
UIImage *blurredImage = [image blurRect:overlayRect]; |
This file contains hidden or 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
self.text = self.event.text; | |
__weak id wself = self; | |
NSString *imageUrl = self.event.imageUrl; | |
self.image = nil; | |
self.overlay.image = nil; | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
UIImage *image = [ImageCache sharedCache] get:imageUrl]; | |
if (!image) { |