Skip to content

Instantly share code, notes, and snippets.

View eminetto's full-sized avatar
:octocat:
always learning

Elton Minetto eminetto

:octocat:
always learning
View GitHub Profile
<?php
public function unsubscribe($user, $category) {
// Se o usuário pode ser bloqueado
if ($this->isUserLockable($user)) {
// Se a categoria pode ser bloqueada
if ($this->isCategoryLockable($category)) {
// Se essa opção não foi executada ainda, ou seja, usuário e categoria não estão bloqueados ainda
if (!$this->isUserAndCategoryLocked($user, $category)) {
@eminetto
eminetto / VagaBackendCoderockr.md
Last active May 15, 2017 17:27
Vaga desenvolvedor Backend Coderockr

Requisitos

  • Conhecimentos avançados em Orientação a Objetos
  • Conhecimentos avançados em linguagens de programação para backend como PHP, Python, Go
  • Conhecimentos em algum framework como Zend Framework, Zend Expressive, Silex, Django, Symfony ou similares
  • Conhecimentos em ORMs como Doctrine 2 (entidades, relacionamentos, consultas)
  • Conhecimentos avançados em testes unitários
  • Conhecimentos em banco de dados como MySQL e PostgreSQL
  • Conhecimentos em Git (branches, Pull Requests)
  • Inglês técnico, pelo menos para leitura
{
"name": "Planrockr",
"version": "1.0.0",
"description": "Planrockr",
"title": "Planrockr API",
"url" : "http://app.planrockr.dev/rpc/v1"
}
/**
* @api {post} /bitbucket/saveRepository Save a new repository
* @apiVersion 1.0.0
* @apiName SaveRepository
* @apiGroup Bitbucket
*
* @apiParam (parameters) {String} projectId Project's ID
* @apiParam (parameters) {String} repository[uuid] Repository's Id
* @apiParam (parameters) {String} repository[owner] Repository's Owner
* @apiParam (parameters) {String} repository[slug] Repository's Slug
debug: false
timezone: "America/Sao_Paulo"
date_format: dd.MM.yyyy HH:mm:ss
display_logger: true
default_limit: 100
cache_expire: 300
reverse_line_order: true
logs:
Monolog:
Logs:
XHProf runs: 138
* Core\Helper\TaskPullRequestTraitTest::testPercentages
http://localhost:8888?run=57079ba289d44&source=Planrockr
* Planrockr\DataSource\Trello\WeeklyMailTest::testProcess
http://localhost:8888?run=57079ba4405dc&source=Planrockr
* Planrockr\DataSource\Bitbucket\BitbucketTest::testSaveRepository
http://localhost:8888?run=57079ba58da6f&source=Planrockr
You should really fix these slow tests (>500ms)...
1. 3910ms to run Planrockr\Service\TeamTest:testWithoutMembers
2. 3165ms to run Planrockr\Service\UserTest:testCreateUser
3. 2764ms to run Planrockr\Service\UserTest:testCreateUserWithPromotion
4. 2579ms to run Planrockr\Service\TeamTest:testDeleteTeamWithoutPermission
5. 2453ms to run Planrockr\Service\TeamTest:testCreateWithFullData
6. 2135ms to run Planrockr\DataSource\Github\UpdaterTest:testCreateBranch
7. 2119ms to run Planrockr\DataSource\Github\UpdaterTest:testFork
8. 2113ms to run Planrockr\Service\TeamTest:testDeleteTeam
9. 2032ms to run Planrockr\Service\ProjectTest:testDelete
<listener class="PHPUnit\XHProfTestListener\XHProfTestListener" file="vendor/phpunit/test-listener-xhprof/src/XHProfTestListener.php">
<arguments>
<array>
<element key="appNamespace">
<string>Planrockr</string>
</element>
<element key="xhprofWeb">
<string>http://localhost:8888</string>
</element>
<element key="xhprofLibFile">
Verifying that +eminetto is my blockchain ID. https://onename.com/eminetto
<?php
namespace Beer\Model;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="Beer")
*/
class Beer