Notes and guide to Accessibility techniques.
- Roles MUST NOT change in the DOM. If needed, you'll need to remove the entire element and it's children and all a new element with the desired role.
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="steeef" | |
# Example aliases |
Notes and guide to Accessibility techniques.
// Example | |
// app.js | |
document.addEventListener("DOMContentLoaded", function (e) { | |
m.route.mode = "hash"; | |
m.route(document.getElementById("application"), "/", { | |
"/": m.resolve("pages.home"), | |
"/findus": m.resolve("pages.findus") | |
}); | |
}); |
/******************************************* | |
* These items are in progress... | |
* | |
* Leave feedback in the comments section. | |
*******************************************/ |
(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 post is also on my blog, since Gist doesn't support @ notifications.
Components are taking center stage in Ember 2.0. Here are some things you can do today to make the transition as smooth as possible:
Ember.Controller
instead of Ember.ArrayController
or Ember.ObjectController
Ember.Controller
, otherwise a proxy will be generated. You can use Ember.RSVP.hash to simulate setting normal props on your controller.var animating = false; | |
// Define an animator consisting of optional incoming and outgoing animations. | |
// alwaysAnimate is false unless specified as true: false means an incoming animation will only trigger if an outgoing animation is also in progress. | |
// forcing dontClone to true means the outward animation will use the original element rather than a clone. This could improve performance by recycling elements, but can lead to trouble: clones have the advantage of being stripped of all event listeners. | |
function animator( incoming, outgoing, alwaysAnimate, dontClone ){ | |
// The resulting animator can be applied to any number of components | |
return function animate( x, y, z ){ | |
var config; | |
var parent; |
'use strict'; | |
var React = require('react-native'); | |
var { | |
Bundler, | |
StyleSheet, | |
Text, | |
TouchableHighlight, | |
View, | |
ScrollView, |
'use strict'; | |
var React = require('react/addons'); | |
var AnimateMixin = require('react-animate'); | |
/** | |
* Accordion object that maintains a list of content containers and their collapsed or expanded state | |
* @type {*|Function} | |
*/ | |
var Accordion = React.createClass({ | |
/** |
This requires `brew install jq` which is a command json query. | |
I got this from @krisselden |