This file contains 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
import time | |
import os | |
from openai import OpenAI | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from dotenv import load_dotenv | |
# Install required packages | |
# pip install openai matplotlib pandas python-dotenv | |
# Create a .env file in the same directory as this script |
This file contains 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
[ | |
{ | |
"description": "Sale Dates and Times:\n\nPublic Onsale : Thu, 8 Feb 2018 at 10:00 AM\n\nPresale : Tue, 6 Feb 2018 at 10:00 AM", | |
"name": "Toronto Blue Jays vs. Houston Astros", | |
"place": { | |
"name": "Rogers Centre", | |
"location": { | |
"city": "Toronto", | |
"country": "Canada", | |
"latitude": 43.641218085414, |
This file contains 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
{ | |
"food": [ | |
{"name": "Pizza", "icon": "🍕"}, | |
{"name": "Hotdog", "icon": "🌭"}, | |
{"name": "Burger", "icon": "🍔"}, | |
{"name": "Bacon", "icon": "🥓"}, | |
{"name": "Pancakes", "icon": "🥞"}, | |
{"name": "Taco", "icon": "🌮"}, | |
{"name": "Fries", "icon": "🍟"} | |
] |
This file contains 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
<script type='text/javascript'>!function(){var t=document.createElement("script");t.src="https://snippet.growsumo.com/growsumo.min.js",t.type="text/javascript",t.async="true",t.onload=t.onreadystatechange=function(){var t=this.readyState;if(!t||"complete"==t||"loaded"==t)try{growsumo._initialize("<REPLACE WITH YOUR PUBLIC KEY>"),"function"==typeof growsumoInit&&growsumoInit()}catch(e){}};var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();</script> | |
<script> | |
// This function is called when GrowSumoJS is loaded | |
function growsumoInit(){ | |
console.log('GrowSumoJS loaded', growsumo); | |
} | |
</script> |
This file contains 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
<script type='text/javascript'>!function(){var t=document.createElement("script");t.src="https://snippet.growsumo.com/growsumo.min.js",t.type="text/javascript",t.async="true",t.onload=t.onreadystatechange=function(){var t=this.readyState;if(!t||"complete"==t||"loaded"==t)try{growsumo._initialize("pk_d9FOdhhfrKGLy9YCGYIVQJVqv6PdNIxf"),"function"==typeof growsumoInit&&growsumoInit()}catch(e){}};var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();</script> | |
<script> | |
function growsumoInit(){ | |
if (typeof growsumo != 'undefined') { | |
growsumo.data.email = '[email protected]'; | |
growsumo.data.customer_key = 123; | |
console.dir(growsumo); | |
growsumo.createSignup(); | |
} | |
}; |
This file contains 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
function yourSignupFunction(customerEmail, customerName, customerKey) { | |
/* | |
customer_key (string, required) | |
used to uniquely identify your customer | |
*/ | |
growsumo.data.customer_key = customerKey; | |
/* | |
email (string, required) | |
email of the customer signing up | |
*/ |