This file contains 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.Concurrent; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Drawing.Imaging; | |
using CNTK; |
This file contains 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.Collections.Generic; | |
using System.Threading.Tasks; | |
using MongoDB.Bson; | |
using MongoDB.Driver; | |
namespace CrackDetection | |
{ | |
public interface ICosmosDbClient | |
{ | |
Task<string> CreateImageRecord(ImageRecord image); |
This file contains 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp2.2</TargetFramework> | |
<AzureFunctionsVersion>V2</AzureFunctionsVersion> | |
<Platforms>x64</Platforms> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.0" /> | |
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.24" /> | |
<PackageReference Include="MongoDB.Driver" Version="2.7.3" /> |
This file contains 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 sys | |
import itertools | |
import math | |
import logging | |
import json | |
import re | |
import random | |
from collections import OrderedDict | |
import numpy as np |
This file contains 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.Net.Http; | |
using System.Threading.Tasks; | |
using Bentley.ConnectCoreLibs.Testing.Oidc; | |
using Bentley.CONNECT.UnitTest.Settings; | |
using ObjectDetection.Models; | |
using System.Net; | |
using System.Net.Http.Headers; | |
using Newtonsoft.Json; |
This file contains 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 mcr.microsoft.com/azure-functions/python:2.0 | |
COPY . /home/site/wwwroot | |
RUN cd /home/site/wwwroot && \ | |
pip install -r requirements.txt | |
This file contains 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 { Log, User, UserManager } from 'oidc-client'; | |
import { Constants } from '../helpers/Constants'; | |
export class AuthService { | |
public userManager: UserManager; | |
constructor() { | |
const settings = { | |
authority: Constants.stsAuthority, |
This file contains 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
apiVersion: certmanager.k8s.io/v1alpha1 | |
kind: ClusterIssuer | |
metadata: | |
name: letsencrypt-staging | |
namespace: ingress-basic | |
spec: | |
acme: | |
server: https://acme-staging-v02.api.letsencrypt.org/directory | |
email: Nick.Purcell@bentley.com | |
privateKeySecretRef: |
This file contains 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: obj-det-ingress | |
namespace: default | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/enable-cors: "true" | |
nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, DELETE, GET, POST, OPTIONS" | |
nginx.ingress.kubernetes.io/cors-allow-origin: "https://objectdetectionstorageqa.z19.web.core.windows.net/" |
This file contains 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.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.WindowsAzure.Storage.Queue; | |
using Newtonsoft.Json; | |
using ObjectDetection.Models; | |
using ObjectDetection.Services; |
OlderNewer