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
/** | |
* This functions is for ajax error handling | |
* Now it can captch these erroCode 0,400,403,404 y 500, so you can add more an more status code | |
*/ | |
$(function() { | |
//Setup ajax error handling | |
$.ajaxSetup({ | |
data: { | |
'csrf_tkn': $("[name='csrf_tkn']").val()//If you have a token that you need to send in each one requests | |
}, |
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 | |
/** | |
* Calcular desviacion Estandar | |
* @author evilnapsis | |
**/ | |
$nums = array(1,4,7,2,6); | |
$sum=0; | |
for($i=0;$i<count($nums);$i++){ | |
$sum+=$nums[$i]; |