These steps assume that you already have a working app on OpenShift. If you need help, you can get started here!
rhc app show YOUR_APP_NAME
ssh YOUR_APP_SSH_URL
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
These steps assume that you already have a working app on OpenShift. If you need help, you can get started here!
rhc app show YOUR_APP_NAME
ssh YOUR_APP_SSH_URL
POST /b/en-US/facebookapps/downloadtab/noscroll/ HTTP/1.1 | |
Host: www.mozilla.org | |
Connection: keep-alive | |
Content-Length: 277 | |
Cache-Control: no-cache | |
Pragma: no-cache | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
Origin: https://s-static.ak.facebook.com | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31 | |
Content-Type: application/x-www-form-urlencoded |
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
(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.
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
/** | |
* Migrate MongoDB database to Firebase. | |
* Syntax: node migrate.js [-c || --collection=]<MongoDB Collection> [ [-h || --host=]<MongoDB URI>] | |
* If no args are provided, the MONGODB_URI | |
* env variable declared in the .env file | |
* will be used instead. | |
*/ | |
const env = require('dotenv'); | |
const firebase = require('firebase'); |