Skip to content

Instantly share code, notes, and snippets.

View EvanLovely's full-sized avatar

Evan Lovely EvanLovely

View GitHub Profile
@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;
@EvanLovely
EvanLovely / Make new Reminder due in 3 days.applescript
Last active October 29, 2021 23:16
Create a new Apple Reminder due in 3 days with AppleScript
set _name to "name"
set _note to "note"
tell application "Reminders"
make new reminder with properties {name:_name, body:_note, due date:((current date) + 3 * days)}
end tell
@EvanLovely
EvanLovely / Make new Reminder.applescript
Created May 17, 2014 22:17
Create a new Apple Reminder with AppleScript
set _name to "name"
set _note to "note"
tell application "Reminders"
make new reminder with properties {name:_name, body:_note}
end tell
--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
@EvanLovely
EvanLovely / Get_front_Mac_App_URL--markdown.applescript
Created May 27, 2014 22:05
Get Front Mac App Title and URL and make a Markdown Link to it
# Grab a URL from Chrome, Safari, Mail, Contacts, Finder, TextEdit, Omnifocus, Chrome Canary, or FoldingText
# Borrowed from: http://www.alfredforum.com/topic/917-reminders/?hl=reminders
tell application (path to frontmost application as text)
set theApplication to get name
end tell
set theText to ""
set theBody to ""
if theApplication is "Google Chrome" then
tell application id "com.google.chrome"
@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