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
history | grep phrase_to_search_for |
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
# src/MDW/DemoBundle/Resources/config/routing.yml | |
blog_mostrar: | |
pattern: /blog/{slug} | |
defaults: { _controller: MDWDemoBundle:Blog:show } |
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 chmod -R 777 /Applications/Calculator.app |
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
<h1>Match all image files (image/*)</h1> | |
<p><label>image/* <input type="file" accept="image/*"></label></p> | |
<h1>Match all video files (video/*)</h1> | |
<p><label>video/* <input type="file" accept="video/*"></label></p> | |
<h1>Match all audio files (audio/*)</h1> | |
<p><label>audio/* <input type="file" accept="audio/*"></label></p> | |
<h1>Match all image files (image/*) and files with the extension ".someext"</h1> |
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
git push --all origin |
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
git remote show origin |
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_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
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
USE bdtienda; DELIMITER $$ -- inicio DROP PROCEDURE IF EXISTS sp_productoPorCod$$ -- eliminamos si existe un procedimiento con el mismo nombre CREATE PROCEDURE sp_productoPorCod (IN cod INT) -- creamos el procedimiento con un parámetro de entrada BEGIN -- inicio cuerpo procedimiento almacenado DECLARE estadoOfert CHAR(2); -- declaramos una variable local para almacenar el estado de Oferta. /* Hacemos una consulta y el resultado lo almacenamos en la variable declarada*/ SELECT oferta INTO estadoOfert FROM productos WHERE oferta = 'SI' AND codproducto = cod; IF estadoOfert = 'SI' THEN -- si está en oferta elegimos precio_oferta SELECT codproducto, nombreproduc, precio_oferta FROM productos WHERE codproducto = cod; ELSE -- sino el precio_normal SELECT codproducto, nombreproduc, precio_normal FROM productos WHERE codproducto = cod; END IF; END $$ -- fin de cuerpo del procedimiento almacenado DELIMITER ; -- fin call sp_productoPorCod(2); -- llamamos al proced |
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 TIMESTAMPDIFF(YEAR, Campo , CURDATE()) AS age |
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
cd <localdir> | |
git init | |
git add . | |
git commit -m 'message' | |
git remote add origin <url> | |
git push -u origin master |