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
[{ | |
"name": "AC" | |
}, { | |
"name": "AC PROPULSION" | |
}, { | |
"name": "ACURA" | |
}, { | |
"name": "A.D. TRAMONTANA" | |
}, { | |
"name": "ALFA ROMEO" |
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
/* Safari 4.0 - 8.0 */ | |
@-webkit-keyframes example { | |
0% { | |
top:0px; | |
left: 0px; | |
opacity: 100; | |
-webkit-transform: rotate(0deg); | |
-ms-transform: rotate(0deg); | |
transform: rotate(0deg); |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
"0-mail.com", | |
"007addict.com", | |
"020.co.uk", | |
"027168.com", | |
"0815.ru", | |
"0815.su", | |
"0clickemail.com", | |
"0sg.net", | |
"0wnd.net", | |
"0wnd.org", |
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
"Agostinho", | |
"Aguiar", | |
"Albuquerque", | |
"Alegria", | |
"Alencastro", | |
"Almada", | |
"Almeida", | |
"Alves", | |
"Alves", | |
"Alvim", |
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
"AANA", | |
"AANTONIO", | |
"AARAO", | |
"AARON", | |
"ABADIA", | |
"ABADIO", | |
"ABDA", | |
"ABDALA", | |
"ABDIAS", | |
"ABDIEL", |
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
Minimum eight characters, at least one letter and one number: | |
"^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$" | |
Minimum eight characters, at least one letter, one number and one special character: | |
"^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{8,}$" | |
Minimum eight characters, at least one uppercase letter, one lowercase letter and one number: | |
"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$" | |
Minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character: |
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
import { Pipe, PipeTransform } from '@angular/core'; | |
import * as moment from 'moment'; | |
//insert your locale | |
moment.locale('pt-br'); | |
@Pipe({ | |
name: 'timeago', | |
}) | |
export class TimeagoPipe implements PipeTransform { | |
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
//returns a string | |
convertToLocalTimeToString(hora){ | |
hora = moment.utc(hora); | |
hora = hora.local().format(); | |
return hora; | |
} | |
//returns a moment obj - use to get difference | |
convertToLocalTimeToObj(hora){ | |
hora = moment.utc(hora); |
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
(focus)="myMethod()" // An element has received focus | |
(blur)="myMethod()" // An element has lost focus | |
(submit)="myMethod()" // A submit button has been pressed | |
(scroll)="myMethod()" | |
(cut)="myMethod()" | |
(copy)="myMethod()" | |
(paste)="myMethod()" |
NewerOlder