Skip to content

Instantly share code, notes, and snippets.

View bmadigan's full-sized avatar

Brad Madigan bmadigan

View GitHub Profile
@bmadigan
bmadigan / makeItBedrock.sh
Created January 4, 2016 19:55
Shell File To Install Bedrock, Sage Theme and initialize app, composer install and initialize GIT
#!/bin/bash
function coloredEcho(){
local exp=$1;
local color=$2;
if ! [[ $color =~ '^[0-9]$' ]] ; then
case $(echo $color | tr '[:upper:]' '[:lower:]') in
black) color=0 ;;
red) color=1 ;;
green) color=2 ;;
yellow) color=3 ;;
@bmadigan
bmadigan / installWP.sh
Created January 4, 2016 18:28
Shell Install WordPress
#!/bin/bash
function coloredEcho(){
local exp=$1;
local color=$2;
if ! [[ $color =~ '^[0-9]$' ]] ; then
case $(echo $color | tr '[:upper:]' '[:lower:]') in
black) color=0 ;;
red) color=1 ;;
green) color=2 ;;
yellow) color=3 ;;
// Gulfile
var elixir = require('laravel-elixir');
require('laravel-elixir-vueify');
elixir(function(mix) {
mix.sass('all.scss');
mix.browserify('main.js');
});
@bmadigan
bmadigan / Sample-Stripe-Cartalyst-Test.php
Created October 6, 2015 02:13
My Stripe Cartalyst laravel Setup
// LARAVEL 5.1
// composer.json
"cartalyst/stripe-billing-laravel": "~3.0"
//---------------------
// config/app.php
//---------------------
'providers' => [
Cartalyst\Stripe\Billing\Laravel\StripeServiceProvider::class,
...
@bmadigan
bmadigan / readme.md
Created September 10, 2015 20:05
New Per Homestead Project

Veracity - Heroku Connect App

If you do not have Homestead installed you will need to install it in the root of your project

You will need to make sure you create an '.env' file in your project root as well.

composer require laravel/homestead
$>homestead halt
$>homestead up --provision

UI Statistic Pop Out CSS

Another UI piece in CSS. Hover over the stat box for a nice scale etc. This does need tidying up slightly and i will make it responsive at some point so it looks top banana on mobile.

A Pen by Jamie Coulter on CodePen.

License.

@bmadigan
bmadigan / runcomposer
Created February 24, 2015 11:14
Composer Update - Exceeded Memory Limit
Run in local OSX using Global Composer not on the VM
$> php -dmemory_limit=-1 /usr/local/bin/composer install
<script>
@if (App::environment('local'))
var $el = $("#card-number");
window.stripeData = {
valid: function() {
$el.val('4242424242424242');
},
successAddressFail: function() {
$el.val('4000000000000028');
},
@bmadigan
bmadigan / multi-error
Last active August 29, 2015 14:05
Receiving Error in Multi-Tenancy Tutorial (To Philip Brown)
Hi.
I was doing the Multi-tenant tutorial and for some reason I keep getting the same error
over and over no matter what I do.
I've redone the code several times and still get the error:
Target [Illuminate\Database\Eloquent\Model] is not instantiable.
Which I understand should have something to do with my ServiceProviders and
binding them via the app.php file.