Skip to content

Instantly share code, notes, and snippets.

View strongSoda's full-sized avatar
🏠
Working from home

IMRAN KHAN strongSoda

🏠
Working from home
View GitHub Profile
@briva
briva / main.py
Created August 16, 2024 07:53
Basic remove backgound on video
import os
import torch
import numpy as np
import cv2
from sam2.build_sam import build_sam2_video_predictor
import logging
# Set up logging
logging.basicConfig(level=logging.INFO)

Add Authentication with Auth0 to a Gatsby site

All the pieces of authentication are possible in Gatsby. Thanks to Auth0, setting it up doesn't have to be so cumbersome!

This setup comes straight from Auth0's official quick start for React.


The first step is installing the official Auth0 SDK for React from npm.

<!-- Code for tutorial: https://www.youtube.com/watch?v=4eIRrowvLRk -->
<!-- DevHoot Publication -->
<!-- Website: https://devhoot.ooo -->
<!-- Note: This code was produced by Imran Khan @DevHoot -->
<!-- If you find this useful consider subscribing to our YouTube channel and website -->
<!-- patreon Support: https://www.patreon.com/devhoot -->
<!DOCTYPE html>
<html lang="en">
<head>