Skip to content

Instantly share code, notes, and snippets.

@BrianLi101
BrianLi101 / version.py
Created April 18, 2021 00:13
Brev Version Endpoint
import variables
import shared
from global_storage import storage_context
from pydantic import BaseModel
from typing import List, Optional
class FeatureUpdate(BaseModel):
name: str
description: Optional[str]
import React from 'react';
import {
Linking,
Modal,
Platform,
SafeAreaView,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
@BrianLi101
BrianLi101 / mic-check-usage.ts
Last active September 19, 2021 22:52
mic-check
import {
MediaPermissionsError
MediaPermissionsErrorType,
requestMediaPermissions
} from 'mic-check';
requestMediaPermissions()
.then(() => {
// can successfully access camera and microphone streams
// DO SOMETHING HERE
@BrianLi101
BrianLi101 / getUserMedia-errors.md
Last active September 15, 2024 11:10
navigator.mediaDevices.getUserMedia() errors

| Problem | OS (macOS, Windows) | Chrome | Safari | Edge | Firefox | Error Type (MediaPermissionsError) | Recommended User Action | | ---------------------------------------------------------------------------------------- | ------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | -----------------------------------------------------------------------