Skip to content

Instantly share code, notes, and snippets.

View M-erb's full-sized avatar
🧑‍🚀
🚀

merb M-erb

🧑‍🚀
🚀
View GitHub Profile
@M-erb
M-erb / mevo-stream-ward-instructions.md
Last active August 21, 2024 20:08
Mevo Stream Ward Instructions

Detailed instructions below but basically you need to startup the Mevo camera and start the stream. Then log into youtube and wait for YT to detect/recieve the stream. Once YT has the stream, then you can make it live.

  1. Connect to camera via the Mevo app
    • You must be on the Liahona WiFi
    • Turn on app and press and hold the Pwr btn on the camera
    • Make sure the AUX cable is plugged into the camera and the cable on the floor
  2. Turn off "web cam mode" in settings (iOS seems to have this on by default)
  3. Start the stream by hitting the red btn in the bottom left of Mevo app
    • Choose the "RTMP" option
  • Enter in our YT account stream credentials (provided elsewhere)
@M-erb
M-erb / vite-ambiguous-export.md
Created March 6, 2023 16:54
vite "Uncaught SyntaxError: ambiguous indirect export"

package error in vite environment

"Uncaught SyntaxError: ambiguous indirect export"

I just wanted to take note of how I solved this with the yup package

I was getting the above error when importing like so:

import yup from 'yup'
@M-erb
M-erb / function
Created August 10, 2019 21:39 — forked from manix/calculate geometric euclidean distance
Distance between points simplified
getDistanceFromLatLonInM(lat1, lon1, lat2, lon2) {
var a =
Math.pow(Math.sin(deg2rad(lat2 - lat1) / 2), 2) +
Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) *
Math.pow(Math.sin(deg2rad(lon2 - lon1) / 2), 2);
return 12742000 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
}
@M-erb
M-erb / vue-masking-filters.js
Created August 3, 2017 21:10
Vue.js masking filters
/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Author: Michael Erb (Merb)
Description: Masking for email and phone number
License: MIT
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
Vue.filter('mask-email', function(value) {
if (value) {
var indexAt = value.indexOf('@')
var emailArray = value.split('')
@M-erb
M-erb / animated-check.js
Created November 6, 2016 05:41 — forked from tkh44/animated-check.js
Animated Checkmark Directive inspired by http://codepen.io/haniotis/pen/KwvYLO
angular.module('animated-checkmark', []).directive('animatedCheck', animatedCheck);
function animatedCheck() {
const svgTemplate = `
<div class="checkmark-container">
<svg class="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52">
<g>
<circle class="checkmark-outline" cx="26" cy="26" r="25" fill="none" />
<circle class="checkmark-circle" cx="26" cy="26" r="25" fill="none" />
<path class="checkmark-check" fill="none" d="M14.1 27.2l7.1 7.2 16.7-16.8" />
</g>