Skip to content

Instantly share code, notes, and snippets.

View grleblanc's full-sized avatar
💭
Teaching myself Angular.

Greg LeBlanc grleblanc

💭
Teaching myself Angular.
View GitHub Profile
@grleblanc
grleblanc / hass.js
Created October 23, 2023 17:53 — forked from m33x/hass.js
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@grleblanc
grleblanc / totalhash.py
Last active February 7, 2023 22:32 — forked from githubp0b/totalhash.py
Python script to interface with totalhash.com
#!/usr/bin/env python
import sys
from optparse import OptionParser
import requests
import re
from bs4 import BeautifulSoup
#from requests.packages.urllib3.exceptions import InsecureRequestWarning
#This removes the urllib3 warnings