Skip to content

Instantly share code, notes, and snippets.

View pietergreyling's full-sized avatar

Pieter Greyling pietergreyling

View GitHub Profile

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@Rich-Harris
Rich-Harris / service-workers.md
Last active April 21, 2024 16:24
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.


Validating AMP Pages and Enabling Discovery by Google

*v.*2016.04.13


@pietergreyling
pietergreyling / mybrew.sh
Last active January 27, 2016 19:53
Mac OS X Homebrew shell script that I use in my war on entropy.
#!/bin/bash
#--
#-- file: mybrew.sh
#-- auth: [@pietergreyling:20151028]
#-- desc: Mac OS X Homebrew shell script that I use in my war on entropy.
#-- exec: To clean up and verify your Homebrew setup, in a terminal run: $ ./mybrew.sh
clear
echo "-- Updating your Homebrew installation at: " && brew --prefix
sudo chown -R $(whoami):admin /usr/local