Skip to content

Instantly share code, notes, and snippets.

View matrinox's full-sized avatar

Geoffrey Lee matrinox

  • Taipei
View GitHub Profile
NSMutableArray *mapItems = response.mapItems.mutableCopy;
[mapItems sortUsingComparator:^NSComparisonResult(MKMapItem *item1, MKMapItem *item2) {
return [@([item1.placemark.location distanceFromLocation:location]) compare:@([item2.placemark.location distanceFromLocation:location])];
}];
- (id)initWithCoder:(NSCoder *)aDecoder {
if ( self == [super initWithCoder:aDecoder] ) {
self.delegate = self;
}
return self;
}
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
}
@matrinox
matrinox / rvm_debug_big.log
Created August 6, 2015 21:51
big.log output for debugging rvm
/Users/username/.rvm/gems/ruby-2.2.2@chevron
usage: 'rvm alias [alias_name] [ruby_string]'
Regenerating ruby-2.1.5 wrappers........
/Users/username/.rvm/gems/ruby-2.1.5
+ : 7 > cd secure-springs-5928/
+ /scripts/cd : cd() 0 > __zsh_like_cd cd secure-springs-5928/
+ /scripts/extras/bash_zsh_support/chpwd/function.sh : __zsh_like_cd() 1 > typeset __zsh_like_cd_hook
+ /scripts/extras/bash_zsh_support/chpwd/function.sh : __zsh_like_cd() 3 > builtin cd secure-springs-5928/
bash: cd: secure-springs-5928/: No such file or directory
+ /scripts/extras/bash_zsh_support/chpwd/function.sh : __zsh_like_cd() 14 > return 1
@matrinox
matrinox / GABlockDelegate.h
Last active January 1, 2016 17:09
Blocks over delegates
//
// GABlockDelegate.h
// GAToolkit
//
// Created by Geoff on 12/29/2013.
// Copyright (c) 2013 Geoff. All rights reserved.
//
#import <Foundation/Foundation.h>