Skip to content

Instantly share code, notes, and snippets.

View johanvalcoog's full-sized avatar

Johan Valcoog johanvalcoog

  • PuurApps
  • Sweden
View GitHub Profile
@joewest
joewest / didRequestRange.js
Created January 13, 2012 20:14
Ember.PaginationSupport
App.collectionController = Em.ArrayProxy.create(Ember.PaginationSupport, {
content: [],
fullContent: App.store.findAll(App.Job),
totalBinding: 'fullContent.length',
didRequestRange: function(rangeStart, rangeStop) {
var content = this.get('fullContent').slice(rangeStart, rangeStop);
this.replace(0, this.get('length'), content);
}
});
@ppcano
ppcano / carousel_view.js
Created January 13, 2012 13:01
Ember Touch ScrollView without iScroll, and using movejs for transfomations.