Skip to content

Instantly share code, notes, and snippets.

🏍️
...

Forrest Fowler fcfowler

🏍️
...
Block or report user

Report or block fcfowler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fcfowler
fcfowler / gist:8443033
Last active Jan 3, 2016
Get current weather with "weather" command in the terminal
View gist:8443033
Add the following to .bash_profile, replace 47401 with appropriate zip code :)
alias weather="curl --silent 'http://xml.weather.yahoo.com/forecastrss?p=47401&u=f' | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's///' -e 's/<\/description>//'"
@fcfowler
fcfowler / directive.js
Created Dec 9, 2013
Non gif loading directive using spin.js
View directive.js
app.directive('spinner', ['$window', function ($window) {
return {
scope: true,
link: function (scope, element, attr) {
scope.spinner = null;
function stopSpinner() {
if (scope.spinner) {
scope.spinner.stop();
scope.spinner = null;
You can’t perform that action at this time.