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
Tamanho: 1, QTD: 30, Média: 2.96666666667, Variância: 2.03222222222, desvio padrão: 1.42556031869 | |
Tamanho: 2, QTD: 115, Média: 3.67826086957, Variância: 2.54865784499, desvio padrão: 1.59645164192 | |
Tamanho: 3, QTD: 514, Média: 3.93385214008, Variância: 2.99951551121, desvio padrão: 1.73191094206 | |
Tamanho: 4, QTD: 2670, Média: 4.04531835206, Variância: 4.36461291363, desvio padrão: 2.08916560225 | |
Tamanho: 5, QTD: 6619, Média: 4.25003777006, Variância: 3.74243654488, desvio padrão: 1.9345378117 | |
Tamanho: 6, QTD: 11227, Média: 4.43092544758, Variância: 27.9154879028, desvio padrão: 5.2835109447 | |
Tamanho: 7, QTD: 16389, Média: 4.79510647385, Variância: 1025.47232702, desvio padrão: 32.0229968463 | |
Tamanho: 8, QTD: 19123, Média: 36.7598180202, Variância: 19606561.2942, desvio padrão: 4427.92968488 | |
Tamanho: 9, QTD: 19199, Média: 4.98968696286, Variância: 153.82061347, desvio padrão: 12.4024438507 | |
Tamanho: 10, QTD: 16773, Média: 5.07696893817, Variância: 5.27381107141, desvio padrão: 2.29647797103 |
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
# -*- coding: utf-8 -*- | |
import dataset | |
from scipy import std, var, mean | |
db = dataset.connect('mysql://root@localhost/luciana') | |
table = db['prodeaf'] | |
def calculate(length=None): | |
size = length |
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
<html> | |
<head> | |
<title>Teste de formulário</title> | |
<meta charset="utf8"> | |
<style> | |
* {box-sizing: border-box;} | |
body { | |
font-family: sans-serif; | |
color: #555; |
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
lixo = gets.chop.to_i | |
result = { | |
2 => 0, | |
3 => 0, | |
4 => 0, | |
5 => 0 | |
} | |
arr = gets.chomp.split |
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
abas, acoes = gets.chop.split | |
abas = abas.to_i | |
acoes.to_i.times do | |
acao = gets.chop | |
if acao == "fechou" | |
abas = abas + 1 | |
else | |
abas = abas - 1 |
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
# config/initializers/carrierwave.rb | |
require 'mini_magick' | |
module CarrierWave | |
module MiniMagick | |
# round _square_ image | |
def round | |
manipulate! do |img| | |
img.format 'png' |
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
<?php | |
$inputs = array( | |
"nome" => "Joffily", | |
"idade" => "18", | |
"musica" => "Gibe my monei" | |
); | |
?> | |
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
<?php | |
/* | |
* Este exemplo mostra o conteúdo de um arquivo em um textarea | |
*/ | |
/* | |
* Funções PHP | |
* fopen() - Abre um arquivo. | |
* isset() - Verifica se a variável foi setada (aponta pra algum canto). |
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
<?php | |
/* | |
* Este exemplo recebe argumentos via $_GET e exibe na tela | |
* | |
* Acesse o arquivo via browser com argumentos | |
* /arquivo.php?nome=seu-nome&idade=sua-idade | |
* | |
* Acesse o arquivo via browser sem argumentos | |
* /arquivo.php |