Skip to content

Instantly share code, notes, and snippets.

View edipofederle's full-sized avatar
🏠
Working from home

Édipo Féderle edipofederle

🏠
Working from home
View GitHub Profile
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
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;
}
@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>();
\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}} \\
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);
(use '[clojure.core.match :only (match)])
(defn my-last [xs]
(match [(count xs)]
[1] (first xs)
:else (my-last (rest xs))))
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)")
(defn pay-billet
[billet-number]
(client/put
(str uri "/api/billings/pay?number=" billet-number)
{:headers h}
{:as :clojure}))
(defn pay-billets-found
[]
(count
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
> 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