Skip to content

Instantly share code, notes, and snippets.

@brandonpittman
brandonpittman / spamMail.js
Created April 9, 2016 05:56
Use TextExpander to generate an email address
if (Application('Safari Technology Preview').running()) {
safari = Application('Safari Technology Preview')
} else if (Application('Safari').running()) {
safari = Application('Safari')
}
_tab = safari.windows[0].currentTab()
if (_tab.url().match(/http.?:\/\/www/)) {
_url = _tab.url().split("www.")
@lopspower
lopspower / README.md
Last active September 21, 2024 11:55
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@poritsky
poritsky / Delete Completed Reminders.applescript
Created April 27, 2015 18:47
Delete Completed Reminders in Reminders.app
tell application "Reminders"
delete (every reminder whose completed is true)
end tell
@macdrifter
macdrifter / stringParser.py
Created August 15, 2013 13:57
stringParser
import sys
import re
import urllib
import clipboard
def titleCase(s):
newText = re.sub(r"[A-Za-z]+('[A-Za-z]+)?",lambda mo: mo.group(0)[0].upper() + mo.group(0)[1:].lower(),s)
return newText
print "Convert to:"
@ttscoff
ttscoff / customthumbs.sh
Created July 4, 2013 03:48
Create custom thumbnail icons from a file's Quick Look preview on OS X
#!/bin/bash
target=$1
filename=`basename $1`
image="${TMPDIR}${filename}.png"
rsrc="${TMPDIR}icn.rsrc"
# Create a thumbnail from the file preview
qlmanage -t -s 512 -o ${TMPDIR} $target
@Zettt
Zettt / OpenMeta2OSXTags.sh
Last active May 5, 2021 15:58
Script that reads OpenMeta tags and writes them to OS X Mavericks tags. http://mosx.tumblr.com/post/54049528297/convert-openmeta-to-os-x-mavericks-tags-with-this This requires a OpenMeta binary to be installed. Change its path, if you prefer it to be somewhere else. For the files to be processed properly don't include a trailing slash in `$files…
# =============================================================
# = OpenMeta to OS X Tags =
# =============================================================
# Script to convert OpenMeta tags to OS X Mavericks tags.
#
# Created by Zettt (Andreas Zeitler) on 2013-06-28
# Source www.macosxscreencasts.com, mosx.tumblr.com
#
# OpenMeta to OS X Tags by Andreas Zeitler is licensed under a
# Creative Commons Attribution-NonCommercial-ShareAlike