Skip to content

Instantly share code, notes, and snippets.

View mymizan's full-sized avatar
🎯
Focusing

M Yakub Mizan mymizan

🎯
Focusing
View GitHub Profile
@torifat
torifat / callback.html
Last active June 19, 2020 18:02
Enable Avro Phonetic in all textboxes & textareas with a callback function
<script src="path/to/avro-x.x.x.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function(){
$('textarea, input[type=text]').avro({'bangla':true},
function(isBangla){
alert('Bangla enabled = ' + isBangla);
}
);
});
</script>
@tylerhall
tylerhall / strong-passwords.php
Created August 12, 2010 21:38
A user friendly, strong password generator PHP function.
<?PHP
// Generates a strong password of N length containing at least one lower case letter,
// one uppercase letter, one digit, and one special character. The remaining characters
// in the password are chosen at random from those four sets.
//
// The available characters in each set are user friendly - there are no ambiguous
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option,
// makes it much easier for users to manually type or speak their passwords.
//
// Note: the $add_dashes option will increase the length of the password by