Skip to content

Instantly share code, notes, and snippets.

@danteGPT
danteGPT / univ3Fees.py
Created January 24, 2024 13:26 — forked from Lucas-Kohorst/univ3Fees.py
Get fees, upper and lower price bounds for a uv3 position
## 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)
@danteGPT
danteGPT / univ3Fees.py
Created January 24, 2024 13:26 — forked from Lucas-Kohorst/univ3Fees.py
Get fees, upper and lower price bounds for a uv3 position
## 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)
@danteGPT
danteGPT / cryptocompare-openapi.json
Created December 1, 2023 19:06 — forked from kinlane/cryptocompare-openapi.json
cryptocompare-openapi
{
"swagger": "2.0",
"info": {
"version": "1.0",
"title": "Cryptocompare",
"description": "TODO: Add Description"
},
"host": "min-api.cryptocompare.com",
"basePath": "/",
"schemes": [
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.
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.
@danteGPT
danteGPT / YouTube-OAuth-Snippets
Created October 24, 2023 10:40 — forked from CoreyMSchafer/YouTube-OAuth-Snippets
YouTube-OAuth-Snippets
# 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