Skip to content

Instantly share code, notes, and snippets.

View Jlevyd15's full-sized avatar

Jeremy Levy Jlevyd15

View GitHub Profile
@Jlevyd15
Jlevyd15 / http2_overview.md
Last active August 30, 2018 04:07
HTTP/2 TLDR;

HTTP/2

Overview taken from HERE

  • Reduced preception of latency
  • allows for multiple concurrent exchanges between client/server
  • prioritization of requests

just extending HTTP/1 not replacing anything

@Jlevyd15
Jlevyd15 / service_workers.md
Last active April 21, 2019 00:07
Service worker basics

service worker state changes

when you register a service worker it returns a promise, that promise is resolved with a "service worker registration object"

navigator.serviceWorker.register('/sw.js').then(reg => {
// registration object methods
// reg.unregister()
// reg.update()
})
@Jlevyd15
Jlevyd15 / stacked_prs.md
Created November 17, 2019 17:58
Stacked PRs with Git and Github

How to create a stacked PR with git and Github ๐Ÿ“š

Create a feature branch from the master brach

  • from the master branch create a feature branch called feat1
  • git checkout master -> git checkout -b feat1

Make some changes and commit them

  • git add .
  • git commit