Skip to content

Instantly share code, notes, and snippets.

View nikhilsharma26500's full-sized avatar
🎯
Focusing

Nikhil Sharma nikhilsharma26500

🎯
Focusing
View GitHub Profile
#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>
#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>
\documentclass[11pt,a4paper]{article}
\usepackage[margin=1in]{geometry}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{enumitem}
\usepackage{hyperref}
\usepackage{tcolorbox}
% Configure code listings
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())