Skip to content

Instantly share code, notes, and snippets.

⚡️
Building.

José Daniel Paternina josedaniel

⚡️
Building.
Block or report user

Report or block josedaniel

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
@josedaniel
josedaniel / just_numbers.js
Created May 3, 2011
Avoid letters in number inputs
View just_numbers.js
$(document).ready(function(){
//cuando se intenten meter letras en un campo de precio
$('.cantidad_producto').keypress(function(e){
if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57)){
return false;
}
});
});
@josedaniel
josedaniel / md5.js
Created May 2, 2011
Javascript MD5 Tool
View md5.js
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for more info.
*/
/*
You can’t perform that action at this time.