Skip to content

Instantly share code, notes, and snippets.

View toddalbert's full-sized avatar
👨‍💻
There are 10 types of people - those that know binary and those that don't

Todd H. Albert toddalbert

👨‍💻
There are 10 types of people - those that know binary and those that don't
View GitHub Profile
@jsohndata
jsohndata / Rotating Idan: Unity Engine Object Rotating Script.md
Last active January 4, 2023 03:34
Rotating Idan: Unity Engine Object Rotating Script

Watch Trailer

About

A simple script to make your object rotate in all 3 axis. Inspired by @Idan, thanks!

Script

using System.Collections;
using System.Collections.Generic;
@Rich-Harris
Rich-Harris / service-workers.md
Last active June 30, 2026 13:00
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.