This file contains 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
#!/bin/bash | |
release=`git tag | tail -n 1` | |
if [ -n release ]; then | |
release="1.0" | |
fi | |
build=`git log --oneline HEAD | wc -l | awk '{print $1 }'` | |
# build=`git log -n1 --date=short --format="%ad (%h)"` | |
# Shows 2012-04-24 (5fb42cb) |
This file contains 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
- (void)zoomToFitMapAnnotations:(MKMapView *)mapView { | |
if ([mapView.annotations count] == 0) return; | |
int i = 0; | |
MKMapPoint points[[mapView.annotations count]]; | |
//build array of annotation points | |
for (id<MKAnnotation> annotation in [mapView annotations]) | |
points[i++] = MKMapPointForCoordinate(annotation.coordinate); |
This file contains 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
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul); | |
dispatch_async(queue, ^{ | |
NSString *ipaddress = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://ifconfig.me/ip"] encoding:NSUTF8StringEncoding error:NULL]; | |
dispatch_sync(dispatch_get_main_queue(), ^{ | |
[response respondWith:ipaddress]; | |
}); | |
}); |
This file contains 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
// | |
// NSDate+Age.h | |
// | |
// Created by Alex Yao on 7/8/12. | |
// Copyright (c) 2012 [email protected]. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSDate (Age) |
This file contains 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
source 'http://rubygems.org' | |
gem 'actionmailer', '2.3.8' | |
gem 'actionpack', '2.3.8' | |
gem 'activerecord', '2.3.8' | |
gem 'activeresource', '2.3.8' | |
gem 'activesupport', '2.3.8' | |
gem 'addressable', '2.2.6' | |
gem 'akami', '1.0.0' | |
gem 'apns', '0.9.0' |
This file contains 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
Pod::Spec.new do |s| | |
s.name = 'SVWebViewController' | |
s.version = '0.1' | |
s.summary = 'A drop-in inline browser for your iOS app.' | |
s.homepage = 'https://github.com/samvermette/SVWebViewController' | |
s.author = { 'Sam Vermette' => 'http://samvermette.com' } | |
s.source = { :git => 'https://github.com/samvermette/SVWebViewController.git', | |
:commit => '3044698e210318cca7d9acf5b2ca3394ea389723' } | |
s.platform = :ios | |
s.source_files = 'SVWebViewController/*.{h,m}' |
This file contains 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
[ | |
{ | |
"team":"JSSL Walcott", | |
"pos":"1", | |
"P":"13", | |
"W":"11", | |
"D":"2", | |
"L":"0", | |
"GF":"74", | |
"GA":"3", |