Chromium has a Javascript library for detecting orientation in devices like phones, tablets and laptops that have accelerometers. I ran into an engineer at a meeting who needed some help testing this library on a specific Mac laptop that I had access to. Unfortunately, I didn't contribute any code, but I did get my name committed to the Chromium source code in a comment.