Skip to content

Instantly share code, notes, and snippets.

View spencercap's full-sized avatar
💾
robot.humanize()

spencer cap spencercap

💾
robot.humanize()
View GitHub Profile
This file has been truncated, but you can view the full file.
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
(function (global){(function (){
const algonautjs = require('algonaut.js/dist/cjs/index.js');
global.window.algonautjs = algonautjs;
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"algonaut.js/dist/cjs/index.js":32}],2:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IBlockchainProvider = exports.IBlockchainAuthenticator = exports.IPendingRequests
@spencercap
spencercap / algonautjs-web-bundle.js
Created January 20, 2022 07:04
cdn-ified algonaut.js
This file has been truncated, but you can view the full file.
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
(function (global){(function (){
const algonautjs = require('algonaut.js/dist/cjs/index.js').default;
global.window.algonautjs = algonautjs;
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"algonaut.js/dist/cjs/index.js":32}],2:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IBlockchainProvider = exports.IBlockchainAuthenticator = exports.IPending
@spencercap
spencercap / CloudflarePlayerApiTypes.d.ts
Last active October 12, 2021 22:18
CloudflarePlayerApiTypes.d.ts
// from: https://developers.cloudflare.com/stream/viewing-videos/using-the-player-api
export type CfPlayer = {
// methods
play(): Promise<void>;
pause(): void;
addEventListener(
eventName: CfPlayerEvents,
listener: (...args: any[]) => void
): void;
removeEventListener(