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;