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 | |
| $input = 'nome:ps4 sku:SKU7889-988;OI99129 data:10/12/2016 nome:Playstation 4 nome:Nintendo Wii sku:TESTE123 9aos'; | |
| preg_match_all('/(?:([^: ]+):)([^: ]+(?:\s+[^: ]+\b(?!:))*)/', $input, $matches, PREG_SET_ORDER); | |
| echo $input; | |
| echo '<pre>'; | |
| print_r($matches); | |
| echo '</pre>'; |
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
| #!/bin/bash | |
| sed -i -e 's/numprocs=[0-9]*/numprocs=30/g' /etc/supervisor.d/queue_name.conf; supervisorctl update queue_name |
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 | |
| // Disparando o job | |
| MeuJob::dispatch($foo); | |
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 | |
| // Disparando o job | |
| MeuJob::dispatch($foo)->onConnection('sync'); | |
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 | |
| MeuJob::dispatchNow($foo); | |
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 | |
| try { | |
| // do something... | |
| } catch (\GuzzleHttp\Exception\ClientException $e) { | |
| return $e->getResponse()->getBody()->getContents(); | |
| } |
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 | |
| $uf = [ | |
| 'Acre' => 'Acre', | |
| 'Alagoas' => 'Alagoas', | |
| 'Amapá' => 'Amapá', | |
| 'Amazonas' => 'Amazonas', | |
| 'Bahia' => 'Bahia', | |
| 'Ceará' => 'Ceará', | |
| 'Distrito Federal' => 'Distrito Federal', |
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
| var checkout = new Vue({ | |
| el: '#checkout', | |
| data: { | |
| pagseguro : { | |
| toggle : false | |
| }, | |
| products : { | |
| toggle : false | |
| }, |
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
| const mix = require('laravel-mix'); | |
| const tailwindcss = require('tailwindcss'); | |
| const glob = require("glob-all"); | |
| const PurgecssPlugin = require("purgecss-webpack-plugin"); | |
| class TailwindExtractor { | |
| static extract(content) { | |
| return content.match(/[A-Za-z0-9-_:\/]+/g) || []; | |
| } | |
| } |
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
| - Seu Facebook Business | |
| --- Conta 1 | |
| ------ Para divulgar o produto A | |
| ------ Pixel da conta 1 | |
| ------ Página A da conta 1 | |
| --- Conta 2 | |
| ------ Para divulgar o produto B | |
| ------ Pixel da conta 2 | |
| ------ Página da conta 2 |