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 { TextAnalyticsClient, AzureKeyCredential } = require("@azure/ai-text-analytics"); | |
const client = new TextAnalyticsClient(process.env["TEXT_ANALYSIS_ENDPOINT"], new AzureKeyCredential(process.env["TEXT_ANALYSIS_KEY"])); | |
module.exports = async function (context, req) { | |
// Extract submitted text from request body | |
const text = req.body && req.body.text; | |
if (!text) { | |
// Error if no text was found | |
return context.res = { |
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 Landing = () => { | |
const { config: alertMessage } = useConfiguration('Landing:Alert'); // The config key from App Config | |
const { enabled: showLandingAlert } = useFeatureFlag('ShowLandingAlert'); // The feature flag key from App Config | |
const showAlert = showLandingAlert && alertMessage.toString().trim().length; | |
return ( | |
<> | |
{showAlert && <TopAlert color="success">{alertMessage}</TopAlert>} |
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
name: Pull Request Preview | |
on: | |
pull_request: | |
types: [opened, synchronize, closed] | |
branches: | |
- main | |
paths: | |
- "app/**" | |
workflow_dispatch: |
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 pyapacheatlas.auth import ServicePrincipalAuthentication | |
from pyapacheatlas.auth import BasicAuthentication | |
from pyapacheatlas.core import PurviewClient, AtlasEntity, AtlasProcess | |
from pyapacheatlas.core.util import AtlasException, GuidTracker | |
from json import dumps | |
# Configure Service Principal Authentication | |
auth = ServicePrincipalAuthentication( | |
tenant_id = "xxxxxxx-xxxxxx-xxxxx-xxxxx-xxxxxxxxxx", | |
client_id = "xxxxxx-xxxxx-xxxxx-xxxxx-xxxxxxx", # Client 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
{ | |
"name": "example", | |
"version": "1.0.0", | |
"private": true, | |
"scripts": { | |
"start": "react-scripts start", | |
"sync:i18n": "ts-node --project ../scripts/tsconfig.json ../scripts/syncTranslations.ts", | |
"build": "react-scripts build", | |
"test": "react-scripts test" | |
} |
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
{ | |
"bindings": [ | |
{ | |
"name": "file", | |
"type": "blobTrigger", | |
"direction": "in", | |
"path": "files/{name}", | |
"connection": "AzureWebJobsStorage" | |
}, | |
{ |
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
// Create the Table | |
.create table MyTable (Title: string, Description: string, Importance: string, User: string) | |
// Append a sample entry | |
.append MyTable <| | |
print "Some Title", "This is a long description.", "Low", "Olaf Wrieden" |
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
type DTMI = string; | |
interface Interface { | |
"@context": string; | |
"@type": "Interface"; | |
"@id": DTMI; | |
comment?: string; | |
contents?: (Command | Component | Property | Relationship | Telemetry)[]; | |
description?: string; | |
displayName?: string; |