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
// run in console on a https page | |
stream = await navigator.mediaDevices.getUserMedia({ video: true, audio:true }) | |
video = document.createElement("video"); | |
video.muted = true; | |
video.srcObject = stream; | |
await video.play(); | |
canvas = document.createElement("canvas") | |
ctx = canvas.getContext("2d") | |
ctx.drawImage(video, 0, 0, video.videoWidth, video.videoHeight); | |
imageData = ctx.getImageData(0,0,video.videoWidth, video.videoHeight) |
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
const stripe = require("stripe")("api_key"); | |
const CUSTOMER = ""; | |
const PLAN = ""; | |
const quantity = 1; | |
const startTimeInSecondsSinceEpoch = 0; | |
const billingCycleAnchorInSecondsSinceEpoch = 0; | |
async function foo() { | |
const subscription = await stripe.subscriptions.create({ |
OlderNewer