Get Weather from Command Line
There's an awesome script making the rounds on Twitter and I've been as excited as everyone else so I thought I'd show it. Many of us live eight hours a day within the command line (although I'm not a vim hippie like some of you) so I try to find new ways to accomplish tasks from within iTerm (like getting bitcoin value or stock quotes). Many of these solutions include using cURL and this awesomeness is no exception!

You can get weather information from command line using cURL and wttr.in
:
# Allow geolocation
curl -4 wttr.in
# Request a city
curl -4 wttr.in/Madison
wttr.in
does well to guess location if one isn't provided so in most cases you wont need to provide your city.
There you go, another awesome way to get the information you need from command line!
![Responsive and Infinitely Scalable JS Animations]()
Back in late 2012 it was not easy to find open source projects using requestAnimationFrame()
- this is the hook that allows Javascript code to synchronize with a web browser's native paint loop. Animations using this method can run at 60 fps and deliver fantastic...
![9 Mind-Blowing Canvas Demos]()
The <canvas>
element has been a revelation for the visual experts among our ranks. Canvas provides the means for incredible and efficient animations with the added bonus of no Flash; these developers can flash their awesome JavaScript skills instead. Here are nine unbelievable canvas demos that...
![MooTools Text Flipping]()
There are lots and lots of useless but fun JavaScript techniques out there. This is another one of them.
One popular April Fools joke I quickly got tired of was websites transforming their text upside down. I found a jQuery Plugin by Paul...
![Scrolling “Agree to Terms” Component with MooTools ScrollSpy]()
Remember the good old days of Windows applications forcing you to scroll down to the bottom of the "terms and conditions" pane, theoretically in an effort ensure that you actually read them? You're saying "No David, don't do it." Too late -- I've done...
Frickin’ genius!
This is excellent! As a relative rube when it comes to the command line though, can someone kindly explain the purpose of
-4
in the command? I seem to get the same results whether I include it or leave it out.its used for Resolved name to IPv4 Address
It looks like iTerm here translates/renders the curl response HTML output? Or curl implicitly does that (if so what version of curl are you using)? Because the raw HTML (unprocessed) does not look as nicely displayed as the screenshot. Only if you render the HTML will it look like that.
I created an (OS X only) to automatically show your local weather:
https://gist.github.com/6343547a0169e9b6167d