Skip to content

Instantly share code, notes, and snippets.

Brett Alton brettalton

View GitHub Profile
@brettalton
brettalton / fix formatting for Bootstrap v4 anchor display
Last active Sep 5, 2017 — forked from lkhedlund/bootstrap-pagination.php
Bootstrap v4-alpha6 Pagination for WordPress
View fix formatting for Bootstrap v4 anchor display
/*
* custom pagination with bootstrap .pagination class
* source: http://www.ordinarycoder.com/paginate_links-class-ul-li-bootstrap/
*/
function bootstrap_pagination( $echo = true ) {
global $wp_query;
$big = 999999999; // need an unlikely integer
$pages = paginate_links( array(
@brettalton
brettalton / install_composer_using_mamp_and_php7.sh
Last active Oct 12, 2017 — forked from kkirsche/Install Composer to use MAMP's PHP.md
How to install Composer globally using MAMP's PHP
View install_composer_using_mamp_and_php7.sh
# Tested with Mac OS X 10.11.2 El Capitan & MAMP 3.5
# Jan 17, 2016
# original gist: https://gist.github.com/kkirsche/5710272
###########################################
# Composer & MAMP's installation of PHP 7 #
###########################################
echo "alias phpmamp='/Applications/MAMP/bin/php/php7.0.0/bin/php'" >> ~/.bash_profile
source ~/.bash_profile
@brettalton
brettalton / install-composer.sh
Last active Feb 25, 2016 — forked from matthewspencer/install-composer.sh
Install Composer on Webfaction
View install-composer.sh
# Updated for Webfaction in December 2015 when PHP 5.4-5.6 are available and PHP 5.6 is the default 'php' executable
cd $HOME
curl -sS https://getcomposer.org/installer | php
echo -e "\n# Composer\nalias composer=\"php \$HOME/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile
You can’t perform that action at this time.