TLDR: Rollup and ES modules give us:
- smaller bundles due to tree-shaking and scope-hoisting, and
- faster runtime perf than CommonJS, by avoiding runtime module resolution
Sources to back up these wild claims:
| import React, { PropTypes, Component } from 'react' | |
| import { getRef, listToArray } from '../utils/firebase' | |
| import { ErrorMessage, Loading } from '../Theme' | |
| /* | |
| ```js | |
| <Ref path="/somewhere"> | |
| {({ error, loaded, value }) => ( | |
| // `value` is an object w/ keys |
| import hoistNonReactStatic from 'hoist-non-react-statics'; | |
| import React from 'react'; | |
| function getDisplayName(WrappedComponent) { | |
| return WrappedComponent.displayName || WrappedComponent.name || 'Component'; | |
| } | |
| // See: https://facebook.github.io/react/docs/higher-order-components.html | |
| export default function mutatable({ mutationName = 'mutate' } = {}) { | |
| return (SourceComponent) => { |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| // Main containers | |
| .container | |
| @include outer-container | |
| // Rows | |
| .row | |
| @include row() | |
| // A basic column without a defined width or height |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!