This file contains hidden or 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
| // imports... | |
| @interface RocketSimLoader : NSObject | |
| - (void)loadRocketSimConnect; | |
| @end | |
| @implementation RocketSimLoader |
This file contains hidden or 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
| app.factory('NormalizedPosts', function($firebaseArray, userCache) { | |
| var PostsWithUsers = $firebaseArray.$extend({ | |
| // override $$added to include users | |
| $$added: function(snap) { | |
| // call the super method | |
| var record = $firebaseArray.prototype.$$added.call(this, snap); | |
| userCache.$load( record.user ).$loaded(function( userData ) { | |
| record.userData = userData; | |
| }); |
This file contains hidden or 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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
This file contains hidden or 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
| Handlebars.registerHelper('pagination', function(currentPage, totalPage, size, options) { | |
| var startPage, endPage, context; | |
| if (arguments.length === 3) { | |
| options = size; | |
| size = 5; | |
| } | |
| startPage = currentPage - Math.floor(size / 2); | |
| endPage = currentPage + Math.floor(size / 2); |