First, install Xcode 6 beta.
And run it.
sudo xcode-select -switch /Applications/Xcode6-Beta.app/Contents/Developer
| echo "Downloading HD Videos…" | |
| curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.*._hd_.*dl=1">HD' | sed -e 's/\?dl=1">HD//g' | xargs -n1 wget -N -c | |
| echo "Downloading SD Videos…" | |
| curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.*._sd_.*dl=1">SD' | sed -e 's/\?dl=1">SD//g' | xargs -n1 wget -N -c | |
| echo "Downloading PDFs…" |
| NS_INLINE NSRange NSRangeMake(NSUInteger loc, NSUInteger len) { | |
| return NSMakeRange(loc, len); | |
| } | |
| NS_INLINE NSUInteger NSRangeMax(NSRange range) { | |
| return NSMaxRange(range); | |
| } | |
| NS_INLINE BOOL NSRangeContainsLocation(NSUInteger loc, NSRange range) { | |
| return NSLocationInRange(loc, range); |
| #define ApplicationDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate]) | |
| #define UserDefaults [NSUserDefaults standardUserDefaults] | |
| #define NotificationCenter [NSNotificationCenter defaultCenter] | |
| #define SharedApplication [UIApplication sharedApplication] | |
| #define Bundle [NSBundle mainBundle] | |
| #define MainScreen [UIScreen mainScreen] | |
| #define ShowNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = YES | |
| #define HideNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = NO | |
| #define NetworkActivityIndicatorVisible(x) [UIApplication sharedApplication].networkActivityIndicatorVisible = x | |
| #define NavBar self.navigationController.navigationBar |
| // | |
| // Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #if TARGET_OS_SIMULATOR | |
| static const char *fakeCarrier; | |
| static const char *fakeTime; |