Skip to content

Instantly share code, notes, and snippets.

View chukcha-wtf's full-sized avatar

Pavlo Babenko chukcha-wtf

View GitHub Profile
@chukcha-wtf
chukcha-wtf / adapter.js
Created May 5, 2014 15:14
Ember.js preview
App.ApplicationAdapter = DS.RESTAdapter.extend({
find: function(store, type, token) {
var service = new AuthServiceClient(new Thrift.Protocol(new Thrift.Transport(App.Config.url.auth)));
return new Ember.RSVP.Promise(function(resolve, reject) {
service.error = function(status) {
Ember.run(function(){
reject(status.errorDescription);
});
@chukcha-wtf
chukcha-wtf / -ios-navbar.hbs
Created September 18, 2015 20:24
Example of using liquid-fire and ember-cli-f7 to animate page transitions
{!-- app/templates/-ios-navbar.hbs --}
{{#if f7.iosTheme}}
{{navbar-component currentPath=currentPath}}
{{/if}}
{!-- Materail navbar will have a similar structure --}