The python port of libphonenumber is pretty complete, but is a little short on examples and sample code. Here are some simple examples for some common uses of this fantastic library.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var badge = Raphael(200, 0, 225, 187); | |
// Header | |
var attrs = {'fill': '#f90', 'stroke': 'none', 'font-size': 11, 'font-family': 'helvetica'}; | |
badge.rect(5, 3, 225, 14).attr(attrs); | |
badge.circle(212, 8, 16).attr(attrs); | |
var textAttrs = {'fill': '#fff', 'font-size': 11, 'font-family': 'helvetica', 'text-anchor': 'end'}; | |
var text = badge.text(198, 9, "SuperHappyDevHouse"); | |
text.attr(textAttrs); | |
var num = badge.text(211, 9, "48"); |