😶🌫️
This file contains hidden or 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
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: |
This file contains hidden or 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 * 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 |
This file contains hidden or 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
module PubSub { | |
interface ISubscription { | |
(...args: any[]): void; | |
} | |
interface IDictionary { | |
[name: string] : ISubscription[]; | |
} | |
var registry : IDictionary = { |
This file contains hidden or 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
[alias] | |
cb = "!f() { git branch --merged | grep -v "master" | while read i; do git branch -d $i; done; }; f" |
This file contains hidden or 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
public class CustomerController : Controller | |
{ | |
public CustomerRepository Repository = new CustomerRepository(); | |
public ActionResult Index() | |
{ | |
return View(); | |
} | |
public JsonResult List() |
This file contains hidden or 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
public class Foo : IEquatable<Foo> | |
{ | |
readonly int bar; | |
public Foo(int bar) | |
{ | |
this.bar = bar; | |
} | |
public override bool Equals(object obj) |