In your command-line run the following commands:
brew doctorbrew update
In your command-line run the following commands:
brew doctorbrew update| #!/usr/bin/env ipython -i | |
| import datetime | |
| import json | |
| from typing import Optional | |
| import sqlalchemy as sa | |
| from sqlalchemy.orm import declarative_base, sessionmaker | |
| from sqlalchemy.dialects.postgresql import JSONB | |
| from pydantic import BaseModel, Field, parse_obj_as |
mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.
Github will be the main account and bitbucket the secondary.
| """ | |
| Based off Stripe's checkout repo, see the link for the Flask analogue. | |
| https://github.com/stripe-samples/checkout-one-time-payments/blob/master/server/python/server.py | |
| Assumes project is structured like: | |
| src/ | |
| backend/ | |
| app.py |
| import re | |
| from typing import Dict | |
| from io import StringIO | |
| from dateutil import parser | |
| from sqlalchemy import create_engine | |
| import pandas as pd | |
| def is_date(string): | |
| if string.isnumeric(): |
SQL tutorial: https://tutorial.techaltum.com/SQLServer.html
| import heapq | |
| def schedule(tasks): | |
| heap = [] | |
| def offer(begin, end): | |
| while heap and heap[0] <= begin: | |
| heapq.heappop(heap) | |
| heapq.heappush(heap, end) | |
| return len(heap) | |