This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.deb | |
sudo dpkg -i elasticsearch-0.20.6.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// A decorator to override uiSref to trigger state change on touchstart if the element does not have disable-fastclick attribute | |
// It also logs the time between state changes | |
angular.module('app') | |
.config(function ($provide) { | |
$provide.decorator('uiSrefDirective', function ($delegate) { | |
var originalUiSref, originalUiSrefLink; | |
originalUiSref = $delegate[0]; | |
originalUiSrefLink = originalUiSref.link; |