title | type | imdb | release_date |
---|---|---|---|
Iron Man |
film |
2008-05-02 |
After being held captive in an Afghan cave, billionaire engineer Tony Stark creates a unique weaponized suit of armor to fight evil.
title | type | imdb | release_date |
---|---|---|---|
Iron Man |
film |
2008-05-02 |
After being held captive in an Afghan cave, billionaire engineer Tony Stark creates a unique weaponized suit of armor to fight evil.
from urllib.parse import urlparse | |
from datasette import hookimpl | |
def urlextract(uri, part): | |
u = urlparse(uri) | |
return getattr(u, part) | |
@hookimpl |
General:
Cooking:
# https://github.com/eyeseast/python-frontmatter/issues/68 | |
import frontmatter | |
post = frontmatter.Post('Content') | |
data = {'type': 'bookmark', 'url': 'http://uzpg.me', 'desc': '', 'title': 'Home | UZPG', 'date': '07-07-20', 'tags': [], 'id': 1} | |
for k, v in data.items(): | |
post[k] = v |
General:
Cooking:
Projects:
#!/bin/sh | |
# https://unix.stackexchange.com/questions/40638/how-to-do-i-convert-an-animated-gif-to-an-mp4-or-mv4-on-the-command-line | |
# ./gif2vid.sh animated.gif animated.mp4 | |
ffmpeg -i "$1" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "$2" |
I hereby claim:
To claim this, I am signing this object:
2013: Resist the urge to be clever. | |
2014: Everything takes practice. | |
2015: The internet works. We should use it. | |
2016: One problem at a time. | |
2017: Don't panic. | |
2018: Some things we have to learn the hard way. | |
2019: Maybe nobody knows anything. | |
2020: The best code is no code. |