Skip to content

Instantly share code, notes, and snippets.

View brandonburke's full-sized avatar

Brandon Burke brandonburke

View GitHub Profile
@ChromeOrange
ChromeOrange / functions.php
Last active December 18, 2015 09:29
Auto Complete all WooCommerce orders.
/**
* Auto Complete all WooCommerce orders.
* Add to theme functions.php file
*/
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) {
global $woocommerce;
if ( !$order_id )
@dcrosby42
dcrosby42 / nuke_plant.rb
Created June 7, 2012 03:47
Example of using piece_pipe to generate a health summary of multiple nuke plants based on reactor leakage.
PiecePipe::Pipeline.new.
source([{region: region}]).
step(FetchPowerPlantsByRegion).
step(FindWorstReactor).
step(DetermineStatusClass).
step(BuildPlantHealthSummary).
step(SortByRadiationLevelsDescending).
collect(:plant_health_summary).
to_enum
@ScottPhillips
ScottPhillips / readme
Created April 6, 2012 18:34
Boilerplate Wordpress Custom Post Type
<?php
/*
Setup and add our custom post types
*/
function create_post_types(){
@JeffreyWay
JeffreyWay / gist:1525217
Created December 27, 2011 21:29
Instant Server for Current Directory
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
@glennansley
glennansley / git-resources.txt
Created November 8, 2011 13:00
Helpful Git Resources
These are some helpful Git resources that I found while climbing the learning curve.
Feel free to append / modify
=======================
== UNDERSTANDING GIT ==
=======================
* The Git Parable
- http://tom.preston-werner.com/2009/05/19/the-git-parable.html
- "Read this parable all the way through and you should have very little trouble mastering the various Git commands and wielding the awesome power that Git makes available to you."
@zanshin
zanshin / .zshrc
Created August 12, 2011 19:09
My .zshrc file
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#export ZSH_THEME="robbyrussell"
export ZSH_THEME="zanshin"