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
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
| /* | |
| * Usage: | |
| * const { alert, confirm, prompt } = useModals() | |
| * alert("Hey!") // awaitable too | |
| * if (await confirm("Are you sure?")) ... | |
| * const result = await prompt("Enter a URL", "http://") | |
| */ | |
| import React, { | |
| createContext, |
| Apple very usefully provides unauthenticated json feeds for both the iTunes search and iTunes rss | |
| The Search API returns your search results in JavaScript Object Notation (JSON) format. JSON is built on two structures: | |
| All JSON results are encoded as UTF-8. For more information on JSON, please see http://www.json.org. | |
| --- | |
| Search API | |
| http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html | |
| --- | |
| RSS Info |
| # Add to nginx.conf http section | |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } |
| <?php | |
| error_reporting(E_ALL ^ E_NOTICE); | |
| abstract class Option { | |
| protected $value; | |
| public function __construct($value) { | |
| if (isset($value)) return some($value); | |
| else return none(); | |
| } |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |