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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// Serial Key Generator | |
$pool = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
$countPool = count( $pool ) ; | |
$totalChars = 12 ; | |
$pass = '' ; | |
for ( $i = 0 ; $i < $totalChars ; $i++ ) { | |
$currIndex = mt_rand( 0, $countPool ) ; | |
$currChar = $pool[ $currIndex ] ; | |
$pass .= $currChar ; |
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
# Use to extract thumbnail source | |
$foto = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' ); | |
$src = $foto['0']; |
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
<div class="tooltip"> | |
<div class="tooltip-inner"> | |
Tooltip! | |
</div> | |
<div class="tooltip-arrow"></div> | |
</div> |
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
if ( $_SERVER[ 'REMOTE_ADDR' ] === '190.85.117.53' ){ | |
var_dump( $wp_query, get_the_ID() ); | |
} |
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 | |
$functions_file = 'postypes.php'; | |
$names = array( 'Photos', 'Gallery', 'Catalog' ); | |
$function = ' | |
<?php | |
function pulsar_postypes() { | |
'; |
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
# Remove cached repository in order to .gitignore to take effect after | |
# several commit have been made. | |
git rm -r --cached . | |
git add . | |
git commit -m "Removed cached repository, now .gitignore should work fine." |
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
/* Pre-Define HTML5 Elements in IE */ | |
(function(){ var els = "source|address|article|aside|audio|canvas|command|datalist|details|dialog|figure|figcaption|footer|header|hgroup|keygen|mark|meter|menu|nav|picture|progress|ruby|section|time|video".split('|'); for(var i = 0; i < els.length; i++) { document.createElement(els[i]); } } )(); |
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
web: node server |
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
@-moz-document url-prefix() { | |
.select-wrapper { | |
&:after { | |
display: none; | |
} | |
} | |
} |
OlderNewer