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
swagger: '2.0' | |
info: | |
title: Default title | |
description: Azure OpenAI - Completions API | |
version: '1.0' | |
host: [YOUR ENDPOINT PREFIX HERE].openai.azure.com | |
basePath: /openai | |
schemes: | |
- https | |
consumes: [] |
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
{ | |
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", | |
"elmType": "img", | |
"attributes": { | |
"class": " ms-borderColor-neutralLighter", | |
"src": "='https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/'+[$MapLocation]+'?mapSize=280,215&key=[Your Bing Maps key here]'" | |
}, | |
"txtContent": "[$MapLocation]" | |
} |
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.Threading.Tasks; | |
using Microsoft.CognitiveServices.Speech; | |
using Microsoft.CognitiveServices.Speech.Audio; | |
namespace COB.SpeechAPI | |
{ | |
class Program | |
{ | |
private static string WAV_FILEPATH = @"C:\Users\chris.obrien\Documents\Voicemeeter\Recording-_17_.wav"; |
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 Microsoft.Azure.CognitiveServices.Vision.ComputerVision; | |
using Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models; | |
using System.Threading.Tasks; | |
using System.IO; | |
namespace COB.Azure.ComputerVision | |
{ | |
class Program |
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
{ | |
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"padding-right": "8px" | |
}, | |
"txtContent": "Cross charge form" |
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
// used to get object suitable for writing a single-valued taxonomy value to SharePoint from the PnP taxonomy picker control.. | |
private static getTaxonomyTerm(termDetails: IPickerTerm): ITaxonomyTerm { | |
let taxonomyTerm: ITaxonomyTerm; | |
if (termDetails) { | |
taxonomyTerm = { | |
TermGuid: termDetails.key, | |
Label: termDetails.name, | |
WssId: -1 | |
}; |
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
const requestHeaders: Headers = new Headers(); | |
requestHeaders.append('Content-type', 'application/json'); | |
requestHeaders.append('Cache-Control', 'no-cache'); | |
const functionUrl: string = 'https://[FUNCTION HOST URL].azurewebsites.net/api/TeamCreator'; | |
const cobAadFunctionsAppClientId: string = '[CLIENT ID RELATED TO AZURE FUNCTION APP HERE]'; | |
const options: IHttpClientOptions = { | |
headers: requestHeaders, | |
body: `{ 'teamName': '${this.state.teamName}', 'teamDesc': '${this.state.teamDesc}' }` |
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
"isDomainIsolated": true, | |
"webApiPermissionRequests": [ | |
{ | |
"resource": "COB-AAD-Functions", | |
"scope": "user_impersonation" | |
} | |
] |
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 Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System; | |
using System.IO; | |
namespace COB.Teams.Provisioning | |
{ | |
public class TeamDetails | |
{ | |
private JObject _teamTemplate = null; |
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.Globalization; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.IdentityModel.Clients.ActiveDirectory; | |
using Newtonsoft.Json; | |
using COB.Teams.Provisioning.Entities; |
NewerOlder