ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| import logging.config | |
| from django.utils.log import DEFAULT_LOGGING | |
| # ======= | |
| # LOGGING | |
| # ======= | |
| LOGGING_CONFIG = None | |
| LOGLEVEL = os.getenv("LOGLEVEL", "info").upper() |
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| # coding=utf-8 | |
| from __future__ import unicode_literals | |
| import logging | |
| from django.core.management.base import BaseCommand, CommandError | |
| from django.apps import apps | |
| from xlsxwriter.workbook import Workbook | |
| logger = logging.getLogger(__name__) |
| import logging.config | |
| import os | |
| from django.utils.log import DEFAULT_LOGGING | |
| # Disable Django's logging setup | |
| LOGGING_CONFIG = None | |
| LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper() | |
| logging.config.dictConfig({ |
| version: '3.3' | |
| services: | |
| django: | |
| container_name: "django" | |
| build: | |
| context: ./docker/django | |
| working_dir: /var/www | |
| command: ["gunicorn", "-b", "0.0.0.0:8000" ,"-w" ,"4" ,"djangoapps.wsgi"] |
| #!/bin/sh | |
| # Script: gif-optimize.sh | |
| # Author: Rob Baier | |
| # Description: Script used to optimize animated GIF files. | |
| # Dependencies: Gifsicle (https://github.com/kohler/gifsicle) | |
| # Environment: Tested on MacOS 10.12. Other *nix environments may require some tweaking. | |
| # Usage: ./gif-optimize.sh input-filename.gif | |
| # Helper function to convert bytes into a human-readable format |
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| """ | |
| python distribute file | |
| """ | |
| from __future__ import (absolute_import, division, print_function, | |
| unicode_literals, with_statement) |
This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).
Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.
Switch to the master branch and make sure you are up to date:
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |