Skip to content

Instantly share code, notes, and snippets.

View thanhthai3010's full-sized avatar
🎯
Focusing

thanhthai3010

🎯
Focusing
  • Ho Chi Minh, Viet Nam
View GitHub Profile
@thanhthai3010
thanhthai3010 / System Design.md
Created September 26, 2020 12:49 — forked from vasanthk/System Design.md
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?
@thanhthai3010
thanhthai3010 / paginate.php
Created June 29, 2018 07:19 — forked from wuiler/paginate.php
Laravel Paginate Collection or Array
<?php
/**
* Gera a paginação dos itens de um array ou collection.
*
* @param array|Collection $items
* @param int $perPage
* @param int $page
* @param array $options
*
* @return LengthAwarePaginator