Skip to content

Instantly share code, notes, and snippets.

View l4ci's full-sized avatar

Volker Otto l4ci

View GitHub Profile
@l4ci
l4ci / trash_email.php
Last active December 15, 2015 03:29
Check Email Domain for trash/one-way-email #php
<?php
/**
* Checks Email Domain for trashmail
*
* @param string $email
* @return boolean true/false
*/
function trash_email($email){
$array = explode("@",$email);
$domain = $array[1];
@l4ci
l4ci / sprintf3.php
Last active December 15, 2015 03:29
sprintf3 - Replace %var% from a string #php
<?php
/**
* replaces %your_var% from a string
*
* sprintf3( 'Hello %your_name%, my name is %my_name%!'
* , array( 'your_name' => 'Matt'
* , 'my_name' => 'Jim'
* )
* );
*/
@l4ci
l4ci / humans.txt
Last active December 14, 2015 23:49
humans.txt
/* humanstxt.org/ */
/* The humans responsible & technology colophon */
_ _ _ _ _
| | | | | | | | |
__ _____ | | | _____ _ __ ___ | |_| |_ ___ _ __ ___| |_
\ \ / / _ \| | |/ / _ \ '__/ _ \| __| __/ _ \ | '_ \ / _ \ __|
\ V / (_) | | < __/ | | (_) | |_| || (_) || | | | __/ |_
\_/ \___/|_|_|\_\___|_| \___/ \__|\__\___(_)_| |_|\___|\__|