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
# | |
# author Huber Flores | |
# | |
> using 1:3 | |
X Y1 Y2 | |
1 10 100 | |
2 20 200 | |
... | |
#takes 1 as x axis, and 3 as y axis |
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
% | |
% author Huber Flores | |
% | |
%minted | |
-download minted or install it | |
-located the file minted.sty in the working folder | |
-add the arguments -shell-scape to the pdflatex command | |
In Kile(Settings -> Configure Kile -> Tools + Build -> PdfLatex -> "write the command into the box" |
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
# | |
# author Huber Flores | |
# | |
import numpy as np | |
from scipy import * | |
import random | |
box = ([-1.0,1.0],[-1.0,1.0],[-1.0,1.0]) |
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
/* | |
* author Huber Flores | |
*/ | |
# Upload your keys to your instance (*.pem files) | |
$ scp -i your_PrivateKeyFile.pem -r /PrivateKeysPath/huberfloresPrivateCertKeys.zip ubuntu@ec2-x-x-x-x.compute-1.amazonaws.com:/home/ubuntu/ | |
# Connect to your instance (local keys) | |
$ ssh -i your_PrivateKeyFile.pem ubuntu@ec2-x-x-x-x.compute-1.amazonaws.com |
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
# author Huber Flores | |
# Normalizing data to a target range (a, b) | |
#original dataset | |
mydata <- c(26,33,45,77,15,100,66,21,89,55) | |
A = min(mydata) | |
B = max(mydata) |
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
# calling the functions | |
# this is the file where we will call the functions in fun.R and times.R | |
times <- dget("times.R") | |
times(-4:4, 2) | |
source("fun.R") | |
mult(-4:4, 2) |
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
# | |
# author Huber Flores | |
# | |
# The input of the engine is a dataset. For each tuple of the dataset a decision is expected | |
# Each attribute in the tuple is normalized in a 0-1 interval | |
library(iterators) | |
library(foreach) |
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
# | |
# author Huber Flores | |
# | |
# 1) Basic commands | |
$ cd yourrepo/ | |
#file that contains instructions, licenses, etc. | |
$ touch README.md |
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
# | |
# author Huber Flores | |
# | |
###Download JDK latest version | |
Upload the files to the server | |
put /home/huber/setups/jdk-6u22-linux-i586.bin.zip /home/murakas/huber/software | |
put /home/huber/setups/apache-tomcat-7.0.4.tar.gz /home/murakas/huber/software | |
put /home/huber/setups/jdk-6u22-linux-x64.bin /home/murakas/huber/software |
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
/* | |
* author Huber Flores | |
*/ | |
# Download latest version of HAProxy from http://haproxy.1wt.eu/#down | |
# version downloaded for this tutorial | |
# haproxy-1.4.15.tar.gz (wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.15.tar.gz) | |
$ tar -xvf haproxy-1.4.15.tar.gz |