Skip to content

Instantly share code, notes, and snippets.

function parse_git_branch_and_add_brackets {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/'
}
PS1="\h:\W \u\[\033[0;32m\]\$(parse_git_branch_and_add_brackets) \[\033[0m\]\$ "
@widescreenBob
widescreenBob / SassMeister-input-HTML.html
Created August 8, 2014 03:18
Generated by SassMeister.com.
<div class ="col">col</div>
<div class="col2">col2</div>
<div class = "col3">col3</div>
<div class = "col4">col4</div>
@widescreenBob
widescreenBob / SassMeister-input-HTML.html
Created September 22, 2014 18:05
Generated by SassMeister.com.
<div class = "testDiv">TEST</div>
@widescreenBob
widescreenBob / gist:912c1b656fb2a12ee178
Created September 23, 2014 13:22
Font Face Example
//a variable to contain any extra path information required for the mixin
$base: path to font folder
//mixin (using shorthand) for fontface integration
=fontFace($family, $src, $weight: normal, $style: normal)
@font-face
@widescreenBob
widescreenBob / Adding a font family to your file
Created September 23, 2014 13:23
Adding a font family to your file
//a variable that contains the family name of the font
$tobias-icon-font: "tobias-regular"
//mixin that uses the new font
=new-icon-font
font-family: $tobias-icon-font
@widescreenBob
widescreenBob / SassMeister-input-HTML.html
Created October 3, 2014 18:02
Generated by SassMeister.com.
<div class = "testDiv">TEST</div>
<div id ="region-branding"></div>
<div class ="block">
</div>
<div class ="block"></div>
<div class ="block"></div>
<div class ="block"></div>
<div class ="block"></div>
@widescreenBob
widescreenBob / SassMeister-input.sass
Last active August 29, 2015 14:07
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// Breakpoint (v2.0.7)
// Singularity Extras (v0.0.3)
// Singularity.gs (v1.1.2)
// Toolkit (v1.3.8)
// ----
@import "breakpoint"
@widescreenBob
widescreenBob / SassMeister-input.sass
Created October 16, 2014 19:50
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// Breakpoint (v2.0.7)
// Singularity Extras (v0.0.3)
// Singularity.gs (v1.1.2)
// Toolkit (v1.3.8)
// ----
@import "breakpoint"
@widescreenBob
widescreenBob / SassMeister-input.sass
Last active August 29, 2015 14:07
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// Breakpoint (v2.0.7)
// Singularity Extras (v0.0.3)
// Singularity.gs (v1.1.2)
// Toolkit (v1.3.8)
// ----
@import "breakpoint"
@widescreenBob
widescreenBob / SassMeister-input.sass
Created October 17, 2014 13:25
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// Breakpoint (v2.0.7)
// Singularity Extras (v0.0.3)
// Singularity.gs (v1.1.2)
// ----
@import "breakpoint"
@import "compass"