Skip to content

Instantly share code, notes, and snippets.

View ghigo's full-sized avatar

Marco Sgrignuoli ghigo

  • Eaze
  • San Francisco
View GitHub Profile
@ghigo
ghigo / System Design.md
Last active November 20, 2019 02:32 — 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?

Keybase proof

I hereby claim:

  • I am ghigo on github.
  • I am ghigo (https://keybase.io/ghigo) on keybase.
  • I have a public key ASBPRSMixB4vJzdrWlj8E9N_6LHhJ4jv3fr8nDaYbuYn8go

To claim this, I am signing this object:

@ghigo
ghigo / setinterval.py
Last active August 29, 2015 14:22 — forked from stamat/setinterval.py
import threading
def set_interval(func, sec, args=None, daemon=False):
def func_wrapper():
set_interval(func, sec, args)
func()
t = threading.Timer(sec, func_wrapper)
if daemon:
t.setDaemon(True)
t.start()