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
| var evts = [], | |
| touchEvt, | |
| mouseEvt, | |
| msEvent; | |
| if (evt === 'up') { | |
| touchEvt = 'touchend'; | |
| mouseEvt = 'mouseup'; | |
| msEvent = 'MSPointerUp'; | |
| } else if (evt === 'move') { |
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
| # Store somewhere | |
| class SitemapGenerator | |
| def initialize(app) | |
| @app = app | |
| end | |
| def manipulate_resource_list(resources) | |
| sitemap_builder = ::Middleman::Sitemap::Resource.new( | |
| @app.sitemap, |
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
| function rightNow() { | |
| if (window['performance'] && window['performance']['now']) { | |
| return window['performance']['now'](); | |
| } else { | |
| return +(new Date()); | |
| } | |
| } |
This file has been truncated, but you can view the full file.
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
| [ | |
| { | |
| "code": "AAA", | |
| "lat": "-17.3595", | |
| "lon": "-145.494", | |
| "name": "Anaa Airport", | |
| "city": "Anaa", | |
| "state": "Tuamotu-Gambier", | |
| "country": "French Polynesia", |
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
| function oneOffAnimation(from, to, duration, easing, onUpdate, onComplete) { | |
| var t = new TWEEN.Tween(from) | |
| .to(to, duration) | |
| .easing(easing) | |
| .onUpdate(onUpdate) | |
| .onComplete(function _onComplete() { | |
| t.done = true; | |
| }); | |
| var self = this; |
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
| FS.MultiplexingCollectionView = Em.CollectionView.extend({ | |
| itemViewClass: Em.View, | |
| typeProperty: "type", | |
| viewMap: {}, | |
| createChildView: function(view, attrs) { | |
| var map = this.get("viewMap"); | |
| var prop = this.get("typeProperty"); | |
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
| /** | |
| * A root "Model" class for Objects which have inherited types based on | |
| * a configurable per-object value. | |
| */ | |
| FS.MultiplexingModel = Em.Object.extend({ | |
| }); | |
| /** | |
| * The great hash of klasses and types |
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
| /** | |
| * A View Pool | |
| */ | |
| FS.ViewPool = Em.ArrayController.extend({ | |
| content: [], | |
| viewClass: null, | |
| createViewOnEmpty: true, | |
| takeView: function(content) { |
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
| // @depends PxLoader.js | |
| /** | |
| * PxLoader plugin to load swiffy | |
| */ | |
| function PxLoaderSwiffy(name, tags, priority) { | |
| var self = this, | |
| loader = null, | |
| complete = false; |
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
| <p><%= image_tag "whatever.jpg" %></p> |