Skip to content

Instantly share code, notes, and snippets.

View ozankaraali's full-sized avatar

Ozan Karaali ozankaraali

View GitHub Profile
@ozankaraali
ozankaraali / main.py
Created April 2, 2024 13:05
Reproducible Error
from contextlib import asynccontextmanager
import open3d as o3d
import uvicorn
from fastapi import FastAPI
import torch
import torchvision.models as models
feature_extractor = {}
@ozankaraali
ozankaraali / venvremover.py
Created January 14, 2024 13:36
This script removes all the folders named venv, and node_modules.
import os
import shutil
def remove_folders_recursively(start_path, folder_names, exclude_path):
for root, dirs, files in os.walk(start_path, topdown=True):
# Skip the excluded directory
dirs[:] = [d for d in dirs if os.path.join(root, d) != exclude_path]
for dir_name in dirs:
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Fertigo">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<div class="container-fluid">
<h1 class="text-primary" align="center">Isaac Newton</h1>
<div class="well" id="main"><b>Sir Isaac Newton</b> was an English mathematician, astronomer, and physicist who is widely recognised as one of the most influential scientists of all time and a key figure in the scientific revolution.</div>
<div class=row>
<div class="col-xs-6" align="center">
<img src="http://www.logosapologia.org/wp-content/uploads/2012/04/Isaac_Newton.jpg" alt="IsaacNewton" class="img-responsive animated fadeIn">
</div>