Skip to content

Instantly share code, notes, and snippets.

Randy Zwitch randyzwitch

Block or report user

Report or block randyzwitch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@randyzwitch
randyzwitch / airline.sh
Created Jun 1, 2013
Downloading Airline Dataset via Bash Shell script
View airline.sh
$ 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 Dec 17, 2015
Creating Child Theme for WordPress Twenty Eleven
View twenty-eleven-css.css
/* 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 Jun 1, 2013
Custom Header for Twenty Eleven, Part 1
View custom-header-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 Jun 1, 2013
Custom Header for Twenty Eleven, Part 2
View custom-header-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 Jun 1, 2013
Custom Header for Twenty Eleven, Part 3
View custom-header-3
<?php endif; // end check for removed header image
?>
End of RZ commenting out -->
@randyzwitch
randyzwitch / custom-header-4
Created Jun 1, 2013
Custom Header for Twenty Eleven, Part 4
View custom-header-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 Jun 1, 2013
Removing Comment Bubble from WordPress Twenty Eleven
View remove-wordpress-comment-bubble.php
<!-- <?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 Jun 1, 2013
Google Analytics code snippet
View ga.js
<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 Jun 1, 2013
Removing Powered By WordPress
View powered-by-wordpress.php
<?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 Jun 1, 2013
Removing Powered By WordPress, Part 2
View powered-by-wordpress-2.php
<!-- <?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> -->
You can’t perform that action at this time.