(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
fcc() { | |
DB=~/Library/Containers/org.p0deje.Maccy/Data/Library/Application\ Support/Maccy/Storage.sqlite | |
SQL="select distinct ZVALUE | |
from ZHISTORYITEMCONTENT | |
where ZTYPE IN ('public.text','public.utf8-plain-text') | |
order by Z_PK desc" | |
if ! [ -r "$DB" ]; then | |
MSG='Maccy database not found. "brew cask install maccy" to install Maccy.' | |
echo "$MSG" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/** Command-line options parser (http://valeriu.palos.ro/1026/). | |
Copyright 2011 Valeriu Paloş ([email protected]). All rights reserved. | |
Released as Public Domain. | |
Expects the "schema" array with options definitions and produces the | |
"options" object and the "arguments" array, which will contain all | |
non-option arguments encountered (including the script name and such). | |
Syntax: | |
[«short», «long», «attributes», «brief», «callback»] |