This file contains 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
# Create folder | |
import os | |
os.makedirs("my/path", exist_ok=True) | |
# Read and write CSV | |
import pandas as pd | |
df = pd.read_csv('input_data.csv', encoding='utf-8') | |
df.to_csv('output_data.csv', encoding='utf-8', index=False) |
This file contains 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
# Python | |
call py --version | |
# Virtual Environment | |
call py -m venv venv | |
call venv\Scripts\activate | |
call py -m pip install -U pip | |
call py run.py | |
# Install dependencies |
This file contains 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
# Full boilerplate project: https://github.com/baobuiquang/fastapi | |
# How to POST request: | |
# Invoke-RestMethod -Uri http://127.0.0.1:8888/post -Method POST | |
from fastapi.middleware.cors import CORSMiddleware | |
from fastapi import FastAPI | |
import uvicorn | |
import _config |
This file contains 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
ssh -L 1234:localhost:1234 [email protected] | |
jupyter lab --no-browser --port=1234 |
This file contains 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
zrok reserve public 1234 --unique-name baobuiquang | |
zrok share reserved baobuiquang public |