Skip to content

Instantly share code, notes, and snippets.

View francescopetrungaro's full-sized avatar

Francesco francescopetrungaro

View GitHub Profile
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
@francescopetrungaro
francescopetrungaro / DeviceHardwareInfo.h
Last active December 24, 2015 11:29
Common method to retrieve the iOS device being used. (Updated for iPhone 5c and iPhone 5s)
//
// DeviceHardwareInfo.h
//
// Common method to retrieve the device model version.
#import <Foundation/Foundation.h>
@interface DeviceHardwareInfo : NSObject
+ (NSString *) deviceModel;