Skip to content

Instantly share code, notes, and snippets.

View jhonnycgarcia's full-sized avatar

Jhonny Garcia jhonnycgarcia

  • Caracas, Distrito Capital - Venezuela
View GitHub Profile
@Klerith
Klerith / instalaciones.md
Last active July 23, 2024 15:41
Instalaciones recomendadas - Curso de Angular de cero a experto
@nicobytes
nicobytes / 65-custom-validations.md
Last active June 14, 2021 21:18
Custom validations in Angular
import { AbstractControl } from '@angular/forms';

export class MyValidations {

  static age(control: AbstractControl) {
    const value = control.value;
    if (value < 18) {
      return {isYoung: true};
 }
@Klerith
Klerith / parse-jwt.js
Created March 15, 2018 15:07
Parse - JWT - Obtener Payload y fecha de creación y expiración
function parseJwt (token) {
var base64Url = token.split('.')[1];
var base64 = base64Url.replace('-', '+').replace('_', '/');
return JSON.parse(window.atob(base64));
};
@brenes
brenes / README.md
Last active July 10, 2024 13:50
CSV de paises, con nombre en castellano, ingles, codigo ISO y prefijo telefónico del país