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
const createCsvWriter = require('csv-writer').createObjectCsvWriter | |
const fs = require('fs') | |
const readline = require('readline') | |
const records = [ | |
{sku: 'abc123', sellerId: '123456'}, | |
{sku: 'def123', sellerId: '789456'}, | |
{sku: 'yut741', sellerId: '741852'} | |
] |
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
return new String(Files.readAllBytes(new ClassPathResource(path).getFile().toPath())); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<dependencies> | |
</dependencies> | |
<build> |
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
@Configuration | |
@ComponentScan(basePackages = "br.com.hrom", | |
excludeFilters = { | |
@Filter(type = FilterType.REGEX, pattern = "br.com.hrom.queue.*") | |
}) | |
//@EnableAutoConfiguration and @Enable???Repositories in case of one or more depedencies need database repositories. | |
//Otherwise errors will occurrs when start the container | |
@EnableAutoConfiguration | |
@EnableMongoRepositories(basePackages = "br.com.hrom") |
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 class ConstraintValidatorContextImplTest { | |
private static String message = "message"; | |
@Test | |
public void testIterableIndexed() { | |
ConstraintValidatorContextImpl context = createEmptyConstraintValidatorContextImpl(); | |
context.buildConstraintViolationWithTemplate( message ) | |
.addPropertyNode( "foo" ) | |
.addPropertyNode( "bar" ).inIterable().atIndex( 3 ) |
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 com.maplink.axiodis.rest.api.endpoint; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.MessageSource; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.web.bind.MethodArgumentNotValidException; | |
import org.springframework.web.bind.annotation.ControllerAdvice; | |
import org.springframework.web.bind.annotation.ExceptionHandler; | |
import java.util.Locale; |
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
/* | |
@Author Hromenique Cezniowscki Leite Batista | |
Valida se um CPF é valido | |
@param valor um cpf (String) contendo apenas os dígitos | |
@return true se o cpf é valido, false caso contrário | |
*/ | |
function validaCPF(cpf) { | |
if(cpf.length != 11){ |
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
http://<SERVER>:<PROCESS_SERVER_PORT>/teamworks/executeServiceByName?processApp=<ACRONIMO_PROCESSAPP>&serviceName=<NOME_SERVICO>&<tw.local.param1=valor1>&<tw.local.param2=valor2>... |
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
If exists (select 1 from sys.procedures where name = 'myProcedure') | |
Drop Procedure myProcedure | |
--CREATE PROCEDURE myProcedure ...... |
NewerOlder