😶🌫️
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
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 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
{ | |
"$connections": { | |
"value": { | |
"rss": { | |
"connectionId": "/subscriptions/7e2b0a07-47db-4a2e-bfca-03c0d5b75f15/resourceGroups/personal-website/providers/Microsoft.Web/connections/rss", | |
"connectionName": "rss", | |
"id": "/subscriptions/7e2b0a07-47db-4a2e-bfca-03c0d5b75f15/providers/Microsoft.Web/locations/southcentralus/managedApis/rss" | |
}, | |
"twitter": { | |
"connectionId": "/subscriptions/7e2b0a07-47db-4a2e-bfca-03c0d5b75f15/resourceGroups/personal-website/providers/Microsoft.Web/connections/twitter", |
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
using System; | |
using System.Collections.Generic; | |
namespace Parser.CSharp | |
{ | |
public static class ParserCSharp | |
{ | |
public static string[] ParseCommandline(string input) | |
{ | |
var items = new List<string>(); |
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 * 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 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
using Chauffeur.TestingTools; | |
using Fluidity.Configuration; | |
using Fluidity.Data; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Umbraco.Core; | |
using Xunit; |
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
function async(async) { | |
return new Promise(res => | |
setTimeout(() => (console.log(async), res()), 1000) | |
); | |
} | |
async function await() { await async('hello'); } | |
await(); |
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
let foo = (bar: 'a) -> | |
{ something: bar } | |
let baz = foo(1) | |
let baz2 = foo("a") | |
printf "bar: %d" baz.bar | |
printf "bar2: %s" baz2.bar |
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
// assuming http://www.html5rocks.com/en/tutorials/es6/promises/ | |
var arr = [1, 2, 3, 4, 5]; | |
var promises = arr.map(x => $.getJSON('/foo/bar?baz=' + x)); | |
Promise.all(promises) | |
.then((result1, result2, result3, result4, result5) => { | |
//merge results | |
}); |
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
var UserList = React.createClass({ | |
render() { | |
return ( | |
<table> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th></th> | |
</tr> | |
</thead> |
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
### Keybase proof | |
I hereby claim: | |
* I am aaronpowell on github. | |
* I am apowell (https://keybase.io/apowell) on keybase. | |
* I have a public key whose fingerprint is 8EC6 C2E9 DDBE AA3A 86AD 964B 2CAF 935F B911 159E | |
To claim this, I am signing this object: |
NewerOlder