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
const SECRET_KEY = ENTER YOUR SECRET KEY HERE; | |
const MAX_TOKENS = 200; | |
// For more cool AI snippets and demos, follow me on Twitter: https://twitter.com/_abi_ | |
/** | |
* Completes your prompt with GPT-3 | |
* | |
* @param {string} prompt Prompt | |
* @param {number} temperature (Optional) Temperature. 1 is super creative while 0 is very exact and precise. Defaults to 0.4. |
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
In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc
Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server
Use this link and get $10 free. Just select the $5 plan unless this a production app.
We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
# Top secret decoder | |
# The CIA has discovered a plot against a major city | |
# SIGINT has intercepted a message with the location and date of the attack | |
# Unfortunately, the message is encoded. | |
# Due to your awesome Python skills, you have been hired to decode the message | |
# A double agent has provided the encoding scheme which is as follows: | |
# All numbers need to be changed to spaces | |
# All capital letters should be changed to * | |
# The lowercase letter q is equal to \n | |
# All other lowercase letters should be ignored. |
# Rock Paper Scissors ASCII Art | |
# Rock | |
print(""" | |
_______ | |
---' ____) | |
(_____) | |
(_____) | |
(____) | |
---.__(___) |
#Janken with Loop Assignment Example by Christian Thompson | |
#Uses Random numbers 1-3 to represent Rock, Paper, Scissors | |
#Initialize | |
import os | |
import random | |
import time | |
#Declare variables |
# Function Practice Send and Return Values w/Booleans | |
# Please create and call various functions as explained below. | |
import os | |
os.system("clear") | |
# 1 | |
# Write a function that prints Doh! on the screen. | |
# Call the function print_doh | |
print("1\n") | |
def print_doh(): |
# Function Practice Send and Return Values w/Booleans | |
# Please create and call various functions as explained below. | |
import os | |
os.system("clear") | |
# 1 | |
# Write a function that prints Doh! on the screen. | |
# Call the function print_doh | |
print("1\n") | |
def print_doh(): |