Skip to content

Instantly share code, notes, and snippets.

@seanbehan
seanbehan / app.py
Last active March 13, 2023 04:55
Flask with Django ORM
'''
Run the following commands (bc. gists don't allow directories)
pip install flask django dj-database-url psycopg2
mkdir -p app/migrations
touch app/__init__.py app/migrations/__init__.py
mv models.py app/
python manage.py makemigrations
python manage.py migrate

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@vasanthk
vasanthk / System Design.md
Last active May 24, 2024 06:19
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@baygross
baygross / Manhattan Geocoded Boundary
Last active May 22, 2019 10:29
The default 'maps' package for R contains bounded polygons defining various regions around the world. One such region is Manhattan, although in this instance the polygon points are shifted off of the island's true location by a significant degree. In some use-cases, this discrepancy may prove unacceptable. Actual bounding coordinates for Manhatt…
lat long
40.700292, -74.010773
40.707580, -73.999271
40.710443, -73.978758
40.721762, -73.971977
40.729568, -73.971291
40.733503, -73.973994
40.746834, -73.968072
40.775114, -73.941936
40.778884, -73.942580