A Pen by Evan Lovely on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git Checkout Helper | |
gitco() { | |
git branch | |
echo "Branch to checkout? (Fuzzy searching from left to right with space support)" | |
read branch | |
branches=$(git branch | egrep -i "${branch// /.*}" | tr -d ' ') | |
count=$(echo "$branches" | egrep -c ".") | |
if [ "$count" = "1" ]; then | |
git checkout $(echo $branches | tr -d '\n' | tr -d '*') | |
elif [[ "$count" = "0" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.6) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
body.product { | |
.select { | |
color: blue; | |
.product--special & {// I want this to be body.product.product--special .select | |
color: red; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Script for setting Reminders for LaunchBar and Alfred | |
--For Alfred, Applescript must NOT be set to run in Background otherwise date parsing does not work | |
--For LaunchBar, place the script in ~/Library/Scripts/LaunchBar | |
--by Michelle L. Gill, 10/07/2012 | |
--Inspired by https://gist.github.com/3187630 | |
--A related Alfred version 2 workflow can be found here: https://github.com/mlgill/alfred-workflow-create-reminder | |
--Changes | |
--02/01/2013 * Fixed an issue with setting the time when the hour is 12 and AM/PM (12-hour clock) is used | |
-- * Removed the ability to set seconds for the time since Reminders doesn't recognize them |
A Pen by Evan Lovely on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin retina-inline-image($img, $fallback) { | |
background-image: inline-image($img); | |
background-size: (image-width($img) / 2) (image-height($img) / 2); | |
.no-backgroundsize & { | |
background-image: image-url($fallback); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin estee-extender($extendable, $mq:false) { | |
@if $mq { | |
background: green; | |
} @else { | |
@extend %#{$extendable}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin estee-extender($extendable, $mq:false) { | |
@if $mq { | |
@extend %#{$extendable}-#{$mq}; | |
} @else { | |
@extend %#{$extendable}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open the web page from which this git repo was cloned | |
opengiturl() { | |
i="$(git config --get remote.origin.url)" | |
if [[ "$(echo $?)" != "0" ]]; then | |
echo "Not a Git Repository" | |
return 1 | |
fi | |
if [[ "$i" == "git"* ]]; then | |
url="$(echo "$i" | sed 's,.git$,,' | sed 's,:,/,' | sed 's,^git@,http://,')" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin color() { | |
color: blue; | |
.ie & { | |
color: red; | |
} |
OlderNewer