Generated with:
$ ffmpeg -framerate 15 -i %06d.png -movflags faststart -pix_fmt yuv420p -vf "fps=15" output.mp4
import { | |
Icon, | |
Line, | |
Rect, | |
Txt, | |
makeScene2D, | |
IconProps, | |
RectProps, | |
TxtProps, | |
} from "@motion-canvas/2d"; |
import {Nord} from '@hhenrichsen/motion-canvas-nord'; | |
import {Layout, Line, Rect, Txt} from '@motion-canvas/2d'; | |
import {makeScene2D} from '@motion-canvas/2d'; | |
import {CodeBlock} from '@motion-canvas/2d/lib/components/CodeBlock'; | |
import { | |
Reference, | |
Vector2, | |
createRef, | |
makeRef, | |
range, |
npm install --save mathjax-full
tex.ts
below somewhereexport default makeScene2D(function* (view) {
const tex = texToBase64SVG('{\\color{white} x = \\sin \\left( \\frac{\\pi}{2} \\right) }');
const image = createRef<Image>();
view.add();
This is a simple little module that I use to figure out why programs are giving different output with the same input. Not a common problem, but one I've been asked enough for it to matter.
Here's a simple file that might fail unexpectedly:
import numpy as np
from eval import save_dict, dump_saves
Here is a little event system I've been working on for Python. I've been trying to make it typesafe as possible, hence the generics and depending on specific classes for event info. This system has a couple neat features:
[alias] | |
co = checkout | |
s = status | |
c = commit | |
unstage = restore --staged -- | |
pf = push --force-with-lease | |
new-branch = !git fetch -p && git stash push --include-untracked && git checkout master && git pull && git checkout -b \"$USER-$1\" && : | |
current-branch = branch --show-current | |
new-user-branch = !git fetch -p && git stash push --include-untracked && git checkout master && git pull && git checkout -b \"$USER-$1\" && : | |
# oldest-ancestor from https://stackoverflow.com/a/4991675 |
#!/bin/bash | |
get_id () { | |
PATTERN=$@ | |
COMMIT_ID=$(gx l | grep "$PATTERN" | grep -v "fixup!" | cut -f1 -d' ' | head -n1) | |
echo "$COMMIT_ID" | |
shift | |
} | |
amend_all () { |