Skip to content

Instantly share code, notes, and snippets.

@Adirockzz95
Adirockzz95 / examples.py
Last active January 19, 2024 18:26
manim animation examples
#!/usr/bin/env python
#
# Usage: python extract_scene.py -p [filename] [classname]
# eg: python extract_scene.py -p examples.py DrawCircle
#
import math
import numpy as np
@markusfisch
markusfisch / uuid.sh
Last active December 13, 2023 15:06
Generate a random UUID in bash
#!/usr/bin/env bash
# Generate a pseudo UUID
uuid()
{
local N B C='89ab'
for (( N=0; N < 16; ++N ))
do
B=$(( $RANDOM%256 ))