Skip to content

Instantly share code, notes, and snippets.

View eyeseast's full-sized avatar

Chris Amico eyeseast

View GitHub Profile
@eyeseast
eyeseast / App.svelte
Last active January 28, 2025 15:40
A Svelte store that saves to localStorage
<script>
import { onMount } from "svelte";
import { writable } from "svelte/store";
import { saveStore } from "localstorage.js";
let features = writable([])
onMount(() => {
saveStore(features, "$features", { storage: localStorage });
import frontmatter
text = """
---
date: 2012-10-11T23:39:45-04:00
---
Content
"""
@eyeseast
eyeseast / bay-circuit-trail.json
Created July 31, 2021 17:49
Bay Circuit Trail
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eyeseast
eyeseast / apps.md
Created July 4, 2021 15:20
Every Django project I've deployed to production

All the Django projects I've launched

This is mostly from memory, supplemented by going back through Github.

  • Tools for News (2008)
  • Patchwork Nation (2009)
  • PBS NewsHour interactive apps (2009)
  • Chris and Laura's Wedding site (2010)
  • Homicide Watch DC (2011)
  • Shale Play: StateImpact Pennsylvania's fracking database (2011)
@eyeseast
eyeseast / recipe.md
Created June 26, 2021 13:05
Tuscan-ish chickpeas with Swiss chard

Tuscan chickpeas with Swiss chard

Base

  • chickpeas
  • swiss chard (or other green)

Aromatics

  • leeks
@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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.