This file contains hidden or 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
    
  
  
    
  | git branch | grep -v "master\|develop\|homol" | xargs git branch -D | 
  
    
      This file contains hidden or 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 delegate(parent, event, selector, callback) { | |
| const listener = (e) => { | |
| const currentTarget = e.target.closest(selector); | |
| if (!currentTarget) { | |
| return; | |
| } | |
| const newEvent = {}; | |
| for (const i in e) { | |
| newEvent[i] = e[i]; | |
| } | 
  
    
      This file contains hidden or 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 printProtoChain(element){ | |
| let proto = element.constructor.prototype; | |
| let result = []; | |
| while(proto){ | |
| result.push(proto.constructor.name); | |
| proto = Object.getPrototypeOf(proto); | |
| } | |
| return result.join("->"); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | 1 - Criar arquivo em algum lugar, preferencialmente ~/.gitmessage, com o conteudo: | |
| ########50 characters############################ | |
| Subject | |
| ########72 characters################################################## | |
| Problem/Purpose | |
| # Problem, Task, Reason for Commit | |
| Solution | |
| # Solution or List of Changes | |
| Note | 
  
    
      This file contains hidden or 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 | |
| //each 3 times | |
| $users_kicks = ['teste 1', 'teste 2', 'teste 3', 'teste 4', 'teste 1', 'teste 2', 'teste 3', 'teste 4', 'teste 1']; | |
| foreach (array_chunk($users_kicks, 3, true) as $array) { | |
| echo '<div class="row">'; | |
| foreach ($array as $kicks) { | |
| echo "<div class='col-md-4'>$kicks</div>"; | |
| } | |
| echo '</div>'; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | version: "3.7" | |
| services: | |
| proxy: | |
| image: traefik:v2.2 | |
| command: | |
| - "--api.insecure=true" | |
| - "--providers.docker" | |
| - "--log.level=DEBUG" | |
| - "--providers.docker.swarmMode=true" | 
  
    
      This file contains hidden or 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"?> | |
| <ruleset name="PHP_CodeSniffer"> | |
| <description>Ajuste para PSRs 1|2|12</description> | |
| <file>app</file> | |
| <file>routes</file> | |
| <file>resources/views</file> | |
| <exclude-pattern>.(.js|.css|.blade.php)</exclude-pattern> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // count = 2.5 => [2,0.5] | |
| //separa parte inteira da decimal | |
| const [int,dec] = count.toString().split('.').map(el => parseInt(el,10)); | 
  
    
      This file contains hidden or 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 App\Exceptions; | |
| use Exception; | |
| use Illuminate\Http\JsonResponse; | |
| use Illuminate\Validation\ValidationException; | |
| use Illuminate\Auth\Access\AuthorizationException; | |
| use Illuminate\Database\Eloquent\ModelNotFoundException; | |
| use Laravel\Lumen\Exceptions\Handler as ExceptionHandler; |