Skip to content

Instantly share code, notes, and snippets.

Avatar
©️
𝔀𝓸𝓻𝓴𝓲𝓷𝓰 𝓱𝓪𝓻𝓭

Tim Hopper tdhopper

©️
𝔀𝓸𝓻𝓴𝓲𝓷𝓰 𝓱𝓪𝓻𝓭
View GitHub Profile
@tdhopper
tdhopper / .editorconfig
Last active Nov 28, 2021
Configuration files to enable validating python code with flake8, mypy, isort, and black using pre-commit hooks (via https://pre-commit.com/). Also an .editorconfig file for standardization across editors.
View .editorconfig
# http://editorconfig.org/#file-format-details
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
View rasterize.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View .dockerignore
data/
.env/
__pycache__
.ipynb_checkpoints
View pyproject.toml
[tool.poetry]
name = "poetry-test"
version = "0.1.0"
description = ""
authors = ["Tim Hopper <>"]
[tool.poetry.dependencies]
python = "3.6"
[tool.poetry.dev-dependencies]
View altair_png_magic.py
from io import BytesIO
def render_altair(chart):
b = BytesIO()
chart.save(b, scale_factor=2.0, format='png', webdriver='firefox')
b.seek(0)
return b.read()
import ast
View knuth.md

I’m worried about the present state of programming. Programmers now are supposed to mostly just use libraries. Programmers aren’t allowed to do their own thing from scratch anymore. They’re supposed to have reusable code that somebody else has written. There’s a bunch of things on the menu and you choose from these when you put them together. Where’s the fun in that? Where’s the beauty of that?

It’s very hard, [but] we have to figure out a way that we can make programming interesting for the next generation of programmers, that it’s not going to be just a matter of reading a manual and plugging in the parameters in the right order to get stuff.

View README.md