This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Thanks to https://twitter.com/JNP7771 for the script at https://playcode.io/780618/ | |
| ## imports | |
| import requests | |
| import json | |
| import pandas as pd | |
| import math | |
| from beautifultable import BeautifulTable | |
| x96 = math.pow(2, 96) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Thanks to https://twitter.com/JNP7771 for the script at https://playcode.io/780618/ | |
| ## imports | |
| import requests | |
| import json | |
| import pandas as pd | |
| import math | |
| from beautifultable import BeautifulTable | |
| x96 = math.pow(2, 96) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "version": "1.0", | |
| "title": "Cryptocompare", | |
| "description": "TODO: Add Description" | |
| }, | |
| "host": "min-api.cryptocompare.com", | |
| "basePath": "/", | |
| "schemes": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # token.pickle stores the user's credentials from previously successful logins | |
| if os.path.exists('token.pickle'): | |
| print('Loading Credentials From File...') | |
| with open('token.pickle', 'rb') as token: | |
| credentials = pickle.load(token) | |
| # Google's Request | |
| from google.auth.transport.requests import Request |