- Sublime Package Control for managing packages (like the ones below)
- Github theme for colors
- Soda theme for better chrome
- Sublime ERB keyboard shortcuts for ERB tags
My user settings:
|CABasicAnimation* animation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];|
|[animation setToValue:[NSNumber numberWithFloat:-M_PI/128]];|
|[animation setFromValue:[NSNumber numberWithDouble:M_PI/128]];|
Locate the section for your github remote in the
.git/config file. It looks like this:
[remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = firstname.lastname@example.org:joyent/node.git
Now add the line
fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
To conform to Apple's human-interface guidelines, you need to implement the following tasks when subclassing
UIViewController and including a
UITableView in your hierarchy (hence recreating
-[UIViewController viewWillAppear:], clear the selected row (if any) by sending the
-[UITableView deselectRowAtIndexPath:animated:] message.
-[UIViewController viewDidAppear:], send the
-[UITableView flashScrollIndicators] message.
NSKeyValueObserving addition to
NSObject adds an observe message that takes an identifying context pointer – don't use
NULL in its place.
Your superclass may observe the same key path for the same object. You need to pass along its observations, and only take actions on yours. The context pointer distinguishes which observations are yours.
static void *kContext = &kContext;
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
It became a big deal:
The two files are index.php (the homepage) and search.php (the search page)
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers $ grep UI_APPEARANCE_SELECTOR ./* | \ sed 's/NS_AVAILABLE_IOS(.*)//g' | \ sed 's/NS_DEPRECATED_IOS(.*)//g' | \ sed 's/API_AVAILABLE(.*)//g' | \ sed 's/API_UNAVAILABLE(.*)//g' | \ sed 's/UI_APPEARANCE_SELECTOR//g' | \