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
46dd0593-980c-43d6-a70a-67680b605efa Bebidas "" {} | |
84cba23a-2625-4721-8461-65859d2aa549 Alcoólicas {Bebidas} {46dd0593-980c-43d6-a70a-67680b605efa} | |
a2c149e6-924c-4921-b590-8b6d28e24db8 Não alcoólicas {Bebidas} {46dd0593-980c-43d6-a70a-67680b605efa} | |
5470e957-637c-40b2-8454-ea0b1874c123 Cervejas {Bebidas,Alcoólicas} {46dd0593-980c-43d6-a70a-67680b605efa,84cba23a-2625-4721-8461-65859d2aa549} | |
9b159956-a510-4982-8f47-8da3fa320fa6 Vinhos {Bebidas,Alcoólicas} {46dd0593-980c-43d6-a70a-67680b605efa,84cba23a-2625-4721-8461-65859d2aa549} | |
67178c0f-76c5-4c30-97e7-fe9970c9ad5d Licores {Bebidas,Alcoólicas} {46dd0593-980c-43d6-a70a-67680b605efa,84cba23a-2625-4721-8461-65859d2aa549} | |
34d22182-b7b0-4c6a-b3ce-392e91f316de Refrigerantes {Bebidas,Não alcoólicas} {46dd0593-980c-43d6-a70a-67680b605efa,a2c149e6-924c-4921-b590-8b6d28e24db8} | |
0c9a5aa9-04ca-4cbd-a73a-4277079c2e6c Sucos naturais {Bebidas,Não alcoólicas} {46dd0593-980c-43d6-a70a-67680b605efa,a2c149e6-924c-4921-b590-8b6d28e24db8} | |
76ad2e1c-4e18-41a9-a4e8-c49d0ad89dd6 Cerveja |
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
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
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
// Note na definição do serviço acima que ele possui muitas responsabilidades e podemos ainda adicionar mais, caímos no antipattern "God class", ela não é coesa, pois não possui uma responsabilidade bem definida, perde a escalabilidade pois para aterarmos qualquer uma das responsabilidades precisamos mexer na mesma base de código, por exemplo podemos quebrar o "create" pelo simples falo de mexer no "changeStatus", de forma simples podemos arrumar isso. | |
interface UserService { | |
User create(User user) throws DuplicatedEntityException; | |
User update(User user) throws EntityNotFoundException; | |
Optional<User> findUser(FilterUser filter) throws DatabaseExeption; | |
void delete(User user) throws EntityNotFoundException; |
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 function checkEmptyFields($data, ExecutionContextInterface $context) | |
{ | |
$confirmationEmailValue = $data['confirmation_email']->getValue(); | |
$blockPerTimeOrAccessValidity = $this->groupService->checkModuleIsActive('blockPerTimeOrAccessValidity'); | |
$accessCodeModule = $this->moduleService->checkModuleIsActive('access_code'); | |
$businessHoursModule = $this->moduleService->checkModuleIsActive('business_hours'); | |
$emailField = $this->customFieldsService->getFieldByNameType('email'); | |
$phoneField = ($this->customFieldsService->getFieldByNameType('phone') ?: $this->customFieldsService->getFieldByNameType('mobile')); | |
if ($accessCodeModule && $confirmationEmailValue == 1) { |
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": "StatusCodeError", | |
"statusCode": 409, | |
"message": "409 - \"{\\\"msg\\\":\\\"O software precisa de alguns segundos para atualizar a vers\\\\u00e3o da sua base de dados. Antes de continuar, pe\\\\u00e7a para todos os outros usu\\\\u00e1rios (na rede) fecharem o sistema. Migrar da vers\\\\u00e3o 24306 para 24307.\\\"}\"", | |
"error": "{\"msg\":\"O software precisa de alguns segundos para atualizar a vers\\u00e3o da sua base de dados. Antes de continuar, pe\\u00e7a para todos os outros usu\\u00e1rios (na rede) fecharem o sistema. Migrar da vers\\u00e3o 24306 para 24307.\"}", | |
"options": { | |
"uri": "https://api.superlogica.net/v2/financeiro/planos", | |
"headers": { | |
"Content-Type": "application/json", | |
"access_token": "***********", |
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
class Teste { | |
private int age; | |
private String name; | |
private Teste(String name) { | |
this.name = name; | |
} | |
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 | |
namespace Wideti\AdminBundle\Controller; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpFoundation\Request; | |
use Wideti\AdminBundle\Form\GroupType; | |
use Wideti\DomainBundle\Document\Group\Group; | |
use Wideti\DomainBundle\Helpers\Controller\AdminControllerHelper; | |
use Wideti\DomainBundle\Service\Configuration\ConfigurationServiceAware; |
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
You are running Composer with SSL/TLS protection disabled. | |
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
Your requirements could not be resolved to an installable set of packages. | |
Problem 1 | |
- doctrine/mongodb-odm 1.1.0 requires doctrine/mongodb ~1.3 -> satisfiable by doctrine/mongodb[1.3.0]. | |
- doctrine/mongodb-odm 1.1.1 requires doctrine/mongodb ~1.3 -> satisfiable by doctrine/mongodb[1.3.0]. | |
- doctrine/mongodb-odm 1.0.0 requires doctrine/mongodb ~1.2 -> satisfiable by doctrine/mongodb[1.2.0, 1.2.1, 1.2.2, 1.3.0]. | |
- doctrine/mongodb-odm 1.0.1 requires doctrine/mongodb ~1.2 -> satisfiable by doctrine/mongodb[1.2.0, 1.2.1, 1.2.2, 1.3.0]. |
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 | |
namespace YodaEventBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Event | |
* | |
* @ORM\Table(name="yoda_event") |
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
class DateToFind{ | |
private LocalDate startDate; | |
private LocalDate finalDate; | |
public DateToFind(LocalDate start, LocalDate end){ | |
startDate = start; | |
finalDate = end; | |
} | |
public LocalDate getStart(){ |
NewerOlder