Provider | Singleton | Instantiable | Configurable |
---|---|---|---|
Constant | Yes | No | No |
Value | Yes | No | No |
Service | Yes | No | No |
Factory | Yes | Yes | No |
Decorator | Yes | No? | No |
Provider | Yes | Yes | Yes |
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
.then((d) => { | |
let respSuccess = {}; | |
respSuccess.pessoas = d; | |
// tb endereço | |
if (objEndereco.endcli_logradouro || objEndereco.endcli_cep || objEndereco.endcli_bairro || | |
objEndereco.endcli_pais || objEndereco.endcli_cidade || objEndereco.endcli_estado || | |
objEndereco.endcli_numero || objEndereco.endcli_complemento) { | |
knex('tb_Endereco_Cliente') |
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
.then((daAtualizado) => { | |
pessoas | |
.forge({ | |
cli_id: person.attributes.id | |
}) | |
.fetch() | |
.then((d) => { | |
// instancio o objeto que irá receber os valores | |
let respSuccess = {}; |
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
.then((pessoasData) => { | |
const list = pessoasData.map((data, i) => { | |
var objetoSend = {}; | |
objetoSend.pessoas = [{ | |
"cli_id": data.cli_id, | |
"fk_saas_id": data.fk_saas_id, | |
"fk_user_id": data.fk_user_id, | |
"cli_nome": data.cli_nome, | |
"cli_email": data.cli_email, |
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.tabelasFixas.cest') | |
.controller('CestController', CestController); | |
/** @ngInject */ | |
function CestController($state, Cest, $timeout, $http, $log) |
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
/** | |
* extend the localStorageService (https://github.com/grevory/angular-local-storage) | |
* | |
* - now its possible that data stored in localStorage can expire and will be deleted automagically | |
* - usage localStorageService.set(key, val, expire) | |
* - expire is an integer defininig after how many hours the value expires | |
* - when it expires, it is deleted from the localStorage | |
*/ | |
app.config(($provide) => { | |
$provide.decorator('localStorageService', ($delegate) => { |
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 data-ng-app="TestApp"> | |
<head> | |
<script src="http://code.angularjs.org/1.2.9/angular.js"></script> | |
<script> | |
angular.module('TestApp', []) | |
.factory('beforeUnload', function ($rootScope, $window) { | |
// Events are broadcast outside the Scope Lifecycle |
Olá pessoal, tudo bem? Vamos aprender a configurar um deploy utiizando Git? É super tranquilo!
Primeiro você vai ter que instalar o Git na sua máquina e no servidor e para fazer isso basta entrar no site oficial do Git:
Vamos iniciar pelo servidor
- No servidor você vai entrar usando ssh no diretório do seu projeto e criar uma pasta para o git com o comando:
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
<?php | |
//bancos brasileiros | |
$bancos = array( | |
array('code' => '001', 'name' => 'Banco do Brasil'), | |
array('code' => '003', 'name' => 'Banco da Amazônia'), | |
array('code' => '004', 'name' => 'Banco do Nordeste'), | |
array('code' => '021', 'name' => 'Banestes'), | |
array('code' => '025', 'name' => 'Banco Alfa'), | |
array('code' => '027', 'name' => 'Besc'), | |
array('code' => '029', 'name' => 'Banerj'), |
apt install php7.1-common php7.1-cli php7.1-zip php7.1-opcache php7.1-mysql php7.1-mcrypt php7.1-mbstring php7.1-json php7.1-intl php7.1-gd php7.1-fpm php7.1-curl php7.1-bz2
Copy the php7.1-fpm pool configuration from php7.0-fpm
cp -f /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.conf
OlderNewer