2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
| var Bar1 = base => class extends base { | |
| componentWillMount(){ | |
| super.componentWillMount(); | |
| console.log('Bar1'); | |
| } | |
| }; | |
| var Bar2 = base => class extends base { | |
| componentWillMount(){ | |
| super.componentWillMount(); |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd > | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>org.nodered.plist</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/local/bin/node</string> | |
| <string>/usr/local/bin/node-red</string> |
| var csp = require('js-csp'), | |
| { chan, putAsync, take, go, put, timeout, spawn} = csp, | |
| request = require('superagent'); | |
| var urls = ['http://www.google.com', 'http://www.jlongster.com', 'http://www.myntra.com']; | |
| go(function*(){ | |
| // 1. do a bunch of requests in parallel, and save their response lengths | |
| var parallel = yield map(urls, function*(url){ | |
| return (yield fetch(url)).text.length; |
| # This configuration is based on the Wizard config and also the these ones: | |
| # https://blog.dlasley.net/2013/06/initial-configuration-ubiquiti-edgerouter-lite/ | |
| # http://lg.io/2015/01/11/the-ubiquiti-edgerouter-configuring-this-extremely-lowcost-enterprisegrade-router-for-home-use.html | |
| # | |
| # Create simple firewall rules for Inbound wan to lan and local router | |
| edit firewall | |
| set all-ping enable | |
| set broadcast-ping disable | |
| set ipv6-receive-redirects disable | |
| set ipv6-src-route disable |
This guide assumes that you recently run brew upgrade postgresql and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.
First let's check something.
brew info postgresqlThe top of what gets printed as a result is the most important:
| ;;; packages.el --- react Layer packages File for Spacemacs | |
| ;; | |
| ;; Copyright (c) 2012-2014 Sylvain Benner | |
| ;; Copyright (c) 2014-2015 Andrea Moretti & Contributors | |
| ;; | |
| ;; Author: Andrea Moretti <[email protected]> | |
| ;; URL: https://github.com/axyz | |
| ;; | |
| ;; This file is not part of GNU Emacs. | |
| ;; |