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
View keybase.md

Keybase proof

I hereby claim:

  • I am angusfretwell on github.
  • I am angusfretwell (https://keybase.io/angusfretwell) on keybase.
  • I have a public key ASAVJYReKF8wYHVlEQmwvVDqIOT7Y3qIw6lzu71OpL1wMQo

To claim this, I am signing this object:

View _heading-auditor.css
h1,
h2,
h3,
h4,
h5,
h6 {
position: relative;
border: 1px solid;
}
View Validatable.php
<?php
namespace App\Traits;
use Validator;
trait Validatable
{
protected $rules = [];
protected $errors;
@angusfretwell
angusfretwell / mailcatcher.sh
Created Jan 22, 2016
Install MailCatcher in Laravel Homestead
View mailcatcher.sh
apt-get install -y ruby1.9.1-dev
gem install mailcatcher
echo "description \"Mailcatcher\"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
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
/*------------------------------------*\
#VIDEO
\*------------------------------------*/
/*doc
---
title: Video
name: video
category: Components
---
View _switch.scss
/*------------------------------------*\
#SWITCH
\*------------------------------------*/
/*
<label class="switch">
<input type="checkbox" class="switch__checkbox" name="switch">
<span class="switch__mask"></span>
</label>
*/
@angusfretwell
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.