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
| import random as rand | |
| from string import Template | |
| from itertools import repeat | |
| from datetime import datetime, timedelta | |
| from apps.glue.util.date import start_of_next_month | |
| from apps.dashboard.views import get_bigquery, get_signup_tables, get_interaction_tables | |
| from apps.dashboard.views import datetime_human, date_range2, date_name | |
| bq = get_bigquery() |
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
| import bz2 | |
| import os | |
| import re | |
| import random | |
| import csv | |
| from urlparse import urlparse | |
| #old bz2 files | |
| #path = '/logs/prod/nginx/2013/06' | |
| path = '/var/log/remote/prod/nginx/2013/08' |
NewerOlder