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 / Latex_routines.tex
Last active August 29, 2015 14:11
How to of some latex packages
%
% 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"
@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 / Maven-development.as
Last active January 20, 2016 14:15
maven fixes
#
# author Huber Flores
#
$ mvn install
#Build jar with dependencies
$ mvn assembly:assembly -DdescriptorId=jar-with-dependencies
@huberflores
huberflores / software-development.txt
Last active May 11, 2016 07:36
useful development links
#
# author Huber Flores
#
1- java bugs - http://bugs.java.com/
2- Ubuntu packages - https://packages.debian.org/wheezy/amd64/sysstat/download
3- Icon design apps - http://www.iconarchive.com/show/flatastic-8-icons-by-custom-icon-design.2.html
@huberflores
huberflores / data-normalization.R
Created October 23, 2015 13:00
Normalization of data in a range using R
# 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)
@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 / file.R
Created November 9, 2015 14:36 — forked from mollietaylor/file.R
Storing a Function in a Separate File in R
# 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)
@huberflores
huberflores / decision-engine.R
Last active November 11, 2015 11:07
A fuzzy logic engine for computational offloading - simulation version
#
# 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)
@huberflores
huberflores / bluetooth1.dot
Last active December 27, 2015 01:33
social graph with graphivz
digraph Bluetooth {
graph [ dpi = 300 ];
p0-> p9;
p0-> p10;
p0-> p11;
p0-> p12;
p0-> p13;
p0-> p14;
p0-> p15;
p0-> p16;
@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)