Skip to content

Instantly share code, notes, and snippets.

View randyzwitch's full-sized avatar

Randy Zwitch randyzwitch

View GitHub Profile
@randyzwitch
randyzwitch / airline.sh
Created June 1, 2013 17:44
Downloading Airline Dataset via Bash Shell script
$ for i in {1987..2008}
> do
> curl http://stat-computing.org/dataexpo/2009/$i.csv.bz2 > $i.csv.bz2
> bunzip2 $i.csv.bz2
> done
@randyzwitch
randyzwitch / twenty-eleven-css.css
Last active December 17, 2015 23:39
Creating Child Theme for WordPress Twenty Eleven
/* Theme Name: randyzwitch.com
Description: Child theme for the twentyeleven theme
Author: Randy Zwitch
Template: twentyeleven */
@import url("../twentyeleven/style.css");
@randyzwitch
randyzwitch / custom-header-1
Created June 1, 2013 17:54
Custom Header for Twenty Eleven, Part 1
<?php // Check to see if the header image has been removed
$header_image = get_header_image();
if ( ! empty( $header_image )) :
?>
@randyzwitch
randyzwitch / custom-header-2
Created June 1, 2013 17:56
Custom Header for Twenty Eleven, Part 2
<!-- Comment out WordPress header checking
<?php // Check to see if the header image has been removed
$header_image = get_header_image();
if ( ! empty( $header_image )) :
?>
@randyzwitch
randyzwitch / custom-header-3
Created June 1, 2013 17:58
Custom Header for Twenty Eleven, Part 3
<?php endif; // end check for removed header image
?>
End of RZ commenting out -->
@randyzwitch
randyzwitch / custom-header-4
Created June 1, 2013 18:00
Custom Header for Twenty Eleven, Part 4
<img src="http://randyzwitch.com/wp-content/themes/twentyeleven-child/images/butlers-wharf.png" alt="randyzwitch.com
header" />
@randyzwitch
randyzwitch / remove-wordpress-comment-bubble.php
Created June 1, 2013 18:04
Removing Comment Bubble from WordPress Twenty Eleven
<!-- <?php if ( comments_open() && ! post_password_required() ) : ?>
<div>
<?php comments_popup_link( '<span>' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
</div>
<?php endif; ?> -->
@randyzwitch
randyzwitch / ga.js
Created June 1, 2013 18:06
Google Analytics code snippet
<script type="text/javascript">
var _gaq =_gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
(function() {
var ga = document.createElement('script');
@randyzwitch
randyzwitch / powered-by-wordpress.php
Created June 1, 2013 18:08
Removing Powered By WordPress
<?php do_action( 'twentyeleven_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
@randyzwitch
randyzwitch / powered-by-wordpress-2.php
Created June 1, 2013 18:10
Removing Powered By WordPress, Part 2
<!-- <?php do_action( 'twentyeleven_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a> -->