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
var SomeModel = Backbone.Model.extend({}); | |
someModel = new SomeModel(); | |
someModel.bind("change", function(model, collection){ | |
alert("You set some_attribute to " + model.get('some_attribute')); | |
}); | |
someModel.set({some_attribute: "some value"}); |
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
{ | |
"ShortResultText": "SE19", | |
"Restaurants": [ | |
{ | |
"Id": 1038, | |
"Name": "Napoli Pizza", | |
"Address": "96 Anerley Road", | |
"Postcode": "SE19 2AN", | |
"City": "Crystal Palace", | |
"CuisineTypes": [ |
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
{ | |
"id": 49591, | |
"vin": "JTDKGNEC30N010898", | |
"licensePlate": "SC14KUP", | |
"deviceId": null, | |
"modelDocumentId": "12345", | |
"alias": null, | |
"imageUrl": "https://uatmytoyota.toyota.co.uk/TIA_Feed/Vehicle_Images/4105_CAR_DB_exterior-3_4W5.png", | |
"modelDescription": "Aygo x-cite 5dr 1.0 man", | |
"transmission": "Multi Mode", |
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
{ | |
"ShortResultText": "SE19", | |
"Restaurants": [ | |
{ | |
"Id": 1038, | |
"Name": "Napoli Pizza", | |
"Address": "96 Anerley Road", | |
"Postcode": "SE19 2AN", | |
"City": "Crystal Palace", | |
"CuisineTypes": [ |
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
{ | |
"statuses": [ | |
{ | |
"metadata": { | |
"iso_language_code": "en", | |
"result_type": "recent" | |
}, | |
"created_at": "Wed Jun 24 22:13:18 +0000 2015", | |
"id": 613832296680939500, | |
"id_str": "613832296680939521", |
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
{ | |
"statuses": [ | |
{ | |
"metadata": { | |
"iso_language_code": "en", | |
"result_type": "recent" | |
}, | |
"created_at": "Wed Jun 24 22:13:18 +0000 2015", | |
"id": 613832296680939500, | |
"id_str": "613832296680939521", |
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
{ | |
"cats": [ | |
{ | |
"breed": "exotic shorthair", | |
"legs": 4, | |
"image": { | |
"xxhdpi": "exotic_shorthair", | |
"xhdpi": "", | |
"hdpi": "", | |
"mdpi": "", |
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
{ | |
"response": { | |
"books": [ | |
{ | |
"version_id": "431", | |
"name": "Genesis", | |
"abbr": "Gen", | |
"ord": "1", | |
"book_group_id": "0", | |
"testament": "OT", |
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
//called in application onCreate | |
public Cloudinary initCloudinary() { | |
Map config = new HashMap(); | |
config.put("cloud_name", getString(R.string.cloudinary_name)); | |
config.put("api_key", getString(R.string.cloudinary_key)); | |
config.put("api_secret", getString(R.string.cloudinary_secret)); | |
return new Cloudinary(config); | |
} | |
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
{ "beverages": [ | |
{ | |
"name": "Espresso", | |
"description": "Strong, black and with a finely marbled crema – this is how the Italians love their espresso. Immerse yourself in the southern Italian coffee culture with a cup of Lavazza Caffè Espresso, a premium blend of only the best Arabica beans. For lovers of authentic espresso enjoyment, there is no alternative. Let this small but powerful drink showcase its impressive flavours by serving it in a small, thick-walled cup. But it is just as ideally suited for preparing “long coffees”. This is a pure espresso that indulges the noses of true coffee connoisseurs with its intense fragrance before revealing its bold taste: A true feast for the senses for you, your family and your friends", | |
"price": "1.99" | |
}, | |
{ | |
"name": "Dark Roast Coffee", | |
"description": "It’s easy to get lost in the moment over a robust cup of your favourite dark-roasted coffee. Fuller-bodied and bold, these coffees featu |
OlderNewer