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
> ideal <- read.table("C:/RProgram/tabulacao_IPM_ibiza.csv",header=TRUE,sep=";",dec=".",quote = "\"") | |
> ideal[,1] <- as.factor(ideal[,1]) | |
> summary(ideal[,1:6]) | |
consumidor product jasmim id_jasmim citrico id_citrico | |
19 : 12 bellaibiza :48 Min. : 0.00 Min. : 0.00 Min. : 0.00 Min. : 0.00 | |
1 : 6 imsotrendy :48 1st Qu.: 5.00 1st Qu.: 5.00 1st Qu.: 6.00 1st Qu.: 6.75 | |
2 : 6 liberte :48 Median :15.00 Median :15.00 Median :15.00 Median :15.50 | |
3 : 6 sensualgirl:48 Mean :25.53 Mean :25.34 Mean :24.24 Mean :25.07 | |
4 : 6 sexytouch :48 3rd Qu.:40.00 3rd Qu.:41.25 3rd Qu.:36.50 3rd Qu.:42.00 | |
5 : 6 sosexy :48 Max. :96.00 Max. :96.00 Max. :91.00 Max. :94.00 |
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
hdiutil convert -format UDRW -o ~/path/to/ubuntu.img ~/path/to/ubuntu.iso | |
diskutil list // Lista os discos | |
sudo dd if=/path/to/ubuntu.img of=/dev/rdiskN bs=1m // N teu pendriver | |
diskutil eject /dev/diskN // N teu pendriver |
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
(defn pay-billet | |
[billet-number] | |
(client/put | |
(str uri "/api/billings/pay?number=" billet-number) | |
{:headers h} | |
{:as :clojure})) | |
(defn pay-billets-found | |
[] | |
(count |
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
df <- data.frame(time = factor(c("NSGA-II AGM","PAES AGM","NSGA-II MM","PAES MM", "NSGA-II BET","PAES BET"), levels=c("NSGA-II AGM","PAES AGM","NSGA-II MM","PAES MM", "NSGA-II BET","PAES BET")), | |
total_time = c(307, 589, 215,332,857,1153)) | |
ggplot(data=df, aes(x=time, y=total_time)) + geom_bar(stat="identity") + xlab("PLA") + ylab("Tempo (min)") | |
# Map the time of day to different fill colors. These both have the same result. | |
ggplot(data=df, aes(x=time, y=total_time, fill=time)) + geom_bar(stat="identity") + xlab("PLA") + ylab("Tempo (min)") | |
ggplot(data=df, aes(x=time, y=total_time)) + geom_bar(aes(fill=time), stat="identity") + xlab("PLA") + ylab("Tempo (min)") | |
b <- ggplot(data=df, aes(x=time, y=total_time, fill=time)) + geom_bar(colour="black", stat="identity") + guides(fill=FALSE) + xlab("PLA") + ylab("Tempo (min)") |
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
(use '[clojure.core.match :only (match)]) | |
(defn my-last [xs] | |
(match [(count xs)] | |
[1] (first xs) | |
:else (my-last (rest xs)))) |
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
Ordering<Map.Entry<String, Double>> byMapValues = new Ordering<Map.Entry<String, Double>>() { | |
@Override | |
public int compare(Map.Entry<String, Double> left, Map.Entry<String, Double> right) { | |
return left.getValue().compareTo(right.getValue()); | |
} | |
}; | |
List<Map.Entry<String, Double>> edsValues = Lists.newArrayList(resultsEds.entrySet()); | |
Collections.sort(edsValues, byMapValues); |
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
\begin{document} | |
\begin{table*}[!htbp] | |
\centering | |
\fontsize{8pt}{10pt}\selectfont | |
%\addtolength{\tabcolsep}{-1pt} | |
\renewcommand{\arraystretch}{1.2} | |
\caption{Estudo 4 - Tempo de execução dos experimentos} | |
\begin{tabular}{c|c|c|c|c} | |
\hline | |
\multirow{1}[4]{*}{\textbf{PLA}} & \multicolumn{1}{c|}{\textbf{Tempo (seg)/Desv.p}}& \multicolumn{1}{c|}{\textbf{Tempo (seg)/Desv.p}} & \multicolumn{1}{c}{\textbf{Tempo (seg)/Desv.p}} \\ |
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
@Test | |
public void rui(){ | |
//HashSet Global | |
//Poderia ser um HashTree caso você queira uma esturura de arvore | |
HashSet<Set<String>> hs = new HashSet<>(); | |
HashSet<String> dset0 = new HashSet<String>(); | |
dset0.add("String 1"); | |
HashSet<String> dset1 = new HashSet<String>(); |
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
server { | |
listen 80; | |
server_name blog.tougg.com.br; | |
root /var/www/; | |
index index.php index.html index.htm; | |
location /{ | |
try_files $uri $uri/ /index.html; | |
} |
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
Mar 11 17:46:01 localhost CRON[26729]: (CRON) info (No MTA installed, discarding output) | |
Mar 11 17:47:01 localhost CRON[26759]: (root) CMD (/bin/bash -l -c 'backup perform --trigger backup_tougg --config-file /root/backup/config.rb') | |
Mar 11 17:47:01 localhost CRON[26758]: (CRON) info (No MTA installed, discarding outpu |