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
-- | |
-- Comment encoded_locations table | |
-- | |
CREATE TABLE IF NOT EXISTS `tu_encoded_locations_1_1` ( | |
id int(11) NOT NULL AUTO_INCREMENT COMMENT 'Internal unique ID.', | |
short_name varchar(255) NOT NULL COMMENT 'Short name of a location, such as NYC.', | |
full_name varchar(255) NOT NULL COMMENT 'Full name of location, such as New York, NY, USA.', | |
latlng varchar(50) NOT NULL COMMENT 'Latitude and longitude coordinates of a place, comma-delimited.', | |
PRIMARY KEY (id), | |
KEY short_name (short_name) |
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
<html> | |
<body> | |
<p>fly in, fly out</p> | |
</body> | |
</html> |
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
// On-demand MailHide function (give it a raw email & it returns the raw MailHide url) | |
// *Useful when added to a WordPress theme's functions.php file if you need to mailhide an email anywhere | |
// *Usage: <a href="<?php echo mailhide_this('[email protected]'); ?>" target="_blank" title="Reveal email address">Send me an email</a> | |
function mailhide_this($email){ | |
$pubkey = '01aIqfsfCm4RVQsVt7lx95tA=='; | |
$privkey = '228ff0e136ae39a0c7bc22ab595667b9'; | |
$ky = pack('H*', $privkey); | |
$mode = MCRYPT_MODE_CBC; | |
$enc = MCRYPT_RIJNDAEL_128; | |
$block_size = 16; |
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> | |
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ // Detect mobile browsers & use memory optimized styling if on mobile (hide all but the previous & next slides). Can prevent crashes when presentation contains many images and/or 3d elements. | |
var root = document.documentElement; | |
root.className += ' mobile'; | |
}else{ | |
var root = document.documentElement; | |
root.className += ' desktop'; | |
} | |
function getPreviousSibling(element){ | |
var p = element; |
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 zIndexNumber = $('.twitter-typeahead').length+1; | |
$('.twitter-typeahead').each(function() { | |
$(this).css('z-index',zIndexNumber); | |
zIndexNumber -= 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
function wr2x_srcset_rewrite( $buffer ) { | |
if ( !isset( $buffer ) || trim( $buffer ) === '' ) | |
return $buffer; | |
$doc = new DOMDocument(); | |
@$doc->loadHTML( $buffer ); // = ($doc->strictErrorChecking = false;) | |
$imageTags = $doc->getElementsByTagName('img'); | |
foreach ( $imageTags as $tag ) { | |
$img_info = parse_url( $tag->getAttribute('src') ); | |
$img_pathinfo = ltrim( $img_info['path'], '/' ); | |
$filepath = trailingslashit( ABSPATH ) . $img_pathinfo; |
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
;(function($) { | |
$.fn.equalize = function(options) { | |
var $containers = this, // this is the jQuery object | |
children = false, | |
reset = false, | |
margin = false, | |
equalize, | |
type; |
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
// Set global variables to be used when switching between auto/manual refresh & their interactivity | |
origInitialTagCloudH = '80px'; | |
initialTagCloudH = origInitialTagCloudH; | |
// Fuction to update tag cloud... simply execute updateTagCloud() when you want a fresh cloud | |
function updateTagCloud(){ | |
// Get text from chat | |
text = ''; | |
$('#conversation-main .msg').each(function(){text+= $(this).text()+' ';}); | |
OlderNewer