Skip to content

Instantly share code, notes, and snippets.

View williln's full-sized avatar

Lacey Henschel williln

View GitHub Profile
@jefftriplett
jefftriplett / copy_templates.py
Created November 11, 2024 20:38
Django management command to flatten and copy templates into your projects templates folder
from difflib import unified_diff
from pathlib import Path
import filecmp
import shutil
import djclick as click
from django.apps import apps
from django.conf import settings
from djclick import pass_verbosity
from rich import print
@lmann4
lmann4 / show_db_queries.py
Last active March 20, 2025 14:26
A utilitiy for adding printing and debugging queries.
import inspect
import logging
import shutil
import sys
from time import time
from types import MethodType
from typing import Optional
from django.conf import settings
from django.db import DEFAULT_DB_ALIAS, connections
@jacobian
jacobian / books.md
Last active September 25, 2024 16:44
Book recommendations from the Fediverse, June 2024

I asked for book recommendations on the fediverse and oh my goodness got so many suggestions. I wanted to share the list of all that came up in case others want to dig into this stuff. I asked specifically for

  • naturalist writing a la Muir or Abbey but about Alaska (I picked up Arctic Dreams but want more)
  • time travel / multiverse stuff, like Sliding Doors etc
  • great heists, fiction or non-
  • fiction featuring non-traditional families (queer, poly, etc.)
  • fantasy with really weird or different systems of magic, like Max Gladstone's Craft series

So most of this is falls into one of these themes, but also some stuff doesn't. I made this list quickly and sloppily, please forgive mispellings, missing author names, etc. Here's the list, sorted first by most common recs then alpha by title.

# http://names.mooseroots.com/stories/5165/most-popular-gender-neutral-names
Avery
Riley
Peyton
Logan
Taylor
Ryan
Jordan
Cameron
@jefftriplett
jefftriplett / guess_gender.py
Created May 28, 2015 22:07
This script takes a list of names and determines their gender.
"""
To install:
pip install click requests requests_cache
To run:
python guess_gender.py list-of-names.txt
"""
import click
@sstrudeau
sstrudeau / gist:f563dc72739e9e047de5
Last active March 7, 2016 18:52
AT Media product team overview, stack & tools

At AT Media we publish ApartmentTherapy.com and TheKitchn.com. This is our current engineering stack & toolchain as of 10/21/2015.

WE ARE HIRING.

Who We Are

Our engineering & design teams currently consist of 9 (incredibly talented, friendly & collaborative) engineers (3 senior, 3 junior), web designer, product manager and CTO/short stop. We're currently hiring a second product manager and designer.

Our team (and much of the company) works remotely. Slack has quickly become our critical communication channel. We make heavy use of Slack integrations including our own bot to manage code deployment & staging environments.

@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active January 25, 2025 20:12
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

layout title description path
barewithrelated
Book Authoring Using GitHub and Git
Formats, tips and techniques for using GitHub and Git as the version control and collaborative platform for writing short and long form books.
usecases/_posts/2001-01-01-book-authoring-using-git-and-github.md

GitHub and Git are not just for writing programming code. They can also be an effective tool for writing articles and books. Matthew McCullough has written a quick guide to writing books in lightweight formats. This article will be folded into this Teaching repository over the coming months.

What is this?