Skip to content

Instantly share code, notes, and snippets.

@defo550
defo550 / prune_commands.md
Created June 28, 2021 21:58
Useful git commands

Using Prune on Remote Repository

The easiest way to use prune is to provide it as an option when fetching:

git fetch --prune origin

Peform a prune and not fetch on the remote repository:

@defo550
defo550 / spacing-helpers.css
Last active May 17, 2016 22:10
Generate a series of rulesets that adjust either padding/margin.
._pan, ._ptn, ._pvn {
padding-top: 0 !important;
}
._pan, ._prn, ._phn {
padding-right: 0 !important;
}
._pan, ._pbn, ._pvn {
padding-bottom: 0 !important;
@defo550
defo550 / CSS-Frame-component.markdown
Last active August 29, 2015 14:13
CSS Frame component

CSS Frame component

Single CSS component class that uses modifier classes to emulate Bootstraps "well", "panel", "thumbnail" components, and how to modify main component class to offer alternative styles.

A Pen by Christopher DeFelice on CodePen.

License.

@defo550
defo550 / transition.scss
Created April 10, 2014 19:21
Shorthand Sass mixin for working with transtions
// -----------------------------------------------------------------------------
// Transitions
// -----------------------------------------------------------------------------
// Uses prefixr mixin gist:
// https://gist.github.com/defo550/7073344
// Example:
// @include transition( all 0.2s ease );
// @include transtion( opacity 0.2s ease, height 0.3s ease )
@defo550
defo550 / prefixr.scss
Last active December 26, 2015 01:48
SASS mixin to add appropriate vendor-prefixes for CSS3 properties: e.g. transition, transform, box-shadow, box-sizing, etc.
@mixin prefixr( $property, $value, $prefixes: webkit moz ) {
@each $prefix in $prefixes {
-#{$prefix}-#{$property}: $value;
}
#{$property}: $value;
}
@defo550
defo550 / README.md
Created September 6, 2013 18:59
README.md template

Description

Describe the project, what is it. What problem does the application look to solve.

Code Samples

Show how other people can use your project (i.e. API, library, framework).

code sample