new FormGroup({
cpf: new FormControl('', [
Validators.required,
Validators.pattern(/^(\d{3}\.){2}\d{3}\-\d{2}$/),
Validators.minLength(14),
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
| <h1 class="shimmer">Some Shimmer Text</h1> | |
| <style> | |
| @import url('http://fonts.googleapis.com/css?family=Alegreya+Sans:300'); | |
| body{ | |
| background: #000; | |
| } | |
| .shimmer{ | |
| /* styling stuff */ | |
| font-family:"Alegreya Sans"; |
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
| // create a bookmark and use this code as the URL, you can now toggle the css on/off | |
| // thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
| javascript: (function() { | |
| var elements = document.body.getElementsByTagName('*'); | |
| var items = []; | |
| for (var i = 0; i < elements.length; i++) { | |
| if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
| items.push(elements[i]); | |
| } | |
| } |
mysqldump -u <user> -p -h <server.domain.com> <bd> > dumps/dump.sql --single-transaction
mysql -u <user> -p -v -h <server.domain.com> <bd> < dumps/dump.sql
gunzip < arquivo_dump.sql.gz | mysql <nome_do_banco>
mysql -e 'drop schema <nome_do_banco> ; create schema <nome_do_banco>' ; gunzip < /caminho/do/sql.gz | mysql <nome_do_banco>
- Criar um arquivo chamado Mostviewed.php no seguinte caminho: app/code/local/Mage/Catalog/Block/Product/Mostviewed.php
2 ) Adicionar o seguinte código:
<?php
/**
* Lista Produtos Mais visualizados
* @author Carlos Gartner <[email protected]>
*/
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
| UPDATE sales_flat_order_grid SET status = 'canceled' WHERE increment_id = <order_increment_id>; | |
| UPDATE sales_flat_order SET state='canceled', status='canceled' WHERE increment_id =<order_increment_id>; |