How to write and read code using Elephas

If you are a technical person who deals with code. Elephas can come in handy.

Read code

Read any code from any application. Elephas can understand any piece of code (backed by GPT-3), and translate that to natural language.

Write code 

Use the codex feature across applications.

You can ask,

""" Write a python function that checks if a the given license key is valid with Gumroad."""

Make sure to use the right commenting format specific to the programming language.

You may get an output something like,

def check_license_key(license_key):
"""
Checks if a license key is valid with Gumroad.
:param license_key: The license key to check.
:return: True if the license key is valid, False otherwise.
"""
url = "https://api.gumroad.com/v2/licenses/verify"
querystring = {"product_permalink":"pvXo","license_key":license_key}
headers = {
'cache-control': "no-cache",
'postman-token': "8d2c7c1d-0e5a-8f7c-b9f0-7c9e9e8c7f2d"
}
response = requests.request("GET", url, headers=headers, params=querystring)
json_response = json.loads(response.text)
return json_response['success']
if __name__ == "__main__":
print(check_license_key("12345"))
print(check_license_key("12345-12345-12345-12345"))

Sign up now

Get a deep dive into the most important AI story of the week. Deliverd to your inbox for free!

Kamban S

Kamban is the founder of Elephas, a native Mac app for seamless AI writing. He writes articles on the latest AI developments and is fueled by his passion for AI's potential. Kamban is committed to user experience and enthusiastic about the future of AI in education and data-driven decision-making. His goal? To make AI user-friendly for everyone.

Elephas

Meet Elephas - Your AI-Powered Knowledge Assistant. Your Personal ChatGPT for all your files. Transform information overload into actionable insights. Organize vast knowledge. Access ideas efortlessly. Save 10 hours a week