W3C Introduction to Web Components - explainer/overview of the technologies
// Configs | |
S.cfga({ | |
"defaultToCurrentScreen" : true, | |
"secondsBetweenRepeat" : 0.1, | |
"checkDefaultsOnLoad" : true, | |
"focusCheckWidthMax" : 3000, | |
"orderScreensLeftToRight" : true | |
}); | |
// Monitors |
<div style="width: 100%; position: relative; padding-bottom: 20%;"> | |
<div style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 1px solid #ccc;"> | |
this content will have a constant aspect ratio that varies based on the width. | |
</div> | |
</div> |
As configured in my dotfiles.
start new:
tmux
start new with session name:
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
/** | |
* Adapted from https://github.com/Khan/react-components/blob/master/js/timeout-transition-group.jsx | |
*/ | |
var React = require('react/addons'); | |
var ReactTransitionGroup = React.addons.TransitionGroup; | |
var Velocity = require('velocity-animate'); | |
var transitions = { | |
// Forcefeeding: property order = [after, before] |
/** | |
* Adapted from https://github.com/Khan/react-components/blob/master/js/timeout-transition-group.jsx | |
*/ | |
var React = require('react/addons'); | |
var ReactTransitionGroup = React.addons.TransitionGroup; | |
var Velocity = require('velocity-animate'); | |
var transitions = { | |
// Forcefeeding: property order = [after, before] |
var AppConstants = require('../constants/AppConstants.js'); | |
var AppDispatcher = require('../dispatchers/AppDispatcher.js'); | |
var api = require('../utils/api'); | |
var ActionTypes = AppConstants.ActionTypes; | |
module.exports = { | |
create_customer: function(data){ | |
api.customer.create(data); | |
} |
/** @jsx React.DOM */ | |
'use strict'; | |
var React = require('react'), | |
{ PropTypes } = React; | |
var AudioPlayer = React.createClass({ | |
propTypes: { | |
source: PropTypes.string.isRequired, | |
isPlaying: PropTypes.bool.isRequired, |