Skip to content

Instantly share code, notes, and snippets.

@zats
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zats/bc3083faf59926476392 to your computer and use it in GitHub Desktop.
Save zats/bc3083faf59926476392 to your computer and use it in GitHub Desktop.
Random kitten as a debugQuickLookObject
- (id)debugQuickLookObject {
NSUInteger width = 100 + (([self hash] >> 4) & 0xFF);
NSUInteger height = 100 + (([self hash] >> 8) & 0xFF);
return [NSURL URLWithString:[NSString stringWithFormat:@"http://placekitten.com/%tu/%tu", width, height]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment