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
#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
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
<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
<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
#!/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
#include <stdio.h> | |
#include <math.h> | |
int main() | |
{ | |
// Solicita ao usuário informar um binário | |
int bit; | |
printf("Informe um binário: \n"); | |
scanf("%d", &bit); | |
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 | |
mkdir /tmp/adodefont | |
cd /tmp/adodefont | |
mkdir -p ~/.fonts | |
wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip | |
unzip 1.050R-it.zip | |
cp source-code-pro-2.030R-ro-1.050R-it/OTF/*.otf ~/.fonts/ | |
wget https://github.com/adobe-fonts/source-serif-pro/archive/2.000R.zip |
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 | |
# last_script_pid=$1 | |
algorithm=$1 | |
numbers_of_tests=30 | |
underscore="_" | |
done_instances=instances.txt | |
avaiable_cpus=10 | |
wait_queue() { |
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 | |
######################################### | |
## Parametros que le pasamos al script ## | |
######################################### | |
#$ -S /bin/bash | |
####################################### | |
# Usar el directorio de trabajo actual | |
####################################### | |
#$ -cwd | |
# Tiempo de trabajo |