php artisan migrate:make create_filmes_table --table=filmes --create
<?php
use Illuminate\Database\Schema\Blueprint;
| <?php | |
| function validar_cnpj($cnpj) | |
| { | |
| $cnpj = preg_replace('/[^0-9]/', '', (string) $cnpj); | |
| // Valida tamanho | |
| if (strlen($cnpj) != 14) | |
| return false; |
| $estadosBrasileiros = array( | |
| 'AC'=>'Acre', | |
| 'AL'=>'Alagoas', | |
| 'AP'=>'Amapá', | |
| 'AM'=>'Amazonas', | |
| 'BA'=>'Bahia', | |
| 'CE'=>'Ceará', | |
| 'DF'=>'Distrito Federal', | |
| 'ES'=>'Espírito Santo', | |
| 'GO'=>'Goiás', |
| * { | |
| -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ | |
| } | |
| html, body { | |
| width: 100%; | |
| height: 100%; | |
| padding-top: 10%; | |
| } |
| <?php | |
| $estados = array( | |
| "AC"=>"Acre", | |
| "AL"=>"Alagoas", | |
| "AM"=>"Amazonas", | |
| "AP"=>"Amapá", | |
| "BA"=>"Bahia", | |
| "CE"=>"Ceará", | |
| "DF"=>"Distrito Federal", | |
| "ES"=>"Espírito Santo", |
| var fs = require('fs'); | |
| String.prototype.toBytes = function() { | |
| var arr = [] | |
| for (var i=0; i < this.length; i++) { | |
| arr.push(this[i].charCodeAt(0)) | |
| } | |
| return arr; | |
| } |
| <?php | |
| function validaCPF($cpf) { | |
| // Extrai somente os números | |
| $cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
| // Verifica se foi informado todos os digitos corretamente | |
| if (strlen($cpf) != 11) { | |
| return false; |
| #!/bin/sh | |
| # SPDX-FileCopyrightText: 2017-2026 SanderTheDragon <sanderthedragon@zoho.com> | |
| # | |
| # SPDX-License-Identifier: MIT | |
| arch=$(dpkg --print-architecture) | |
| echo "Detected architecture: $arch" | |
| case "$arch" in |
| RUBY_VERSION="2.4.0" | |
| RAILS_VERSION="5.0.2" | |
| MYSQL_PASSWORD="123456" | |
| GIT_USER_NAME="wellingtongeek" | |
| GIT_USER_EMAIL="wellingtongeek@gmail.com" | |
| NODE_VERSION="6" | |
| echo |
| /* | |
| Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
| Que tal enviar mensagens pra ela até obter uma resposta?! | |
| Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
| Para utilizar: | |
| - Abra o web.whatsapp.com; | |
| - Selecione a conversa que você quer; | |
| - Abra o console e cole o código que está no gist; |