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
function workMyCollection(arr) { | |
return arr.reduce(function(promise, item) { | |
return promise.then(function(result) { | |
return doSomethingAsyncWithResult(item, result); | |
}); | |
}, q()); | |
} |
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
function workMyCollection(arr) { | |
return arr.reduce(function(promise, item) { | |
return promise.then(function(result) { | |
return doSomethingAsyncWithResult(item, result); | |
}); | |
}, q()); | |
} |
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
--- templates/albums/tracks.hbs 2013-10-08 18:37:40.000000000 +0300 | |
+++ templates/tracks/versions.hbs 2013-10-08 18:37:40.000000000 +0300 | |
@@ -1,12 +1,12 @@ | |
<div class="results-header table"> | |
<div class="controls table-cell"> </div> | |
- <div class="name table-cell">Track Name & #</div> | |
+ <div class="name table-cell">Track Version & #</div> | |
<div class="description table-cell">Description</div> | |
<div class="duration table-cell"><span>Duration</span></div> | |
<div class="actions table-cell">Actions</div> |
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
http://localhost:3000/dev.html#search?query=[{"query":true,"type":"text","value":"Love","field":["tags","track_description","track_title","album_description","album_title","library","composer","lyrics","sound_alikes"]},{"id":2202,"type":"tag","value":"Amateur / Poorly Played","field":"is_a","count":146},{"id":2201,"type":"tag","value":"Archival Recording","field":"is_a","count":16},{"id":2204,"type":"tag","value":"Solo","field":"is_a","count":46},{"id":2197,"type":"tag","value":"Has Lyrics","field":"is_a","count":116},{"id":2198,"type":"tag","value":"Trailer Track","field":"is_a","count":4},{"id":1110,"type":"tag","value":"Classical","field":"genre","children":[1117,1116,1119,1118,1113,1112,1115,1114,1111,1120],"count":15},{"id":1204,"type":"tag","value":"Country","field":"genre","children":[1210,1211,1208,1209,1206,1207,1212,1205],"count":66},{"id":1285,"type":"tag","value":"Marches / Military Band","field":"genre","count":18},{"id":1296,"type":"tag","value":"Religious","field":"genre","children":[1307,1314, |
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
asdf |
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
<select id="user_time_zone" name="user[time_zone]"> | |
<option value="Hawaii">(GMT-10:00) Hawaii</option> | |
<option value="Alaska">(GMT-09:00) Alaska</option> | |
<option value="Pacific Time (US & Canada)" selected="selected">(GMT-08:00) Pacific Time (US & Canada)</option> | |
<option value="Arizona">(GMT-07:00) Arizona</option> | |
<option value="Mountain Time (US & Canada)">(GMT-07:00) Mountain Time (US & Canada)</option> | |
<option value="Central Time (US & Canada)">(GMT-06:00) Central Time (US & Canada)</option> | |
<option value="Eastern Time (US & Canada)">(GMT-05:00) Eastern Time (US & Canada)</option> | |
<option value="Indiana (East)">(GMT-05:00) Indiana (East)</option> | |
<option value="" disabled="disabled">-------------</option> |
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
asdf |
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
if ( | |
filter && | |
filter !== 'all' && | |
filter !== task.get('type') | |
) { | |
return; | |
} |
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
1153 anchorClick: function(event) { | |
1154 var target = $(event.target); | |
1155 if (target.attr("data-external")) { | |
1156 return; | |
1157 } | |
1158 var href = target.attr("href"); | |
1159 // Route anything that starts with # or / (excluding //domain urls) | |
1160 if (href && (href[0] === '#' || (href[0] === '/' && href[1] !== '/'))) { | |
1161 Backbone.history.navigate(href, true); | |
1162 event.preventDefault(); |
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
describe('acme strategies', function () { | |
var | |
strategies = ['a', 'b']; | |
_.each(strategies, function (strategy) { | |
it('should strategize ' + strategy, function () { | |
expect(strategy()).toBe(true); | |
}); | |
}); | |
}); |