Skip to content

Instantly share code, notes, and snippets.

@pimatco
pimatco / carbrands.json
Created April 17, 2018 14:13
All Car Brands in the world in JSON
[{
"name": "AC"
}, {
"name": "AC PROPULSION"
}, {
"name": "ACURA"
}, {
"name": "A.D. TRAMONTANA"
}, {
"name": "ALFA ROMEO"
@pimatco
pimatco / all-angular-material-components-imports.txt
Last active December 6, 2023 15:24
All Angular Material Components Imports from app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
//Angular Material Components
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {MatCheckboxModule} from '@angular/material';
import {MatButtonModule} from '@angular/material';
@pimatco
pimatco / listadesobrenomesbrasileiros
Created February 26, 2018 18:02
Lista de Sobrenomes Brasileiros
"Agostinho",
"Aguiar",
"Albuquerque",
"Alegria",
"Alencastro",
"Almada",
"Almeida",
"Alves",
"Alves",
"Alvim",
@pimatco
pimatco / listadenomesbrasileiros-feminino-masculino
Created February 26, 2018 17:12
20000 Nomes Brasileiros Masculino e Feminino
"AANA",
"AANTONIO",
"AARAO",
"AARON",
"ABADIA",
"ABADIO",
"ABDA",
"ABDALA",
"ABDIAS",
"ABDIEL",
@pimatco
pimatco / estados-cidades-capitais.json
Last active June 24, 2022 14:05 — forked from letanure/estados-cidades.json
JSON com Estados Cidades Capitais e Regiões
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"região": "Norte",
"capital": "Rio Branco",
"cidades": [
"Acrelândia",
"Assis Brasil",
@pimatco
pimatco / SelecionarValoresUnicosDeJsonComJavascript.txt
Last active March 6, 2021 18:23
Select unique values from JSON file when clicking a button with Javascript
var json = [
{
"Year": 2001
},
{
"Year": 2017
},
{
"Year": 1900
},
@pimatco
pimatco / passwordregexp
Created February 26, 2018 16:33
Reg Exp Password Validation
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:
@pimatco
pimatco / rotating_irregular_animation
Created March 8, 2018 22:48
Animation CSS Rotating Irregular
/* 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);
@pimatco
pimatco / .htaccess
Created March 6, 2018 18:39 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#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/
@pimatco
pimatco / arrayofemaildomains
Created February 26, 2018 18:11
Array of email domains. Not all of them are used nowadays or available to everyone but it's there.
"0-mail.com",
"007addict.com",
"020.co.uk",
"027168.com",
"0815.ru",
"0815.su",
"0clickemail.com",
"0sg.net",
"0wnd.net",
"0wnd.org",