Skip to content

Instantly share code, notes, and snippets.

View tiagofrancafernandes's full-sized avatar
😊
Loved by Jesus Christ. PHP/Laravel developer; Linux user; Open-source maker;

Tiago França tiagofrancafernandes

😊
Loved by Jesus Christ. PHP/Laravel developer; Linux user; Open-source maker;
View GitHub Profile
@tiagofrancafernandes
tiagofrancafernandes / REAME.md
Last active October 18, 2024 01:17
Validar CPF e CNPJ

Validar CPF e CNPJ

Se alguém precisar validar CPF ou CNPJ. Deixei em português para ficar fácil de ser compreendido

Todo

  • ✅ Versão JS
  • ⬜ Versão PHP
  • ⬜ Versão Shell Script
  • ⬜ Versão Vue.js
@tiagofrancafernandes
tiagofrancafernandes / ler-emails.php
Created June 26, 2023 02:01 — forked from CViniciusSDias/ler-emails.php
Script para ler e-mails em voz alta usando PHP
<?php
use PhpImap\Mailbox;
require_once 'vendor/autoload.php';
$mailbox = new Mailbox(
'{imap.gmail.com:993/imap/ssl}INBOX',
'[email protected]',
'sua senha aqui',
import { debounce } from 'radash';

const onInput = (event) => {
    console.log('onInput event', event);
}

const debouncedInput = debounce({ delay: debounceBy.value }, onInput);
@tiagofrancafernandes
tiagofrancafernandes / git-ps1-pure.sh
Last active January 28, 2023 01:30
git-ps1-pure | linuxbashrcgit-puro
export HISTCONTROL=ignoredups:erasedups:ignorespace
## Bash PS1 with git branch
gbranch()
{
if [ -d .git ]; then
local ref_branch=$(git symbolic-ref --short HEAD 2> /dev/null)
echo BRANCH ["${ref_branch:-}"];
fi
}

[RASCUNHO]

Esboço da Obra Perfeita de Cristo

Você acha que Deus o Pai ou Deus o Filho faz algo pela metade? Crê que a morte de Cristo na Cruz não foi o suficiente para te salvar? Crê que obras podem salvar ou ajudar a salvar sua alma?

@tiagofrancafernandes
tiagofrancafernandes / core.php
Last active June 1, 2022 15:18
Extract Laravel core for use outside the framework
<?php
// https://gist.github.com/tiagofrancafernandes/8c3cdbbd7b391ef6cefa9a0d8d1af80d
/*-------- START LARAVEL OUTSIDE ---------*/
/*
To use Laravel core without then
If you whant to use core by CLI without artisan
*/
require_once __DIR__.'/../../vendor/autoload.php';//Full path to file maybe need to change
$app = require_once __DIR__.'/../../bootstrap/app.php';//Full path to file maybe need to change
@tiagofrancafernandes
tiagofrancafernandes / devsql_postgresql
Last active October 17, 2024 14:42
dev-sql-snippets
#Instalando e usando How To Install and Use PostgreSQL 14 on Ubuntu 20
echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list
--
#Instalando e usando How To Install and Use PostgreSQL on Ubuntu 18.04 | DigitalOcean
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-18-04
-- Docker
https://www.youtube.com/watch?v=A8dErdDMqb0
@tiagofrancafernandes
tiagofrancafernandes / anchor-links.html
Last active October 30, 2024 15:45
dev-CSS-snippets
@celestecastillo0
celestecastillo0 / index.php
Created October 27, 2021 23:51
DeWeb act5 UII función sin parámetro y retorno
<?php
function cuadrado($núm)
{
return $núm * $núm;
}
echo cuadrado(4); // imprime '16'.
echo "<br>Celeste Castillo Flores ";
echo"<br>5J";
?>