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
# Deploy to AWS using docker-machine and docker-compose | |
## 1. Prepare your machine | |
Please follow this steps: | |
1.1 Install docker in your localhost. [Installation link](https://docs.docker.com/engine/installation/) | |
1.2 Install docker-machine in your localhost. [Installation link](https://docs.docker.com/compose/install/) | |
1.3 Install docker-compose in your localhost. [Installation link](https://docs.docker.com/machine/install-machine/) | |
1.4 Create an account in AWS (skip this step if you already have one). [AWS](https://aws.amazon.com/) |
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
This is how I configured the deploy of my rails apps to AWS Elastic Beanstalk through CircleCI.
On Project Settings > Environment Variables add this keys:
from __future__ import absolute_import, unicode_literals | |
from celery import current_app | |
from celery.bin import worker | |
if __name__ == '__main__': | |
app = current_app._get_current_object() | |
worker = worker.worker(app=app) |
const Sequelize = require('sequelize'); | |
const models = require('./models'); | |
const fs = require('fs'); | |
// delete models.default; | |
const sequelize = new Sequelize( | |
'', | |
'', | |
'', { |
(function($) { | |
$.fn.responsiveCanvas = function(method) { | |
var methods = { | |
// init functions | |
init : function(options) { | |
return this.each(function(i) { | |
var c = this, // THE canvas | |
ct = c.getContext('2d'), // check the context | |
$container = $(c).parent(); // parent container object | |