Skip to content

Instantly share code, notes, and snippets.

View elliots's full-sized avatar

Elliot Shepherd elliots

View GitHub Profile
@elliots
elliots / main.go
Created August 1, 2014 07:01
Reading bit masks in golang using reflection
package main
import (
"log"
"reflect"
"github.com/davecgh/go-spew/spew"
)
type MyImportantValues struct {
### Keybase proof
I hereby claim:
* I am elliots on github.
* I am elliots (https://keybase.io/elliots) on keybase.
* I have a public key ASAflJScdluIftDdiLzLXqmfGmzfHeoS1bqvN_1cPSZAkAo
To claim this, I am signing this object:
@elliots
elliots / router.ts
Created April 8, 2025 02:28
@lit-labs/router but it uses Navigation API
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*
* Adapted to use the Navigation API.
*/
import { Routes } from './routes.js'