This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* humanstxt.org/ */ | |
/* The humans responsible & technology colophon */ | |
_ _ _ _ _ | |
| | | | | | | | | | |
__ _____ | | | _____ _ __ ___ | |_| |_ ___ _ __ ___| |_ | |
\ \ / / _ \| | |/ / _ \ '__/ _ \| __| __/ _ \ | '_ \ / _ \ __| | |
\ V / (_) | | < __/ | | (_) | |_| || (_) || | | | __/ |_ | |
\_/ \___/|_|_|\_\___|_| \___/ \__|\__\___(_)_| |_|\___|\__| | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* replaces %your_var% from a string | |
* | |
* sprintf3( 'Hello %your_name%, my name is %my_name%!' | |
* , array( 'your_name' => 'Matt' | |
* , 'my_name' => 'Jim' | |
* ) | |
* ); | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Checks Email Domain for trashmail | |
* | |
* @param string $email | |
* @return boolean true/false | |
*/ | |
function trash_email($email){ | |
$array = explode("@",$email); | |
$domain = $array[1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function autolink($str, $attributes=array()) { | |
$attrs = ''; | |
foreach ($attributes as $attribute => $value) { | |
$attrs .= " {$attribute}=\"{$value}\""; | |
} | |
$str = ' ' . $str; | |
$str = preg_replace( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script id="__bs_script__">//<![CDATA[ | |
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.js?v=2.18.12'><\/script>".replace("HOST", location.hostname)); | |
//]]></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.clearfix::after { | |
content: ''; | |
display: table; | |
clear: both; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function get_host() { | |
if ($host = $_SERVER['HTTP_X_FORWARDED_HOST']) | |
{ | |
$elements = explode(',', $host); | |
$host = trim(end($elements)); | |
} | |
else | |
{ | |
if (!$host = $_SERVER['HTTP_HOST']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $window = $(window); | |
$window_height = $window.height(), | |
scrollTop = $window.scrollTop(); | |
/** | |
* Check if element visible in the viewport | |
*/ | |
var aniElement = $('.animate'); | |
var element_modifier = 0; | |
function checkIfInView() { |
OlderNewer