Skip to content

Instantly share code, notes, and snippets.

View stowball's full-sized avatar

Matt Stow stowball

View GitHub Profile
@stowball
stowball / snippets.json
Created August 26, 2015 05:53
Brackets emmet snippets
"snippets": {
"mq2": "@include mq-2x() {\n\t|\n}",
"mq": "@include mq-min-width(\\$screen-${1:tablet}) {\n\t|\n}",
"mqm": "@include mq-max-width(\\$screen-${1:tablet}) {\n\t|\n}",
"mqr": "@include mq-min-max-width(\\$screen-${1:tablet}, \\$screen-${2:desktop}) {\n\t|\n}",
}
@stowball
stowball / SassMeister-input.scss
Created January 30, 2014 08:44
Generated by SassMeister.com.
// ----
// Sass (v3.2.14)
// Compass (v0.12.2)
// ----
@mixin colors-with-prefix($names...) {
@for $i from 0 to length($names) {
.color-#{nth($names, $i + 1)} {
foo: bar;
}
@stowball
stowball / SassMeister-input.scss
Created March 10, 2014 08:59
Sass 3.3 prefixing properties
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
// Prefixing mixin
// ----------
// @param [map] $map: property/value pairs to be prefixed
// @param [list] $vendors: vendor prefixes to use
// ----------
@stowball
stowball / SassMeister-input.scss
Created April 1, 2014 08:38
Generated by SassMeister.com.
// ----
// Sass (v3.2.17)
// Compass (v0.12.4)
// ----
@mixin extend($class: foo, $extend: true) {
@if $extend {
@extend %#{$class};
}
@else {
@stowball
stowball / rwd.images.js
Last active August 29, 2015 14:00
rwd.images.js 0.4.3 preview
/*!
* RWD Images v0.4.3
*
* A lightweight, customisable responsive image solution, which uses a familar media query syntax
*
* Copyright (c) 2014 Matt Stow
*
* http://mattstow.com
*
* Licensed under the MIT license
@stowball
stowball / rwd.images.js
Created May 13, 2014 10:59
rwd.images.js 0.4.4 preview
/*!
* RWD Images v0.4.4
*
* A lightweight, customisable responsive image solution, which uses a familar media query syntax
*
* Copyright (c) 2014 Matt Stow
*
* http://mattstow.com
*
* Licensed under the MIT license
@stowball
stowball / SassMeister-input.scss
Created May 27, 2014 22:30
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@function strip-units($number) {
@return $number / ($number * 0 + 1);
}
@mixin nth-child($an: 2n, $sibling: "*", $count: 15) {
@stowball
stowball / git-delete-all-references.sh
Created May 27, 2014 22:35
How to delete a folder and all its revisions
git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch FOLDER_NAME' --prune-empty --tag-name-filter cat -- --all
@stowball
stowball / SassMeister-input.scss
Created August 5, 2014 05:11
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
// --------------------------------------------
// Default Variables
// --------------------------------------------
$min: unquote('min-width:');
@stowball
stowball / SassMeister-input.scss
Created August 5, 2014 05:15
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// ----
// --------------------------------------------
// Default Variables
// --------------------------------------------
$min: unquote('min-width:');