made with esnextbin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wasmBytes from "./automerge_wasm_bg.wasm"; | |
import * as bg from "./automerge_wasm_bg.js"; | |
const {create} = bg; | |
export interface Env {} | |
export default { | |
async fetch(request, env, ctx): Promise<Response> { | |
// async init cannot happen outside request | |
// see later for generating bg.imports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paste in console of any https site to run (e.g. this page) | |
// sample arguments for registration | |
// https://fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-raw-message-formats-v1.1-id-20160915.html#authentication-response-message-success | |
var createCredentialDefaultArgs = { | |
publicKey: { | |
// Relying Party (a.k.a. - Service): | |
rp: { | |
name: "Acme" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { clone } from "./clone"; | |
function updateQueue() { | |
const _queue = []; | |
function add(update) { | |
_queue.push(update); | |
console.log("add", _queue); | |
_queue.sort((a, b) => a.updateNonce - b.updateNonce); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {render} from 'react-dom' | |
import Todos from 'todos'; | |
import EmbedlyWrapper from 'embedly' | |
const Embed = () => ( | |
<EmbedlyWrapper> | |
<Todos /> | |
</EmbedlyWrapper> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +philholden is my blockchain ID. https://onename.com/philholden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var ed = require('supercop.js') | |
var keypair = ed.createKeypair() | |