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
rm -rf "${HOME}/Library/Caches/CocoaPods" | |
rm -rf "`pwd`/Pods/" | |
pod update |
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
// | |
// NSString-truncateToSize | |
// Fast Fonts | |
// | |
// Created by Stuart Shelton on 28/03/2010. | |
// Copyright 2010 Stuart Shelton. | |
// | |
// NSString truncate function for Objective C / iPhone SDK by | |
// Stuart Shelton is licensed under a Creative Commons Attribution 3.0 | |
// Unported License (CC BY 3.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
// | |
// CircularPointArray.h | |
// | |
// Created by @richy486 on 8/04/2015. | |
// Copyright (c) 2015 @richy486. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface CircularPointArray : NSObject |
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
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
+ (NSString *) platform; |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |
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
// | |
// UIImage+AverageColor.h | |
// | |
// | |
// Created by Richard Adem on 3/07/2015. | |
// Copyright (c) 2015 Richard Adem. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
# logcat in terminal | |
adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG | |
# log to file | |
adb shell logcat > log.txt | |
# list packages | |
adb shell pm list packages | |
# full path to package |
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
# copy source folder over the top of destination folder without deleting the destination | |
ditto -v /path/to/source/folder /path/to/destination/folder | |
# list all processes of application | |
ps -ax | grep [application name] | |
# kill all processes with tty | |
killall -t [tty number] |
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
# simple osx web server | |
python -m SimpleHTTPServer 8080 |