Skip to content

Instantly share code, notes, and snippets.

.cp-button:before {
content: '';
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 10 10'%3e %3cpath fill='%23ffffff' fill-rule='evenodd' d='M229,586 C231.76177,586 234,588.238468 234,590.999874 C234,593.761846 231.76177,596 229,596 C226.238167,596 224,593.761846 224,590.999874 L226.500188,590.999874 C226.500188,592.380044 227.619397,593.499435 229,593.499435 C230.38054,593.499435 231.499874,592.380044 231.499874,590.999874 C231.499874,589.619328 230.38054,588.500063 229,588.500063 L229,586 Z' transform='translate(-224 -586)'/%3e %3c/svg%3e");
padding-right: .95em;
height: 16px;
width: 16px;
background-repeat: no-repeat;
background-position: center;
}
@gerstnr
gerstnr / privacy-friendly-sharing-urls.md
Last active November 23, 2020 17:53
Privacy friendly social sharing functionality
@gerstnr
gerstnr / fix-birthdays.scpt
Created January 14, 2018 12:26
When some contact sync fucked up, and suddenly all contacts without birthday entry end up being born on 01/01/1900 and your phone drowns in notifications on NYE, check this out...
# little apple script to selectively remove birthdays from contacts
tell application "Contacts"
set peopleToChange to every person whose birth date is date "01/01/1900"
repeat with thePerson in peopleToChange
# log (name of thePerson as text)
set the birth date of thePerson to missing value
end repeat
end tell