View docker-compose.yml
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
version: '3' | |
services: | |
postgres: | |
image: postgres | |
environment: | |
POSTGRES_PASSWORD: "abcde" | |
ports: | |
- "15432:5432" | |
volumes: |
View config.env
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
ENVIRONMENT=dev | |
OTHER_CONFIG=BLAH |
View app.js
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
(function () { | |
angular.module('app', []) | |
.directive('botao', function () { | |
return { | |
restrict: 'E', | |
replace: true, | |
scope: { | |
label: '@', | |
tipo: '@', |
View travis.yml
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
language: java | |
jdk: | |
- oraclejdk8 | |
deploy: | |
provider: heroku | |
api-key: | |
secure: $HEROKU_API_KEY | |
app: ci-spring-boot |
View app.js
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
(function(){ | |
angular.module('acesso',[]) | |
.directive('permissaoAcesso', function(){ | |
return { | |
restrict: 'A', | |
link: function ($scope, element, attrs) { | |
if (attrs.permissaoAcesso === 'block') { | |
element.attr('disabled', 'disabled'); | |
element.append('<span class="block fa fa-lock"></span>'); |
View index.html
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
<!DOCTYPE html> | |
<html ng-app="app"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Blog do Gabriel Feitosa</title> | |
</head> | |
<body> | |
<h1>AngularJS: Validação de Formulário</h1> | |
<div ng-controller="CaixaController as vm"> | |
<form name="form" novalidate ng-submit="vm.sacar()"> |
View controller.js
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
(function() { | |
'use strict'; | |
angular.module('app') | |
.controller('LojaController', function($scope) { | |
var socket = io(); | |
var vm = this; | |
vm.pedido = {}; | |
vm.pedidos = []; | |
View chatfactory.js
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
(function() { | |
angular.module("app") | |
.factory("ChatFactory", function($http, $timeout) { | |
var promise; | |
var URL = "http://gf-chat.herokuapp.com/rest/mensagens/"; | |
var mensagens = []; | |
var aberto = false; | |
var contador = 5; | |
return { |
View bower.json
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": "bower-exemplo", | |
"version": "0.0.0", | |
"homepage": "https://github.com/gabrielfeitosa/blog_exemplos", | |
"authors": [ | |
"Gabriel Feitosa <gabfeitosa@gmail.com>" | |
], | |
"description": "", | |
"main": "", | |
"moduleType": [], |
View app.js
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
(function() { | |
'use strict'; | |
angular.module('app-filters', []); | |
angular.module('app-filters').filter('cpf', function() { | |
return function(input) { | |
var str = input + ''; | |
if(str.length <= 11){ | |
str = str.replace(/\D/g, ''); | |
str = str.replace(/(\d{3})(\d)/, "$1.$2"); |
NewerOlder