gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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 | |
if (!function_exists('array_undot')) { | |
/** | |
* Convert single level array that uses "dot" notation to a multi-dimensional array. | |
* | |
* @param $array | |
* @return array | |
*/ |
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
SELECT created_at, updated_at, JSON_EXTRACT(content, "$.domain") FROM websites |
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
docker rm $(docker ps -qa) -f | |
docker rmi $(docker images -q) -f | |
docker rm $(docker ps -qa) -f | |
docker rmi $(docker images -q) -f | |
docker volume rm $(docker volume ls -q) -f | |
docker rm $(docker ps -qa) -f && docker rmi $(docker images -q) -f && docker volume rm $(docker volume ls -q) -f |
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
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '*****'; |
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
body { | |
background-blend-mode: multiply, multiply, normal, normal; | |
background-color: #772953; | |
background-image: linear-gradient(to bottom left, rgba(119,41,83,0.16) 0, rgba(119,41,83,0.16) 49.9%, transparent 50%),linear-gradient(to bottom right, rgba(228,228,228,0.5) 0, rgba(228,228,228,0.5) 49.9%, transparent 50%),linear-gradient(to top left, #fff 0%, #fff 49.3%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%),linear-gradient(-89deg, #000000 0%, #772953 42%, #2c001e 94%); | |
color: #fff; | |
background-position: top right, top left, right bottom -1px, left top; | |
background-repeat: no-repeat; | |
background-size: 74% 99.83%, 68% 91%, 103.8% 20.26%, 100% 99.8%; | |
} |
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\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Validator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** |
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 | |
use Illuminate\Database\Seeder; | |
use Symfony\Component\Console\Helper\ProgressBar; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
class UsersTableSeeder extends Seeder | |
{ | |
/** | |
* Amount. |
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 cpf(value) { | |
var numbers, isValid; | |
// Retorna falso se o valor não for do tipo string. | |
if (!typeof value === 'string') return false; | |
// Remove todos os caracteres que não são numéricos. | |
numbers = value.replace(/[^0-9]/g, ''); | |
// Verifica se não existem valores repetidos. Ex: 111.111.111-11 | |
if (numbers.match(/(\d)\1{10}/)) return false; | |
for (i = 9; i < 11; i++) { | |
for (d = 0, c = 0; c < i; c++) { |