Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
(function($){
$.worldClock = function(clockElement, opts) {
var settings =$.extend( {}, $.worldClock.defaults, opts, getMetadata(clockElement));
return setInterval((function() {
updateClock(clockElement, settings);
return arguments.callee;
})(), settings.interval);
};
$.worldClock.defaults = {