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
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)
@veekaybee
veekaybee / normcore-llm.md
Last active November 18, 2024 19:40
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

@RafaelWO
RafaelWO / awc_ecr_stats.sh
Last active November 15, 2024 13:37
AWS: Calculate the size of all ECR repositories
repos=""
sizes=""
name_lens=""
# Check if user is logged in
if ! aws sts get-caller-identity &> /dev/null; then
echo "ERROR: Seems like your SSO session is invalid. Please run"
printf "\n $ aws sso login\n\n"
echo "before you run the script."
exit 1
@uwezi
uwezi / 20240309_opencv.py
Last active November 6, 2024 10:59
[video inclusion in Manim] Include video objects picture-in-picture. #manim #animate #video #opencv #videomobject
import cv2 # needs opencv-python https://pypi.org/project/opencv-python/
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