This file contains 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
@interface NSManagedObject (Serialization) | |
- (NSDictionary*) toDictionary; | |
- (void) populateFromDictionary:(NSDictionary*)dict; | |
+ (NSManagedObject*) createManagedObjectFromDictionary:(NSDictionary*)dict | |
inContext:(NSManagedObjectContext*)context; | |
@end |
This file contains 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
public class Global extends GlobalSettings { | |
@Override | |
public Action onRequest(Request arg0, Method arg1) { | |
return new Action.Simple() { | |
public Result call(Context ctx) throws Throwable { | |
String authConf = Config.getString("basic.auth"); | |
if (authConf == null) | |
return delegate.call(ctx); | |
String auth = ctx.request().getHeader("Authorization"); |
This file contains 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
document.addEventListener("dragstart", function(event) | |
{ | |
event.dataTransfer.setData("image/png", slides.imageRep()); | |
event.dataTransfer.setData("slides", slides.serializedRep()); | |
// etc. | |
}, false); |
This file contains 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
package controllers; | |
import play.mvc.*; | |
import com.google.gson.*; | |
import models.*; | |
public class Application extends Controller { |
NewerOlder