Skip to content

Instantly share code, notes, and snippets.

View seanwittmeyer's full-sized avatar

seanwittmeyer seanwittmeyer

View GitHub Profile
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 2, 2024 05:55
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

<?php
$handle = fopen("http://apple.accuweather.com/adcbin/apple/Apple_Weather_Data.asp?zipcode=80526", "r");
$contents = stream_get_contents($handle);
fclose($handle);
$weathersrc = new SimpleXMLElement($contents);
echo $weathersrc->CurrentConditions[0]->Temperature.'°F and '.$weathersrc->CurrentConditions[0]->WeatherText; ?>