This type of app lets a user send a prompt (like a question or message), and it returns a response from a Generative AI model like gpt-3.5-turbo
or gpt-4
. It works in a stateless fashion — meaning each prompt is treated independently unless the app includes the past chat history manually in the API call.
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
Data Platform API | |
--- | |
- Project | |
- Metadata | |
- Environments | |
- Source Code | |
- Infrastructure | |
- Storage | |
- Staging Area |
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
from mimesis.schema import Field, Schema | |
import json | |
def generate(schema_definition, iterations=1, seed=None, language='en'): | |
""" | |
>>> user = { 'id': 'uuid','name': 'person.full_name' } | |
# Should return a single user account record as a list | |
>>> user_data = generate(user, seed='TEST_DATA') |
I hereby claim:
- I am patrickyoung on github.
- I am patrickyoung (https://keybase.io/patrickyoung) on keybase.
- I have a public key ASBaqctVA-1XWRb2eF3M7cTPkV1S-y5LziFeAlrPmEZlLAo
To claim this, I am signing this object:
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
#!/bin/sh | |
# This script provides a simple API to control VPN connections in macOS. | |
DEFAULT_VPN="$(scutil --nc list | awk '/IPSec/ {print $5}' | sed 's/\"//g')" | |
COMMAND=$1 | |
VPN_NAME=${2:-${DEFAULT_VPN}} | |
function turn_on_vpn() { | |
echo $(scutil --nc start ${VPN_NAME}) |
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
from functools import wraps | |
import logging | |
user_id = "user" | |
people_db = [ | |
{'id': '001', 'name': 'Andrew M. Tatum'}, | |
{'id': '002', 'name': 'Frances G. Marzano'}, | |
{'id': '003', 'name': 'Tammy R. Green'},] |
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
Patrick Smith | |
100 Maple View Ct. | |
Roswell, GA 30069 | |
email patrick.smith@email.com | |
phone 414-555-1212 |