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
test("#XXXX Trailing spaces (pushState:false).", 1, function() { | |
var count = 0; | |
Backbone.history.stop(); | |
// restart History with pushState:false | |
Backbone.history.start({ | |
pushState: false | |
}); |
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
function authAjax() { | |
var params = $("#loginForm").serialize(); | |
$.post("/api/j_spring_security_check", params, | |
function(data) { | |
console.log('data loaded:'); | |
console.log(data); | |
}); | |
} |
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
- (void)imagePickerController:(UIImagePickerController *)picker | |
didFinishPickingImage:(UIImage *)selectedImage | |
editingInfo:(NSDictionary *)editingInfo { | |
// Save the image to the users album | |
if (picker.sourceType = UIImagePickerControllerSourceTypeCamera) { | |
UIImageWriteToSavedPhotosAlbum(selectedImage, nil, nil, nil); | |
} |
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
+ (UIImage *)generatePhotoThumbnail:(UIImage *)image { | |
// Create a thumbnail version of the image for the event object. | |
CGSize size = image.size; | |
CGSize croppedSize; | |
CGFloat ratio = 64.0; | |
CGFloat offsetX = 0.0; | |
CGFloat offsetY = 0.0; | |
// check the size of the image, we want to make it | |
// a square with sides the size of the smallest dimension |