Skip to content

Instantly share code, notes, and snippets.

@filipbec
filipbec / MW
Last active August 29, 2015 13:56
{
dateAdded = "2014-02-12T02:11:39.33";
dateCreated = "2014-02-12T16:14:08";
description = "<null>";
guid = sV9GYksIX1;
id = 53865;
md5 = 691b9d6d0fc4a0ed341fbf7b38d393b0;
originalFilename = "691b9d6d0fc4a0ed341fbf7b38d393b0.jpg";
thumbnail = {
guid = teROTUllsL;
{
"objectname": "album",
"objectguids": [
"cjLO4xCc"
],
"mediaassetguids": [
"sV9GYksIX1"
]
}
@filipbec
filipbec / 0_reuse_code.js
Created March 17, 2014 16:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
{
double scale = self.mapView.bounds.size.width / self.mapView.visibleMapRect.size.width;
if (scale < <#yourScaleLimit#>) {
[[NSOperationQueue new] addOperationWithBlock:^{
NSArray *annotations = [self.clusteringManager clusteredAnnotationsWithinMapRect:mapView.visibleMapRect withZoomScale:scale];
[self.clusteringManager setAnnotations:annotations forMapView:self.mapView];
}];
} else {
@filipbec
filipbec / gist:5998034874b119fab0e4
Created September 5, 2014 12:31
Scannr - Keys for obtaining US Driver's license data