Skip to content

Instantly share code, notes, and snippets.

View ChendrayanV's full-sized avatar
🏠
Working from home

ChenV ChendrayanV

🏠
Working from home
View GitHub Profile
@ChendrayanV
ChendrayanV / script.ps1
Last active November 10, 2023 11:11
A PowerShell Script to retrieve SCALAR properties value of the GitLab projects using GraphQL
param (
$Organization,
$PrivateToken,
$ProjectFullPath
)
$query = @{
query = '{
@markekraus
markekraus / HttpClient-Example.ps1
Created November 25, 2020 21:03
Example using HttpClient in PowerShell
# Create single HttpClient
$client = [System.Net.Http.HttpClient]::new()
# Perform multiple GETs
foreach ($url in $urls) {
$clientResult = $client.GetStringAsync($url).
GetAwaiter().
GetResult()
$clientResult | ConvertFrom-Json
}
@ghotz
ghotz / cscv-describe-image-binary.ps1
Created August 11, 2018 09:19
Describe local image with Azure Cognitive Services Computer Vision API in PowerShell
# Describe local image with Azure Cognitive Services Computer Vision API in PowerShell
$ComputerVisionAPILocation = "westeurope";
$ComputerVisionAPIURL = "https://$ComputerVisionAPILocation.api.cognitive.microsoft.com/vision/v2.0";
$ComputerVisionAPIKey = "YOUR_KEY_GOES_HERE";
$ComputerVisionAPIAnalyzeTemplateURL = ($ComputerVisionAPIURL + "//describe?maxCandidates={0}")
$maxCandidates = 10;