Skip to content

Instantly share code, notes, and snippets.

View EvanLovely's full-sized avatar

Evan Lovely EvanLovely

View GitHub Profile
@EvanLovely
EvanLovely / Double-Negative-Borders.markdown
Created February 20, 2014 01:51
A Pen by Evan Lovely.
@EvanLovely
EvanLovely / bash_functions.sh
Created April 16, 2014 19:23
Git Checkout Helper
# 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
@EvanLovely
EvanLovely / SassMeister-input.scss
Created May 5, 2014 21:03
Generated by SassMeister.com.
// ----
// 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;
--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
@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);
}
}
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@mixin estee-extender($extendable, $mq:false) {
@if $mq {
background: green;
} @else {
@extend %#{$extendable};
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@mixin estee-extender($extendable, $mq:false) {
@if $mq {
@extend %#{$extendable}-#{$mq};
} @else {
@extend %#{$extendable};
@EvanLovely
EvanLovely / open-remote-git-url.sh
Created May 30, 2014 20:49
Open the web page from which this git repo was cloned. Place in ~/.bash_functions. Then type `opengiturl` in any Git Repo to open the web page from which it was cloned.
# 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
@EvanLovely
EvanLovely / SassMeister-input.scss
Created June 3, 2014 18:42
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@mixin color() {
color: blue;
.ie & {
color: red;
}