Skip to content

Instantly share code, notes, and snippets.

View banaslee's full-sized avatar
🏠

Fábio Oliveira banaslee

🏠
  • Berlin, Germany
View GitHub Profile
@mattt
mattt / uiappearance-selector.md
Last active March 19, 2024 12:52
A list of methods and properties conforming to `UIAppearance` as of iOS 12 Beta 3

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' | \
@banaslee
banaslee / XGH - en.txt
Last active April 26, 2024 16:52
eXtreme Go-Horse Process
eXtreme Go Horse (XGH) Process
Source: http://gohorseprocess.wordpress.com
1. I think therefore it's not XGH.
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster.
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster.
XGH is faster than any development process you know (see Axiom 14).
@rconnelly
rconnelly / AppDelegate.m
Created December 20, 2011 07:33
Example of how to set up a stackmob application with restkit.
STMRestKitConfiguration *config = [STMRestKitConfiguration configuration];
// UserModel is a class which implements the STMMappedObject protocol
// this line registers the model
NSArray *mappings = [STMObjectMapping defaultMappingsForClasses:[UserModel class], nil];
[config.mappingProvider registerObjectMappings:mappings];
// create a restkit data provider
id<STMDataProvider> dataProvider = [STMRestkitDataProvider dataProviderWithConfiguration:config];