Skip to content

Instantly share code, notes, and snippets.

Filip Beć filipbec

Block or report user

Report or block filipbec

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8219f82bc29dc9d37fd7
- (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 Sep 5, 2014
Scannr - Keys for obtaining US Driver's license data
View gist:5998034874b119fab0e4
@filipbec
filipbec / 0_reuse_code.js
Created Mar 17, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:8977922
{
"objectname": "album",
"objectguids": [
"cjLO4xCc"
],
"mediaassetguids": [
"sV9GYksIX1"
]
}
View MW
{
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;
You can’t perform that action at this time.