Skip to content

Instantly share code, notes, and snippets.

View alexozwald's full-sized avatar

Alex Oswald alexozwald

  • New York, New York
View GitHub Profile
@alexozwald
alexozwald / to-avif
Created November 27, 2023 11:48
to-avif ZSH conversion script using SVT-AV1 and ffmpeg
#!/usr/bin/env zsh
local img img_out img_short size_in_B size_out_B size_in size_out img_in_short img_out_short pct_diff
# Output coloring: Leep this compatability workaround or manually load the plugin using your plugin manager
[[ ! -e "/tmp/colors.plugin.zsh" ]] && curl -s "https://raw.githubusercontent.com/zpm-zsh/colors/master/colors.plugin.zsh" -o /tmp/colors.plugin.zsh
source /tmp/colors.plugin.zsh
# source ~/.zi/plugins/zpm-zsh---colors/colors.plugin/zsh
for IMG in ${argv[@]}; do
import json
import numpy as np
import pandas as pd
import plotly.express as px
from sklearn import neighbors
DINERS_CSV = './maps/all_diners.csv'
PLUTO_GEOJSON = './maps/nycpluto_manhattan.geojson'
PLUTO_CSV = './maps/pluto_small.csv'