Skip to content

Instantly share code, notes, and snippets.

View eyeseast's full-sized avatar

Chris Amico eyeseast

View GitHub Profile
@eyeseast
eyeseast / iron-man.md
Last active April 2, 2021 19:34
A timeline format, built with text files
from urllib.parse import urlparse
from datasette import hookimpl
def urlextract(uri, part):
u = urlparse(uri)
return getattr(u, part)
@hookimpl
@eyeseast
eyeseast / 2021.md
Last active January 2, 2022 02:41
2021 goals

General:

  • Save 20% of our income
  • Take a family vacation
  • Get a nice (professional) family photo taken
  • Unsubscribe from at least half my current RSS feeds
  • Find a better system for organizing and sharing family photos and videos

Cooking:

  • Cook five new things, from at least three from different sources (cookbooks, websites, etc)
  • Find a good dairy-free ice cream recipe
# 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
@eyeseast
eyeseast / 2020-01-01.geojson
Last active February 12, 2020 18:30
Earthquakes, in geojson and nd-geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eyeseast
eyeseast / 2020.md
Last active December 31, 2020 21:53
2020 goals

General:

  • Save 20% of our income
  • Take a family vacation
  • Get a nice (professional) family photo taken
  • Get passports for the kids
  • Unsubscribe from at least half my current RSS feeds
  • Find a better system for organizing and sharing family photos and videos

Cooking:

  • Cook five new things, from at least three from different sources (cookbooks, websites, etc)
@eyeseast
eyeseast / 2019.md
Last active January 1, 2020 03:30
2019 goals
  • Save 20% of our income
  • Take a family vacation
  • Get a nice (professional) family photo taken
  • Get passports for the kids
  • Cook three new things from Marcella Hazan's cookbook, from different chapters (so only one pasta, etc), or from Food Matters, of NYT Cooking
  • Catalog all my email subscriptions and unsubscribe from 75 percent of them
  • Compete in jiujitsu at least once
  • Play at least one game of chess a week

Projects:

@eyeseast
eyeseast / gif2vid.sh
Last active May 22, 2018 16:26
Convert a gif to mp4
#!/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"

Keybase proof

I hereby claim:

  • I am eyeseast on github.
  • I am chrisamico (https://keybase.io/chrisamico) on keybase.
  • I have a public key ASAFLVqaoDDo7YgzgfSRaQVocAoSIaAFE03RPaYBbu6vCAo

To claim this, I am signing this object:

@eyeseast
eyeseast / mantras.txt
Last active March 2, 2020 19:42
Annual mantras
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.