Skip to content

Instantly share code, notes, and snippets.

function workMyCollection(arr) {
return arr.reduce(function(promise, item) {
return promise.then(function(result) {
return doSomethingAsyncWithResult(item, result);
});
}, q());
}
function workMyCollection(arr) {
return arr.reduce(function(promise, item) {
return promise.then(function(result) {
return doSomethingAsyncWithResult(item, result);
});
}, q());
}
--- 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">&nbsp;</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>
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,
@cesutherland
cesutherland / asdf
Created May 21, 2013 12:02
This is a test de<script>tion
asdf
<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 &amp; Canada)" selected="selected">(GMT-08:00) Pacific Time (US &amp; Canada)</option>
<option value="Arizona">(GMT-07:00) Arizona</option>
<option value="Mountain Time (US &amp; Canada)">(GMT-07:00) Mountain Time (US &amp; Canada)</option>
<option value="Central Time (US &amp; Canada)">(GMT-06:00) Central Time (US &amp; Canada)</option>
<option value="Eastern Time (US &amp; Canada)">(GMT-05:00) Eastern Time (US &amp; Canada)</option>
<option value="Indiana (East)">(GMT-05:00) Indiana (East)</option>
<option value="" disabled="disabled">-------------</option>
if (
filter &&
filter !== 'all' &&
filter !== task.get('type')
) {
return;
}
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();
describe('acme strategies', function () {
var
strategies = ['a', 'b'];
_.each(strategies, function (strategy) {
it('should strategize ' + strategy, function () {
expect(strategy()).toBe(true);
});
});
});