(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.
| echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf && echo -e 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf && echo 'ulimit -n 4096' | sudo tee -a /etc/profile |
(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.
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
| ;(function (id, name, context, definition) { | |
| // -------------------------------------------------------------------------- | |
| // Dependencies | |
| // | |
| // This is an attempt to make this library compatible with multiple module | |
| // formats. Other UMD implementations do not take into account dependencies: | |
| // Example: https://github.com/ForbesLindesay/umd/blob/master/template.js | |
| // | |
| // **NOTE: Named AMD modules are more suitable for libraries as it provides |
| 1. Creating Maintainable JavaScript Libraries with AMDClean | |
| 2. Backbone.js Custom Builds | |
| 3. Grunt or Gulp? | |
| 4. Web Components & Polymer | |
| 5. The Future of jQuery Plugins - A Web Components Story |
| 1. Release AMDClean.js v0.4.0: | |
| a. Remove all `require` methods that contain empty function declarations | |
| b. Implement Gulp.js as the build system | |
| 2. Create Gulp Plugins: | |
| a. Jasmine-Node | |
| 3. Release DownloadBuilder.js v0.8.0: | |
| a. Support Require.js build configurations with the r.js web builder | |
| b. Support built-in minification with the uglify.js web minifier |
| const express = require("express"); | |
| const router = express.Router(); | |
| router.get('/', function (req, res) { | |
| res.send("This is the '/' route in ep_app"); | |
| }); | |
| module.exports = router; |
| isVisible(document.getElementById('at-follow')); |
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |