Skip to content

Instantly share code, notes, and snippets.

View banaslee's full-sized avatar

Fábio Oliveira banaslee

  • Porto, Portugal
View GitHub Profile
@mattt
mattt / uiappearance-selector.md
Last active February 7, 2025 15:27
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 - de-de.txt
Last active April 14, 2025 05:43
eXtreme Go-Horse Process
eXtreme Go Horse (XGH) Process
Quelle: http://gohorseprocess.wordpress.com
Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f
1. Ich denke, also ist es nicht XGH.
In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller.
2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller.
@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];