Skip to content

Instantly share code, notes, and snippets.

View ClementBeal's full-sized avatar

ClementBeal

View GitHub Profile
@ClementBeal
ClementBeal / json
Created July 19, 2023 23:06
Lottie cat
{"v":"5.6.8","fr":29.9700012207031,"ip":0,"op":76.0000030955435,"w":764,"h":618,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Layer 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[620,274.5,0],"to":[-0.333,1.333,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":1},"o":{"x":0.333,"y":0},"t":36,"s":[618,282.5,0],"to":[0,0,0],"ti":[1.083,-0.417,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":75,"s":[620,274.5,0],"to":[-1.083,0.417,0],"ti":[1.417,-1.75,0]},{"t":108.00000439893,"s":[611.5,285,0]}],"ix":2},"a":{"a":0,"k":[229.5,-24,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[4.562,5.639],[-5.639,4.562]],"o":[[-5.639,4.562],[-4.562,-5.639],[0,0]],"v":[[261.821,0.922],[243.351,-1.028],[245.301,-19.498]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.3882
@ClementBeal
ClementBeal / py
Created April 5, 2024 07:32
Optimize flutter web build
from collections import Counter
from decimal import Decimal
import gzip
from pathlib import Path
import re
from fractions import Fraction
file_data = Path(r"./my_app/build/web/main.dart.js").read_text()
initial_file_size = len(file_data)