Skip to content

Instantly share code, notes, and snippets.

View tobowers's full-sized avatar

Topper Bowers tobowers

View GitHub Profile
Scouting America and the Department of War
Scouting Family,
Today, Scouting America and the Department of War finalized a commitment to strengthen our longstanding partnership with the U.S. military. Over several months, we engaged in dialogue with Department leadership to align on how we could deepen our service to military families, while making programmatic updates to comply with Executive Order 14173.
Throughout our discussions, we remained true to the core commitments that define our organization—our name, our mission, and our promise to serve all youth in our programs. Those commitments are unchanged. We will continue to deliver stability, mentorship, and opportunity to the children of those who serve our nation.
What This Agreement Delivers
Continued support for Scouting on military installations worldwide
Ongoing Department support for National Jamborees and other events
@tobowers
tobowers / index.ts
Created January 31, 2020 10:25
Multi-step ownership transfer
#!/usr/bin/env ts-node
import assert from 'assert';
import { MemoryDatastore } from 'interface-datastore';
import { ChainTree, EcdsaKey, Community, Repo, setOwnershipTransaction, Tupelo } from 'tupelo-wasm-sdk';
const getRepo = async () => {
const repo = new Repo('test', {
lock: 'memory',
storageBackends: {
root: MemoryDatastore,
import { Community, ChainTree } from 'tupelo-wasm-sdk'
const getBlockchainData = async () => {
console.log('start')
let tipId = 'did:tupelo:0xaD2F7DBB91bf3ab9273D97ff44484fb6205f9772'
let community = await Community.getDefault()
console.log('before next update')
await community.nextUpdate()
const WS = require('libp2p-websockets')
const Multiplex = require('pull-mplex')
const SECIO = require('libp2p-secio')
const Bootstrap = require('libp2p-bootstrap')
const KadDHT = require('libp2p-kad-dht')
const libp2p = require('libp2p')
const mergeOptions = require('merge-options')
const multiaddr = require('multiaddr')
const PeerInfo = require('peer-info')
const libp2p = require('libp2p')
const TCP = require('libp2p-tcp')
const Mplex = require('libp2p-mplex')
const SECIO = require('libp2p-secio')
const DHT = require('libp2p-kad-dht')
const WebRTCStar = require('libp2p-webrtc-star')
const WebSockets = require('libp2p-websockets')
const WebSocketStar = require('libp2p-websocket-star')
const Bootstrap = require('libp2p-bootstrap')
const defaultsDeep = require('@nodeutils/defaults-deep')
/* tslint:disable */
import * as wasm from './indy_crypto_bg';
const stack = [];
const slab = [{ obj: undefined }, { obj: null }, { obj: true }, { obj: false }];
function getObject(idx) {
if ((idx & 1) === 1) {
return stack[idx >> 1];
package main
import (
"bytes"
"context"
"fmt"
"io/ioutil"
"log"
"github.com/ipsn/go-ipfs/core"
package serialization
import (
"github.com/polydawn/refmt/obj/atlas"
"testing"
"time"
"github.com/polydawn/refmt/cbor"
"github.com/stretchr/testify/assert"
)
package main
import (
"log"
"crypto/rand"
"crypto/rsa"
"golang.org/x/crypto/ssh"
)
func main() {
@tobowers
tobowers / marshal.go
Created August 17, 2017 07:54
golang errors when just marshaling and then unmarshaling
package main
import (
"log"
"crypto/rand"
"crypto/rsa"
"golang.org/x/crypto/ssh"
)
func main() {