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
import sounddevice as sd | |
import numpy as np | |
import pynput.keyboard | |
import time | |
import whisper | |
import tempfile | |
import os | |
from scipy.io.wavfile import write | |
# Load Whisper Model |
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
import "https://unpkg.com/[email protected]/wired-card.js?module"; | |
import "https://unpkg.com/[email protected]/wired-toggle.js?module"; | |
import { LitElement, html, css } from "https://unpkg.com/[email protected]/lit-element.js?module"; | |
class TripsCard extends LitElement { | |
static get properties() { | |
return { | |
person: { type: String }, | |
homeZone: { type: String }, | |
hours: { type: Number }, |
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
class StateDurationCard extends HTMLElement { | |
set hass(hass) { | |
this._hass = hass; | |
if (!this.content) { | |
const cardTitle = this.config.title || 'State Duration Totals'; | |
this.innerHTML = ` | |
<ha-card> | |
<div class="card-header"> | |
<div class="name" style="cursor: pointer;">${cardTitle}</div> |
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
class SimpleLogCard extends HTMLElement { | |
set hass(hass) { | |
this._hass = hass; | |
if (!this.content) { | |
const title = this.config.title || 'Sensor Log'; | |
this.innerHTML = ` | |
<ha-card header="${title}"> | |
<div class="card-content"></div> | |
</ha-card> | |
`; |
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
import os | |
import pwd | |
import grp | |
import hashlib | |
from collections import defaultdict | |
# Trusted users | |
TRUSTED_USERS = ['root'] | |
# Base system directories |
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
#render html file with table of Image, Dates in rows, from the espcam_history folder with filenames lik livingroom-2024-04-23_20-36.jpg | |
import os | |
import sys | |
import datetime | |
import re | |
import subprocess | |
import argparse | |
import jinja2 | |
import logging |
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
setTimeout(function(){ | |
function getAllHaCards(root = document) { | |
const haCards = []; | |
const elements = root.querySelectorAll('*'); | |
elements.forEach(element => { | |
if (element.shadowRoot) { | |
haCards.push(...element.shadowRoot.querySelectorAll('ha-card')); | |
haCards.push(...getAllHaCards(element.shadowRoot)); | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// ==UserScript== | |
// @name Highlight 404 links in red background | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-07-01 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.ingham.org/* | |
// @match https://cms3.revize.com/revize/inghamcounty/* | |
// @exclude https://itsm.ingham.org/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=ingham.org |
NewerOlder