Skip to content

Instantly share code, notes, and snippets.

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

Jean Prado jeanfprado

🏠
Working from home
View GitHub Profile
@Bolinha1
Bolinha1 / desvioPadrao.php
Last active July 8, 2021 19:59
Calcula o desvio padrão de uma amostra, tanto desvio padrão amostral, quanto desvio padrão populacional
<?php
class DesvioPadrao
{
private $amostra;
public function __construct($amostra)
{
$this->amostra = explode(',', $amostra);
}
@AlexanderLindsay
AlexanderLindsay / bootstrap-modal-clear.js
Created April 24, 2016 02:57
javascript to clear a bootstrap modal on close
$(function () {
// when the modal is closed
$('#modal-container').on('hidden.bs.modal', function () {
// remove the bs.modal data attribute from it
$(this).removeData('bs.modal');
// and empty the modal-content element
$('#modal-container .modal-content').empty();
});
});