"PUBLIC_DOMAIN" : "stream.twitter.com",
"SITE_DOMAIN" : "sitestream.twitter.com",
- // Color config
+ /* Color config
+ There are 16 basic colors supported :
+ * default
+ * black
+ * red
+ * green
+ * yellow
+ * blue
+ * magenta
+ * cyan
+ * grey
+ * light_red
+ * light_green
+ * light_yellow
+ * light_blue
+ * light_magenta
+ * light_cyan
+ * white
+
+ */
"TWEET" : {
"nick" : "grey",
"clock" : "grey",
)
def load_config(filepath):
+ """
+ Load config from filepath
+ """
try:
with open(filepath) as f:
content = ''.join(f.readlines())
except:
pass
-# Image config
-IMAGE_SHIFT = 10
-IMAGE_MAX_HEIGHT = 40
-
# Load colorset
default_config = 'rainbowstream/colorset/default.json'
rainbow_config = os.environ.get('HOME', os.environ.get('USERPROFILE','')) + os.sep + '.rainbow_config.json'
Call color function base on name
"""
pure = func_name.encode('utf8')
+ if pure.startswith('RGB_') and pure[4:].isdigit():
+ return RGB(int(pure[4:])
return globals()[pure]