Skip to content

Instantly share code, notes, and snippets.

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

Mohit Sharma mohit2152sharma

🏠
Working from home
View GitHub Profile
@uwezi
uwezi / 20240309_opencv.py
Last active April 30, 2024 11:27
[video inclusion in Manim] Include video objects picture-in-picture. #manim #animate #video #opencv #videomobject
import cv2
from PIL import Image, ImageOps
from dataclasses import dataclass
@dataclass
class VideoStatus:
time: float = 0
videoObject: cv2.VideoCapture = None
def __deepcopy__(self, memo):
return self
@veekaybee
veekaybee / normcore-llm.md
Last active May 18, 2024 20:16
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

decompose <- function(expr) {
expr <- substitute(expr)
funs <- setdiff(all.names(expr), all.vars(expr))
wrapped <- list()
for (fun in funs) {
fun_env <- environment(get(fun, envir = parent.frame()))
if(is.null(fun_env))
namespace <- "base"
else
namespace <- getNamespaceName(fun_env)