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
// ==UserScript== | |
// @name PoE2 Trade Copy Item Button | |
// @version 1.0 | |
// @description Adds a button to the PoE2 Trade page that allows you to copy the item description and affixes to your clipboard. | |
// @author Kevin M | |
// @match https://www.pathofexile.com/trade2/* | |
// @icon https://www.google.com/s2/favicons?domain=pathofexile.com | |
// @downloadURL https://gist.github.com/Krytos/fcb435878b9ee214c8ef9c5d9a685861/raw/poe2trade.user.js | |
// @grant none | |
// ==/UserScript== |
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; |