For precision programmatic animation!
Translated from the JavaScript in Sean Yen’s Easing equations
Illustrations adapted from Andrey Sitnik and Ivan Solovev’s Easings.net
Example usage:
duration = 30
#!/usr/bin/env python3 | |
import i3ipc | |
from i3ipc import Event | |
from i3ipc.events import IpcBaseEvent, Event | |
i3 = i3ipc.Connection() | |
# callback for when workspace focus changes | |
def on_workspace(i3, e:IpcBaseEvent): | |
print(e.__dict__) |
rm -rf ~/.config/JetBrains/GoLand2021.3/eval | |
rm -rf ~/.config/JetBrains/GoLand2021.3/options/other.xml | |
touch ~/.config/JetBrains/GoLand2021.3/options/other.xml | |
sed -i -E 's/<property name=\"evl.*\".*\/>//' ~/.config/JetBrains/GoLand2021.3/options/other.xml | |
rm -rf ~/.java/.userPrefs/jetbrains/goland |
# A simple no dependency Python implementation of the Quadtree | |
# pseudocode on Wikipedia: https://en.wikipedia.org/wiki/Quadtree | |
from dataclasses import dataclass, field | |
@dataclass | |
class Point: | |
x: float | |
y: float |
For precision programmatic animation!
Translated from the JavaScript in Sean Yen’s Easing equations
Illustrations adapted from Andrey Sitnik and Ivan Solovev’s Easings.net
Example usage:
duration = 30
from threading import Thread | |
from pyray import * | |
from raylib import * | |
from time import sleep | |
# control variables | |
downloadPressed = False | |
uploadPressed = False |
Watch the breakdown here in a Q4 2024 prompt engineering update video
I love to make backups with Clonezilla. But often, I'll back up my system, wipe my Linux partition and try another distro—only to realize that I need access to just one file from the old installation. For example, maybe I made an interesting change to my .zshrc
or Samba configuration, which I want to re-use on the new system.
The obvious solutions aren't my favorites. It's easy to restore an image to a spare disk, but it takes a long time, and requires a spare disk I'm willing to wipe. I [could extract an entire image][extract_image], but that also takes lots of time and space. Wouldn't it be nice to just look inside my compressed Clonezilla image, just like I can do with a zip file or squashfs archive?
It turns out it's possible, with clever use of [user-space filesystems][fuse]!