Skip to content

Instantly share code, notes, and snippets.

View craigpearson's full-sized avatar

Craig Pearson craigpearson

View GitHub Profile
<?php
namespace App;
add_action('after_setup_theme', function() {
$sage = sage('blade')->compiler();
/**
* Create @asset() Blade directive
*/
@craigpearson
craigpearson / gravityforms.scss
Last active September 20, 2017 23:39 — forked from JodiWarren/gravityforms.scss
Style Gravity Forms with Bootstrap 3 (SASS) - `From`: http://roots.io/style-gravity-forms-with-bootstrap/
.gform_wrapper ul {
@extend .list-unstyled;
}
.gform_wrapper li {
@extend .form-group;
}
.gform_wrapper form {
margin-bottom: 0;
}
.gform_wrapper .gfield_required {
@craigpearson
craigpearson / 0_reuse_code.js
Created September 15, 2016 23:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console