curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.5.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
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 fisherYatesShuffle(array) { | |
| var currentIndex = array.length | |
| , temporaryValue | |
| , randomIndex | |
| ; | |
| // While there remain elements to shuffle... | |
| while (0 !== currentIndex) { | |
| // Pick a remaining element... |
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
| 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>' | |
| }, | |
| { |
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 { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
(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
| /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) |
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
| 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; |