(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.
(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.
| /** | |
| * Prevent click events after a touchend. | |
| * | |
| * Inspired/copy-paste from this article of Google by Ryan Fioravanti | |
| * https://developers.google.com/mobile/articles/fast_buttons#ghost | |
| * | |
| * USAGE: | |
| * Prevent the click event for an certain element | |
| * ```` | |
| * PreventGhostClick(myElement); |
| # Edit this file as you like and merge with $HOME/.gitconfig (global) or .git/config (given repo only) | |
| # | |
| # See https://help.github.com/articles/set-up-git | |
| # | |
| # See http://git-scm.com/docs/git-config | |
| # or http://www.kernel.org/pub/software/scm/git/docs/git-config.html | |
| # | |
| # See http://git-scm.com/book/en/Customizing-Git-Git-Configuration | |
| # or http://progit.org/book/ch7-1.html | |
| # |
I was using Boot2Docker 1.2 (OSX) and wanted to use volume for MongoDB. First nothing was happening because 1.2 has no Guest Additions and volumes don't work. There is a workaround by making a boot2docker.iso from master which has Guest Additions.
But then Mongo didn't like putting data on VirtualBox's shared folders:
[initandlisten] WARNING: This file system is not supported. For further information see:
[initandlisten] http://dochub.mongodb.org/core/unsupported-filesystems
| 'use strict'; | |
| module.exports = function CustomError(message, extra) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = this.constructor.name; | |
| this.message = message; | |
| this.extra = extra; | |
| }; | |
| require('util').inherits(module.exports, Error); |
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/Xcode| #!/bin/bash | |
| set -e | |
| # set -x # -> for debug | |
| #rm -rf /tmp/heroku | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1) /' |
These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
| # load dynamic modules | |
| load_module /etc/nginx/modules/ngx_http_geoip_module.so; | |
| user nginx; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log info; | |
| pid /var/run/nginx.pid; | |
| events { worker_connections 1024; } | |
| http { |