Skip to content

Instantly share code, notes, and snippets.

View Helen-Gu's full-sized avatar

Helen Gu Helen-Gu

  • AWS
  • The Earth
  • 11:20 (UTC -07:00)
View GitHub Profile
@Helen-Gu
Helen-Gu / encrypt_password.py
Created May 19, 2022 21:45 — forked from jkatz/encrypt_password.py
Methods to create password verifiers for PostgreSQL
# Copyright 2019-2022 Jonathan S. Katz
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@Helen-Gu
Helen-Gu / keybase.md
Created April 23, 2021 15:58
keybase

Keybase proof

I hereby claim:

  • I am helen-gu on github.
  • I am helengu (https://keybase.io/helengu) on keybase.
  • I have a public key ASCt8qeEi-keTyADTV1PcokxAupOvMwrz-Z540NHVEuthwo

To claim this, I am signing this object:

@Helen-Gu
Helen-Gu / System Design.md
Created December 4, 2020 04:46 — 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?
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array