This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#import <Foundation/Foundation.h> | |
@interface LWSKeyboardListener : NSObject | |
@property (nonatomic, readonly) BOOL keyboardShowed; | |
@property (nonatomic, readonly) CGRect keyboardRect; | |
@property (nonatomic, readonly) CGFloat keyboardHeight; | |
+ (LWSKeyboardListener *)defaultListener; |
#import <Foundation/Foundation.h> | |
@interface NSString (Stuff) | |
- (BOOL)containsOnlyWhiteSpace; | |
@end |
{ | |
"segments": [{ | |
"ordered_segment": [{ | |
"txt": "Gegeben sei der Quelltext:" | |
}, { | |
"src": [ | |
"def func(a = 5, b = 7):", | |
" print a, b" | |
] | |
}] |
{ | |
"segments": [ | |
{ | |
"txt": "Gegeben sei der Quelltext:" | |
}, | |
{ | |
"src": [ | |
"def func(a = 5, b = 7):", | |
" print a, b" | |
] |
Jedes Segment hat einen Key type
. Dieser wird zuerst ausgelesen und davon ausgehen unterschiedlich vorgegangen.
text
/source
enthalten in content
immer direkt den Text (optional kodiert comment
, ob es sich dabei um einen Kommentar handelt)input
behandelt Zeilen mit 1-n Texteinträgen sowie einem Antwortfeld (das optional vorbefüllt sein kann, für Korrektur-Quizaufgaben) und einem Lösungsfeldcheck
ist ähnlich wie input
variabel in der Menge der Texteinträge, hat aber nur eine Checkbox als Antwortmöglichkeitgap-fill-text
ist für Lückentexte. Eingabefelder mit ¶¶ abtrennen. Dazwischen optional einen falschen Text und dann mit Pipes "|" einen oder mehrere Lösungen./* | |
* This is an example provided by Facebook are for non-commercial testing and | |
* evaluation purposes only. | |
* | |
* Facebook reserves all rights not expressly granted. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | |
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
expr -- (void)printf("[%s, %s]\n",(char *) object_getClassName(*(long*)($esp+4)), (char *) *(long *)($esp+8) ) |