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
/** | |
* A collection of helper prototype for everyday DOM traversal, manipulation, | |
* and event binding. Sort of a minimalist jQuery, mainly for demonstration | |
* purposes. MIT @ m3g4p0p | |
*/ | |
window.$ = (function (undefined) { | |
/** | |
* Duration constants | |
* @type {Object} |
@* | |
Generator: Template | |
TypeVisibility: Public | |
GeneratePrettyNames: true | |
Namespace: Hangfire.Dashboard.Pages | |
*@ | |
@using System.Xml | |
@using Fator.Hangfire.Custom.Storage | |
@using Hangfire.Dashboard | |
@using Hangfire.Dashboard.Pages |
"""An example of writing an API to scrape hacker news once, and then enabling usage everywhere""" | |
import hug | |
import requests | |
@hug.local() | |
@hug.cli() | |
@hug.get() | |
def top_post(section: hug.types.one_of(('news', 'newest', 'show'))='news'): | |
"""Returns the top post from the provided section""" |
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
body { | |
padding: 0 10%; | |
} | |
p { | |
text-align: left; | |
font-size: 18px; | |
letter-spacing: 0.08px; | |
line-height: 26px; | |
word-wrap: break-word; |
(function() { | |
function status(response) { | |
if (response.ok) { | |
return response | |
} else { | |
var error = new Error(response.statusText || response.status) | |
error.response = response | |
throw error | |
} | |
} |
import javax.swing.JOptionPane; | |
public class CH5PC { | |
public static void main(String[] args) { | |
// Make an array to store our values! Save space! | |
double[] score; | |
score = new double[5]; | |
// Declare some variables | |
String input; | |
int count = 0; |