Skip to content

Instantly share code, notes, and snippets.

@rpullinger
rpullinger / SassMeister-input-HTML.html
Created April 27, 2014 22:51
Generated by SassMeister.com.
<div class="g">
<div class="gi one-half">one-half</div>
<div class="gi one-half">one-half</div>
<div class="gi one-quarter">one-quarter</div>
<div class="gi one-quarter">one-quarter</div>
<div class="gi one-quarter">one-quarter</div>
<div class="gi one-quarter">one-quarter</div>
<div class="gi">1</div>
<div class="gi">1</div>
<div class="gi">1</div>
/*------------------------------------*\
MEDIA QUERIES
\*------------------------------------*/
/**
* Wraps the content in a min width media query
*
`@include breakpoint(200px){
.example{
font-size: 20px;
@rpullinger
rpullinger / gulpfile.js
Created March 7, 2014 16:44
Simple gulp starter
// Init npm if not already
npm init
// Install gulp and plugins
npm install gulp gulp-ruby-sass gulp-autoprefixer gulp-minify-css gulp-jshint gulp-uglify gulp-rename gulp-clean gulp-concat gulp-notify gulp-cache gulp-livereload tiny-lr --save
// Gulp!
gulp styles
gulp js
gulp watch
@rpullinger
rpullinger / helpful-git-stuff.md
Last active December 17, 2015 19:39
Some helpful stuff for Git

Initial Setup

Theses are things that you run once. The log format and PS1 are my personal preferences so may need changing up for your needs.

Colors in git ui

git config --global color.ui true

Make git log prettier

git config --global format.pretty "%C(white dim) %h %C(yellow) %ar %C(cyan) %an %Creset %s"
@rpullinger
rpullinger / index.html
Last active December 15, 2015 23:08
Responsive images in any aspect ratio
<div class="keep-square">
<div class="image-container">
<img class="content" src="http://www.placehold.it/300x200" alt="Image of Test" />
</div>
</div>
<div class="keep-square">
<div class="image-container">
<img class="content" src="http://www.placehold.it/200x300" alt="Image of Test" />
</div>