Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<?php | |
// This function uses simple filter_var function | |
// instead of regular expression to validate email | |
// @param string email Email address to be validated | |
function validateEmail($email) { | |
return filter_var($email, FILTER_VALIDATE_EMAIL); | |
} | |
?> |
<?php | |
if (!function_exists('alert')) { | |
function alert($message) { | |
$buffer = null; | |
if ( !empty($message) ) { | |
$buffer .= '<div class="alert '; | |
if ( array_key_exists('alert-error', $message) ) { | |
$buffer .= 'alert-error">'; | |
if ( is_array($message['alert-error']) ) { | |
$buffer .= '<ul>'; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Note: this is a summary of different git workflows putting together to a small git bible. references are in between the text
try to keep your hacking out of the master and create feature branches. the [feature-branch workflow][4] is a good median between noobs (i have no idea how to branch) and git veterans (let's do some rocket sience with git branches!). everybody get the idea!