Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jcasabona's full-sized avatar

Joe Casabona jcasabona

View GitHub Profile
@jcasabona
jcasabona / wordpress-ignore
Last active November 18, 2015 14:56
WordPress Complete .gitignore
## Start .gitignore
*.log
.htaccess
/index.php
license.txt
readme.html
sitemap.xml
sitemap.xml.gz
wp-activate.php
@jcasabona
jcasabona / bash_profile
Last active August 29, 2015 14:16
Some Bash Profile Stuff
#Change color of branch name
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PATH=/usr/local/sbin:$PATH
#Directory Aliases

Define Canvas:

Put this in the HTML section:

<canvas id="cherries" width="600" height="400"></canvas>

and this in the JS section:

var canvas = document.getElementById('cherries');
@jcasabona
jcasabona / google-auth-user.md
Last active August 29, 2015 14:17
Google Authenticated User Query Variable

Inspired by: http://www.techrepublic.com/blog/google-in-the-enterprise/quick-tip-add-alternate-email-addresses-for-calendar-scheduling/

If you have multiple Google Accounts and get calendar or hangout invites to the wrong account, there's a real simple fix

https://www.google.com/calendar/b/0/render?tab=mc#main_7

Notice the '0' in the URL. That's the ID of the currently authenticated user. By changing this ID, you can view the calendar of any other authenticated user. So, for example, if you take these actions:

  1. You login to your GMail account, name@gmail.com. That is now ID: 0
  2. You then login to your Work account, which uses Google Apps, name@work.com. That is now ID: 1.
Joe Casabona is a Front End Developer that works in WordPress…a lot. He focuses primarily on taking design mockups and creating pixel perfect, well-functioning websites while also dabbling a bit in some back-end coding. Starting in 2002 at the age of 15, Joe has worked on sites for everyone from high school bands to enterprise-level companies. in 2014, he authored a book called Responsive Design with WordPress and 2 other book on web development.
He’s also a professor at the University of Scranton where he teaches Web Development and Computer Science courses and has developed an accredited course on WordPress theming.
@jcasabona
jcasabona / howibuit.md
Last active September 4, 2019 13:40
Guest Notes for How I Built It Podcast

Guest Notes for How I Built It Podcast

Tips for Good Recording

I'll be doing dual track recording, but if you could record audio on your side that would be great! That way if we see a dip in connection or get weird quality, I can do some track-layering action. To do that:

On a Mac

screenshot 2016-07-29 14 05 25

@jcasabona
jcasabona / functions.php
Created September 15, 2016 11:54 — forked from wpscholar/functions.php
Enqueueing IE conditional stylesheets in WordPress the right way
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
/**
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE.
* IE10 and up does not support conditional comments in standards mode.
*
* @uses wp_style_add_data() WordPress function to add the conditional data.
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/
@jcasabona
jcasabona / rethink.md
Last active October 18, 2016 16:05
Stuff for Rethink.FM

Stuff for Rethink.FM

Bio

Joe Casabona is a Front End Developer that works in WordPress…a lot. In 2014, he authored a book called Responsive Design with WordPress, develops WordPress courses over at WP in One Month and has developed an accredited course on WordPress theming. He also hosts the How I Built It podcast.

Head Shot

https://www.dropbox.com/s/uu1l2v5mgl5j9m6/IMG_0081.jpg?dl=0

Show Notes

$(document).ready(function () {
var method;
method = method || 'POST';
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", '/');
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");