TL;DR: If you want to see me perform a spoken word poem about JavaScript in front of 1000 people (and on video), please ⭐ star this gist. If you're on mobile, you'll need to request desktop site.
| #!/usr/bin/env bash | |
| # This bash script synchronises dotfiles by exporting each file specified | |
| # in the `dotfiles` array from the `$FROM` directory path to the `$TO` | |
| # directory path. | |
| # If a specified file cannot be found, `cp` will log a path error and | |
| # continue onto the next file. | |
| # | |
| # NOTE | |
| # You can make this script executable by setting the following: |
Earlier this year Facebook open sourced its React based rich text editing framework Draft.js. At Facebook it powers status updates, comments & notes. Others used it to build editors matching Medium’s experience.
Together with a whole team of open source contributors I built a plugin architecture on top of Draft.js. In this talk I walk you through the existing plugins and show how you can build your own feature-rich text editor for the web with only a handful lines of code. 🤓
| var {authDiscardToken} = require('./actions'); | |
| var request = require('superagent'); | |
| var API_ROOT = 'http://localhost/api'; | |
| /* | |
| This below is the format the middleware accepts. | |
| { | |
| types: [ACT_LOGIN_PENDING, ACT_LOGIN_SUCCESS, ACT_LOGIN_ERROR], | |
| url: '/auth/login', |