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 ts = azure.createTableService(accountName, accountKey); | |
var query = new azure.TableQuery().top(500).where('PartitionKey eq ?', 'elearning'); | |
var nextContinuationToken = null; | |
var count = 0; | |
function getScreencasts(token) { | |
ts.queryEntities('Screencasts',query, nextContinuationToken, function(error, result, response) { | |
if (error) console.log(error); |
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
[ | |
{ | |
"name": "Doug Stamper", | |
"sex": "male", | |
"age": 50, | |
"birthday": "4/1/1964", | |
"address": { | |
"street": "77 Main St", | |
"city": "Washington", | |
"state": "DC", |
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
_.extend(Backbone.Model.prototype, Backbone.Events, { | |
errors: [], | |
validate: function (attrs) { | |
//reset | |
this.errors = []; | |
var model = this; | |
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
$.ajaxPrefilter(function (options, originalOptions, jqXHR) { | |
if (options.parseError) { | |
$.Deferred(function (defer) { | |
jqXHR.done(defer.resolve) | |
.fail(function (jqXHR, statusText, errorMsg) { | |
var parsed = $.parseJSON(jqXHR.responseText); | |
defer.rejectWith(this, [jqXHR, statusText, parsed]); | |
}); | |
}).promise(jqXHR); | |
jqXHR.success = jqXHR.done; |