Skip to content

Instantly share code, notes, and snippets.

Angus Fretwell angusfretwell

Block or report user

Report or block angusfretwell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am angusfretwell on github.
  • I am angusfretwell ( on keybase.
  • I have a public key ASAVJYReKF8wYHVlEQmwvVDqIOT7Y3qIw6lzu71OpL1wMQo

To claim this, I am signing this object:

View _heading-auditor.css
h6 {
position: relative;
border: 1px solid;
View Validatable.php
namespace App\Traits;
use Validator;
trait Validatable
protected $rules = [];
protected $errors;
angusfretwell /
Created Jan 22, 2016
Install MailCatcher in Laravel Homestead
apt-get install -y ruby1.9.1-dev
gem install mailcatcher
echo "description \"Mailcatcher\"
start on runlevel [2345]
stop on runlevel [!2345]
pre-start script
View object-fit.polyfill.es6.js
const pixel = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
if (!Modernizr.testProp('objectFit')) {
const $images = $('.js-object-fit--cover');
$images.each((index, element) => {
const $image = $(element);
$image.css('background-image', `url(${$image.attr('src')})`);
$image.css('background-size', 'cover');
View _video.scss
title: Video
name: video
category: Components
View _switch.scss
<label class="switch">
<input type="checkbox" class="switch__checkbox" name="switch">
<span class="switch__mask"></span>
angusfretwell / _colors.scss
Created Jun 15, 2014
Small utility for building colour classes.
View _colors.scss
// Define default background and foreground (text) colors:
$background-color: #fff;
$foreground-color: #222;
// Define our brand colors; text-color accepts a color, 'inverse', 'default', or false.
// e.g.:
// (
// prefix,
// brand-color,
You can’t perform that action at this time.