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
| Param | |
| ( | |
| # Define a mandatory parameter for the resource group name | |
| [Parameter (Mandatory= $true)] | |
| [String] $resourceGroupName = "", | |
| # Define a mandatory parameter for the Fabric Capacity name | |
| [Parameter (Mandatory= $true)] | |
| [String] $fabricName = "" | |
| ) |
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
| <Window x:Class="OpenAI102dalle.MainWindow" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| xmlns:local="clr-namespace:OpenAI102dalle" | |
| mc:Ignorable="d" | |
| Title="MainWindow" Height="450" Width="800"> | |
| <Window.Resources> | |
| <Style TargetType="Control"> |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net.Http; | |
| using System.Text; | |
| using System.Text.Json; | |
| using System.Threading.Tasks; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.Data; |
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
| using Azure; | |
| // Add Azure OpenAI package | |
| using Azure.AI.OpenAI; | |
| using System; | |
| using System.Windows; | |
| namespace OpenAI101 | |
| { | |
| /// <summary> | |
| /// Interaction logic for MainWindow.xaml |
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
| <Window x:Class="OpenAI101.MainWindow" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| xmlns:local="clr-namespace:OpenAI101" | |
| mc:Ignorable="d" | |
| Title="MainWindow" Height="450" Width="800"> | |
| <Window.Resources> | |
| <Style TargetType="Control"> |
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
| $PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile | |
| $PasswordProfile.Password = "" | |
| $PasswordProfile.ForceChangePasswordNextLogin = $false | |
| $location = "westeurope" | |
| # AAD domain | |
| $domain = "" | |
| for ($id = 10; $id -le 35; $id++) { |
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
| # Azure Active Directory domain | |
| $domain = "" | |
| $PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile | |
| $PasswordProfile.Password = "" | |
| $PasswordProfile.ForceChangePasswordNextLogin = $false | |
| $resourceUrlPrefix = "https://portal.azure.com/#" + $domain + "/resource/" | |
| $location = "westeurope" |
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
| from sense_hat import SenseHat | |
| sense = SenseHat() | |
| # https://en.wikipedia.org/wiki/Flag_of_Ukraine | |
| b = [0, 87, 183] # Strong azure | |
| y = [255, 215, 0] # Yellow | |
| o = [0, 0, 0] # off | |
| ua_flag = [ |
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
| # Cron | |
| # 0,30 * * * * /usr/bin/python3 /home/pi/rpi_grove_temperature_humidity.py | |
| import time | |
| import requests | |
| # https://wiki.seeedstudio.com/Grove-TempAndHumi_Sensor-SHT31/ | |
| # https://github.com/Seeed-Studio/grove.py | |
| # https://seeed-studio.github.io/grove.py/ | |
| from grove.i2c import Bus |
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
| [ | |
| { | |
| "id": "f7035dda.42292", | |
| "type": "tab", | |
| "label": "Grove", | |
| "disabled": false, | |
| "info": "" | |
| }, | |
| { | |
| "id": "9c65bcd0.754a7", |
NewerOlder