new FormGroup({
cpfManualLength: new FormControl('', [
Validators.required,
Validators.pattern(/^(\d{3}\.){2}\d{3}\-\d{2}$/),
Validators.minLength(14), // digits + word characters
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
| import { Pipe, PipeTransform } from '@angular/core'; | |
| @Pipe({ | |
| name: 'firstWord' | |
| }) | |
| export class FirstWordPipe implements PipeTransform { | |
| transform(value: string): string { | |
| if (!value) { return ''; } | |
| return value.split(' ')[0]; |
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
| import { Directive, Input, ElementRef } from '@angular/core'; | |
| import { ScrollDispatcher, CdkScrollable } from '@angular/cdk/overlay'; | |
| @Directive({ | |
| selector: '[appParallax]' | |
| }) | |
| export class ParallaxDirective { | |
| el: HTMLElement; |
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
| DELETE p FROM persistences AS p | |
| LEFT JOIN users AS u | |
| ON u.id = p.user_id | |
| WHERE u.id IS NULL |
Themas e layouts completos:
Manuais de otimização/performance:
title: Diálogos de carregamento com o fancyBox 3 author: Luiz Barni type: post date: 2017-09-24 image: https://i.ytimg.com/vi/djlx7xdwlpI/maxresdefault.jpg excerpt: Como utilizar os diálogos de carregamento do fancyBox 3 para melhorar a UX do seu site! categories:
- JavaScript
- UX e Design
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
| function getType(obj) { | |
| return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); | |
| } |
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
| function isFunction(functionToCheck) { | |
| var getType = {}; | |
| return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; | |
| } |
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
| <?php | |
| /** | |
| * @author Luiz Filipe Machado Barni <[email protected]> | |
| * | |
| * @version 0.2.0 | |
| */ | |
| class ImageGD | |
| { | |
| public $image_src; // the source of the image |
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
| <?php | |
| include_once '../app/Mage.php'; | |
| /** | |
| * @author odahcam | |
| * | |
| * @version 1.0.0 | |
| * | |
| * @param {string|int} $product_id |