This file contains hidden or 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
| #ifndef ma_concurrent_queue_h | |
| #define ma_concurrent_queue_h | |
| // Based on code from http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html | |
| // Original version by Anthony Williams | |
| // Modifications by Michael Anderson | |
| #include "boost/thread.hpp" | |
| #include <deque> |
This file contains hidden or 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
| http://stackoverflow.com/questions/4985816/how-do-i-pop-the-view-controller-underneath-a-pushed-view-controller | |
| // pop back 2 controllers on the stack to the setup screen | |
| // | |
| // locally store the navigation controller since | |
| // self.navigationController will be nil once we are popped | |
| // | |
| UINavigationController *navController = self.navigationController; |
This file contains hidden or 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
| + (id)sharedManager { | |
| static MyManager *sharedMyManager = nil; | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| sharedMyManager = [[self alloc] init]; | |
| }); | |
| return sharedMyManager; | |
| } |
This file contains hidden or 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
| For NSView (desktop Mac development only), you can simply use the following: | |
| [someNSView setSubviews:[NSArray array]]; | |
| For UIView (iOS development only), you can safely use makeObjectsPerformSelector: because the subviews property will return a copy of the array of subviews: | |
| [[someUIView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; | |
| http://stackoverflow.com/questions/2156015/remove-all-subviews |
This file contains hidden or 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
| https://github.com/sixohsix/twitter | |
| https://github.com/ryanmcgrath/twython | |
| https://github.com/bear/python-twitter | |
| https://github.com/joshthecoder/tweepy |
This file contains hidden or 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
| http://docs.couchbase.com/couchbase-lite/cbl-ios/ | |
| https://github.com/couchbase/couchbase-lite-ios | |
| https://github.com/tciuro/NanoStore |
This file contains hidden or 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
| disabled: | |
| defaults write com.apple.dashboard mcx-disabled -boolean YES && killall Dock | |
| enabled: | |
| defaults write com.apple.dashboard mcx-disabled -boolean NO && killall Dock | |
| http://apple.stackexchange.com/questions/91722/can-i-disable-dashboard-in-mountain-lion |
This file contains hidden or 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 all this into a vim buffer, save it, then... | |
| " source the file by typing :so % | |
| " Now the vim buffer acts like a specialized application for mastering vim | |
| " There are two queues, Study and Known. Depending how confident you feel | |
| " about the item you are currently learning, you can move it down several | |
| " positions, all the way to the end of the Study queue, or to the Known | |
| " queue. | |
| " type ,, (that's comma comma) |
This file contains hidden or 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
| Make a copy of the .xib in the Finder. | |
| Open the copied file in a text editor. | |
| Change "com.apple.InterfaceBuilder3.CocoaTouch.XIB" to "com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB". | |
| Change all instances of "IBCocoaTouchFramework" to "IBIPadFramework". | |
| Search for sizes like {480, 320} and edit them. Or just reopen the file in Xcode and use the GUI to resize items as needed. | |
| http://stackoverflow.com/questions/5347198/xcode-4-xib-create-ipad-version |
OlderNewer