I hereby claim:
- I am denisnazarov on github.
- I am denisnazarov (https://keybase.io/denisnazarov) on keybase.
- I have a public key ASAvY_a5R4ftjZZ8OO1JRHzg-4ul3TOrz8PIFYrk-_qFgwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
## Collection of posts/videos I've found useful while researching mvvm | |
https://speakerdeck.com/jspahrsummers/code-reuse-with-mvvm | |
http://cocoasamurai.blogspot.com/2013/03/basic-mvvm-with-reactivecocoa.html | |
http://www.teehanlax.com/blog/model-view-viewmodel-for-ios/ | |
http://martinfowler.com/eaaDev/PresentationModel.html | |
http://twocentstudios.com/blog/2014/06/08/on-mvvm-and-architecture-questions/ |
#! /bin/bash | |
# Based on Batch Convert Script originally by Beterhans | |
# Put all video files need to be converted in a folder! | |
# the name of files must not have " " Space! | |
# Rename the File if contain space | |
# Target dir | |
indir=$1 |
// Picasso at MoMA | |
{ | |
"ConstituentID": 4609, | |
"DisplayName": "Pablo Picasso", | |
"ArtistBio": "Spanish, 1881–1973", | |
"Nationality": "Spanish", | |
"Gender": "Male", | |
"BeginDate": 1881, | |
"EndDate": 1973, |
.full-screen-video-container{ | |
position: absolute; | |
left: 0; | |
right: 0; | |
top: 0; | |
bottom: 0; | |
overflow: hidden; | |
} | |
.full-screen-video-container video{ | |
position: absolute; |
// jQuery event handler in the View | |
didInsertElement: function () { | |
var self = this; | |
this._boundApplyResize = function(){ | |
self.applyResize(); | |
} | |
$(window).on('resize', this._boundApplyResize); | |
}, |
Application.LoadingTransitionMixin = Ember.Mixin.create | |
afterModel: (model, transition) -> | |
previousRoute = @get('router').previousRoute | |
if previousRoute | |
@get('router').previousRoute.cleanUp() | |
cleanUp: -> | |
deferredPromise = new Ember.Deferred() | |
@controller.set('cleanUpPromise', deferredPromise) |
fade: (opacity, callback) -> | 10 if (url === this.get('currentView.src')){ | |
11 currentOpacity = @$().css('opacity') | 11 this.get('controller.videoPromise').resolve(); | |
12 return callback() if currentOpacity == opacity | 12 return; | |
13 | 13 } | |
14 @$().css('opacity', opacity) | 14 |