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() { | |
var Page = (function() { | |
var $navArrows = $( '#nav-arrows' ), | |
$nav = $( '#nav-dots > span' ), | |
slitslider = $( '#slider' ).slitslider( { | |
onBeforeChange : function( slide, pos ) { | |
$nav.removeClass( 'nav-dot-current' ); |
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
#Flatten the Dock | |
defaults write com.apple.dock no-glass -boolean YES | |
#Add a blank space to the dock | |
defaults write com.apple.dock persistent-apps -array-add '{ "tile-type" = "spacer-tile"; }' | |
#Refresh the Dock after adding yr changes | |
killall Dock |
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
#Add a Spacer | |
defaults write com.apple.dock persistent-apps -array-add ‘{ “tile-type” = “spacer-tile”; }’ | |
#Flatten Dock | |
defaults write com.apple.dock no-glass -boolean YES | |
#Restart Dock | |
killall Dock |
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
Redirect 301 /foo.html /bar.html | |
Redirect 301 /about.html /about | |
Redirect 301 /support /help |
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 remove_dashboard_widgets() { | |
global $wp_meta_boxes; | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); | |
// unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); // WordPress Blog | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); // Other WordPress News |
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
/*! | |
* equalHeights jQuery Plugin | |
*/ | |
(function($){ | |
$.fn.equalHeights = function() { | |
var tallest = 0, | |
current = 0; | |
this.each(function(){ | |
current = $(this).height(); | |
if(current > tallest) { |
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
mysql -u root -p | |
mysql> create user blog@localhost identified by 'password'; | |
mysql> create database blog; | |
mysql> grant all on blog.* to blog@localhost; | |
mysql> exit; |
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 | |
class Plugin_twitter_embed extends Plugin { | |
var $meta = array( | |
'name' => 'Twitter Embed', | |
'version' => '1.0', | |
'author' => 'Andrea DeMers', | |
'author_url' => 'http://andreademers.com' | |
); |
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
#Sitespeed.io is an open source tool that helps you analyze your website speed and performance based on performance best practices and metrics. Uses Homebrew | |
# Install | |
$ brew install sitespeedio/sitespeedio/sitespeed.io | |
$ sitespeed.io -h | |
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
ul, ol { margin-bottom: 20px; } | |
ul { list-style: none outside; } | |
ol { list-style: decimal; } | |
blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px;} | |
em { font-style: italic; } | |
strong { font-weight: bold; } | |
small { font-size: 80%; } |
OlderNewer