This file contains 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
$("#provincia option[value="+ valor +"]").attr("selected",true); |
This file contains 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
//redimensionar | |
function rezise($SrcImage, $DestImage, $MaxWidth=980, $MaxHeight=0, $Quality=90) { | |
list($iWidth, $iHeight, $type)=getimagesize($SrcImage); | |
//echo $type; | |
//solo redimensional mayores a 1200 | |
if ($iWidth>3000 || $iHeight>3000) { | |
//=== si no se pone el alto ====// | |
if (($MaxHeight == 0) && isset($MaxWidth)) { |
This file contains 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
#Actualizar | |
yum update | |
#instalar apache | |
yum install -y httpd | |
#iniciar apache | |
sudo service httpd start | |
#nano |
This file contains 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 | |
/** | |
* Hide the main editor on specific pages | |
*/ | |
define('EDITOR_HIDE_PAGE_TITLES', json_encode(array())); | |
define('EDITOR_HIDE_PAGE_TEMPLATES', json_encode(array('template-cars.php'))); | |
/** | |
* Hide the main editor on defined pages |
This file contains 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
$(window).scroll(function(){ | |
if ($(window).scrollTop() >= 300) { | |
$('nav').addClass('fixed-header'); | |
} | |
else { | |
$('nav').removeClass('fixed-header'); | |
} | |
}); |
This file contains 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 | |
// Load the theme stylesheets | |
function theme_styles() { | |
// Example of loading a jQuery slideshow plugin just on the homepage | |
wp_register_style( | |
'bootstrap-styles', // handle name | |
get_template_directory_uri() . '/css/styles.min.css', // the URL of the stylesheet | |
array(), // an array of dependent styles |
This file contains 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
<!-- Actualiza tu etiqueta HTML para incluir itemscope y itemtype. --> | |
<html itemscope itemtype="http://schema.org/Article"> | |
<!-- Coloca estos datos entre las etiquetas <head> de tu página web --> | |
<title>Título de la página. Longitud máxima 60-70 caracteres</title> | |
<meta name="description" content="Descripción de la página. Longitud máxima 155 caracteres." /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Google Authorship y Marcado de Anunciante --> | |
<link rel="author" href="<a "="">https://plus.google.com/[Perfil_Google+]/posts"/> |
This file contains 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 | |
function remove_posts_menu() { | |
remove_menu_page('edit.php'); | |
} | |
add_action('admin_init', 'remove_posts_menu'); |
This file contains 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
#!/usr/bin/env bash | |
#Basics | |
sudo apt-get install -y nano | |
sudo apt-get install -y build-essential | |
sudo apt-get install -y software-properties-common | |
sudo apt-get install -y python-software-properties | |
sudo apt-get install -y mc | |
#Repositorio de php extra |
OlderNewer