(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.
| var flattenObject = function(ob) { | |
| var toReturn = {}; | |
| for (var i in ob) { | |
| if (!ob.hasOwnProperty(i)) continue; | |
| if ((typeof ob[i]) == 'object') { | |
| var flatObject = flattenObject(ob[i]); | |
| for (var x in flatObject) { | |
| if (!flatObject.hasOwnProperty(x)) continue; |
| /usr/share/zoneinfo/Hongkong | |
| > Wed Jan 01 2014 00:00:00 GMT+0800 (HKT) | |
| > Mon Sep 01 2014 00:00:00 GMT+0800 (HKT) | |
| /usr/share/zoneinfo/Pacific/Easter | |
| > Wed Jan 01 2014 00:00:00 GMT-0500 (EASST) | |
| > Mon Sep 01 2014 00:00:00 GMT-0600 (EAST) | |
| /usr/share/zoneinfo/Pacific/Norfolk | |
| > Wed Jan 01 2014 00:00:00 GMT+1130 (NFT) |
(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.
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| Template.demo.teams = function(){ | |
| return [ | |
| { | |
| name: 'nba-teams', | |
| valueKey: 'name', | |
| displayKey: 'name', | |
| local: function() { return Nba.find().fetch() }, | |
| header: '<h3 class="league-name">NBA Teams</h3>' | |
| }, | |
| { |
| function fisherYatesShuffle(array) { | |
| var currentIndex = array.length | |
| , temporaryValue | |
| , randomIndex | |
| ; | |
| // While there remain elements to shuffle... | |
| while (0 !== currentIndex) { | |
| // Pick a remaining element... |
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.5.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin