Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
Created August 11, 2014 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mygeekdaddy/2f09f6e49a6f1e0d89f5 to your computer and use it in GitHub Desktop.
Save mygeekdaddy/2f09f6e49a6f1e0d89f5 to your computer and use it in GitHub Desktop.
Übersicht widget to display your current IP address
command: "/Users/mygeekdaddy/Dropbox/bin/Python/curipaddr.py"
refreshFrequency: 6000000
style: """
bottom: 212px
left: 15px
color: #fff
font-family: Helvetica Neue
div
display: block
background: rgba(#000, 0.2)
border-radius: 15px
font-size: 18px
font-weight: 300
padding: 4px 6px 4px 6px
&:after
content: 'Public IP'
position: absolute
left: 6px
top: -8px
font-size: 10px
font-weight: 500
"""
render: -> """
<div class='ip_address'></div>
"""
update: (output, domEl) ->
$(domEl).find('.ip_address').html(output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment