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
from abc import ABC, ABCMeta, abstractmethod | |
from collections import namedtuple | |
from itertools import count | |
PayloadFactory = namedtuple('PayloadFactory', [ | |
'good', 'created', 'queued', 'unchanged', 'requires_auth', | |
'permission_denied', 'not_found', 'invalid', 'error' | |
]) | |
""" |
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
package br.com.openpdv.rest; | |
import br.com.phdss.Util; | |
import br.com.openpdv.modelo.core.EBusca; | |
import br.com.openpdv.modelo.core.OpenPdvException; | |
import br.com.openpdv.modelo.core.filtro.*; | |
import br.com.openpdv.modelo.ecf.EcfNotaEletronica; | |
import br.com.openpdv.modelo.ecf.EcfPagamentoTipo; | |
import br.com.openpdv.modelo.produto.ProdEmbalagem; | |
import br.com.openpdv.modelo.produto.ProdProduto; |
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
public List<Area> findByParent(Long id){ | |
return areaRepository.findByParentId(id); | |
} | |
public List<Area> findChildrensById(Long id){ | |
Area current = findById(id); | |
ArrayList<Area> areas = new ArrayList<>(); | |
buildChildrensById(areas, current); | |
areas.sort(Comparator.comparing(Area::getId)); |
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
package br.com.jexperts.conformit.integration.oversight; | |
import br.com.jexperts.conformit.integration.IntegrationTestBase; | |
import br.com.jexperts.conformit.integration.util.WebTestConstants; | |
import br.com.jexperts.conformit.oversight.dto.DocumentFormDTO; | |
import br.com.jexperts.conformit.oversight.dto.DocumentTypeDTO; | |
import com.auth0.jwt.internal.com.fasterxml.jackson.databind.util.ISO8601DateFormat; | |
import com.github.springtestdbunit.annotation.DatabaseSetup; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; |
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
{ | |
"websocket_server": false, | |
"heartbeat_threshold": 10, | |
"enable_social": true, | |
"live_config_update": { | |
"enabled": false, | |
"tasks_only": false | |
}, | |
"tasks": [ | |
{ |
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
$scope.$on('adfDashboardChanged', function (event, name, model) { | |
DashboardService.save($scope.model).$promise.then(function(response){ | |
toastr["success"]("Dashboard salvo com sucesso!"); | |
$location.path(url); | |
}); | |
}); |
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('dashboardWeb') | |
.factory('DashboardService', DashboardService); | |
/** @ngInject */ | |
function DashboardService($resource) { | |
return $resource('/conformit/api/v1/oversights/:widget/:id', {id: "@id"}, { |
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
for f in `find . -name *.java`; do | |
encoding=$(file -i "$f" | sed "s/.*charset=\(.*\)$/\1/") | |
if [ ! "$encoding" = "utf-8" ]; then | |
echo recoding $f.. from $encoding to 'utf-8' | |
recode $encoding..utf-8 "$f" | |
sed -i -- 's/ISO-8859-1/UTF-8/g' $f | |
fi | |
done |
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
cat dump | docker exec -i postgres psql conformit -U postgres |
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
apply plugin: 'war' | |
apply plugin: 'java' | |
compileJava.options.encoding = 'iso-8859-1' | |
compileJava.options.compilerArgs << '-Xlint:unchecked' | |
compileJava.options.compilerArgs << '-Xlint:deprecation' | |
compileJava.options.fork = true | |
compileJava.options.forkOptions.setMemoryMaximumSize("4g") | |
targetCompatibility = 1.6 |