Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
stuff.

Courtney Ivey oxocode

:octocat:
stuff.
View GitHub Profile
View git-merged
#!/bin/bash
# git-merged
#
# Show which branches are merged into upstream or the given commit
me=`basename $0`
usage () {
# Call as: usage [EXITCODE] [USAGE MESSAGE]
exit_code=1
@oxocode
oxocode / jquery.iframetracker.js
Last active Sep 14, 2015 — forked from simondahla/jquery.iframetracker.js
Add Conversion Tracking to an iframe with VWO and iframetracker.js
View jquery.iframetracker.js
/**
* jQuery iframe click tracking plugin demo
* Version 1.0 (2013-03-30)
* Copyright © 2013 Vincent Paré
* https://github.com/finalclap/iframeTracker-jquery
*/
(function($){
// Registering new tracking handler
$.fn.iframeTracker = function(handler){
// Storing the new handler into handler list
@oxocode
oxocode / Flipboard-feed.php
Last active Dec 24, 2015
[Plugin] Flipboard feed modifications
View Flipboard-feed.php
<?php
/*
* Plugin Name: Flipboard RSS Feed
* Plugin URI: http://www.gitnerd.com
* Description: A plugin to customize the default RSS Feed according to Flipboard technical specifications.
* Version: 1.0
* Author: oxocode
* Author URI: http://www.gitnerd.com
*/
@oxocode
oxocode / count_sidebar_widgets.php
Last active Dec 24, 2015
Count Sidebar Widgets.Need to get the number of widgets for a specific sidebar? Use this function by passing in the ‘id’ of the sidebar.
View count_sidebar_widgets.php
<?php
function get_widgets_count( $sidebar_id ){
$sidebars_widgets = wp_get_sidebars_widgets();
return (int) count( (array) $sidebars_widgets[ $sidebar_id ] );
}
?>
@oxocode
oxocode / clear-floats.css
Last active Dec 25, 2015
[CSS] Clearing Floats
View clear-floats.css
/* Float Clearing--------------------------------------------- */
address:before, address:after,article:before, article:after,aside:before, aside:after,audio:before, audio:after,blockquote:before, blockquote:after,canvas:before, canvas:after,dd:before, dd:after,div:before, div:after,dl:before, dl:after,fieldset:before, fieldset:after,figcaption:before, figcaption:after,figure:before, figure:after,footer:before, footer:after,form:before, form:after,header:before, header:after,hgroup:before, hgroup:after,hr:before, hr:after,main:before, main:after,output:before, output:after,pre:before, pre:after,section:before, section:after,table:before, table:after,tfoot:before, tfoot:after,video:before, video:after,.clearfix:before, .clearfix:after { content: " "; display: table;} address:after,article:after,aside:after,audio:after,blockquote:after,canvas:after,dd:after,div:after,dl:after,fieldset:after,figcaption:after,figure:after,footer:after,form:after,header:after,hgroup:after,hr:after,main:after,output:after,pre:afte
@oxocode
oxocode / local.domain.com.conf
Last active Nov 2, 2016
VVV Nginx Configuration
View local.domain.com.conf
# VVV Nginx Configuration
# oxocode
# - Uses proper domain.com extension for verifying
# third party APIs are loading / ads are being served.
# - Allows access to localhost via mobile
# - Uses xip.io for testing RWD via mobile
#
# Assumptions: These rules assume that your
# development site was created in 'local.domain.com'
# within your vagrant public root
View vscode-extensions.sh
code --install-extension Andreabbondanza.ignoregit
code --install-extension HookyQR.beautify
code --install-extension MehediDracula.php-namespace-resolver
code --install-extension aaron-bond.better-comments
code --install-extension ashpowell.monokai-one-dark-vivid
code --install-extension azemoh.one-monokai
code --install-extension bogdan-sinitsa.theme-dark-monokai
code --install-extension calvinhong.stylelint-fix
code --install-extension christian-kohler.path-intellisense
code --install-extension cxfksword.goto-documentation
View wp-cli-create.sh
#!/bin/bash
# Setup Variables
DBNAME=dbname
DBUSER=dbuser
DBPASS=dbpass
DBHOST=localhost
DBPREFIX=oxo_
URL=http://
View keybase.md

Keybase proof

I hereby claim:

  • I am oxocode on github.
  • I am oxocode (https://keybase.io/oxocode) on keybase.
  • I have a public key ASBoFBcZ_WykaqYFWa-HgDjk3r-1qdbLH4Y3weT_NatKMAo

To claim this, I am signing this object:

You can’t perform that action at this time.