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 | |
# | |
# Example of fuzzy logic in R | |
# The main idea is to have fuzzy sets for each of the dimensions | |
# each attribute in the dimension can be defined as a fuzzy set with their respective linguistic variables, terms and membership functions | |
library(sets) |
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 | |
# | |
GLPK Tutorial | |
Requires Eclipse 3.7 (Indigo). At the moment, there is no official plugin for Juno | |
#Install dependecies | |
> sudo |
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
suppressWarnings(library(tidyverse)) | |
suppressWarnings(library(ggpubr)) | |
suppressWarnings(library(rstatix)) | |
mydata <- read.csv("mydata-fixedhold.csv", sep=",", header = T) | |
myvars <- c("id", "cigarette", "bottle", "cup") | |
newdata <- mydata[myvars] | |
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 | |
*/ | |
#We also can provide you with Amazon image (AMI) public with Android x86 | |
#Please contact to huber AT UT DOT ee for granting access | |
# CyanogendMod/Android environment must be set up first | |
# refer to CM7Guide (https://gist.github.com/huberflores/4687766) |
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
# From socket module we import the required structures and constants. | |
from socket import AF_INET, SOCK_DGRAM, socket | |
if __name__ == '__main__': | |
print 'Application started' | |
# Creating a UDP/IP socket | |
s = socket(AF_INET, SOCK_DGRAM) |
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 | |
#Open Android Studio and connect your device via USB | |
#Computer and phone need to be connected to the same Network | |
#Open terminal | |
$ huberflo@hp8x-78:~$ adb tcpip 5555 | |
restarting in TCP mode port: 5555 |
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 | |
*/ | |
# Install on each Node | |
$ su | |
# Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set. | |
$ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl |
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 | |
# | |
library(lpSolveAPI) | |
library(ggplot2) | |
library(reshape) | |
library(gridExtra) |
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 | |
# | |
#To upload files to remote server | |
$ scp -i /home/huber/Desktop/TechnicalInformation/HuberFlores/Ireland/pk-huber_flores.pem -r /home/huber/Desktop/code.zip ubuntu@ec2-xxx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com:/home/ubuntu/android-x86/ | |
#To download files from remote server | |
$ scp -i /home/huber/Desktop/TechnicalInformation/HuberFlores/Ireland/pk-huber_flores.pem -r ubuntu@ec2-xxx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com:/home/ubuntu/android-x86/code.zip /home/huber/Desktop/code.zip |
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
###DO NOT delete header### | |
# | |
# author Huber Flores | |
# | |
#clear screen | |
> command | |
Ctrl + l | |
> |
NewerOlder