Skip to content

Instantly share code, notes, and snippets.

View pierrevalade's full-sized avatar

Pierre pierrevalade

View GitHub Profile

This document is a collection of tips to make communication at Sunrise better. Over time, we will change the tips, adapt them, add or remove some tips to keep this collection alive.

Please suggest additions and changes by doing a Pull Request. video on how to do a new Pull Request.

Tips for writing issues that are easy to understand for your team

Use full nouns, instead of pronouns

how to do that:

  • instead of writingI'll update the team once it's ready., write I'll update the team once this document is finalized and ready to be shared.
addEventListener('fetch', event => {
event.respondWith(hideUserIp(event.request))
})
async function hideUserIp(request) {
let headers = new Headers()
headers.set('content-type', request.headers.get('content-type'))
var response = await fetch(request.url, {headers: headers, method: request.method, body: request.body})