- Um nível de recuo por método.
- Não use a palavra-chave ELSE.
- Envolver todos os primitivos e Strings em classes. (em JS nao eh necessario)
- Funções de primeira classe // mudei p/ Function em vez de Class
- Um ponto por linha.
- Não abrevie.
- Mantenha todas os módulos com menos de 50 linhas.
- Nenhuma função com mais de dois parâmetros.
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
// INTERCEPTOR | |
import {Injectable, Injector} from '@angular/core'; | |
import { | |
HttpRequest, | |
HttpHandler, | |
HttpEvent, | |
HttpInterceptor, HttpErrorResponse, HttpResponse | |
} from '@angular/common/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/operator/do'; |
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
#------------------------------------------------------------------------------# | |
# OFFICIAL DEBIAN REPOS | |
#------------------------------------------------------------------------------# | |
###### Debian Main Repos | |
deb http://ftp.br.debian.org/debian/ jessie main contrib non-free | |
deb-src http://ftp.br.debian.org/debian/ jessie main contrib non-free | |
###### Debian Update Repos | |
deb http://security.debian.org/ jessie/updates main contrib non-free |