Skip to content

Instantly share code, notes, and snippets.

View andresoro's full-sized avatar
🎯
Focusing

Andres Orozco andresoro

🎯
Focusing
View GitHub Profile
@andresoro
andresoro / go_time_parsing.md
Created January 26, 2022 23:37 — forked from unstppbl/go_time_parsing.md
Parsing custom time layout in Golang

There are some key values that the time.Parse is looking for.

By changing:

test, err := time.Parse("10/15/1983", "10/15/1983")

to

@andresoro
andresoro / README.md
Created September 20, 2019 22:12 — forked from evalphobia/README.md
Golang Benchmark: gob vs json

tl;dr

  • gob is faster on Go1.7.1
    • map[int64]float64
    • []map[int64]float64

about

benchmark result to encode/decode map[int64]float64

@andresoro
andresoro / postgres-cheatsheet.md
Created May 30, 2018 20:10 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h):

  • -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)