From: Fernan Bolando <fernanbolando@mailc.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Does "as little software as possible" include a modern
Date: Fri, 24 Jul 2009 07:49:43 +0800 [thread overview]
Message-ID: <1d5d51400907231649i3c039eebj45bffcd74e8a6fe6@mail.gmail.com> (raw)
In-Reply-To: <d3aad89464f7d6e6efba3ae1644b8fea@hamnavoe.com>
On Thu, Jul 23, 2009 at 6:16 PM, Richard Miller<9fans@hamnavoe.com> wrote:
>> although it uses http, twitter has got an api that you can use outside
>> a browser. it's much the same with several others, including aws.
>> there are reasonably clear descriptions of the messages, and you can construct
>> and send them however you like, in which ever language you like.
>
> The 'stock' command (undocumented?) is a good example of this.
> (It's a 14-line shell script):
>
> term% stock goog
> "GOOG","Google Inc.",427.69,"7/22/2009",0.00,0
>
> I have a similar little script to do currency conversions:
>
> term% currency usd eur
> 1 US Dollar (USD) = 0.70403 Euro (EUR)
> term% currency -d 10/30/2000 usd eur
> 1 US Dollar (USD) = 1.19046 Euro (EUR)
>
> which is just a bit of syntactic sugar wrapped around this:
>
> hget 'http://www.oanda.com/convert/classic?user=printable&exch='$xout'&expr='$xin'&value=1&date_fmt=us&date='$date | grep '^[ ]*1 '
>
>
>
now if somebody can create a script to lookup words in dictionary.com
preformatted without ads. :)
--
http://www.fernski.com
next prev parent reply other threads:[~2009-07-23 23:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-22 22:44 [9fans] Does "as little software as possible" include a modern browser? Jason Catena
2009-07-22 23:13 ` andrey mirtchovski
2009-07-22 23:19 ` Charles Forsyth
2009-07-22 23:56 ` Francisco J Ballesteros
2009-07-23 0:22 ` andrey mirtchovski
2009-07-23 0:47 ` Jason Catena
2009-07-23 9:48 ` C H Forsyth
2009-07-23 10:16 ` [9fans] Does "as little software as possible" include a modern Richard Miller
2009-07-23 23:49 ` Fernan Bolando [this message]
2009-07-23 23:57 ` John Floren
2009-07-24 0:08 ` andrey mirtchovski
2009-07-24 0:24 ` Fernan Bolando
2009-07-24 4:12 ` Federico G. Benavento
2009-07-24 16:14 ` maht
2009-07-24 16:41 ` Lorenzo Bolla
2009-07-24 16:42 ` Lorenzo Bolla
2009-07-24 17:16 ` [9fans] (no subject) erik quanstrom
2009-07-23 13:05 ` [9fans] Does "as little software as possible" include a modern browser? Jason Catena
2009-07-23 13:57 ` Steve Simon
2009-07-23 14:02 ` erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1d5d51400907231649i3c039eebj45bffcd74e8a6fe6@mail.gmail.com \
--to=fernanbolando@mailc.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).