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
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <[email protected]> | |
# Created: 2010-08-16 | |
############################################################################ | |
# Copyright 2010 Jaeho Shin. # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # |
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
<div style="font-family: sans-serif;"> | |
<? var data = generateLaTeXTable(); ?> | |
<textarea rows="20" cols="40" style="overflow:scroll;"><?= data ?></textarea> | |
<br> | |
<input type="button" value="Close" onclick="google.script.host.close()" /> | |
</div> |
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
<div style="font-family: sans-serif;"> | |
<? var data = valid(); ?> | |
<form id="form" name="form"> | |
<? if(Object.prototype.toString.call(data) === '[object Array]') { ?> | |
<? for (var i = 0; i < data.length; i++) { ?> | |
<? for (var j = 0; j < data[i].length; j++) { ?> | |
<input type="checkbox" id="ch<?= '' + i + j ?>" name="ch<?= '' + i + j ?>" value="<?= data[i][j] ?>"><?= data[i][j] ?><br> | |
<? } ?> | |
<? } ?> | |
<? } else { ?> |
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
library(pgirmess) | |
library(PMCMR) | |
data <- data.matrix(read.csv('file.csv', sep=';', header=FALSE)) | |
friedman.test(data) | |
posthoc.friedman.nemenyi.test(data, method='Tukey') | |
friedmanmc(data) |
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
#Download zeppelin | |
wget http://www-us.apache.org/dist/zeppelin/zeppelin-0.7.1/zeppelin-0.7.1-bin-all.tgz | |
tar -xvf zeppelin-0.7.1-bin-all.tgz | |
sudo mv zeppelin-0.7.1-bin-all /usr/share/zeppelin-0.7.1-bin-all | |
# Define the paths for Zeppelin | |
#echo 'export JAVA_HOME="$JAVA_HOME"' >> /usr/share/zeppelin-0.7.1-bin-all/conf/zeppelin-env.sh | |
echo 'export SPARK_HOME="/opt/spark-2.1.0-bin-hadoop2.7"' >> /usr/share/zeppelin-0.7.1-bin-all/conf/zeppelin-env.sh | |
echo 'export PYSPARK_PYTHON="/usr/bin/python2.7"' >> /usr/share/zeppelin-0.7.1-bin-all/conf/zeppelin-env.sh | |
echo 'export PYTHONPATH="/opt/spark-2.1.0-bin-hadoop2.7/python/lib/py4j-0.10.4-src.zip"' >> /usr/share/zeppelin-0.7.1-bin-all/conf/zeppelin-env.sh |
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
# Downloading spark | |
wget http://d3kbcqa49mib13.cloudfront.net/spark-2.1.0-bin-hadoop2.7.tgz | |
tar -xvf spark-2.1.0-bin-hadoop2.7.tgz | |
sudo mv spark-2.1.0-bin-hadoop2.7 /opt/spark-2.1.0-bin-hadoop2.7 | |
# Define a port for the Spark | |
echo 'SPARK_MASTER_WEBUI_PORT=8888' >> /opt/spark-2.1.0-bin-hadoop2.7/conf/spark-env.sh | |
rm spark-2.1.0-bin-hadoop2.7.tgz |
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
# Installation of commonly used python scipy tools | |
sudo apt-get -y install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose python-geopy python-seaborn | |
sudo apt-get install python-pip python-dev build-essential | |
sudo pip install --upgrade pip | |
sudo python -m pip install folium | |
sudo python -m pip install scikit-learn |
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
# installation of Oracle Java JDK | |
sudo apt-get -y update | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get -y update | |
sudo apt-get -y install oracle-java8-installer |
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/sh | |
# Install JAVA | |
wget https://gist.githubusercontent.com/jacksonpradolima/1253019d0a63b07501b767fefc3531a8/raw/d10b827ecd752106ce99649c5137c04c6e09aff0/install_java.sh | |
source install_java.sh | |
# Install some python packages and tools | |
wget https://gist.githubusercontent.com/jacksonpradolima/a7de2799142c442021a55a71bf5fcacb/raw/f509db81b114ded277014af9e2e9d1c7cc902867/install_python_components.sh | |
source install_python_components.sh |
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
#check java instalation | |
java -version | |
#get path | |
echo $JAVA_HOME | |
#install java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer |