Skip to content

Instantly share code, notes, and snippets.

View ht55ght55's full-sized avatar

James Hart ht55ght55

View GitHub Profile
@witmin
witmin / ffmpeg-mp4-to-animated-webp.md
Last active July 11, 2024 01:36
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation:

@jojonki
jojonki / .direnvrc
Last active February 20, 2021 17:58
direnv for anaconda witch automatically switches anaconda environments.
activate_conda(){
eval "$(conda shell.zsh hook)"
conda activate $1
}
@0x4D31
0x4D31 / beautiful_idiomatic_python.md
Last active July 8, 2024 09:36 — forked from JeffPaine/beautiful_idiomatic_python.md
[Beautiful Idiomatic Python] Transforming Code into Beautiful, Idiomatic Python #python

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]: