Skip to content

Instantly share code, notes, and snippets.

View DSpeckhals's full-sized avatar

Dustin Speckhals DSpeckhals

View GitHub Profile
@davidlukerice
davidlukerice / styles.less
Created December 16, 2014 15:14
atom.io multi-row tabs
// Make tabs multi-row
.tab-bar {
height: auto;
flex-wrap: wrap;
}
.tab-bar .tab,
.tab-bar .tab.active {
flex-basis: auto;
}
@io41
io41 / paginated_collection.js
Created February 22, 2011 10:10 — forked from zerowidth/paginated_collection.js
Pagination with Backbone.js
// includes bindings for fetching/fetched
var PaginatedCollection = Backbone.Collection.extend({
initialize: function() {
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage');
typeof(options) != 'undefined' || (options = {});
this.page = 1;
typeof(this.perPage) != 'undefined' || (this.perPage = 10);
},
fetch: function(options) {