Scope | Type | Description | Admin Consent |
---|---|---|---|
Application.Read.All | Application | Read all applications | Yes |
Application.ReadWrite.All | Application | Read and write all applications | Yes |
Application.ReadWrite.OwnedBy | Application | Manage apps that this app creates or owns | Yes |
offline_access | Delegated | Maintain access to data you have given it access to | No |
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 os | |
import requests | |
import base64 | |
import json | |
import pandas as pd | |
# Retrieve variables from system environment variables | |
organization = os.environ.get("AZURE_DEVOPS_ORG_NAME") | |
project = os.environ.get("AZURE_DEVOPS_PROJECT_NAME") | |
feed_id = os.environ.get("AZURE_DEVOPS_FEED_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
$url = "https://dev.azure.com/{org}/{project}/_apis/projectanalysis/languagemetrics" | |
$pat = "" | |
# Create header with PAT | |
$token = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(":$($pat)")) | |
$header = @{authorization = "Basic $token"} | |
$response = Invoke-RestMethod -Uri $url -Headers $header -Method Get -ContentType "application/json" | |
$array = @() |
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
# %% | |
#!/bin/env python3 | |
import pygit2, os, datetime, json | |
from pygit2 import GIT_SORT_TOPOLOGICAL, GIT_SORT_REVERSE, Commit | |
# %% | |
repo = pygit2.Repository(pygit2.discover_repository(os.getcwd())) | |
time_now = datetime.datetime.now() |
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
Get-AzureRmProviderOperation | Where Operation -like "*listkey*" | ft Operation, OperationName | |
Get-AzureRmProviderOperation -OperationSearchString "Microsoft.ServiceBus/*" | Where Operation -like "*listkey*" | ft Operation, OperationName |
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
{ | |
"RuleName": "MyRuleRocks", | |
"Product": "general", | |
"Version": "1.0", | |
"Description" : "Wonderful rule, that doesnot do wonders", | |
"Tags": [ | |
"latest" | |
], | |
"IsActive": true, | |
"IfExpression": "() => customer, c => c.IsPreferred", |
One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:
- Diagnostic MSBuild Output Enabled(Instructions)
- Java Decompiler(http://jd.benow.ca/)
- .NET Decompiler(https://www.jetbrains.com/decompiler/)
- Binding SDK Documentation
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
console.log('started'); | |
var https = require('https'); | |
var crypto = require('crypto'); | |
var moment = require('moment'); | |
var uuid= require('node-uuid'); | |
var os = require("os"); | |
var deviceName = "galileo"; //os.hostname(); |
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 AsyncContext | |
{ | |
public static void Run(params Func<Task>[] tasks) | |
{ | |
if (tasks == null) | |
return; | |
Task[] asyncTasks = new Task[tasks.Length]; | |
int counter = 0; |
NewerOlder