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
Get some good linting. Use ES Lint, Airbnb’s JavaScript Style Guide, and ESLint React Plugin. | |
Use propTypes and defaultProps. | |
Know when to make new components. | |
Know when to write a Component, PureComponent, and a Stateless Functional Component. | |
Use React Dev Tools. | |
Use inline conditional statements in your code. | |
Use Snippet Libraries to save a ton of time that is usually wasted on boilerplate code. | |
Learn how React works with React Internals. | |
Use tools like Bit / StoryBook to improve your component development workflow |
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
--configuration for downloading packages | |
;; load emacs 24's package system. Add MELPA repository. | |
(when (>= emacs-major-version 24) | |
(require 'package) | |
(add-to-list | |
'package-archives | |
;; '("melpa" . "http://stable.melpa.org/packages/") ; many packages won't show if using stable | |
'("melpa" . "http://melpa.milkbox.net/packages/") | |
t)) |
(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
def wrapImage(img, H, shape=None, resize=False): | |
row, col = shape | |
y_cor, x_cor = np.indices((row, col), dtype=np.float32) | |
idx1 = np.array([x_cor.ravel(), y_cor.ravel(), np.ones_like(x_cor).ravel()]) | |
idx2 = np.linalg.inv(H).dot(idx1) | |
# warp(img1.img, H1, img1.img.shape[:2]) | |
if resize: | |
# Calculate the size of the destination image | |
xmin, ymin = np.min(idx2[:-1] / idx2[-1], axis=1) |
"In 2015 Uber, the world's largest taxi company owns no vehicles, Facebook the world's most popular media owner creates no content, Alibaba the most valuable retailer has no inventory, and Airbnb the world's largest accommodation provider owns no real estate."*
Through collaboration and value distribution, decentralized autonomous organizations (DAOs) will be just as disruptive to the above centralized business models.
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
<Modal show={ this.state.demoModal } onHide={ () => {this.setState({demoModal: false}) }}> | |
<Modal.Header> | |
<Modal.Title>{this.props.modalHeader}</Modal.Title> | |
</Modal.Header> | |
<Modal.Body> | |
<p>{this.props.modalBody}</p> | |
</Modal.Body> | |
<Modal.Footer> |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key