Skip to content

Instantly share code, notes, and snippets.

View apurbajnu's full-sized avatar
🏠
Working from home

Apurba Podder apurbajnu

🏠
Working from home
  • Bangladesh , Dhaka
View GitHub Profile
@bmcculley
bmcculley / password_strength.php
Created March 4, 2014 03:01
Check for password strength, password should be at least n characters, contain at least one number, contain at least one lowercase letter, contain at least one uppercase letter, contain at least one special character.
<?php
$password_length = 8;
function password_strength($password) {
$returnVal = True;
if ( strlen($password) < $password_length ) {
$returnVal = False;
}
@kasparsd
kasparsd / custom-post-taxonomy-permalinks.php
Created June 13, 2012 15:47
Create permalink structure URLs for custom post types that include all parent terms from a custom taxonomy
<?php
/*
Term Archive Pages:
- http://example.com/recipes/dinner/
- http://example.com/recipes/breakfast,brunch/
Single Recipe Pages:
- http://example.com/recipes/dinner/soup-title/