Lessons I've learned throughout the years to keep up with my habits.
Nothing will make you skip your habits more than the lack of motivation
- Believe you can
- Watch motivational videos
| #!/bin/bash | |
| lines=$(tput lines) | |
| cols=$(tput cols) | |
| awkscript=' | |
| { | |
| lines=$1 | |
| random_col=$3 | |
| letter=$4 |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\JsonResponse; | |
| class ProfileJsonResponse | |
| { | |
| /** |
| class Helper { | |
| /** | |
| * Funci贸n de validaci贸n de un rut basado en el algoritmo chileno | |
| * el formato de entrada es ########-# en donde deben ser s贸lo | |
| * n煤meros en la parte izquierda al gui贸n y n煤mero o k en el | |
| * d铆gito verificador | |
| */ | |
| static function validaRut ( $rutCompleto ) { | |
| if ( !preg_match("/^[0-9]+-[0-9kK]{1}/",$rutCompleto)) return false; |