This file contains hidden or 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 | |
//Creates a formated string from a start and end date DateTime, a start and end time DateTime, and optional DateTimeZone. | |
function formatDateRange($d1, $d2, $t1, $t2, $tz=false) { | |
if(gettype($t1) === 'object' && gettype($t2) === 'object'){ | |
$formatted_time = ""; | |
if($tz && preg_match('/(\-|\+)[0-9]*/', $tz->getName() )){ | |
//use 24 hour time for EMEA | |
$hour_format = 'G'; |
This file contains hidden or 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
<html> | |
<head> | |
<title> | |
Text Particles | |
</title> | |
<meta property="og:title" content="Text Particles" /> | |
<meta property="og:description" content="Some cool canvas pixel manipulation" /> |
This file contains hidden or 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 | |
global $wpdb; | |
$wpdb->query("DELETE FROM `wp_options` WHERE `option_name` LIKE ('_transient_%')"); | |
?> |