For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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
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.") |
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
tell application "Reminders" | |
delete (every reminder whose completed is true) | |
end tell |
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
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:" |
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
#!/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 |