Skip to content

Instantly share code, notes, and snippets.

@npgenx
npgenx / espn-api-list.md
Created December 23, 2024 02:51 — forked from nntrn/espn-api-list.md
List of nfl api endpoints from espn

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

  • June 2021 - list of endpoints for other sports/leagues (i.e. basketball, baseball, lacrosse, rugby)
  • August 2021 - get historical fantasy league data
  • September 2021 - list of endpoints in plain text
  • May 2023 - collapsed endpoint response examples

Additional Resources

@npgenx
npgenx / launch.json
Created November 4, 2024 20:23
Next.js VSCode debugging options
{
"version": "0.2.0",
"configurations": [
{
"name": "Modified: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
@npgenx
npgenx / JS Snippets
Last active April 30, 2022 00:41
js: JS Snippets
// Copy to Clipboard
// Easily copy any text to clipboard using navigator.clipboard.writeText.
const copyToClipboard = (text) => navigator.clipboard.writeText(text);
copyToClipboard("Hello World");
// Check if Date is Valid
// Use the following snippet to check if a given date is valid or not.
const isDateValid = (...val) => !Number.isNaN(new Date(...val).valueOf());
isDateValid("December 17, 1995 03:24:00");
// Result: true
@npgenx
npgenx / getMethods.js
Created October 10, 2019 03:16
js: Get methods of a javascript object
getMethods = (obj) => Object.getOwnPropertyNames(obj).filter(item => typeof obj[item] === 'function')
@npgenx
npgenx / .htaccess
Last active April 30, 2022 00:44
apache: Allow Facebook and twitter crawlers behind a password protected site
AuthUserFile #Location of htpasswd file#
AuthType Basic
AuthName #<Site Name>#
Require valid-user
Order deny,allow
Deny from all
# Update the fb and twitter crawler IP lists by running the following commands, then copy & replace the IPs below.
#
# Facebook