- install Visual Studio Core (i already have it)
- install C# vs code extension
- install .NET Core 3.1 SDK
- setup launch.json in .vscode
- start the debugger
| import base64 | |
| import json | |
| import os | |
| from dataclasses import dataclass | |
| from mimetypes import guess_type | |
| from dotenv import load_dotenv | |
| from openai import AsyncAzureOpenAI | |
| from openai.types.chat.chat_completion import ChatCompletion |
| from math import floor | |
| # example of puzzle9x9_1.txt (0 = value to fill) | |
| # | |
| # 0 4 3 0 8 0 2 5 0 | |
| # 6 0 0 0 0 0 0 0 0 | |
| # 0 0 0 0 0 1 0 9 4 | |
| # 9 0 0 0 0 4 0 7 0 | |
| # 0 0 0 6 0 8 0 0 0 | |
| # 0 1 0 2 0 0 0 0 3 |
| # nltk==3.7 | |
| # pandas==1.5.2 | |
| # PyPDF2==2.11.2 | |
| # scikit-learn==1.1.3 | |
| from PyPDF2 import PdfReader | |
| import io | |
| import pandas as pd | |
| import requests |
| # azure-cognitiveservices-vision-face==0.6.0 | |
| # image==1.5.33 | |
| import os | |
| import json | |
| import requests | |
| from azure.cognitiveservices.vision.face import FaceClient | |
| from azure.cognitiveservices.vision.face.models import DetectedFace | |
| from msrest.authentication import CognitiveServicesCredentials |
| # azure-search-documents==11.3.0 | |
| # faker=15.3.3 | |
| import os | |
| from azure.core.credentials import AzureKeyCredential | |
| from azure.search.documents import SearchClient | |
| from azure.search.documents.indexes import SearchIndexClient | |
| from azure.search.documents.indexes.models import ( | |
| CorsOptions, | |
| ComplexField, |
| # pandas = "1.5.1" | |
| # faker = "15.3.2" | |
| # matplotlib = "3.6.2" | |
| # pyarrow = "10.0.0" | |
| from faker import Faker | |
| from timeit import default_timer as timer | |
| import math | |
| import matplotlib.pyplot as plt |
| import argparse | |
| import cv2 | |
| import json | |
| import os | |
| import sys | |
| def metadata(filename, video): | |
| return { | |
| "file_name": filename.split(os.path.sep)[-1], |
| #!/bin/bash | |
| # Get all the resources that are assessible by me | |
| # and order them by last modified date | |
| # create a file, `resources.sh` with the content of this script | |
| # and run `bash resources.sh` | |
| AccountStore="accounts.csv" | |
| ResourcegroupStore="resourcegroups.csv" |