Skip to content

Instantly share code, notes, and snippets.

Miguel Fermín miguelxt

Block or report user

Report or block miguelxt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
* Angular JS directive for autorezising text inside an element
* Usage:
* <input type="text" ng-model="text">
* <p style="font-size: 30px; border: red 1px solid; width: 200px; height: 20px;" autofit="text"><span>{{text}}</span></p>
app.directive('autofit', function(){
return function(scope, element, attrs){
miguelxt / validator.php
Last active Apr 23, 2019
Spanish Validations
View validator.php
Spanish information validator
class Validator {
static function validarDni($cif) {
//Copyright ©2005-2008 David Vidal Serra. Bajo licencia GNU GPL.
//Este software viene SIN NINGUN TIPO DE GARANTIA; para saber mas detalles
//puede consultar la licencia en
miguelxt / simpleimage.php
Last active Nov 15, 2019
SimpleImage PHP Class
View simpleimage.php
* File: SimpleImage.php
* Author: Simon Jarvis
* Modified by: Miguel Fermín
* Based in:
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
miguelxt / db.php
Last active Jul 13, 2019
MySQL database helper class
View db.php
* @name Database class
* @author Miguel Fermín
* @copyright 2013
* @license MIT
* @license
class DataBase {
You can’t perform that action at this time.