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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <errno.h> | |
| #include <netdb.h> | |
| #include <arpa/inet.h> | |
| #include <sys/socket.h> | |
| #include <openssl/ssl.h> | |
| #include <openssl/err.h> |
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
| #include <stdio.h> | |
| #include <math.h> | |
| #ifdef _WIN32 | |
| #include <windows.h> | |
| #define usleep(x) Sleep((x)/1000) // Sleep takes milliseconds instead of microseconds. | |
| #else | |
| #include <unistd.h> | |
| #endif | |
| #include <string.h> |
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
| \documentclass[11pt,a4paper]{article} | |
| \usepackage[margin=1in]{geometry} | |
| \usepackage{listings} | |
| \usepackage{xcolor} | |
| \usepackage{titlesec} | |
| \usepackage{enumitem} | |
| \usepackage{hyperref} | |
| \usepackage{tcolorbox} | |
| % Configure code listings |
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
| import os | |
| import json | |
| import instructor | |
| from anthropic import Anthropic | |
| from pydantic import BaseModel, Field | |
| from typing import List | |
| from dotenv import load_dotenv, find_dotenv | |
| load_dotenv(find_dotenv()) |