List of NFL API Endpoints
View updated list here
This page is limited to NFL endpoints but can be refashioned for other sports leagues (i.e. /sports/football/leagues/nfl/
=> /sports/baseball/leagues/mlb/
)
function piechart(data, radius=10) { | |
var k = Object.keys(data) | |
var v = Object.values(data) | |
var r = radius | |
d = r * 2; | |
M = Math; | |
R = M.round; | |
p = []; | |
for (y = 0; y < d; y++) { | |
p[y] = []; |
#!/usr/bin/env bash | |
#+============================================================================ | |
# $ echo "import this" | python | |
#+============================================================================ | |
# The Zen of Python, by Tim Peters | |
# Beautiful is better than ugly. | |
# Explicit is better than implicit. | |
# Simple is better than complex. | |
# Complex is better than complicated. |
# Write gist files using jq | |
GIST_ID=b787f3e14f28de11af45b1c7ec0ffbbc | |
eval "$( | |
curl -s https://api.github.com/gists/$GIST_ID | | |
jq -r '.files | to_entries | .[].value | @sh "echo \(.content) | tee \(.filename)"' | |
)" | |
[ | |
{ | |
"outerText": [ | |
"Listing available system locale settings:", | |
"", | |
"$ localectl list-locales" | |
], | |
"runasroot": false | |
}, | |
{ |
# NOTES | |
# ansible [pattern] -m [module] -a "[module options]" | |
# add `--tree <foldername>` to store output in directory | |
# add `-i <inventory_file>` if inventory is not specified in ansible.cfg | |
# ============================================================================== | |
# GETTING FACTS | |
# ============================================================================== |
# source: | |
# https://ansible-tips-and-tricks.readthedocs.io/en/latest/ansible/commands/ | |
# Ping hosts | |
ansible <HOST_GROUP> -m ping | |
# Display gathered facts | |
ansible <HOST_GROUP> -m setup | less | |
# Filter gathered facts |
var dl = require('datalib') | |
const getSummary = { | |
maxValuesToInclude: 25, | |
config: { | |
maxValuesToInclude: 25, | |
showPercent: true, | |
}, | |
keys: function (x) { |
View updated list here
This page is limited to NFL endpoints but can be refashioned for other sports leagues (i.e. /sports/football/leagues/nfl/
=> /sports/baseball/leagues/mlb/
)