Skip to content

Instantly share code, notes, and snippets.

Topper Bowers tobowers

Block or report user

Report or block tobowers

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View working.ts
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()
View p2p.js
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')
View gist:ce78d57ffb38525aec7ca4b64f5afcc3
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')
View indycrypto.js
/* 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];
View main.go
package main
import (
"bytes"
"context"
"fmt"
"io/ioutil"
"log"
"github.com/ipsn/go-ipfs/core"
View atlas_test.go
package serialization
import (
"github.com/polydawn/refmt/obj/atlas"
"testing"
"time"
"github.com/polydawn/refmt/cbor"
"github.com/stretchr/testify/assert"
)
View marshaled-fixed.go
package main
import (
"log"
"crypto/rand"
"crypto/rsa"
"golang.org/x/crypto/ssh"
)
func main() {
@tobowers
tobowers / marshal.go
Created Aug 17, 2017
golang errors when just marshaling and then unmarshaling
View marshal.go
package main
import (
"log"
"crypto/rand"
"crypto/rsa"
"golang.org/x/crypto/ssh"
)
func main() {
View keybase.md

Keybase proof

I hereby claim:

  • I am tobowers on github.
  • I am tobowers (https://keybase.io/tobowers) on keybase.
  • I have a public key whose fingerprint is 1EF7 3F3E BCBB BBC4 AA97 FFC1 EA4D 8597 EBD8 3F27

To claim this, I am signing this object:

View ossec.gpg
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)
mQENBFXvILcBCAC1yi/6q3rDQLRf0TtTw25sxP/v7v5f0gR6Wd9nJCHjJ3SqU64y
idA17+ENc3+ybETJ6uJDSTyVG0cvaV2fOzMPVmLVrOSgAinscH50BNteVee38ryb
p4GRhdExPcDwsEH2/wcBHNgFpLLdmh6ih4B+bN7uO/u37Ksa8Rs6RYRHvCmpbCo9
tBRBDUMfflNHO/num0NSHhhDyukbp3DR0Tbhp1r2DRh9bhSs505URkqEDHyeY2tu
qzmZaM4G9j7wKIleR4sLvx9mNLUd1WhBeq2jtPaZNp8JMiYEWVcqVyxyiVofGq00
XPexnCpqTWQiDtrwmOPtWXU3KGBDKkpQAliVABEBAAG0H0pvc2UgTHVpcyBSdWl6
IDxqb3NlQHdhenVoLmNvbT6JATkEEwECACMFAlXvILcCGwMHCwkIBwMCAQYVCAIJ
You can’t perform that action at this time.