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
#!/bin/bash | |
case $1 in | |
-[h?] | --help) | |
cat <<-____HALP | |
Usage: ${0##*/} [ --help ] | |
Execute it with the command: ./${0##*/} your_certificate.crt your_private_key.crt | |
____HALP | |
exit 0;; | |
esac |
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
# Mount the font tools dmg as a volume on your Mac | |
hdiutil attach ~/Downloads/osxfonttools.dmg | |
# Navigate into the volume and copy | |
# the main .pkg file somewhere locally | |
# so you can manipulate it | |
cd /Volumes/OS\ X\ Font\ Tools/ | |
pkgutil --expand OS\ X\ Font\ Tools.pkg ~/fontTools && cd ~/fontTools | |
# If you ls, here's what's in the file |
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
// You can have multiple optional arguments, but only if the arguments | |
// can be distinguished from one another (in this example, by type) | |
function optionalUnambiguous(myString, myNumber) { | |
if (typeof myString === 'number') { | |
myNumber = myString; | |
myString = null; | |
} | |
if (myString == null) { myString = 'default'; } | |
if (myNumber == null) { myNumber = 0; } |