Updated this for the first time in awhile in late 2020.
- Enable iCloud
- Disable iCloud mail
- Display to medium
- Turn up trackpad speed
user sax staff; | |
worker_processes 1; | |
daemon off; | |
error_log /var/log/nginx/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
pid /var/run/nginx.pid; |
// | |
// © 2008 Eugene Solodovnykov | |
// http://idevblog.info/mobileprovision-files-structure-and-reading/ | |
// | |
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) { | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
import plistlib | |
from StringIO import StringIO | |
def plist_from_mobileprovision(provision_path): | |
f = open(provision_path) | |
f.seek(62) | |
string = "" | |
lookfor = "</plist>" | |
found = False | |
while True: |
#!/bin/sh | |
RESULT=$(xcodebuild -configuration Debug RUN_CLANG_STATIC_ANALYZER=YES) | |
if `echo ${RESULT} | grep "generated." 1>/dev/null 2>&1` | |
then | |
echo "commit failed: anaylzer error found" | |
exit 1 | |
fi |
#ifndef NDEBUG | |
#define InfDebugLog( ... ) NSLog( __VA_ARGS__ ) | |
#else | |
#define InfDebugLog( ... ) | |
#endif |
#define blockSafe_cat(A, B) A##B | |
#define blockSafe_line(V, TMP) typeof(V) blockSafe_cat(blockSafe_tmp__, TMP) = V; __block typeof(V) V = blockSafe_cat(blockSafe_tmp__, TMP) | |
#define blockSafe(V) blockSafe_line(V, __LINE__) |
// Usage example: | |
// input image: http://f.cl.ly/items/3v0S3w2B3N0p3e0I082d/Image%202011.07.22%2011:29:25%20PM.png | |
// | |
// UIImage *buttonImage = [UIImage ipMaskedImageNamed:@"UIButtonBarAction.png" color:[UIColor redColor]]; | |
// .h | |
@interface UIImage (IPImageUtils) | |
+ (UIImage *)ipMaskedImageNamed:(NSString *)name color:(UIColor *)color; | |
@end |
1. Thou shalt always use Key Value Observing | |
2. Thou shalt not block the main thread | |
3. Thou shalt compile with zero errors or warnings | |
4. Thou shalt use #pragma mark to separate code into groups based on related functionality |