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
resource managed_service_identity_kv_resource 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = { | |
name: managed_identity_name | |
location: resource_group_location | |
} |
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
{ | |
"Title": "A sample blog post", | |
"Summary": "This is a test blog post summary.", | |
"Link": "https://blog.siliconvalve.com/" | |
} |
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
# Install Java 11 SDK using Chocolatey | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
choco install openjdk --version 11.0.2.01 -y | |
choco install intellijidea-community -y |
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
{ | |
"SensorName": "PurpleAir-XXX", | |
"ReadingTime": "2022-08-15T05:26:41+00:00", | |
"Latitude": -00.000000, | |
"Longitude": 00.000000, | |
"PressureMillibars": 993.75, | |
"Humidity": 27, | |
"Temperature": 22, | |
"Pm25ChannelA": 0, | |
"Pm25ChannelB": 0, |
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
{ | |
"models": [{ | |
"modelId": "e88247b4-ed17-11ec-85a9-xxxxxxxxxxx", | |
"createdTime": "2022-06-16T01:59:08Z", | |
"lastUpdatedTime": "2022-06-16T02:00:34Z", | |
"status": "READY", | |
"displayName": "Air Quality", | |
"variablesCount": 4 | |
}], | |
"currentCount": 1, |
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
SELECT | |
DATETIMEFROMPARTS (DATEPART(year,readtime), DATEPART(month,readtime), DATEPART(day,readtime), DATEPART(hour, readtime), DATEPART(minute, readtime), 30, 0) as 'timestamp', | |
temperature as value | |
INTO | |
[temperaturedatacsv] | |
FROM | |
[rawiotjsondata] | |
SELECT | |
DATETIMEFROMPARTS (DATEPART(year,readtime), DATEPART(month,readtime), DATEPART(day,readtime), DATEPART(hour, readtime), DATEPART(minute, readtime), 30, 0) as 'timestamp', |
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
# Originally from: https://www.meetup.com/api/guide/#p02-querying-section | |
query='query($eventId: ID) { | |
event(id: $eventId) { | |
title | |
description | |
dateTime | |
} | |
} | |
' |
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
query | |
{ | |
groupByUrlname(urlname: "Azure-Sydney-User-Group") | |
{ | |
name | |
id | |
upcomingEvents(input: {first: 1}) | |
{ | |
pageInfo | |
{ |
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
CheckMSAU: async function(context) { | |
var hasConsole = false; | |
const url = 'https://www.microsoft.com/en-au/d/xbox-series-x/8wj714n3rbtl?activetab=pivot%3aoverviewtab'; | |
const browser = await chromium.launch(); | |
const page = await browser.newPage(); | |
await page.goto(url); | |
try | |
{ |
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 ReadItemsFromDate(AbstractRequestHandler): | |
"""Handler for ReadItemsFromDate Intent.""" | |
def can_handle(self, handler_input): | |
return ask_utils.is_intent_name("ReadItemsFromDate")(handler_input) | |
def handle(self, handler_input): | |
# Extract the date value from the slot for this intent | |
# In this case we are going to assume it's a valid date and not check |