# This code snippet is runnable
# Download Elasticsearch zip
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.zip
# Unzip to desired location
unzip elasticsearch-0.90.7.zip -d $HOME
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"/> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"/> | |
<link rel="stylesheet" href="style.css"/> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.9.3/lodash.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.6.3/d3-tip.min.js"></script> |
This file contains hidden or 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"; | |
function chart() { | |
var margin = { top: 100, right: 50, bottom: 100, left: 150 }, | |
width = 500 - margin.left - margin.right, | |
height = 500 - margin.top - margin.bottom, | |
x = d3.scale.ordinal().rangeBands([0, width]), | |
xlabel = d3.scale.ordinal().rangePoints([0, width], 1), | |
xaxis = d3.svg.axis().scale(xlabel).orient("bottom").tickSize(0,0), | |
y = d3.scale.ordinal().rangeBands([height, 0]), |
This file contains hidden or 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
#!/bin/bash | |
ES_VERSION=0.90.10 | |
ES_HOME=$PWD | |
ES_HEAP_SIZE=4096 | |
ES_CLUSTER_NAME=elasticsearch | |
PLUGIN_LIST=( | |
'elasticsearch/elasticsearch-lang-javascript/1.4.0' | |
'elasticsearch/elasticsearch-mapper-attachments/1.9.0' |