tweetcast/nodejs/conf-pol.js
author Raphael Velt <raph.velt@gmail.com>
Wed, 30 Nov 2011 12:11:59 +0100
changeset 403 dd1686ae5506
parent 338 60dff8a71024
permissions -rw-r--r--
minor changes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
338
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     1
/* CONFIGURATION FILE USED BY BOTH CLIENT AND SERVER */
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     2
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     3
var app_port = 8000,
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     4
    sqlfile = "politique.sqlite",
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     5
    tracking_keyword = "Hervé Morin,Eva Joly,Hollande,Sarkozy,Mélenchon,Bayrou,Villepin,Le Pen",
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     6
    annotations = {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     7
        "default" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     8
            "colors" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     9
                "tweet" : "#ffffff",
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    10
                "timeline" : "#808080"
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    11
            }
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    12
        },
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    13
        "droite" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    14
            "keywords" : [ /\bump\b/i, /sarkozy/i ],
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    15
            "colors" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    16
                "tweet" : "#ddddff",
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    17
                "timeline" : "#000080"
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    18
            }
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    19
        },
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    20
        "gauche" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    21
            "keywords" : [ /hollande/i, /mélenchon/i, /melenchon/i, /gauche/i, /\bps\b/i, /socialiste/i ],
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    22
            "colors" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    23
                "tweet" : "#ffdddd",
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    24
                "timeline" : "#800000"
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    25
            }
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    26
        },
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    27
        "centre" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    28
            "keywords" : [ /modem/i, /centre/i, /morin/i, /bayrou/i ],
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    29
            "colors" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    30
                "tweet" : "#ffeedd",
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    31
                "timeline" : "#ff8000"
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    32
            }
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    33
        },
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    34
        "verts" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    35
            "keywords" : [ /eelv/i, /joly/i, /écologiste/i, /ecologiste/i, /les verts/i ],
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    36
            "colors" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    37
                "tweet" : "#ddffdd",
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    38
                "timeline" : "#008000"
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    39
            }
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    40
        },
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    41
        "extremeDroite" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    42
            "keywords" : [ /le pen/i, /extreme\-droite/i, /extrême\-droite/i, /front national/i, /\bfn\b/i, /marine/i ],
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    43
            "colors" : {
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    44
                "tweet" : "#e0d8d0",
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    45
                "timeline" : "#402000"
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    46
            }
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    47
        }
60dff8a71024 Added alternate configuration
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    48
    }