Skip to content

Instantly share code, notes, and snippets.

View aaronpowell's full-sized avatar
😶‍🌫️

Aaron Powell aaronpowell

😶‍🌫️
View GitHub Profile
@aaronpowell
aaronpowell / update_notifications-rev.yaml
Created December 5, 2023 01:27 — forked from mdegat01/update_notifications.yaml
Update Notifications Automation Blueprint
blueprint:
name: Update notifications
description: Send notifications for new updates and install or skip on action
homeassistant:
min_version: 2022.4.0
domain: automation
input:
update_entities:
name: Update entities
description:
import * as cheerio from 'cheerio'
export const fetchAgenda = async () => {
const response = await fetch('https://ndcsydney.com/agenda')
const body = await response.text()
const talks = []
const $ = cheerio.load(body)
$('section.day').map((i, el) => {
// prettier-ignore
module PubSub {
interface ISubscription {
(...args: any[]): void;
}
interface IDictionary {
[name: string] : ISubscription[];
}
var registry : IDictionary = {
@aaronpowell
aaronpowell / .gitconfig
Last active October 7, 2015 12:07 — forked from shiftkey/merge-local-branches.ps1
Script to cleanup merged branches locally
[alias]
cb = "!f() { git branch --merged | grep -v "master" | while read i; do git branch -d $i; done; }; f"
@aaronpowell
aaronpowell / CustomerController.cs
Created May 17, 2011 03:42 — forked from PaulStovell/CustomerController.cs
JavaScript Editing - How would you improve this?
public class CustomerController : Controller
{
public CustomerRepository Repository = new CustomerRepository();
public ActionResult Index()
{
return View();
}
public JsonResult List()
public class Foo : IEquatable<Foo>
{
readonly int bar;
public Foo(int bar)
{
this.bar = bar;
}
public override bool Equals(object obj)