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 DBNAME_LOCAL; | |
UPDATE wp_EXT_options SET option_value="http://LOCALURL:8888" WHERE option_name="siteurl"; | |
UPDATE wp_EXT_options SET option_value="http://LOCALURL:8888" WHERE option_name="home"; |
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
/* hide admin bar! */ | |
add_filter('show_admin_bar', '__return_false'); |
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
$('#subscribe-field').removeAttr("style"); |
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
#!/bin/sh | |
export DATE=`date "+%Y-%m-%d"` | |
export DB_HOST=localhost | |
export DB_NAME= | |
export DB_USER= | |
export PASSWORD= | |
export DROPBOX_UPLOADER=.Dropbox-Uploader/dropbox_uploader.sh | |
export SCRIPTS_DIR='' | |
# Make sure we're in the scripts dir |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("wpcom-themes.trac.automattic.com") { | |
a, | |
a:link, | |
a:visited { | |
color: #549dc2; | |
} | |
h3 a em, |
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
/** | |
* Filter the categories archive widget to add a span around post count | |
*/ | |
function smittenkitchen_cat_count_span( $links ) { | |
$links = str_replace( '</a> (', '</a><span class="post-count">(', $links ); | |
$links = str_replace( ')', ')</span>', $links ); | |
return $links; | |
} | |
add_filter( 'wp_list_categories', 'smittenkitchen_cat_count_span' ); |
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
/** | |
* Enqueue Typekit fonts for local development. | |
* | |
* @action wp_head | |
* @return string | |
*/ | |
function themeslug_local_fonts() { | |
if ( 'http://themeslug.dev' === site_url() ): | |
$kit = '#######'; | |
?> |
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 sharing_display( '', 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
*.map | |
node_modules/* |
OlderNewer