Skip to content

Instantly share code, notes, and snippets.

@ju-popov
ju-popov / Mark Massé - REST API Design Rulebook.md
Last active Jun 9, 2020
Mark Massé - REST API Design Rulebook
View Mark Massé - REST API Design Rulebook.md

Mark Massé - REST API Design Rulebook

CHAPTER 1. Introduction

REST API Design

For many of us, designing a REST API can sometimes feel more like an art than a science. Some best practices for REST API design are implicit in the HTTP standard, while other pseudo-standard approaches have emerged over the past few years. Yet today, we must continue to seek out answers to a slew of questions, such as:

  • When should URI path segments be named with plural nouns?
  • Which request method should be used to update resource state?
@ju-popov
ju-popov / Martin Kleppmann - Designing Data-Intensive Applications.md
Last active Jun 15, 2021
Martin Kleppmann - Designing Data-Intensive Applications
View Martin Kleppmann - Designing Data-Intensive Applications.md

Martin Kleppmann - Designing Data-Intensive Applications

Part I. Foundations of Data Systems

CHAPTER 1. Reliable, Scalable, and Maintainable Applications

A data-intensive application is typically built from standard building blocks that pro‐ vide commonly needed functionality. For example, many applications need to:

  • Store data so that they, or another application, can find it again later (databases)
  • Remember the result of an expensive operation, to speed up reads (caches)
@ju-popov
ju-popov / Sam Newman - Building Microservices.md
Last active Jun 9, 2020
Sam Newman - Building Microservices
View Sam Newman - Building Microservices.md

Sam Newman - Building Microservices

Chapter 1. Microservices

What Are Microservices?

Small, and Focused on Doing One Thing Well

Jon Eaves at RealEstate.com.au in Australia characterizes a microservice as something that could be rewritten in two weeks, a rule of thumb that makes sense for his particular context.

View books.txt
# Books (8/30)
## Science Fiction
- [+] Sylvain Neuvel - The Test
- [+] Marc-Uwe Kling - Qualityland
- [ ] Brandon Sanderson - Към небето
- [ ] Martha Wells - All Systems Red (The Murderbot Diaries #1)
- [ ] Becky Chambers - Дългият път към една малка, ядосана планета (Wayfarers #1)
- [ ] E.K. Johnston - Queen’s Peril
View tv_series.txt
# TV Series (13/18)
## Netflix
- [+] The Witcher (S01) | Action, Adventure, Drama
- [+] Messiah (S01) | Drama, Mystery, Thriller
- [+] Paradise PD (S01) | Animation, Comedy, Crime
- [+] Paradise PD (S02) | Animation, Comedy, Crime
- [+] Narcos Mexico (S02) | Crime, Drama
- [+] Dirty Money (S02) | Documentary, Crime
View movies.txt
# Movies (10/40)
## Netflix
- [+] Horse Girl (2020) | Drama
- [+] The Two Popes (2019) | Biography, Comedy, Drama
- [+] Uncut Gems (2019) | Crime, Drama, Mystery
- [+] The Coldest Game (2019) | Thriller
- [+] Super Deluxe (2019) | Action, Crime, Drama
- [+] Ready Player One (2018) | Action, Adventure, Sci-Fi
@ju-popov
ju-popov / Russ Olsen - Eloquent Ruby.md
Last active Jun 9, 2020
Russ Olsen - Eloquent Ruby
View Russ Olsen - Eloquent Ruby.md

Russ Olsen - Eloquent Ruby

PART I: The Basics

CHAPTER 1: Write Code That Looks Like Ruby

In the Wild

Absolutely the best way to learn to write idiomatic Ruby code is to read idiomatic Ruby code. The Ruby standard library, the lump of Ruby code that came with your Ruby interpreter, is a great place to start. Just pick a class that interests you; perhaps you have always been fascinated by the Set class. Find set.rb in your Ruby install and settle in for some interesting reading.

View keybase.md

Keybase proof

I hereby claim:

  • I am ju-popov on github.
  • I am jupopov (https://keybase.io/jupopov) on keybase.
  • I have a public key ASC659ubn_G9p5qdTNq7riNXTVgv1pK3USUmJU14wz24uAo

To claim this, I am signing this object:

@ju-popov
ju-popov / timestamp.py
Last active Apr 7, 2021
Python DateTime / Timestamp Convertion
View timestamp.py
######################################################################
# CURRENT AWARE LOCAL DATETIME
######################################################################
from datetime import datetime
from tzlocal import get_localzone
local_tz = get_localzone()
local_dt = datetime.now(local_tz)