Skip to content

Instantly share code, notes, and snippets.

View sarahbkim's full-sized avatar

sarahbkim sarahbkim

View GitHub Profile
@sarahbkim
sarahbkim / Promises-under-the-hood.md
Created September 21, 2018 04:39 — forked from gvergnaud/Promises-under-the-hood.md
Promises, under the hood.

Promises, under the hood

You all know that to create a new Promise you need to define it this way:

  new Promise((resolve, reject) => {
    ...
    resolve(someValue)
  })

You are passing a callback that defines the specific behavior of your promise.

@sarahbkim
sarahbkim / System Design.md
Created September 17, 2018 15:15 — 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?
@sarahbkim
sarahbkim / postmortem.md
Created September 11, 2018 04:18 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL