Skip to content

Instantly share code, notes, and snippets.

View mikevb3's full-sized avatar

Miguel Villarreal mikevb3

View GitHub Profile
@mikevb3
mikevb3 / Zoom.js
Created May 21, 2020 00:59
Zoom Web SDK integration example
import React, { useState, useEffect } from "react";
import { ZoomMtg } from '@zoomus/websdk';
import axios from 'axios';
import 'jquery/src/jquery';
function Zoom({ meetingNumber, passWord, userName, role }) {
const [zoomState, setZoomState] = useState({
meetingNumber: '',
passWord: '',
@mikevb3
mikevb3 / IQuery.ts
Created September 28, 2021 12:05
React hook for using Firestore SDK Version 9.
import { WhereFilterOp } from "firebase/firestore";
export interface IQuery {
ref: string;
operator: WhereFilterOp;
value: any;
}
@mikevb3
mikevb3 / hidapi_apem.py
Created November 4, 2022 01:45
Parse an APEM joystick input on python
# Sample APEM joystick parsing with hidapi
import hid
def button_parse(raw_data):
"""
:param input_list: tuple of bitmaps
:return: button
"""
a = 1 if raw_data[4] & 2 == 2 else 0