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
sudo apt-get update | |
sudo apt-get install | |
sudo apt-get install ubuntu-restricted-extras | |
sudo apt-get install preload | |
sudo apt-get install google-chrome-stable | |
sudo apt install yakuake | |
sudo apt-get install vlc | |
sudo apt-get install firefox | |
transmission torrent |
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 | |
/* | |
* @link: https://wordpress.stackexchange.com/questions/12965/custom-page-with-variables-in-url-nice-url-with-add-rewrite-rule | |
* | |
I think the add_rewrite_tag() is not needed, and can be replaced with adding the variables to the public query vars directly: | |
*/ | |
// Either directly (in your init hook): | |
$wp->add_query_var( 'var1' ); | |
$wp->add_query_var( 'var2' ); |
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
function getHeightHeader() { | |
var height = 0; | |
if ($('.header-page').length === 1) { | |
$headerPage = $('.header-page'); | |
if ($headerPage.css('position') === 'fixed') { | |
height = $headerPage.height(); | |
} | |
} | |
return height; | |
} |
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
/** | |
* Herencia basada en prototipos javascript | |
* definir un objeto padre o prototipo | |
* asi: todos los objetos de este tipo (objetos hijos) | |
* asi: se evita que cada objeto repita las propiedades y metodos comunes. | |
* | |
* Usando call, apply y bind | |
* ref: http://blog.amatiasq.com/2012/01/javascript-conceptos-basicos-this-call-y-apply/ | |
*/ |
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
SELECT * FROM catalog_product_entity_varchar | |
where value like '%labial-cy-mad-4-color%' and attribute_id =(SELECT attribute_id FROM eav_attribute WHERE attribute_code LIKE 'url_key' and entity_type_id=4 ) |
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
var $sectionSteps = $('#section-steps'); | |
var enterSectionStepFirtTime = false; | |
jQuery(window).scroll(function() { | |
var window_width = jQuery(window).width(); | |
var window_height = 0; | |
var heightViewport = jQuery( window ).height(); |
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 lbel_enqueue_custom() { | |
if ( is_page_template('templates/template-home.php')) { | |
wp_enqueue_script('template-home', get_template_directory_uri() . '/js/template-home.js', array(), false, true); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'lbel_enqueue_custom' ); |
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 | |
// no mostrar assets en admin | |
$screen = get_current_screen(); | |
if ( 'toplevel_page_tt_list_test' != $screen->id ) | |
return false; | |
} |
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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
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
UPDATE wp_altimea_subcription_mail_plugin SET firstname = REPLACE(firstname, ',', '') WHERE INSTR(firstname, ',') > 0; | |
UPDATE wp_altimea_subcription_mail_plugin SET lastname = REPLACE(lastname, ',', '') WHERE INSTR(lastname, ',') > 0; |