Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ü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
You can’t perform that action at this time.