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
version: '3' | |
services: | |
postgres: | |
image: postgres | |
environment: | |
POSTGRES_PASSWORD: "abcde" | |
ports: | |
- "15432:5432" | |
volumes: |
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
ENVIRONMENT=dev | |
OTHER_CONFIG=BLAH |
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 () { | |
angular.module('app', []) | |
.directive('botao', function () { | |
return { | |
restrict: 'E', | |
replace: true, | |
scope: { | |
label: '@', | |
tipo: '@', |
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
language: java | |
jdk: | |
- oraclejdk8 | |
deploy: | |
provider: heroku | |
api-key: | |
secure: $HEROKU_API_KEY | |
app: ci-spring-boot |
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(){ | |
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>'); |
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
<!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()"> |
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() { | |
'use strict'; | |
angular.module('app') | |
.controller('LojaController', function($scope) { | |
var socket = io(); | |
var vm = this; | |
vm.pedido = {}; | |
vm.pedidos = []; | |
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() { | |
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 { |
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
{ | |
"name": "bower-exemplo", | |
"version": "0.0.0", | |
"homepage": "https://github.com/gabrielfeitosa/blog_exemplos", | |
"authors": [ | |
"Gabriel Feitosa <[email protected]>" | |
], | |
"description": "", | |
"main": "", | |
"moduleType": [], |
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() { | |
'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