Skip to content

Instantly share code, notes, and snippets.

@alexisakers
alexisakers / BLTNWebPageItem.swift
Last active December 17, 2018 16:51
Example BLTNItem for displaying a web view
import BLTNBoard
import WebKit
class BLTNWebPageItem: FeedbackPageBLTNItem {
let url: URL
init(url: URL) {
self.url = url
super.init(title: "Web Page")
// Author: Alexis Akers
// License:
// This code is published under the public domain. The software is provided "as is" without warranty
// of any kind and I cannot be held liable for any issue arising from its usage.
/// An object that performs haptic feedback.
struct Haptics {
/// Performs a success haptic feedback.
func success() {
let feedbackGenerator = UINotificationFeedbackGenerator()
@alexisakers
alexisakers / fix.sh
Created October 26, 2020 13:49
Fix Mac video and audio/mic issues during meetings
#!/bin/zsh
FEATURE=$1
case $FEATURE in
video)
echo "Restarting camera software"
sudo killall VDCAssistant; sudo killall AppleCameraAssistant
;;
audio)
echo "Restarting audio software"