#CSS
#ajaxLoadOverlay{
background: rgba(0, 0, 0, 0.8) url('../images/ring-alt.svg') no-repeat scroll center center;
display: none;
height: 100%;
position: fixed;
top: 0;
width: 100%;
z-index: 1001;
/** | |
* This function takes a multidimensional array and return a flat array by running recursively | |
* @param arr | |
* @returns {Array} | |
*/ | |
const arr_flatten = (arr) => { | |
//empty accumulator | |
const flat = []; | |
arr.forEach(item => { |
<?php | |
$array_loco = []; | |
for($i = 0; $i < 1000; $i++) { | |
$array_loco[] = $i; | |
} | |
mt_srand('2'); |
@media (max-width: 1000px) { | |
.navbar-header { | |
float: none; | |
} | |
.navbar-toggle { | |
display: block; | |
} | |
.navbar-collapse { | |
border-top: 1px solid transparent; | |
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !/wp-admin | |
RewriteCond %{REQUEST_URI} !/wp-includes | |
RewriteCond %{REQUEST_URI} !/wp-login\.php$ | |
RewriteCond %{REQUEST_URI} !/wp-content | |
RewriteCond %{REQUEST_URI} !/feed |
#CSS
#ajaxLoadOverlay{
background: rgba(0, 0, 0, 0.8) url('../images/ring-alt.svg') no-repeat scroll center center;
display: none;
height: 100%;
position: fixed;
top: 0;
width: 100%;
z-index: 1001;
Para que el comportamiento de búsqueda sea el mismo de siempre: | |
gsettings set org.gnome.nautilus.preferences enable-interactive-search true |
$(document).on('submit', '#contact' , function(event) { | |
url = $(this).attr("action"); | |
console.log(url); | |
$.ajax({ | |
type: "POST", | |
url: url, | |
datatype: "json", | |
data: { | |
"name": $("#contact #name").val(), |
select * from | |
product P, | |
(SELECT idProduct as prodStock, max(unitPrice) as maxPrice from buy B where stockAvailable>0 GROUP BY idProduct) L | |
WHERE | |
P.idProduct=prodStock | |
AND | |
P.unitSellingPrice<=maxPrice | |
; |
$log = $this->Alerta->getDataSource()->getLog(false, false); debug($log); |
$alertasLlegando = $this->Alerta->find('all', array('conditions' => array( | |
'Alerta.lat >= ' => $area['lat1'], | |
'Alerta.lat <= ' => $area['lat2'], | |
'Alerta.lng <= ' => $area['lng1'], | |
'Alerta.lng <= ' => $area['lng2'], | |
'Alerta.estado' => 'llegando', | |
), | |
'limit' => 5, | |
'order' => array('Alerta.updated' => 'DESC') | |
)); |