View is_strong_pass.js
This file contains 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 is_strong_pass(pass){ | |
if(pass.length < 6) return false; | |
// chars: 1 especial - 1 number - 1 uppercase - 1 lowercase | |
let re = new RegExp(/([^\w]+)|(\d+)|([A-Z]+)|([a-z]+)/gm); | |
const match = pass.matchAll(re); | |
const groups = [false, false, false, false] | |
const els = Array.from(match); |
View Dockerfile PHP+mysql+composer
This file contains 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
FROM php:8.0-apache | |
RUN apt update | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get -yq install mariadb-server && \ | |
DEBIAN_FRONTEND=noninteractive apt-get -yq install mariadb-client | |
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | |
WORKDIR /var/www/html |
View andrei.cfg
This file contains 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
cfgver "1" | |
unbindall | |
bind "0" "slot10" | |
bind "1" "slot1" | |
bind "2" "slot2" | |
bind "3" "slot3" | |
bind "4" "use weapon_flashbang" | |
bind "5" "slot5" | |
bind "6" "use weapon_decoy" | |
bind "7" "slot7" |
View scan_dir.php
This file contains 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 | |
/** | |
* scan_dir | |
* | |
* Esta função faz uso de recursividade | |
* para recuperar um lista de arquivos | |
* em um determinado diretório, incluindo | |
* os arquivos de diretórios internos | |
* |
View arrumador_de_legenda.php
This file contains 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 | |
$subtrair = false; # --> tempo para subtrair quando a legenda está atrasada | |
$somar = "00:00:08"; # --> tempo para somar quando a legenda está adiantada | |
$legendaEntrada = "legenda_s01_ep01(errada).srt"; # Nome do Arquivo a ser alterado | |
$legendaSaida = "legenda_s01_ep01(correta).srt"; # Nome do Arquivo a ser gerado | |
$arquivo = fopen($legendaEntrada, "r"); | |
$conteudo = ""; |
View filtro_nvidia_valorant
This file contains 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
Nitidez | |
# nitidez - 100% | |
# ignorar grão do filme - 100% | |
Detalhes | |
# nitidez - 70% | |
# clareza - 100% | |
# tonificação - 30% | |
# bloom - 15% | |
View get_header.php
This file contains 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 | |
$result = ""; | |
foreach($_SERVER as $K => $V){ | |
$a = explode('_' , $K); | |
if(array_shift($a) == 'HTTP'){ |
View styles.less
This file contains 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
@darker-green: #172326; | |
@fucker-green: #2B3940; | |
@mother-green: #212C32; | |
.title-bar { | |
padding: 15px; | |
letter-spacing: 0.08em; | |
font-size: 1.1em; | |
} |
View _bootstrap_width_height.scss
This file contains 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
$grid-breakpoints: ( | |
xs: 0, | |
sm: 576px, | |
md: 768px, | |
lg: 992px, | |
xl: 1200px | |
); | |
View Determinant.php
This file contains 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 | |
/** | |
* Get a matrix determinant or reduce its order | |
* | |
* @author Andrei Coelho | |
* | |
*/ | |
/* * |