Skip to content

Instantly share code, notes, and snippets.

View dedeco's full-sized avatar
👨‍💻
Can I help you about python? Ask me.

Dedeco dedeco

👨‍💻
Can I help you about python? Ask me.
View GitHub Profile
@oblakeobjet
oblakeobjet / show_map.py
Last active January 5, 2019 12:49 — forked from davydany/show_map.py
# More Info: http://davydany.com/post/32287214449/matplotlibs-basemap-plotting-a-list-of-latitude
def show_map(self, a):
# 'a' is of the format [(lats, lons, data), (lats, lons, data)... (lats, lons, data)]
lats = [ x[0] for x in a ]
lons = [ x[1] for x in a ]
data = [ x[2] for x in a ]
lat_min = min(lats)
lat_max = max(lats)
@Kartones
Kartones / postgres-cheatsheet.md
Last active April 22, 2024 17:18
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)