Skip to content

Instantly share code, notes, and snippets.

View huberflores's full-sized avatar

Huber Flores (El Magico) huberflores

View GitHub Profile
@huberflores
huberflores / fuzzyLogic.R
Last active April 2, 2022 22:43
Fuzzy logic in R
#
# 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)
@huberflores
huberflores / glpk-java.as
Last active March 31, 2022 20:22
GLPK and GLPK for java - Installation tutorial and Eclipse configuration
#
# author Huber Flores
#
GLPK Tutorial
Requires Eclipse 3.7 (Indigo). At the moment, there is no official plugin for Juno
#Install dependecies
> sudo
@huberflores
huberflores / statistical.R
Last active September 18, 2020 14:30
Statistical test analysis, Friedman and Pairwise Wilcoxon
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]
@huberflores
huberflores / dalvik.as
Last active December 14, 2019 17:06
Re-compiling dalvik machine
/*
* 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)
# 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)
@huberflores
huberflores / Adb-wifi
Created September 16, 2018 13:33
Adb-wifi
# 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
@huberflores
huberflores / tsungconf.as
Last active August 26, 2018 11:51
Tsung installation and Cluster Configuration
/*
* 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
@huberflores
huberflores / lpmodel-basics.R
Last active August 6, 2018 14:13
Linear programming in R - basic example
#
#author Huber Flores
#
library(lpSolveAPI)
library(ggplot2)
library(reshape)
library(gridExtra)
@huberflores
huberflores / common-linux-commands.as
Last active July 24, 2018 14:10
Common Linux commands
#
# 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
@huberflores
huberflores / R_Common_Commands.txt
Last active March 1, 2018 13:25
Common Commands to use in R
###DO NOT delete header###
#
# author Huber Flores
#
#clear screen
> command
Ctrl + l
>