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
cheese | |
crackers? |
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
function wpr_maintenance_mode() { | |
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) { | |
wp_die('Maintenance, please come back soon.'); | |
} | |
} | |
add_action('get_header', 'wpr_maintenance_mode'); |
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
LIVE SQL FILE | |
==================================================== | |
sed 's/http:\/\/localhost:8888\/mywebsite/http:\/\/mywebsite.com/g' FileToReadFrom > FileToWriteTo | |
LOCAL SQL FILE | |
============== | |
sed 's/http:\/\/waterstreetgm.org/http:\/\/localhost:8888\/waterstreetgm/g' FileToReadFrom > FileToWriteTo |
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
window.addEventListener "DOMContentLoaded", -> | |
body = $ "body" | |
canvas = $ "#canvas" | |
chalkboard = $ "#chalkboard" | |
close = $ "#close" | |
ledge = $ "#ledge" | |
lightswitch = $ "#lightswitch" | |
output = $ "#output" | |
shade = $ "#shade" | |
share = $ "#share" |
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 | |
wp_enqueue_script(‘jquery’) ; | |
wp_enqueue_script(‘easing’, ‘/wp-content/themes/themeNane/js/jquery.easing.1.2.js’,false,’1.2′) ; | |
wp_enqueue_script(‘lTabs’, ‘/wp-content/themes/themeNane/js/lTabs.js’, array( ‘jquery-ui-core’, ‘jquery-ui-tabs’)) ; | |
wp_enqueue_script(‘lightbox’, ‘/wp-content/themes/themeNane/js/jquery.lightbox-0.5.js’,false, ’0.5′); | |
wp_head(); | |
?> |
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
Three men walk into a hotel to rent a room. The room costs $30. | |
They pay the manager $10 each. | |
An hour later, the manager realizes the room is just $25, and he sends the bellboy up to return the $5 he owes them. | |
The dishonest bellboy gives the men back $1 each, pocketing $2 for himself. | |
The men have now paid $9 each for the room. |
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
<!-- main row: width = grid_width --> | |
<div id="main-wrapper" class="main-wrapper full-width"> | |
<div id="main" class="main row grid16-16"> | |
<div id="main-inner" class="main-inner inner clearfix"> | |
<!-- main group: width = grid_width - sidebar_first_width --> | |
<div id="main-group" class="main-group row nested grid16-16"> | |
<div id="main-group-inner" class="main-group-inner inner"> | |
<div id="main-content" class="main-content row nested"> |
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
// Paginate the portfolio | |
$('ul#menu-portfolio > li:gt(11)').hide(); | |
$('.prev').click(function() { | |
var first = $('ul#menu-portfolio').children('li:visible:first'); | |
first.prevAll(':lt(12)').show('fast'); | |
first.prev().nextAll().hide(); | |
}); |
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 | |
/* Uncomment to put site in maintenance mode */ | |
function wpr_maintenance_mode() {<br /> | |
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {<br /> | |
wp_die('Doing a small upgrade, please come back in about an hour!');<br /> | |
}<br /> | |
}<br /> | |
add_action('get_header', 'wpr_maintenance_mode'); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Matthew Byrne</title> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<link rel="stylesheet" href="styles.css" type="text/css" media="screen" charset="utf-8"> |
OlderNewer