All updates now moved over to https://github.com/dconnolly/Chromecast-Backgrounds
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
source 'http://rubygems.org' | |
gem 'guard' | |
gem 'guard-shell' |
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
ItemView = Marionette.ItemView.extend({ | |
// ... | |
onShow: function(){ | |
// I am guaranteed to be called from the CollectionView | |
// because the CollectionView registers me in a promise | |
} | |
}); | |
CollectionView = Marionette.CollectionView.extend({ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import classNames from 'classnames'; | |
const ANIMATION_DURATION = 1000; | |
class BatchDropZone extends React.Component { | |
static propTypes = { |
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(frames = 200, colWidth = "2px") { | |
const container = document.createElement("div"); | |
container.style.position = "fixed"; | |
container.style.right = "10px"; | |
container.style.top = "0"; | |
container.style.zIndex = "99999"; | |
for (let i = 0; i < frames; i++) { | |
const fc = document.createElement("div"); | |
fc.style.background = "red"; | |
fc.style.width = colWidth; |