http://forum.ionicframework.com/t/autocomplete-for-textboxes/3650
A Pen by Justin Noel on CodePen.
| <div class="vertical-center"> | |
| <img src="img/logo.png" class="img-responsive center-block" alt="My Logo"> | |
| <button class="btn btn-default btn-lg spacer">Discover the Button</button> | |
| </div> | |
| <!-- src: http://www.wiredmark.com/center-responsive-element-horizontally-vertically-using-bootstrap/ --> |
| /*! Firebase-util - v0.1.2 - 2014-01-11 | |
| * https://github.com/firebase/firebase-util | |
| * Copyright (c) 2014 Firebase | |
| * MIT LICENSE */ | |
| (function(exports) { | |
| /** | |
| * @var {Object} a namespace to store internal utils for use by Firebase.Util methods | |
| */ |
| echo "Downloading, compiling, and installing the latest stable release of node.js:" | |
| nvm install 0.10.26 | |
| nvm use 0.10.26 | |
| echo "Setting 0.10.26 as the default:" | |
| nvm alias default 0.10.26 | |
| echo "Displaying the current version of node.js:" | |
| node -v |
| #!/bin/sh | |
| echo "Do you wish to install this program?" | |
| select yn in "Yes" "No"; do | |
| case $yn in | |
| Yes ) make install; break;; | |
| No ) exit;; | |
| esac | |
| done |
More info here: http://thephuse.com/development/email-password-auth-with-angularfire/
A Pen by Flip Stewart on CodePen.
| sudo apt-get update | |
| # node.js | |
| wget http://node-arm.herokuapp.com/node_latest_armhf.deb | |
| sudo dpkg -i node_latest_armhf.deb | |
| node -v | |
| # git | |
| sudo apt-get install git | |
| # heimcontrol.js | |
| sudo apt-get install git-core git scons build-essential scons libpcre++-dev xulrunner-dev libboost-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev | |
| git clone git://github.com/RickP/mongopi.git |
sudo apt-get update
sudo apt-get upgrade -y
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
| REGEX: match/return first word (before space) | |
| var string = '130,000 037037032032'; | |
| var regex = /^\S*/g; | |
| var result = string.match(regex); |
| var $email = $('form input[name="email'); //change form to id or containment selector | |
| var re = /[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/igm; | |
| if ($email.val() == '' || !re.test($email.val())) | |
| { | |
| alert('Please enter a valid email address.'); | |
| return false; | |
| } |