(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.
| /** | |
| ** inspired by markgdyr, http://markgoodyear.com/2014/01/getting-started-with-gulp/ | |
| * date:2014年4月14日 | |
| * creator:玄农 | |
| * mail:bocheng.zbc@alibaba-inc.com | |
| **/ | |
| // Load the plugins | |
| var gulp = require("gulp"), | |
| less = require("gulp-less"), |
| /* | |
| Split an array into chunks and return an array | |
| of these chunks. | |
| With kudos to github.com/JudeQuintana | |
| This is an update example for code I originally wrote 5+ years ago before | |
| JavaScript took over the world. | |
| Extending native objects like this is now considered a bad practice, so use |
(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.
| # only linux and mac | |
| export PATH=~/bin:$PATH | |
| export PATH="/usr/local/mysql/bin:$PATH" | |
| # git bash auto-completion | |
| source `brew --prefix git`/etc/bash_completion.d/git-completion.bash | |
| # latest versions of git has the prompt stuff on an extra file | |
| __git_prompt_file=`brew --prefix git`/etc/bash_completion.d/git-prompt.sh | |
| if [ -f "$__git_prompt_file" ] | |
| then |
| /* | |
| Code examples from the article: S.O.L.I.D The first 5 priciples of Object Oriented Design with JavaScript | |
| https://medium.com/@cramirez92/s-o-l-i-d-the-first-5-priciples-of-object-oriented-design-with-javascript-790f6ac9b9fa#.7uj4n7rsa | |
| */ | |
| const shapeInterface = (state) => ({ | |
| type: 'shapeInterface', | |
| area: () => state.area(state) | |
| }) |