#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
$ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install fabric |
#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
#define IS_IPHONE ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) | |
#define IS_IPAD ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) | |
#define IS_HEIGHT_GTE_568 ([[UIScreen mainScreen] bounds].size.height >= 568.0f && [UIScreen mainScreen].scale == 2.f) | |
#define IS_IPHONE_5 (IS_IPHONE && IS_HEIGHT_GTE_568) |
@interface UIColor (HexColor) | |
+ (UIColor *)colorWithHex:(NSString *)hexString; | |
@end |
alias ios='open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app' |
The following rules of programming style are excerpted from the book "The Elements of Programming Style" by Kernighan and Plauger, published by McGraw Hill. Here is quote from the book: "To paraphrase an observation in The Elements of Style by Strunk and White, the rules of programming style, like those of English, are sometimes broken, even by the best writers. When a rule is broken, however, you will usually find in the program some compensating merit, attained at the cost of the violation. Unless you are certain of doing as well, you will probably do best to follow the rules."
$ brew install https://raw.github.com/ummels/homebrew/fontforge/Library/Formula/fontforge.rb