Skip to content

Instantly share code, notes, and snippets.

View DvdQzd's full-sized avatar
馃彔
Working from home

David Quezada DvdQzd

馃彔
Working from home
  • SoftServe
  • Valpara铆so, Chile.
View GitHub Profile
@jdjuan
jdjuan / meta-regimen.md
Last active June 15, 2018 22:32
Meta Regimen: How to stick to your habits

Meta Regimen

Lessons I've learned throughout the years to keep up with my habits.

1. Motivate Yourself 馃挭

Nothing will make you skip your habits more than the lack of motivation

  • Believe you can
  • Watch motivational videos
@dhaiducek
dhaiducek / gomatrix
Created April 20, 2018 14:12
Modified Matrix Effect (original from @khakimov)
#!/bin/bash
lines=$(tput lines)
cols=$(tput cols)
awkscript='
{
lines=$1
random_col=$3
letter=$4
@pepeloper
pepeloper / ProfileJsonResponse.php
Created December 15, 2017 08:56
Middleware to use Laravel debugbar on JSON responses.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\JsonResponse;
class ProfileJsonResponse
{
/**
@donpandix
donpandix / validaRut.php
Last active September 20, 2021 13:57
Valida Rut con PHP, funci贸n minimalista
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;