Date/Time: date, time
Purpose: purpose
Location: location
| import json | |
| import time | |
| import multiprocessing | |
| import requests | |
| from bs4 import BeautifulSoup | |
| PAGES = 100 | |
| { | |
| "breadcrumbs.enabled": true, | |
| "breadcrumbs.symbolSortOrder": "position", | |
| "editor.definitionLinkOpensInPeek": false, | |
| "editor.fontFamily": "SF Mono", | |
| "editor.fontLigatures": false, | |
| "editor.fontSize": 11, | |
| "editor.minimap.enabled": false, | |
| "editor.rulers": [ | |
| 120, |
| from flake8.main.application import Application as Flake8 | |
| from myproject.app import create_app | |
| # Code in this module gets run every time the app restarts in debug mode. | |
| # Therefore the linter runs every time the app restarts. | |
| CYAN = '\x1b[1;36m' | |
| RED = '\x1b[0;31m' | |
| RESET = '\x1b[0m' |
| from datetime import datetime | |
| from collections import namedtuple | |
| from lxml import etree | |
| EXPORT_FILE = 'apple_health_export/export.xml' | |
| BodyMass = namedtuple('BodyMass', ('date_time', 'value')) | |
| StepCount = namedtuple('StepCount', ('date_time', 'value')) | |
| Distance = namedtuple('Distance', ('date_time', 'value')) | |
| Stairs = namedtuple('Stairs', ('date_time', 'value')) |
| # This is a logging configuration that will log to both the console and a file (based on 'handlers'). | |
| # The 'loggers' section describes what levels get output: | |
| # textloading module will only output DEBUG messages (and above) | |
| # requests module will only output WARN messages (and above) | |
| # everything else will output INFO messages (and above) | |
| LOGGING = { | |
| 'version': 1, | |
| 'disable_existing_loggers': True, | |
| 'loggers': { |
| # function to add to path if it doesn't already exist. | |
| pathadd() { | |
| if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then | |
| export PATH="${PATH:+"$PATH:"}$1" | |
| fi | |
| } | |
| # set up pretty man colors |
| from flask import Blueprint | |
| from flask import url_for | |
| from flask.ext.login import current_user | |
| from flask.ext.login import login_user | |
| from flask.ext.login import logout_user | |
| from flask.ext.login import login_required | |
| from forms import LoginForm | |
| from forms import ForgotPasswordForm | |
| from forms import ResetPasswordForm |
| {% if form.non_field_errors %} | |
| <ul class="errors non-field-errors"> | |
| {% for err in form.non_field_errors %} | |
| <li>{{ err }}</li> | |
| {% endfor %} | |
| </ul> | |
| {% endif %} | |
| <div style="display:none">{% csrf_token %}</div> |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>HTML5 Template</title> | |
| <meta name="description" content="Awesome decription of this website."> |